File tree Expand file tree Collapse file tree 6 files changed +14
-5
lines changed Expand file tree Collapse file tree 6 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ function useI18nError() {
65
65
) ;
66
66
case 'credential-wasted-on-exit-gateway' :
67
67
return fmtErr ( t ( 'tunnel.exit-gateway-bandwidth-increase' ) , message ) ;
68
+ case 'performant-entry-gw-unavailable' :
69
+ return fmtErr ( t ( 'tunnel.performant-entry-gw-unavailable' ) , message ) ;
70
+ case 'performant-exit-gw-unavailable' :
71
+ return fmtErr ( t ( 'tunnel.performant-exit-gw-unavailable' ) , message ) ;
68
72
}
69
73
}
70
74
// not a tunnel error
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function useScore() {
47
47
} ;
48
48
case 'low' :
49
49
return {
50
- color : 'text-malachite-moss dark:text-malachite ' ,
50
+ color : 'text-malachite' ,
51
51
label : t ( 'node-details.server-load-score.low' ) ,
52
52
} ;
53
53
case 'medium' :
Original file line number Diff line number Diff line change 25
25
"inactive-account" : " Your account is inactive" ,
26
26
"device-logged-out" : " This device has been logged out. Please log in to continue using the VPN." ,
27
27
"entry-gateway-bandwidth-increase" : " Entry gateway is not responding or responding badly to a bandwidth increase." ,
28
- "exit-gateway-bandwidth-increase" : " Exit gateway is not responding or responding badly to a bandwidth increase."
28
+ "exit-gateway-bandwidth-increase" : " Exit gateway is not responding or responding badly to a bandwidth increase." ,
29
+ "performant-entry-gw-unavailable" : " The entry gateway can't connect. Try another!" ,
30
+ "performant-exit-gw-unavailable" : " The exit gateway can't connect. Try another!"
29
31
},
30
32
"account" : {
31
33
"internal" : " Internal account error" ,
Original file line number Diff line number Diff line change 50
50
},
51
51
"notes" : {
52
52
"anti-censorship" : " Enable “QUIC protocol” in Anti-censorship Settings to use this feature" ,
53
- "performance_with_date " : " Performance score calculated from server load and uptime. Uptime as last 24-hours average. Last update {{date }}." ,
53
+ "performance_with_time " : " Performance score calculated from server load and uptime. Uptime as last 24-hours average. Last update {{relativeTime }}." ,
54
54
"performance" : " Performance score calculated from server load and uptime. Uptime as last 24-hours average."
55
55
},
56
56
"links" : {
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import clsx from 'clsx' ;
3
+ import dayjs from 'dayjs' ;
3
4
import * as H from 'history' ;
4
5
import { Trans , useTranslation } from 'react-i18next' ;
5
6
import { useLocation , useNavigate } from 'react-router' ;
@@ -247,8 +248,8 @@ function NodeDetails() {
247
248
] ;
248
249
249
250
const card2Footer = lastUpdate
250
- ? t ( 'node-details.notes.performance_with_date ' , {
251
- date : lastUpdate ,
251
+ ? t ( 'node-details.notes.performance_with_time ' , {
252
+ relativeTime : dayjs ( ) . to ( dayjs ( lastUpdate ) ) ,
252
253
} )
253
254
: t ( 'node-details.notes.performance' ) ;
254
255
Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ export type TunnelError =
85
85
| { key : 'set-dns' ; message : string | null }
86
86
| { key : 'set-routing' ; message : string | null }
87
87
| { key : 'same-entry-and-exit-gw' ; message : string | null }
88
+ | { key : 'performant-entry-gw-unavailable' ; message : string | null }
89
+ | { key : 'performant-exit-gw-unavailable' ; message : string | null }
88
90
| { key : 'invalid-entry-gw-country' ; message : string | null }
89
91
| { key : 'invalid-exit-gw-country' ; message : string | null }
90
92
| { key : 'max-devices-reached' ; message : string | null }
You can’t perform that action at this time.
0 commit comments