Added notifications, image preview generator

This commit is contained in:
Ultradesu
2026-08-08 11:02:56 +01:00
parent f7a89b431d
commit c4823b7e64
16 changed files with 1926 additions and 100 deletions
+66
View File
@@ -151,6 +151,19 @@ pub struct Translations {
pub settings_section_captcha: &'static str,
pub settings_section_oidc: &'static str,
pub settings_section_general: &'static str,
pub settings_client_notifications_enabled: &'static str,
pub settings_client_notifications_help: &'static str,
pub settings_vapid_public_key: &'static str,
pub settings_vapid_private_key: &'static str,
pub settings_vapid_subject: &'static str,
pub settings_vapid_warning: &'static str,
pub settings_vapid_generate: &'static str,
pub settings_push_subscribers: &'static str,
pub settings_push_no_subscribers: &'static str,
pub settings_push_client: &'static str,
pub settings_push_devices: &'static str,
pub settings_push_language: &'static str,
pub settings_push_updated: &'static str,
pub landing_contact_label: &'static str,
pub landing_pricing_title: &'static str,
@@ -292,6 +305,15 @@ pub struct Translations {
pub portal_feedback_submit: &'static str,
pub portal_feedback_thanks: &'static str,
pub portal_link: &'static str,
pub portal_notifications: &'static str,
pub portal_notifications_text: &'static str,
pub portal_notifications_enable: &'static str,
pub portal_notifications_disable: &'static str,
pub portal_notifications_denied: &'static str,
pub portal_calendar: &'static str,
pub portal_future_visit: &'static str,
pub portal_previous: &'static str,
pub portal_next: &'static str,
// Common
pub no_value: &'static str,
@@ -386,6 +408,19 @@ static RU: Translations = Translations {
settings_section_captcha: "Защита от ботов",
settings_section_oidc: "Единый вход (SSO / OIDC)",
settings_section_general: "Сайт",
settings_client_notifications_enabled: "Разрешить клиентам браузерные уведомления",
settings_client_notifications_help: "Показывает клиентам настройку уведомлений о завершённых визитах.",
settings_vapid_public_key: "VAPID — публичный ключ",
settings_vapid_private_key: "VAPID — приватный ключ",
settings_vapid_subject: "VAPID — контакт (например mailto:admin@example.com)",
settings_vapid_warning: "Важно: смена пары VAPID-ключей сделает недействительными подписки всех клиентов. Им потребуется снова включить уведомления.",
settings_vapid_generate: "Для генерации новой пары ключей выполните:",
settings_push_subscribers: "Активные подписки клиентов",
settings_push_no_subscribers: "Активных подписок пока нет.",
settings_push_client: "Клиент",
settings_push_devices: "Устройства",
settings_push_language: "Язык",
settings_push_updated: "Обновлено",
landing_contact_label: "Или свяжитесь с нами напрямую",
landing_pricing_title: "Стоимость",
@@ -416,6 +451,15 @@ static RU: Translations = Translations {
portal_feedback_submit: "Отправить",
portal_feedback_thanks: "Спасибо за отзыв!",
portal_link: "Ссылка клиента",
portal_notifications: "Уведомления",
portal_notifications_text: "Получайте уведомления о завершённых визитах, даже когда страница закрыта. На iPhone сначала добавьте сайт на экран «Домой» и откройте его оттуда.",
portal_notifications_enable: "Включить уведомления",
portal_notifications_disable: "Отключить уведомления",
portal_notifications_denied: "Уведомления заблокированы в настройках браузера.",
portal_calendar: "Календарь визитов",
portal_future_visit: "Будущий визит",
portal_previous: "Назад",
portal_next: "Далее",
login_title: "Вход в систему",
login_button: "Войти",
@@ -611,6 +655,19 @@ static EN: Translations = Translations {
settings_section_captcha: "Bot protection",
settings_section_oidc: "Single Sign-On (SSO / OIDC)",
settings_section_general: "Site",
settings_client_notifications_enabled: "Allow client browser notifications",
settings_client_notifications_help: "Shows clients the completed-visit notification setting.",
settings_vapid_public_key: "VAPID public key",
settings_vapid_private_key: "VAPID private key",
settings_vapid_subject: "VAPID contact (for example mailto:admin@example.com)",
settings_vapid_warning: "Important: changing the VAPID key pair invalidates every client subscription. Clients will need to enable notifications again.",
settings_vapid_generate: "To generate a new key pair, run:",
settings_push_subscribers: "Active client subscriptions",
settings_push_no_subscribers: "There are no active subscriptions yet.",
settings_push_client: "Client",
settings_push_devices: "Devices",
settings_push_language: "Language",
settings_push_updated: "Updated",
landing_contact_label: "Or contact us directly",
landing_pricing_title: "Pricing",
@@ -641,6 +698,15 @@ static EN: Translations = Translations {
portal_feedback_submit: "Submit",
portal_feedback_thanks: "Thank you for your feedback!",
portal_link: "Client link",
portal_notifications: "Notifications",
portal_notifications_text: "Receive completed-visit notifications even when this page is closed. On iPhone, first add this site to the Home Screen and open it from there.",
portal_notifications_enable: "Enable notifications",
portal_notifications_disable: "Disable notifications",
portal_notifications_denied: "Notifications are blocked in your browser settings.",
portal_calendar: "Visit calendar",
portal_future_visit: "Future visit",
portal_previous: "Previous",
portal_next: "Next",
login_title: "Sign In",
login_button: "Sign In",