Add header quick links with CRUD management and icon enhancements
- Add LinkConfig model and links field to settings - Add CRUD API endpoints for links (list/create/update/delete) - Add Links management tab in WebUI with add/edit/delete dialogs - Add live icon preview in Link and Script dialog forms - Show MDI icons inline in Quick Actions cards, Scripts table, Links table - Add broadcast_links_changed WebSocket event for live updates - Add EN/RU translations for all links management strings Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -119,6 +119,7 @@
|
||||
"tab.quick_actions": "Actions",
|
||||
"tab.scripts": "Scripts",
|
||||
"tab.callbacks": "Callbacks",
|
||||
"tab.links": "Links",
|
||||
"tab.display": "Display",
|
||||
"display.loading": "Loading monitors...",
|
||||
"display.error": "Failed to load monitors",
|
||||
@@ -166,6 +167,36 @@
|
||||
"connection.reconnect": "Reconnect",
|
||||
"dialog.cancel": "Cancel",
|
||||
"dialog.confirm": "Confirm",
|
||||
"links.description": "Quick links displayed as icons in the header bar. Click an icon to open the URL in a new tab.",
|
||||
"links.empty": "No links configured. Click 'Add' to create one.",
|
||||
"links.table.name": "Name",
|
||||
"links.table.url": "URL",
|
||||
"links.table.label": "Label",
|
||||
"links.table.actions": "Actions",
|
||||
"links.dialog.add": "Add Link",
|
||||
"links.dialog.edit": "Edit Link",
|
||||
"links.field.name": "Link Name *",
|
||||
"links.field.url": "URL *",
|
||||
"links.field.icon": "Icon (MDI)",
|
||||
"links.field.label": "Label",
|
||||
"links.placeholder.name": "Only letters, numbers, and underscores allowed",
|
||||
"links.placeholder.url": "https://example.com",
|
||||
"links.placeholder.icon": "mdi:link",
|
||||
"links.placeholder.label": "Tooltip text",
|
||||
"links.button.cancel": "Cancel",
|
||||
"links.button.save": "Save",
|
||||
"links.button.edit": "Edit",
|
||||
"links.button.delete": "Delete",
|
||||
"links.msg.created": "Link created successfully",
|
||||
"links.msg.updated": "Link updated successfully",
|
||||
"links.msg.create_failed": "Failed to create link",
|
||||
"links.msg.update_failed": "Failed to update link",
|
||||
"links.msg.deleted": "Link deleted successfully",
|
||||
"links.msg.delete_failed": "Failed to delete link",
|
||||
"links.msg.not_found": "Link not found",
|
||||
"links.msg.load_failed": "Failed to load link details",
|
||||
"links.confirm.delete": "Are you sure you want to delete the link \"{name}\"?",
|
||||
"links.confirm.unsaved": "You have unsaved changes. Are you sure you want to discard them?",
|
||||
"footer.created_by": "Created by",
|
||||
"footer.source_code": "Source Code"
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@
|
||||
"tab.quick_actions": "Действия",
|
||||
"tab.scripts": "Скрипты",
|
||||
"tab.callbacks": "Колбэки",
|
||||
"tab.links": "Ссылки",
|
||||
"tab.display": "Дисплей",
|
||||
"display.loading": "Загрузка мониторов...",
|
||||
"display.error": "Не удалось загрузить мониторы",
|
||||
@@ -166,6 +167,36 @@
|
||||
"connection.reconnect": "Переподключиться",
|
||||
"dialog.cancel": "Отмена",
|
||||
"dialog.confirm": "Подтвердить",
|
||||
"links.description": "Быстрые ссылки, отображаемые в виде иконок в шапке. Нажмите на иконку, чтобы открыть URL в новой вкладке.",
|
||||
"links.empty": "Ссылки не настроены. Нажмите 'Добавить' для создания.",
|
||||
"links.table.name": "Имя",
|
||||
"links.table.url": "URL",
|
||||
"links.table.label": "Метка",
|
||||
"links.table.actions": "Действия",
|
||||
"links.dialog.add": "Добавить Ссылку",
|
||||
"links.dialog.edit": "Редактировать Ссылку",
|
||||
"links.field.name": "Имя Ссылки *",
|
||||
"links.field.url": "URL *",
|
||||
"links.field.icon": "Иконка (MDI)",
|
||||
"links.field.label": "Метка",
|
||||
"links.placeholder.name": "Только буквы, цифры и подчеркивания",
|
||||
"links.placeholder.url": "https://example.com",
|
||||
"links.placeholder.icon": "mdi:link",
|
||||
"links.placeholder.label": "Текст подсказки",
|
||||
"links.button.cancel": "Отмена",
|
||||
"links.button.save": "Сохранить",
|
||||
"links.button.edit": "Редактировать",
|
||||
"links.button.delete": "Удалить",
|
||||
"links.msg.created": "Ссылка создана успешно",
|
||||
"links.msg.updated": "Ссылка обновлена успешно",
|
||||
"links.msg.create_failed": "Не удалось создать ссылку",
|
||||
"links.msg.update_failed": "Не удалось обновить ссылку",
|
||||
"links.msg.deleted": "Ссылка удалена успешно",
|
||||
"links.msg.delete_failed": "Не удалось удалить ссылку",
|
||||
"links.msg.not_found": "Ссылка не найдена",
|
||||
"links.msg.load_failed": "Не удалось загрузить данные ссылки",
|
||||
"links.confirm.delete": "Вы уверены, что хотите удалить ссылку \"{name}\"?",
|
||||
"links.confirm.unsaved": "У вас есть несохраненные изменения. Вы уверены, что хотите отменить их?",
|
||||
"footer.created_by": "Создано",
|
||||
"footer.source_code": "Исходный код"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user