|
@@ -4,72 +4,6 @@
|
|
|
|
|
|
const notifications: Record<string, { title: () => string, content: (args: any) => string }> = {
|
|
const notifications: Record<string, { title: () => string, content: (args: any) => string }> = {
|
|
|
|
|
|
- // cluster module notifications
|
|
|
|
- 'Reload Remote Nginx Error': {
|
|
|
|
- title: () => $gettext('Reload Remote Nginx Error'),
|
|
|
|
- content: (args: any) => $gettext('Reload Nginx on %{node} failed, response: %{resp}', args),
|
|
|
|
- },
|
|
|
|
- 'Reload Remote Nginx Success': {
|
|
|
|
- title: () => $gettext('Reload Remote Nginx Success'),
|
|
|
|
- content: (args: any) => $gettext('Reload Nginx on %{node} successfully', args),
|
|
|
|
- },
|
|
|
|
- 'Restart Remote Nginx Error': {
|
|
|
|
- title: () => $gettext('Restart Remote Nginx Error'),
|
|
|
|
- content: (args: any) => $gettext('Restart Nginx on %{node} failed, response: %{resp}', args),
|
|
|
|
- },
|
|
|
|
- 'Restart Remote Nginx Success': {
|
|
|
|
- title: () => $gettext('Restart Remote Nginx Success'),
|
|
|
|
- content: (args: any) => $gettext('Restart Nginx on %{node} successfully', args),
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- // cert module notifications
|
|
|
|
- 'Certificate Expired': {
|
|
|
|
- title: () => $gettext('Certificate Expired'),
|
|
|
|
- content: (args: any) => $gettext('Certificate %{name} has expired', args),
|
|
|
|
- },
|
|
|
|
- 'Certificate Expiration Notice': {
|
|
|
|
- title: () => $gettext('Certificate Expiration Notice'),
|
|
|
|
- content: (args: any) => $gettext('Certificate %{name} will expire in %{days} days', args),
|
|
|
|
- },
|
|
|
|
- 'Certificate Expiring Soon': {
|
|
|
|
- title: () => $gettext('Certificate Expiring Soon'),
|
|
|
|
- content: (args: any) => $gettext('Certificate %{name} will expire in %{days} days', args),
|
|
|
|
- },
|
|
|
|
- 'Certificate Expiring Soon_1': {
|
|
|
|
- title: () => $gettext('Certificate Expiring Soon'),
|
|
|
|
- content: (args: any) => $gettext('Certificate %{name} will expire in %{days} days', args),
|
|
|
|
- },
|
|
|
|
- 'Certificate Expiring Soon_2': {
|
|
|
|
- title: () => $gettext('Certificate Expiring Soon'),
|
|
|
|
- content: (args: any) => $gettext('Certificate %{name} will expire in 1 day', args),
|
|
|
|
- },
|
|
|
|
- 'Sync Certificate Error': {
|
|
|
|
- title: () => $gettext('Sync Certificate Error'),
|
|
|
|
- content: (args: any) => $gettext('Sync Certificate %{cert_name} to %{env_name} failed', args),
|
|
|
|
- },
|
|
|
|
- 'Sync Certificate Success': {
|
|
|
|
- title: () => $gettext('Sync Certificate Success'),
|
|
|
|
- content: (args: any) => $gettext('Sync Certificate %{cert_name} to %{env_name} successfully', args),
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- // config module notifications
|
|
|
|
- 'Sync Config Error': {
|
|
|
|
- title: () => $gettext('Sync Config Error'),
|
|
|
|
- content: (args: any) => $gettext('Sync config %{config_name} to %{env_name} failed', args),
|
|
|
|
- },
|
|
|
|
- 'Sync Config Success': {
|
|
|
|
- title: () => $gettext('Sync Config Success'),
|
|
|
|
- content: (args: any) => $gettext('Sync config %{config_name} to %{env_name} successfully', args),
|
|
|
|
- },
|
|
|
|
- 'Rename Remote Config Error': {
|
|
|
|
- title: () => $gettext('Rename Remote Config Error'),
|
|
|
|
- content: (args: any) => $gettext('Rename %{orig_path} to %{new_path} on %{env_name} failed', args),
|
|
|
|
- },
|
|
|
|
- 'Rename Remote Config Success': {
|
|
|
|
- title: () => $gettext('Rename Remote Config Success'),
|
|
|
|
- content: (args: any) => $gettext('Rename %{orig_path} to %{new_path} on %{env_name} successfully', args),
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
// site module notifications
|
|
// site module notifications
|
|
'Delete Remote Site Error': {
|
|
'Delete Remote Site Error': {
|
|
title: () => $gettext('Delete Remote Site Error'),
|
|
title: () => $gettext('Delete Remote Site Error'),
|
|
@@ -175,6 +109,72 @@ const notifications: Record<string, { title: () => string, content: (args: any)
|
|
title: () => $gettext('All Recovery Codes Have Been Used'),
|
|
title: () => $gettext('All Recovery Codes Have Been Used'),
|
|
content: (args: any) => $gettext('Please generate new recovery codes in the preferences immediately to prevent lockout.', args),
|
|
content: (args: any) => $gettext('Please generate new recovery codes in the preferences immediately to prevent lockout.', args),
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ // cluster module notifications
|
|
|
|
+ 'Reload Remote Nginx Error': {
|
|
|
|
+ title: () => $gettext('Reload Remote Nginx Error'),
|
|
|
|
+ content: (args: any) => $gettext('Reload Nginx on %{node} failed, response: %{resp}', args),
|
|
|
|
+ },
|
|
|
|
+ 'Reload Remote Nginx Success': {
|
|
|
|
+ title: () => $gettext('Reload Remote Nginx Success'),
|
|
|
|
+ content: (args: any) => $gettext('Reload Nginx on %{node} successfully', args),
|
|
|
|
+ },
|
|
|
|
+ 'Restart Remote Nginx Error': {
|
|
|
|
+ title: () => $gettext('Restart Remote Nginx Error'),
|
|
|
|
+ content: (args: any) => $gettext('Restart Nginx on %{node} failed, response: %{resp}', args),
|
|
|
|
+ },
|
|
|
|
+ 'Restart Remote Nginx Success': {
|
|
|
|
+ title: () => $gettext('Restart Remote Nginx Success'),
|
|
|
|
+ content: (args: any) => $gettext('Restart Nginx on %{node} successfully', args),
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // cert module notifications
|
|
|
|
+ 'Certificate Expired': {
|
|
|
|
+ title: () => $gettext('Certificate Expired'),
|
|
|
|
+ content: (args: any) => $gettext('Certificate %{name} has expired', args),
|
|
|
|
+ },
|
|
|
|
+ 'Certificate Expiration Notice': {
|
|
|
|
+ title: () => $gettext('Certificate Expiration Notice'),
|
|
|
|
+ content: (args: any) => $gettext('Certificate %{name} will expire in %{days} days', args),
|
|
|
|
+ },
|
|
|
|
+ 'Certificate Expiring Soon': {
|
|
|
|
+ title: () => $gettext('Certificate Expiring Soon'),
|
|
|
|
+ content: (args: any) => $gettext('Certificate %{name} will expire in %{days} days', args),
|
|
|
|
+ },
|
|
|
|
+ 'Certificate Expiring Soon_1': {
|
|
|
|
+ title: () => $gettext('Certificate Expiring Soon'),
|
|
|
|
+ content: (args: any) => $gettext('Certificate %{name} will expire in %{days} days', args),
|
|
|
|
+ },
|
|
|
|
+ 'Certificate Expiring Soon_2': {
|
|
|
|
+ title: () => $gettext('Certificate Expiring Soon'),
|
|
|
|
+ content: (args: any) => $gettext('Certificate %{name} will expire in 1 day', args),
|
|
|
|
+ },
|
|
|
|
+ 'Sync Certificate Error': {
|
|
|
|
+ title: () => $gettext('Sync Certificate Error'),
|
|
|
|
+ content: (args: any) => $gettext('Sync Certificate %{cert_name} to %{env_name} failed', args),
|
|
|
|
+ },
|
|
|
|
+ 'Sync Certificate Success': {
|
|
|
|
+ title: () => $gettext('Sync Certificate Success'),
|
|
|
|
+ content: (args: any) => $gettext('Sync Certificate %{cert_name} to %{env_name} successfully', args),
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // config module notifications
|
|
|
|
+ 'Sync Config Error': {
|
|
|
|
+ title: () => $gettext('Sync Config Error'),
|
|
|
|
+ content: (args: any) => $gettext('Sync config %{config_name} to %{env_name} failed', args),
|
|
|
|
+ },
|
|
|
|
+ 'Sync Config Success': {
|
|
|
|
+ title: () => $gettext('Sync Config Success'),
|
|
|
|
+ content: (args: any) => $gettext('Sync config %{config_name} to %{env_name} successfully', args),
|
|
|
|
+ },
|
|
|
|
+ 'Rename Remote Config Error': {
|
|
|
|
+ title: () => $gettext('Rename Remote Config Error'),
|
|
|
|
+ content: (args: any) => $gettext('Rename %{orig_path} to %{new_path} on %{env_name} failed', args),
|
|
|
|
+ },
|
|
|
|
+ 'Rename Remote Config Success': {
|
|
|
|
+ title: () => $gettext('Rename Remote Config Success'),
|
|
|
|
+ content: (args: any) => $gettext('Rename %{orig_path} to %{new_path} on %{env_name} successfully', args),
|
|
|
|
+ },
|
|
}
|
|
}
|
|
|
|
|
|
export default notifications
|
|
export default notifications
|