-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: Agent nodes offline, alert through the main node #8303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3289,6 +3289,8 @@ const message = { | |
| pushSuccess: 'Tekanan Berjaya', | ||
| syncError: 'Penyelarasan Gagal', | ||
| success: 'Amaran Berjaya', | ||
| pushing: 'Sedang menghantar...', | ||
| error: 'Amaran gagal', | ||
| cleanLog: 'Bersihkan Log', | ||
| cleanAlertLogs: 'Bersihkan Log Amaran', | ||
| daily: 'Bilangan Amaran Harian: {0}', | ||
|
|
@@ -3345,6 +3347,15 @@ const message = { | |
| defaultPhone: 'Secara lalai ke nombor telefon akaun terikat lesen', | ||
| noticeAlert: 'Amaran Pemberitahuan', | ||
| resourceAlert: 'Amaran Sumber', | ||
| syncToNode: 'Penyegerakan ke nod anak', | ||
| syncToNodeHelper: 'Penyegerakan tetapan amaran ke nod lain', | ||
| nodes: 'Nod', | ||
| selectNode: 'Pilih nod', | ||
| selectNodeError: 'Sila pilih nod', | ||
| syncToNodeClose: | ||
| 'Menutup ini tidak akan menyegerakkan tetapan amaran ke nod lain. Adakah anda ingin meneruskan?', | ||
| agentOfflineAlertHelper: | ||
| 'Amaran luar talian nod anak akan diimbas dan dilaksanakan oleh nod utama setiap 30 minit', | ||
| }, | ||
| theme: { | ||
| lingXiaGold: 'Ling Xia Emas', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The provided code changes look generally consistent with updating messages to improve user experience and clarity. Here are some minor adjustments and recommendations:
Optimal Changes@@ -3289,6 +3289,8 @@ const message = {
+ pushing: 'Sedang menghantar...',
+ error: 'Amaran gagal',
cleanLog: 'Bersihkan Log',
cleanAlertLogs: 'Bersihkan Log Amaran',
daily: 'Bilangan Amaran Harian: {0}',
@@ -3345,6 +3347,11 @@ const message = {
@@ -3456,3 +3459,3 @@These adjustments make the translations and strings clearer and easier to implement in application interfaces. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3290,6 +3290,8 @@ const message = { | |
| pushSuccess: 'Envio Bem-sucedido', | ||
| syncError: 'Sincronização Falhou', | ||
| success: 'Alerta Bem-sucedido', | ||
| pushing: 'Enviando...', | ||
| error: 'Falha no alerta', | ||
| cleanLog: 'Limpar Registros', | ||
| cleanAlertLogs: 'Limpar Registros de Alertas', | ||
| daily: 'Contagem Diária de Alertas: {0}', | ||
|
|
@@ -3346,6 +3348,15 @@ const message = { | |
| defaultPhone: 'Número de telefone padrão vinculado à conta de licença', | ||
| noticeAlert: 'Alerta de Notificação', | ||
| resourceAlert: 'Alerta de Recursos', | ||
| syncToNode: 'Sincronizar para o nó filho', | ||
| syncToNodeHelper: 'Sincronizar configurações de alerta para outros nós', | ||
| nodes: 'Nós', | ||
| selectNode: 'Selecionar nó', | ||
| selectNodeError: 'Por favor, selecione um nó', | ||
| syncToNodeClose: | ||
| 'Ao fechar, as configurações de alerta não serão sincronizadas para outros nós. Deseja continuar?', | ||
| agentOfflineAlertHelper: | ||
| 'O alerta de offline do nó filho será verificado e executado pelo nó principal a cada 30 minutos', | ||
| }, | ||
| theme: { | ||
| lingXiaGold: 'Ling Xia Gold', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code provided contains several potential improvements for better readability, maintainability, and functionality:
Here's an updated version based on these suggestions: const message = {
pushSuccess: 'Envío Exitoso',
syncError: 'Falha na Sincronização',
success: 'Aviso bem-sucedido',
pushing: 'Enviando...',
error: 'Erro no aviso',
cleanLog: 'Limpar Registros',
cleanAlertLogs: 'Limpar Registros de Aviso',
daily: 'Contagem diária de avisos: {0}',
// Notifications
noticeAlert: 'Notificação',
// Resources
resourceAlert: 'Aviso de Recurso',
// Sync Settings
syncToNode: 'Sincronizar com O Nó Filho',
syncToNodeHelper:
'Sincronizar configurações de alerta para outros nós. Certifique-se de que todos os membros do nó filho estejam configurados corretamente.',
nodes: 'Nós Filhos',
selectNode: 'Selecionar Nó Filho',
selectNodeError: 'Selecione pelo menos um nodo filho.',
syncToNodeClose:
'Ao fechar esta janela, as configurações de alerta dos outros nodos filhos não serão automaticamente sincronizadas. Deseja prosseguir?',
agentOfflineAlertHelper:
'O alerta de estado-offline será verificado e atualizado automaticamente em até 30 minutos pelos nós principais.'
};Changes Made:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The differences provided appear to be minor corrections or additions. Here is a concise summary of the changes:
These modifications improve clarity and functionality without introducing significant issues. If you need further assistance or optimizations, please let me know! |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3280,6 +3280,8 @@ const message = { | |
| pushSuccess: 'Отправка успешна', | ||
| syncError: 'Ошибка синхронизации', | ||
| success: 'Уведомление успешно', | ||
| pushing: 'В процессе отправки...', | ||
| error: 'Ошибка оповещения', | ||
| cleanLog: 'Очистить логи', | ||
| cleanAlertLogs: 'Очистить журналы уведомлений', | ||
| daily: 'Ежедневное количество уведомлений: {0}', | ||
|
|
@@ -3341,6 +3343,15 @@ const message = { | |
| defaultPhone: 'По умолчанию используется номер телефона, привязанный к лицензии', | ||
| noticeAlert: 'Уведомление', | ||
| resourceAlert: 'Уведомление о Ресурсах', | ||
| syncToNode: 'Синхронизация с дочерним узлом', | ||
| syncToNodeHelper: 'Синхронизация настроек оповещений с другими узлами', | ||
| nodes: 'Узлы', | ||
| selectNode: 'Выберите узел', | ||
| selectNodeError: 'Пожалуйста, выберите узел', | ||
| syncToNodeClose: | ||
| 'После закрытия настройки оповещений не будут синхронизированы с другими узлами. Продолжить?', | ||
| agentOfflineAlertHelper: | ||
| 'Оповещение об отключении дочернего узла. Главный узел будет сканировать и выполнять задачу оповещения каждые 30 минут', | ||
| }, | ||
| theme: { | ||
| lingXiaGold: 'Лин Ся Золотой', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, there are no irregularities or significant issues with the provided code changes. The suggested additions and improvements align well with standard practices for enhancing user experience and clarity in application interfaces. The updates include:
These modifications improve the usability of the UI by providing context about what each button, option, and alert does. However, it's worth noting that if the "select node" feature isn't already implemented, consider adding documentation on how to use this feature effectively for users. Also, ensure all new strings are properly localized when applicable.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no significant irregularities, potential issues, or major optimization opportunities in the provided patch. The changes focus on adding new labels to the Here’s a brief summary of the added content:
The patch maintains an organized structure with clear labels for all relevant actions in the user interface. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no significant irregularities or optimization suggestions in the given code snippet compared to version 2021-09-01. The changes focus on adding new keys related to synchronization, user interface elements like node selection and close prompts, and additional alert messages. No performance optimizations were made based on the provided information.