Skip to content

Commit 0a7f89a

Browse files
committed
chore: prepare v2.1.5
1 parent 1dcc187 commit 0a7f89a

File tree

19 files changed

+1525
-1046
lines changed

19 files changed

+1525
-1046
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nginx-ui-app-next",
33
"type": "module",
4-
"version": "2.1.4",
4+
"version": "2.1.5",
55
"packageManager": "[email protected]+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac",
66
"scripts": {
77
"dev": "vite --host",

app/src/components/Notification/notifications.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ const notifications: Record<string, { title: () => string, content: (args: any)
8181
title: () => $gettext('Rename Remote Config Success'),
8282
content: (args: any) => $gettext('Rename %{orig_path} to %{new_path} on %{env_name} successfully', args, true),
8383
},
84+
'Delete Remote Config Error': {
85+
title: () => $gettext('Delete Remote Config Error'),
86+
content: (args: any) => $gettext('Delete %{path} on %{env_name} failed', args, true),
87+
},
88+
'Delete Remote Config Success': {
89+
title: () => $gettext('Delete Remote Config Success'),
90+
content: (args: any) => $gettext('Delete %{path} on %{env_name} successfully', args, true),
91+
},
8492
'Delete Remote Site Error': {
8593
title: () => $gettext('Delete Remote Site Error'),
8694
content: (args: any) => $gettext('Delete site %{name} from %{node} failed', args, true),

app/src/constants/errors/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ export default {
33
50007: () => $gettext('Destination file: {0} already exists'),
44
50008: () => $gettext('Nginx test failed: {0}'),
55
50009: () => $gettext('Nginx reload failed: {0}'),
6+
50010: () => $gettext('Cannot delete protected path: {0}'),
7+
50011: () => $gettext('File or directory not found: {0}'),
8+
50012: () => $gettext('You are not allowed to delete a file outside of the nginx config path'),
69
}

0 commit comments

Comments
 (0)