You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/components/Notification/config.ts
+67-2Lines changed: 67 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ export function syncConfigError(text: string) {
8
8
constdata=JSON.parse(text)
9
9
10
10
if(data.status_code===404){
11
-
return$gettext('Sync config %{config_name} to %{env_name} failed, please upgrade the remote Nginx UI to the latest version',{config_name: data.config_name,env_name: data.env_name},true)
11
+
return$gettext('Please upgrade the remote Nginx UI to the latest version')
@@ -24,8 +24,73 @@ export function syncRenameConfigError(text: string) {
24
24
constdata=JSON.parse(text)
25
25
26
26
if(data.status_code===404){
27
-
return$gettext('Rename %{orig_path} to %{new_path} on %{env_name} failed, please upgrade the remote Nginx UI to the latest version',{orig_path: data.orig_path,new_path: data.orig_path,env_name: data.env_name},true)
27
+
return$gettext('Please upgrade the remote Nginx UI to the latest version')
28
28
}
29
29
30
30
return$gettext('Rename %{orig_path} to %{new_path} on %{env_name} failed, response: %{resp}',{orig_path: data.orig_path,new_path: data.orig_path,resp: data.resp_body,env_name: data.env_name},true)
31
31
}
32
+
33
+
exportfunctionsaveSiteSuccess(text: string){
34
+
constdata=JSON.parse(text)
35
+
return$gettext('Save Site %{site} to %{node} successfully',{site: data.site,node: data.node})
36
+
}
37
+
38
+
exportfunctionsaveSiteError(text: string){
39
+
constdata=JSON.parse(text)
40
+
if(data.status_code===404){
41
+
return$gettext('Please upgrade the remote Nginx UI to the latest version')
42
+
}
43
+
return$gettext('Save site %{site} to %{node} error, response: %{resp}',{site: data.name,node: data.node,resp: JSON.stringify(data.response)},true)
44
+
}
45
+
46
+
exportfunctiondeleteSiteSuccess(text: string){
47
+
constdata=JSON.parse(text)
48
+
return$gettext('Remove Site %{site} from %{node} successfully',{site: data.name,node: data.node})
49
+
}
50
+
51
+
exportfunctiondeleteSiteError(text: string){
52
+
constdata=JSON.parse(text)
53
+
if(data.status_code===404){
54
+
return$gettext('Please upgrade the remote Nginx UI to the latest version')
55
+
}
56
+
return$gettext('Remove site %{site} from %{node} error, response: %{resp}',{site: data.name,node: data.node,resp: JSON.stringify(data.response)},true)
57
+
}
58
+
59
+
exportfunctionenableSiteSuccess(text: string){
60
+
constdata=JSON.parse(text)
61
+
return$gettext('Enable Site %{site} on %{node} successfully',{site: data.name,node: data.node})
62
+
}
63
+
64
+
exportfunctionenableSiteError(text: string){
65
+
constdata=JSON.parse(text)
66
+
if(data.status_code===404){
67
+
return$gettext('Please upgrade the remote Nginx UI to the latest version')
68
+
}
69
+
return$gettext('Enable site %{site} on %{node} error, response: %{resp}',{site: data.name,node: data.node,resp: JSON.stringify(data.response)},true)
70
+
}
71
+
72
+
exportfunctiondisableSiteSuccess(text: string){
73
+
constdata=JSON.parse(text)
74
+
return$gettext('Disable Site %{site} on %{node} successfully',{site: data.name,node: data.node})
75
+
}
76
+
77
+
exportfunctiondisableSiteError(text: string){
78
+
constdata=JSON.parse(text)
79
+
if(data.status_code===404){
80
+
return$gettext('Please upgrade the remote Nginx UI to the latest version')
81
+
}
82
+
return$gettext('Disable site %{site} on %{node} error, response: %{resp}',{site: data.name,node: data.node,resp: JSON.stringify(data.response)},true)
83
+
}
84
+
85
+
exportfunctionrenameSiteSuccess(text: string){
86
+
constdata=JSON.parse(text)
87
+
return$gettext('Rename Site %{site} to %{new_site} on %{node} successfully',{site: data.name,new_site: data.new_name,node: data.node})
88
+
}
89
+
90
+
exportfunctionrenameSiteError(text: string){
91
+
constdata=JSON.parse(text)
92
+
if(data.status_code===404){
93
+
return$gettext('Please upgrade the remote Nginx UI to the latest version')
94
+
}
95
+
return$gettext('Rename Site %{site} to %{new_site} on %{node} error, response: %{resp}',{site: data.name,new_site: data.new_name,node: data.node,resp: JSON.stringify(data.response)},true)
0 commit comments