From e43509c0445ccea94aae8ac410cac68b0c0c3769 Mon Sep 17 00:00:00 2001 From: Mattias Persson Date: Tue, 13 Feb 2024 17:24:48 +0100 Subject: [PATCH 1/4] Add sidebar persistent notifications --- src/lib/Modal/NotificationsConfig.svelte | 22 ++++ src/lib/Modal/SidebarItemConfig.svelte | 36 ++++++- src/lib/Sidebar/Index.svelte | 12 +++ src/lib/Sidebar/Notifications.svelte | 125 +++++++++++++++++++++++ src/lib/Socket.ts | 37 ++++++- src/lib/Stores.ts | 12 ++- src/lib/Types.ts | 8 ++ 7 files changed, 247 insertions(+), 5 deletions(-) create mode 100644 src/lib/Modal/NotificationsConfig.svelte create mode 100644 src/lib/Sidebar/Notifications.svelte diff --git a/src/lib/Modal/NotificationsConfig.svelte b/src/lib/Modal/NotificationsConfig.svelte new file mode 100644 index 00000000..d158984d --- /dev/null +++ b/src/lib/Modal/NotificationsConfig.svelte @@ -0,0 +1,22 @@ + + +{#if isOpen} + +

+ {$lang('notifications')} +

+ +

+ {$lang('no_options')} +

+ + +
+{/if} diff --git a/src/lib/Modal/SidebarItemConfig.svelte b/src/lib/Modal/SidebarItemConfig.svelte index dd6231e3..006a7345 100644 --- a/src/lib/Modal/SidebarItemConfig.svelte +++ b/src/lib/Modal/SidebarItemConfig.svelte @@ -32,6 +32,7 @@ import Timer from '$lib/Sidebar/Timer.svelte'; import ConfigButtons from '$lib/Modal/ConfigButtons.svelte'; import Radial from '$lib/Sidebar/Radial.svelte'; + import Notifications from '$lib/Sidebar/Notifications.svelte'; import Ripple from 'svelte-ripple'; export let isOpen: boolean; @@ -119,6 +120,11 @@ entity_id: $demo.bar } }, + { + id: 'notifications', + type: 'Notifications', + component: Notifications + }, { id: 'time', type: $lang('time'), @@ -235,69 +241,95 @@ case 'time': openModal(() => import('$lib/Modal/TimeConfig.svelte'), { sel }); break; + case 'date': openModal(() => import('$lib/Modal/DateConfig.svelte'), { sel }); break; + case 'divider': openModal(() => import('$lib/Modal/DividerConfig.svelte'), { sel }); break; + case 'sensor': openModal(() => import('$lib/Modal/SensorConfig.svelte'), { sel, demo: $demo.sensor }); break; + case 'weather': openModal(() => import('$lib/Modal/WeatherConfig.svelte'), { sel }); break; + case 'weatherforecast': openModal(() => import('$lib/Modal/WeatherForecastConfig.svelte'), { sel }); break; + case 'camera': openModal(() => import('$lib/Modal/CameraConfig.svelte'), { sel, demo: $demo.camera }); break; + case 'image': - openModal(() => import('$lib/Modal/ImageConfig.svelte'), { sel, demo: imageData }); + openModal(() => import('$lib/Modal/ImageConfig.svelte'), { + sel, + demo: imageData + }); break; + case 'iframe': openModal(() => import('$lib/Modal/IframeConfig.svelte'), { sel }); break; + case 'history': - openModal(() => import('$lib/Modal/HistoryConfig.svelte'), { sel, demo: $demo.history }); + openModal(() => import('$lib/Modal/HistoryConfig.svelte'), { + sel, + demo: $demo.history + }); break; + case 'bar': openModal(() => import('$lib/Modal/BarConfig.svelte'), { sel, demo: $demo.bar }); break; + case 'navigate': openModal(() => import('$lib/Modal/NavigateConfig.svelte'), { sel }); break; + + case 'notifications': + openModal(() => import('$lib/Modal/NotificationsConfig.svelte'), { sel }); + break; + case 'radial': openModal(() => import('$lib/Modal/RadialConfig.svelte'), { sel, demo: $demo.radial }); break; + case 'graph': openModal(() => import('$lib/Modal/GraphConfig.svelte'), { sel, demo: $demo.graph }); break; + case 'template': openModal(() => import('$lib/Modal/TemplateConfig.svelte'), { sel }); break; + case 'timer': openModal(() => import('$lib/Modal/TimerConfig.svelte'), { sel, demo: $demo.timer }); break; + default: openModal(() => import('$lib/Modal/SidebarItemConfig.svelte'), { sel }); } diff --git a/src/lib/Sidebar/Index.svelte b/src/lib/Sidebar/Index.svelte index 629e1147..f090978b 100644 --- a/src/lib/Sidebar/Index.svelte +++ b/src/lib/Sidebar/Index.svelte @@ -22,6 +22,7 @@ let Iframe: typeof import('$lib/Sidebar/Iframe.svelte'); let Image: typeof import('$lib/Sidebar/Image.svelte'); let Navigate: typeof import('$lib/Sidebar/Navigate.svelte'); + let Notifications: typeof import('$lib/Sidebar/Notifications.svelte'); let Radial: typeof import('$lib/Sidebar/Radial.svelte'); let Sensor: typeof import('$lib/Sidebar/Sensor.svelte'); let Template: typeof import('$lib/Sidebar/Template.svelte'); @@ -41,6 +42,8 @@ iframe: () => import('$lib/Sidebar/Iframe.svelte').then((module) => (Iframe = module)), image: () => import('$lib/Sidebar/Image.svelte').then((module) => (Image = module)), navigate: () => import('$lib/Sidebar/Navigate.svelte').then((module) => (Navigate = module)), + notifications: () => + import('$lib/Sidebar/Notifications.svelte').then((module) => (Notifications = module)), radial: () => import('$lib/Sidebar/Radial.svelte').then((module) => (Radial = module)), sensor: () => import('$lib/Sidebar/Sensor.svelte').then((module) => (Sensor = module)), template: () => import('$lib/Sidebar/Template.svelte').then((module) => (Template = module)), @@ -105,6 +108,8 @@ openModal(() => import('$lib/Modal/ImageConfig.svelte'), { sel }); } else if (sel?.type === 'navigate') { openModal(() => import('$lib/Modal/NavigateConfig.svelte'), { sel }); + } else if (sel?.type === 'notifications') { + openModal(() => import('$lib/Modal/NotificationsConfig.svelte'), { sel }); } else if (sel?.type === 'radial') { openModal(() => import('$lib/Modal/RadialConfig.svelte'), { sel }); } else if (sel?.type === 'sensor') { @@ -201,6 +206,7 @@ class="sidebar_edit_mode" style:display={item?.type === 'divider' || item?.type === 'camera' || + item?.type === 'notifications' || item?.type === 'configure' ? 'flex' : 'initial'} @@ -275,6 +281,12 @@ + + {:else if Notifications && item?.type === 'notifications'} + + {:else if Image && item?.type === 'image' && !hide_mobile} + + + + {/each} + +{/if} + + diff --git a/src/lib/Socket.ts b/src/lib/Socket.ts index 4fdce5c7..42b72cc0 100644 --- a/src/lib/Socket.ts +++ b/src/lib/Socket.ts @@ -10,8 +10,9 @@ import { ERR_INVALID_HTTPS_TO_HTTP } from 'home-assistant-js-websocket'; import type { SaveTokensFunc } from 'home-assistant-js-websocket'; -import { states, connection, config, connected, event } from '$lib/Stores'; +import { states, connection, config, connected, event, persistentNotifications } from '$lib/Stores'; import { closeModal } from 'svelte-modals'; +import type { PersistentNotification } from '$lib/Types'; export const options = { hassUrl: undefined as string | undefined, @@ -78,7 +79,7 @@ export async function authentication(options: { hassUrl?: string }) { history.replaceState(null, '', location.pathname); } - // events + // custom events const getEvent = (message: any) => { return message?.variables?.trigger?.event?.data?.event; }; @@ -116,6 +117,38 @@ export async function authentication(options: { hassUrl?: string }) { } } ); + + // notifications + conn?.subscribeMessage( + (data: { + type: 'added' | 'removed' | 'current' | 'updated'; + notifications: Record; + }) => { + // initial + if (data?.type === 'current') { + persistentNotifications.set(data?.notifications); + + // update + } else if (data?.type === 'added' || data?.type === 'updated') { + persistentNotifications.update((notifications) => ({ + ...notifications, + ...data?.notifications + })); + + // remove + } else if (data?.type === 'removed') { + persistentNotifications.update((notifications) => { + Object.keys(data?.notifications).forEach((notificationId) => { + delete notifications[notificationId]; + }); + return { ...notifications }; + }); + } + }, + { + type: 'persistent_notification/subscribe' + } + ); } catch (_error) { handleError(_error); } diff --git a/src/lib/Stores.ts b/src/lib/Stores.ts index 4884febc..4e4b0db9 100644 --- a/src/lib/Stores.ts +++ b/src/lib/Stores.ts @@ -1,5 +1,12 @@ import { writable, readable, derived } from 'svelte/store'; -import type { Configuration, Dashboard, Template, Translations, Views } from '$lib/Types'; +import type { + Configuration, + Dashboard, + PersistentNotification, + Template, + Translations, + Views +} from '$lib/Types'; import type { Connection, HassConfig, @@ -139,3 +146,6 @@ export const pasteContent = writable(); // event export const event = writable(); +export const persistentNotifications = writable<{ + [notificationId: string]: PersistentNotification; +}>({}); diff --git a/src/lib/Types.ts b/src/lib/Types.ts index 632b8349..bf4c2ec3 100644 --- a/src/lib/Types.ts +++ b/src/lib/Types.ts @@ -93,6 +93,14 @@ export interface Template { }; } +export interface PersistentNotification { + created_at: string; + message: string; + notification_id: string; + title: string; + status: 'read' | 'unread'; +} + export type SidebarItem = BarItem & CameraItem & DateItem & From 8bd25a0bc31debbd678da1e071f781e075492874 Mon Sep 17 00:00:00 2001 From: Mattias Persson Date: Tue, 13 Feb 2024 17:25:10 +0100 Subject: [PATCH 2/4] Update deps --- package.json | 8 +-- pnpm-lock.yaml | 140 ++++++++++++++++++++++++++----------------------- 2 files changed, 78 insertions(+), 70 deletions(-) diff --git a/package.json b/package.json index 3eb7546b..4b2f0a66 100644 --- a/package.json +++ b/package.json @@ -22,13 +22,13 @@ "@types/express": "^4.17.21", "@types/js-yaml": "^4.0.9", "@types/promise-fs": "^2.1.5", - "@typescript-eslint/eslint-plugin": "^6.21.0", - "@typescript-eslint/parser": "^6.21.0", + "@typescript-eslint/eslint-plugin": "^7.0.1", + "@typescript-eslint/parser": "^7.0.1", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-svelte": "^2.35.1", "prettier": "^3.2.5", - "prettier-plugin-svelte": "^3.1.2", + "prettier-plugin-svelte": "^3.2.0", "svelte": "^4.2.10", "svelte-check": "^3.6.4", "svelte-fast-dimension": "^1.1.0", @@ -52,7 +52,7 @@ "d3-array": "^3.2.4", "d3-scale": "^4.0.2", "d3-shape": "^3.2.0", - "dotenv": "^16.4.2", + "dotenv": "^16.4.3", "express": "^4.18.2", "home-assistant-js-websocket": "^9.1.0", "http-proxy-middleware": "^2.0.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5a4db64f..ea170ad1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -48,8 +48,8 @@ dependencies: specifier: ^3.2.0 version: 3.2.0 dotenv: - specifier: ^16.4.2 - version: 16.4.2 + specifier: ^16.4.3 + version: 16.4.3 express: specifier: ^4.18.2 version: 4.18.2 @@ -119,11 +119,11 @@ devDependencies: specifier: ^2.1.5 version: 2.1.5 '@typescript-eslint/eslint-plugin': - specifier: ^6.21.0 - version: 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@5.3.3) + specifier: ^7.0.1 + version: 7.0.1(@typescript-eslint/parser@7.0.1)(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/parser': - specifier: ^6.21.0 - version: 6.21.0(eslint@8.56.0)(typescript@5.3.3) + specifier: ^7.0.1 + version: 7.0.1(eslint@8.56.0)(typescript@5.3.3) eslint: specifier: ^8.56.0 version: 8.56.0 @@ -137,8 +137,8 @@ devDependencies: specifier: ^3.2.5 version: 3.2.5 prettier-plugin-svelte: - specifier: ^3.1.2 - version: 3.1.2(prettier@3.2.5)(svelte@4.2.10) + specifier: ^3.2.0 + version: 3.2.0(prettier@3.2.5)(svelte@4.2.10) svelte: specifier: ^4.2.10 version: 4.2.10 @@ -1030,8 +1030,8 @@ packages: resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} dev: true - /@types/semver@7.5.6: - resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==} + /@types/semver@7.5.7: + resolution: {integrity: sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg==} dev: true /@types/send@0.17.4: @@ -1053,23 +1053,23 @@ packages: '@types/geojson': 7946.0.14 dev: false - /@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.56.0)(typescript@5.3.3): - resolution: {integrity: sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==} + /@typescript-eslint/eslint-plugin@7.0.1(@typescript-eslint/parser@7.0.1)(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-OLvgeBv3vXlnnJGIAgCLYKjgMEU+wBGj07MQ/nxAaON+3mLzX7mJbhRYrVGiVvFiXtwFlkcBa/TtmglHy0UbzQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: - '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha - eslint: ^7.0.0 || ^8.0.0 + '@typescript-eslint/parser': ^7.0.0 + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.21.0(eslint@8.56.0)(typescript@5.3.3) - '@typescript-eslint/scope-manager': 6.21.0 - '@typescript-eslint/type-utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) - '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) - '@typescript-eslint/visitor-keys': 6.21.0 + '@typescript-eslint/parser': 7.0.1(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/scope-manager': 7.0.1 + '@typescript-eslint/type-utils': 7.0.1(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 7.0.1(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/visitor-keys': 7.0.1 debug: 4.3.4 eslint: 8.56.0 graphemer: 1.4.0 @@ -1082,20 +1082,20 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@5.3.3): - resolution: {integrity: sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==} + /@typescript-eslint/parser@7.0.1(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-8GcRRZNzaHxKzBPU3tKtFNing571/GwPBeCvmAUw0yBtfE2XVd0zFKJIMSWkHJcPQi0ekxjIts6L/rrZq5cxGQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: - eslint: ^7.0.0 || ^8.0.0 + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.21.0 - '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) - '@typescript-eslint/visitor-keys': 6.21.0 + '@typescript-eslint/scope-manager': 7.0.1 + '@typescript-eslint/types': 7.0.1 + '@typescript-eslint/typescript-estree': 7.0.1(typescript@5.3.3) + '@typescript-eslint/visitor-keys': 7.0.1 debug: 4.3.4 eslint: 8.56.0 typescript: 5.3.3 @@ -1103,26 +1103,26 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager@6.21.0: - resolution: {integrity: sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==} + /@typescript-eslint/scope-manager@7.0.1: + resolution: {integrity: sha512-v7/T7As10g3bcWOOPAcbnMDuvctHzCFYCG/8R4bK4iYzdFqsZTbXGln0cZNVcwQcwewsYU2BJLay8j0/4zOk4w==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/visitor-keys': 6.21.0 + '@typescript-eslint/types': 7.0.1 + '@typescript-eslint/visitor-keys': 7.0.1 dev: true - /@typescript-eslint/type-utils@6.21.0(eslint@8.56.0)(typescript@5.3.3): - resolution: {integrity: sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==} + /@typescript-eslint/type-utils@7.0.1(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-YtT9UcstTG5Yqy4xtLiClm1ZpM/pWVGFnkAa90UfdkkZsR1eP2mR/1jbHeYp8Ay1l1JHPyGvoUYR6o3On5Nhmw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: - eslint: ^7.0.0 || ^8.0.0 + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) - '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/typescript-estree': 7.0.1(typescript@5.3.3) + '@typescript-eslint/utils': 7.0.1(eslint@8.56.0)(typescript@5.3.3) debug: 4.3.4 eslint: 8.56.0 ts-api-utils: 1.2.1(typescript@5.3.3) @@ -1131,13 +1131,13 @@ packages: - supports-color dev: true - /@typescript-eslint/types@6.21.0: - resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==} + /@typescript-eslint/types@7.0.1: + resolution: {integrity: sha512-uJDfmirz4FHib6ENju/7cz9SdMSkeVvJDK3VcMFvf/hAShg8C74FW+06MaQPODHfDJp/z/zHfgawIJRjlu0RLg==} engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@6.21.0(typescript@5.3.3): - resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==} + /@typescript-eslint/typescript-estree@7.0.1(typescript@5.3.3): + resolution: {integrity: sha512-SO9wHb6ph0/FN5OJxH4MiPscGah5wjOd0RRpaLvuBv9g8565Fgu0uMySFEPqwPHiQU90yzJ2FjRYKGrAhS1xig==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1145,8 +1145,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/visitor-keys': 6.21.0 + '@typescript-eslint/types': 7.0.1 + '@typescript-eslint/visitor-keys': 7.0.1 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -1158,18 +1158,18 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.21.0(eslint@8.56.0)(typescript@5.3.3): - resolution: {integrity: sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==} + /@typescript-eslint/utils@7.0.1(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-oe4his30JgPbnv+9Vef1h48jm0S6ft4mNwi9wj7bX10joGn07QRfqIqFHoMiajrtoU88cIhXf8ahwgrcbNLgPA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: - eslint: ^7.0.0 || ^8.0.0 + eslint: ^8.56.0 dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@types/json-schema': 7.0.15 - '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.21.0 - '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) + '@types/semver': 7.5.7 + '@typescript-eslint/scope-manager': 7.0.1 + '@typescript-eslint/types': 7.0.1 + '@typescript-eslint/typescript-estree': 7.0.1(typescript@5.3.3) eslint: 8.56.0 semver: 7.6.0 transitivePeerDependencies: @@ -1177,11 +1177,11 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys@6.21.0: - resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==} + /@typescript-eslint/visitor-keys@7.0.1: + resolution: {integrity: sha512-hwAgrOyk++RTXrP4KzCg7zB2U0xt7RUU0ZdMSCsqF3eKUwkdXUMyTb0qdCuji7VIbcpG62kKTU9M1J1c9UpFBw==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/types': 7.0.1 eslint-visitor-keys: 3.4.3 dev: true @@ -1346,10 +1346,11 @@ packages: typewise: 1.0.3 dev: false - /call-bind@1.0.6: - resolution: {integrity: sha512-Mj50FLHtlsoVfRfnHaZvyrooHcrlceNZdL/QBvJJVd9Ta55qCQK0gs4ss2oZDeV9zFCs6ewzYgVE5yfVmfFpVg==} + /call-bind@1.0.7: + resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} dependencies: + es-define-property: 1.0.0 es-errors: 1.3.0 function-bind: 1.1.2 get-intrinsic: 1.2.4 @@ -1571,14 +1572,14 @@ packages: engines: {node: '>=0.10.0'} dev: true - /define-data-property@1.1.2: - resolution: {integrity: sha512-SRtsSqsDbgpJBbW3pABMCOt6rQyeM8s8RiyeSN8jYG8sYmt/kGJejbydttUsnDs1tadr19tvhT4ShwMyoqAm4g==} + /define-data-property@1.1.3: + resolution: {integrity: sha512-h3GBouC+RPtNX2N0hHVLo2ZwPYurq8mLmXpOLTsw71gr7lHt5VaI4vVkDUNOfiWmm48JEXe3VM7PmLX45AMmmg==} engines: {node: '>= 0.4'} dependencies: es-errors: 1.3.0 get-intrinsic: 1.2.4 gopd: 1.0.1 - has-property-descriptors: 1.0.1 + has-property-descriptors: 1.0.2 dev: false /depd@2.0.0: @@ -1618,8 +1619,8 @@ packages: esutils: 2.0.3 dev: true - /dotenv@16.4.2: - resolution: {integrity: sha512-rZSSFxke7d9nYQ5NeMIwp5PP+f8wXgKNljpOb7KtH6SKW1cEqcXAz9VSJYVLKe7Jhup/gUYOkaeSVyK8GJ+nBg==} + /dotenv@16.4.3: + resolution: {integrity: sha512-II98GFrje5psQTSve0E7bnwMFybNLqT8Vu8JIFWRjsE3khyNUm/loZupuy5DVzG2IXf/ysxvrixYOQnM6mjD3A==} engines: {node: '>=12'} dev: false @@ -1636,6 +1637,13 @@ packages: engines: {node: '>= 0.8'} dev: false + /es-define-property@1.0.0: + resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.4 + dev: false + /es-errors@1.3.0: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} @@ -2134,10 +2142,10 @@ packages: engines: {node: '>=8'} dev: true - /has-property-descriptors@1.0.1: - resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==} + /has-property-descriptors@1.0.2: + resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} dependencies: - get-intrinsic: 1.2.4 + es-define-property: 1.0.0 dev: false /has-proto@1.0.1: @@ -2771,8 +2779,8 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier-plugin-svelte@3.1.2(prettier@3.2.5)(svelte@4.2.10): - resolution: {integrity: sha512-7xfMZtwgAWHMT0iZc8jN4o65zgbAQ3+O32V6W7pXrqNvKnHnkoyQCGCbKeUyXKZLbYE0YhFRnamfxfkEGxm8qA==} + /prettier-plugin-svelte@3.2.0(prettier@3.2.5)(svelte@4.2.10): + resolution: {integrity: sha512-3474Zxxw8z4k64aqZmwTfcGdh/ULM2zNQslORdXEkNjKqqsSxBmiASazoxdCrmaqsbKD2Y0rxKhBEn1u0Y+j9g==} peerDependencies: prettier: ^3.0.0 svelte: ^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0 @@ -2990,12 +2998,12 @@ packages: resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==} engines: {node: '>= 0.4'} dependencies: - define-data-property: 1.1.2 + define-data-property: 1.1.3 es-errors: 1.3.0 function-bind: 1.1.2 get-intrinsic: 1.2.4 gopd: 1.0.1 - has-property-descriptors: 1.0.1 + has-property-descriptors: 1.0.2 dev: false /set-value@2.0.1: @@ -3028,7 +3036,7 @@ packages: resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 es-errors: 1.3.0 get-intrinsic: 1.2.4 object-inspect: 1.13.1 From 8e8ed5d60d96bb39aff7ca7bb743905206b05e6e Mon Sep 17 00:00:00 2001 From: Mattias Persson Date: Tue, 13 Feb 2024 17:25:30 +0100 Subject: [PATCH 3/4] Update translations --- scripts/translations/fetch.py | 3 +++ static/translations/af.json | 3 +++ static/translations/ar.json | 3 +++ static/translations/bg.json | 3 +++ static/translations/bn.json | 3 +++ static/translations/bs.json | 3 +++ static/translations/ca.json | 3 +++ static/translations/cs.json | 3 +++ static/translations/cy.json | 3 +++ static/translations/da.json | 3 +++ static/translations/de.json | 3 +++ static/translations/el.json | 3 +++ static/translations/en-GB.json | 3 +++ static/translations/en.json | 3 +++ static/translations/eo.json | 3 +++ static/translations/es-419.json | 3 +++ static/translations/es.json | 3 +++ static/translations/et.json | 3 +++ static/translations/eu.json | 3 +++ static/translations/fa.json | 3 +++ static/translations/fi.json | 3 +++ static/translations/fr.json | 3 +++ static/translations/fy.json | 3 +++ static/translations/gl.json | 3 +++ static/translations/gsw.json | 3 +++ static/translations/he.json | 3 +++ static/translations/hi.json | 3 +++ static/translations/hr.json | 3 +++ static/translations/hu.json | 3 +++ static/translations/hy.json | 3 +++ static/translations/id.json | 3 +++ static/translations/is.json | 3 +++ static/translations/it.json | 3 +++ static/translations/ja.json | 3 +++ static/translations/ka.json | 3 +++ static/translations/ko.json | 3 +++ static/translations/lb.json | 3 +++ static/translations/lt.json | 3 +++ static/translations/lv.json | 3 +++ static/translations/ml.json | 3 +++ static/translations/nb.json | 3 +++ static/translations/nl.json | 3 +++ static/translations/nn.json | 3 +++ static/translations/no.json | 3 +++ static/translations/pl.json | 3 +++ static/translations/pt-BR.json | 3 +++ static/translations/pt.json | 3 +++ static/translations/ro.json | 3 +++ static/translations/ru.json | 3 +++ static/translations/sk.json | 3 +++ static/translations/sl.json | 3 +++ static/translations/sr-Latn.json | 3 +++ static/translations/sr.json | 3 +++ static/translations/sv.json | 3 +++ static/translations/ta.json | 3 +++ static/translations/te.json | 3 +++ static/translations/th.json | 3 +++ static/translations/tr.json | 3 +++ static/translations/uk.json | 3 +++ static/translations/ur.json | 3 +++ static/translations/vi.json | 3 +++ static/translations/zh-Hans.json | 3 +++ static/translations/zh-Hant.json | 3 +++ 63 files changed, 189 insertions(+) diff --git a/scripts/translations/fetch.py b/scripts/translations/fetch.py index eefb2ddb..975b98a8 100755 --- a/scripts/translations/fetch.py +++ b/scripts/translations/fetch.py @@ -127,6 +127,9 @@ def process_dir(_dir, _output, _keys): ("update_install", ["ui.dialogs.more_info_control.update.install"]), ("back", ["ui.common.back"]), ("service_data", ["ui.components.service-control.data"]), + ("notifications_empty", ["ui.notification_drawer.empty"]), + ("notifications", ["ui.notification_drawer.title"]), + ("notifications_dismiss", ["ui.notification_toast.dismiss"]), ], ), ( # MEDIA_PLAYER diff --git a/static/translations/af.json b/static/translations/af.json index 8341e686..9afaf78b 100644 --- a/static/translations/af.json +++ b/static/translations/af.json @@ -115,6 +115,9 @@ "none": "None", "nothing_configured": "Nog niks is opgestel nie", "nothing_found": "Nothing found!", + "notifications": "Kennisgewings", + "notifications_dismiss": "Dismiss", + "notifications_empty": "Geen kennisgewings", "numeric": "Numeriese toestand", "object": "Object", "ok": "OK", diff --git a/static/translations/ar.json b/static/translations/ar.json index dabc74b7..a5414c46 100644 --- a/static/translations/ar.json +++ b/static/translations/ar.json @@ -115,6 +115,9 @@ "none": "\u0644\u0627\u0634\u064a\u0621", "nothing_configured": "\u0644\u0645 \u064a\u062a\u0645 \u062a\u0643\u0648\u064a\u0646 \u0623\u064a \u0634\u064a\u0621 \u062d\u062a\u0649 \u0627\u0644\u0622\u0646", "nothing_found": "Nothing found!", + "notifications": "\u0627\u0644\u0627\u0634\u0639\u0627\u0631\u0627\u062a", + "notifications_dismiss": "Dismiss", + "notifications_empty": "\u0644\u0627\u062a\u0648\u062c\u062f \u0625\u0634\u0639\u0627\u0631\u0627\u062a", "numeric": "\u0627\u0644\u0642\u064a\u0645\u0629 \u0627\u0644\u0631\u0642\u0645\u064a\u0629", "object": "Object", "ok": "\u0646\u0639\u0645", diff --git a/static/translations/bg.json b/static/translations/bg.json index c6c7fa07..3a6cb301 100644 --- a/static/translations/bg.json +++ b/static/translations/bg.json @@ -155,6 +155,9 @@ "not_home": "\u041e\u0442\u0441\u044a\u0441\u0442\u0432\u0430", "nothing_configured": "\u041d\u0438\u0449\u043e \u043d\u0435 \u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0430\u043d\u043e \u043a\u044a\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0430", "nothing_found": "\u041d\u0438\u0449\u043e \u043d\u0435 \u0435 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043e!", + "notifications": "\u0418\u0437\u0432\u0435\u0441\u0442\u0438\u044f", + "notifications_dismiss": "\u041e\u0442\u0445\u0432\u044a\u0440\u043b\u044f\u043d\u0435", + "notifications_empty": "\u041d\u044f\u043c\u0430 \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u044f", "numeric": "\u0427\u0438\u0441\u043b\u043e\u0432\u043e \u0441\u044a\u0441\u0442\u043e\u044f\u043d\u0438\u0435", "object": "\u041e\u0431\u0435\u043a\u0442", "off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d", diff --git a/static/translations/bn.json b/static/translations/bn.json index 65cf2428..79ae3c7b 100644 --- a/static/translations/bn.json +++ b/static/translations/bn.json @@ -114,6 +114,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "Notifications", + "notifications_dismiss": "Dismiss", + "notifications_empty": "No notifications", "numeric": "Numeric state", "object": "Object", "ok": "OK", diff --git a/static/translations/bs.json b/static/translations/bs.json index 0a09e536..fa52086d 100644 --- a/static/translations/bs.json +++ b/static/translations/bs.json @@ -115,6 +115,9 @@ "none": "Nema", "nothing_configured": "Jo\u0161 ni\u0161ta nije konfigurisano.", "nothing_found": "Ni\u0161ta nije prona\u0111eno!", + "notifications": "Obavje\u0161tenja", + "notifications_dismiss": "Odbij", + "notifications_empty": "Nema obavje\u0161tenja", "numeric": "Numeri\u010dko stanje", "object": "Object", "ok": "OK", diff --git a/static/translations/ca.json b/static/translations/ca.json index 5111772e..6accf236 100644 --- a/static/translations/ca.json +++ b/static/translations/ca.json @@ -183,6 +183,9 @@ "not_home": "Fora", "nothing_configured": "Encara no hi ha res configurat", "nothing_found": "No s'ha trobat res!", + "notifications": "Notificacions", + "notifications_dismiss": "Descarta", + "notifications_empty": "No hi ha notificacions", "numeric": "Estat num\u00e8ric", "object": "Objecte", "off": "OFF", diff --git a/static/translations/cs.json b/static/translations/cs.json index 7761daeb..069da215 100644 --- a/static/translations/cs.json +++ b/static/translations/cs.json @@ -183,6 +183,9 @@ "not_home": "Pry\u010d", "nothing_configured": "Zat\u00edm nen\u00ed nic nastaveno", "nothing_found": "Nic nenalezeno!", + "notifications": "Ozn\u00e1men\u00ed", + "notifications_dismiss": "Zav\u0159\u00edt", + "notifications_empty": "\u017d\u00e1dn\u00e1 ozn\u00e1men\u00ed", "numeric": "\u010c\u00edseln\u00fd stav", "object": "Objekt", "off": "Vypnuto", diff --git a/static/translations/cy.json b/static/translations/cy.json index 1d3acfe0..9734e2b8 100644 --- a/static/translations/cy.json +++ b/static/translations/cy.json @@ -115,6 +115,9 @@ "none": "None", "nothing_configured": "Dim byd wedi'i ffurfweddu eto.", "nothing_found": "Nothing found!", + "notifications": "Notifications", + "notifications_dismiss": "Gwrthod", + "notifications_empty": "No notifications", "numeric": "Cyflwr rhifol", "object": "Object", "ok": "OK", diff --git a/static/translations/da.json b/static/translations/da.json index bd899add..fbdc3ee0 100644 --- a/static/translations/da.json +++ b/static/translations/da.json @@ -178,6 +178,9 @@ "not_home": "Ude", "nothing_configured": "Intet konfigureret endnu", "nothing_found": "Intet fundet!", + "notifications": "Notifikationer", + "notifications_dismiss": "Afvis", + "notifications_empty": "Ingen notifikationer", "numeric": "Numerisk tilstand", "object": "Objekt", "off": "Fra", diff --git a/static/translations/de.json b/static/translations/de.json index 238525dc..8b409bce 100644 --- a/static/translations/de.json +++ b/static/translations/de.json @@ -183,6 +183,9 @@ "not_home": "Abwesend", "nothing_configured": "Noch nichts konfiguriert", "nothing_found": "Nichts gefunden!", + "notifications": "Benachrichtigungen", + "notifications_dismiss": "Ausblenden", + "notifications_empty": "Keine Benachrichtigungen", "numeric": "Numerischer Zustand", "object": "Objekt", "off": "Aus", diff --git a/static/translations/el.json b/static/translations/el.json index f469e2ad..02817968 100644 --- a/static/translations/el.json +++ b/static/translations/el.json @@ -174,6 +174,9 @@ "not_home": "\u0395\u03ba\u03c4\u03cc\u03c2", "nothing_configured": "\u0394\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03b5\u03b9 \u03b4\u03b9\u03b1\u03bc\u03cc\u03c1\u03c6\u03c9\u03c3\u03b7 \u03b1\u03ba\u03cc\u03bc\u03b1", "nothing_found": "\u0394\u03b5\u03bd \u03b2\u03c1\u03ad\u03b8\u03b7\u03ba\u03b5 \u03c4\u03af\u03c0\u03bf\u03c4\u03b1!", + "notifications": "\u0395\u03b9\u03b4\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03b5\u03b9\u03c2", + "notifications_dismiss": "\u0391\u03c0\u03cc\u03c1\u03c1\u03b9\u03c8\u03b7", + "notifications_empty": "\u039a\u03b1\u03bc\u03af\u03b1 \u03b5\u03b9\u03b4\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7", "numeric": "\u0391\u03c1\u03b9\u03b8\u03bc\u03b7\u03c4\u03b9\u03ba\u03ae \u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7", "object": "\u0391\u03bd\u03c4\u03b9\u03ba\u03b5\u03af\u03bc\u03b5\u03bd\u03bf", "off": "\u0391\u03bd\u03b5\u03bd\u03b5\u03c1\u03b3\u03cc", diff --git a/static/translations/en-GB.json b/static/translations/en-GB.json index 13ada816..52f4d92d 100644 --- a/static/translations/en-GB.json +++ b/static/translations/en-GB.json @@ -114,6 +114,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "Notifications", + "notifications_dismiss": "Dismiss", + "notifications_empty": "No Notifications", "numeric": "Numeric state", "object": "Object", "ok": "OK", diff --git a/static/translations/en.json b/static/translations/en.json index 94d80419..d43e8600 100644 --- a/static/translations/en.json +++ b/static/translations/en.json @@ -183,6 +183,9 @@ "not_home": "Away", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "Notifications", + "notifications_dismiss": "Dismiss", + "notifications_empty": "No notifications", "numeric": "Numeric state", "object": "Object", "off": "Off", diff --git a/static/translations/eo.json b/static/translations/eo.json index 49d092c5..dc68bf0e 100644 --- a/static/translations/eo.json +++ b/static/translations/eo.json @@ -114,6 +114,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "Notifications", + "notifications_dismiss": "Dismiss", + "notifications_empty": "No notifications", "numeric": "Numeric state", "object": "Object", "ok": "OK", diff --git a/static/translations/es-419.json b/static/translations/es-419.json index 7fe13184..cd1c841c 100644 --- a/static/translations/es-419.json +++ b/static/translations/es-419.json @@ -114,6 +114,9 @@ "none": "Ninguno", "nothing_configured": "No hay nada configurado", "nothing_found": "No se ha encontrado nada.", + "notifications": "Notificaciones", + "notifications_dismiss": "Descartar", + "notifications_empty": "Sin Notificaciones", "numeric": "Estado num\u00e9rico", "object": "Objeto", "ok": "OK", diff --git a/static/translations/es.json b/static/translations/es.json index 42129630..24f1d962 100644 --- a/static/translations/es.json +++ b/static/translations/es.json @@ -183,6 +183,9 @@ "not_home": "Fuera", "nothing_configured": "Todav\u00eda no hay nada configurado", "nothing_found": "\u00a1Nada encontrado!", + "notifications": "Notificaciones", + "notifications_dismiss": "Descartar", + "notifications_empty": "Sin Notificaciones", "numeric": "Estado num\u00e9rico", "object": "Objeto", "off": "Apagado", diff --git a/static/translations/et.json b/static/translations/et.json index fed9ec7e..d78f4531 100644 --- a/static/translations/et.json +++ b/static/translations/et.json @@ -183,6 +183,9 @@ "not_home": "Eemal", "nothing_configured": "Midagi pole veel seadistatud", "nothing_found": "Midagi ei leitud!", + "notifications": "Teavitused", + "notifications_dismiss": "Loobu", + "notifications_empty": "Teavitusi pole", "numeric": "Numbriline olek", "object": "Objekt", "off": "V\u00e4ljas", diff --git a/static/translations/eu.json b/static/translations/eu.json index 15245efc..3ff1b370 100644 --- a/static/translations/eu.json +++ b/static/translations/eu.json @@ -115,6 +115,9 @@ "none": "None", "nothing_configured": "Ez dago ezer konfiguratuta", "nothing_found": "Nothing found!", + "notifications": "Jakinarazpenak", + "notifications_dismiss": "Dismiss", + "notifications_empty": "Jakinarazpenik ez", "numeric": "Numeric state", "object": "Object", "ok": "OK", diff --git a/static/translations/fa.json b/static/translations/fa.json index 26c9acf7..c64be45b 100644 --- a/static/translations/fa.json +++ b/static/translations/fa.json @@ -115,6 +115,9 @@ "none": "None", "nothing_configured": "\u0647\u06cc\u0686 \u0686\u06cc\u0632 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0646\u0634\u062f\u0647 \u0627\u0633\u062a", "nothing_found": "Nothing found!", + "notifications": "\u0627\u0639\u0644\u0627\u0646\u0647\u0627", + "notifications_dismiss": "Dismiss", + "notifications_empty": "\u0628\u062f\u0648\u0646 \u0627\u0639\u0644\u0627\u0646", "numeric": "\u062d\u0627\u0644\u062a \u0639\u062f\u062f\u06cc", "object": "Object", "ok": "\u0628\u0627\u0634\u0647", diff --git a/static/translations/fi.json b/static/translations/fi.json index 30f52f0f..287e9de8 100644 --- a/static/translations/fi.json +++ b/static/translations/fi.json @@ -183,6 +183,9 @@ "not_home": "Poissa", "nothing_configured": "Mit\u00e4\u00e4n ei ole viel\u00e4 m\u00e4\u00e4ritetty", "nothing_found": "Mit\u00e4\u00e4n ei l\u00f6ytynyt!", + "notifications": "Ilmoitukset", + "notifications_dismiss": "Hylk\u00e4\u00e4", + "notifications_empty": "Ei ilmoituksia", "numeric": "Numeerinen tila", "object": "Objekti", "off": "Pois", diff --git a/static/translations/fr.json b/static/translations/fr.json index 9df290b8..a97f91ec 100644 --- a/static/translations/fr.json +++ b/static/translations/fr.json @@ -182,6 +182,9 @@ "not_home": "Absent", "nothing_configured": "Rien n'est encore configur\u00e9", "nothing_found": "Rien n'a \u00e9t\u00e9 trouv\u00e9\u00a0!", + "notifications": "Notifications", + "notifications_dismiss": "Ignorer", + "notifications_empty": "Aucune notification", "numeric": "\u00c9tat num\u00e9rique", "object": "Objet", "off": "D\u00e9sactiv\u00e9", diff --git a/static/translations/fy.json b/static/translations/fy.json index 65b41d45..2f162b13 100644 --- a/static/translations/fy.json +++ b/static/translations/fy.json @@ -114,6 +114,9 @@ "none": "Gjin", "nothing_configured": "Der is noch neat konfigurearre", "nothing_found": "Neat f\u00fbn", + "notifications": "Notifikaasjes", + "notifications_dismiss": "Slute", + "notifications_empty": "Gjin notifikaasjes", "numeric": "N\u00fbmerike status", "object": "Objekt", "ok": "OK", diff --git a/static/translations/gl.json b/static/translations/gl.json index 5f0c60b8..70cf50b9 100644 --- a/static/translations/gl.json +++ b/static/translations/gl.json @@ -124,6 +124,9 @@ "not_home": "Ausente", "nothing_configured": "A\u00ednda non se configurou nada", "nothing_found": "Non se atopou nada!", + "notifications": "Notificaci\u00f3ns", + "notifications_dismiss": "Desbotar", + "notifications_empty": "Sen notificaci\u00f3ns", "numeric": "Estado num\u00e9rico", "object": "Obxecto", "ok": "OK", diff --git a/static/translations/gsw.json b/static/translations/gsw.json index e6552c9a..06a5116b 100644 --- a/static/translations/gsw.json +++ b/static/translations/gsw.json @@ -123,6 +123,9 @@ "not_home": "Nid Deheime", "nothing_configured": "No n\u00fct yygrichtet", "nothing_found": "N\u00fct gfunde!", + "notifications": "Benachrichtigunge", + "notifications_dismiss": "Verw\u00e4rfe", + "notifications_empty": "Ke Benachrichtigunge", "numeric": "Numerische Zuestand", "object": "Objekt", "off": "Us", diff --git a/static/translations/he.json b/static/translations/he.json index 0c3084c6..9ec0f552 100644 --- a/static/translations/he.json +++ b/static/translations/he.json @@ -179,6 +179,9 @@ "not_home": "\u05d1\u05d7\u05d5\u05e5", "nothing_configured": "\u05db\u05dc\u05d5\u05dd \u05d0\u05d9\u05e0\u05d5 \u05d4\u05d5\u05d2\u05d3\u05e8 \u05e2\u05d3\u05d9\u05d9\u05df", "nothing_found": "\u05dc\u05d0 \u05e0\u05de\u05e6\u05d0 \u05d3\u05d1\u05e8!", + "notifications": "\u05d4\u05ea\u05e8\u05d0\u05d5\u05ea", + "notifications_dismiss": "\u05d1\u05d8\u05dc", + "notifications_empty": "\u05d0\u05d9\u05df \u05d4\u05ea\u05e8\u05d0\u05d5\u05ea", "numeric": "\u05de\u05e6\u05d1 \u05de\u05e1\u05e4\u05e8\u05d9", "object": "\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8", "off": "\u05db\u05d1\u05d5\u05d9", diff --git a/static/translations/hi.json b/static/translations/hi.json index 80cd3750..777d95af 100644 --- a/static/translations/hi.json +++ b/static/translations/hi.json @@ -114,6 +114,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "\u0938\u0942\u091a\u0928\u093e\u090f\u0901", + "notifications_dismiss": "Dismiss", + "notifications_empty": "\u0938\u0942\u091a\u0928\u093e\u090f\u0901\u00a0\u0928\u0939\u0940\u0902\u00a0\u0939\u0948\u0902", "numeric": "Numeric state", "object": "Object", "ok": "OK", diff --git a/static/translations/hr.json b/static/translations/hr.json index c1d2d13c..d5f40be8 100644 --- a/static/translations/hr.json +++ b/static/translations/hr.json @@ -115,6 +115,9 @@ "none": "None", "nothing_configured": "Jo\u0161 ni\u0161ta nije konfigurirano", "nothing_found": "Ni\u0161ta nije prona\u0111eno!", + "notifications": "Obavijesti", + "notifications_dismiss": "Dismiss", + "notifications_empty": "Nema obavijesti", "numeric": "Numeri\u010dko stanje", "object": "Object", "ok": "OK", diff --git a/static/translations/hu.json b/static/translations/hu.json index d970565d..294a20e6 100644 --- a/static/translations/hu.json +++ b/static/translations/hu.json @@ -183,6 +183,9 @@ "not_home": "T\u00e1vol", "nothing_configured": "M\u00e9g semmi sincs be\u00e1ll\u00edtva", "nothing_found": "Nincs tal\u00e1lat!", + "notifications": "\u00c9rtes\u00edt\u00e9sek", + "notifications_dismiss": "Elvet\u00e9s", + "notifications_empty": "Nincsenek \u00e9rtes\u00edt\u00e9sek", "numeric": "Numerikus \u00e1llapot", "object": "Objektum", "off": "Ki", diff --git a/static/translations/hy.json b/static/translations/hy.json index 0a483eab..85af0bbd 100644 --- a/static/translations/hy.json +++ b/static/translations/hy.json @@ -115,6 +115,9 @@ "none": "None", "nothing_configured": "\u0548\u0579\u056b\u0576\u0579 \u057f\u0580\u0561\u0574\u0561\u0564\u0580\u057e\u0561\u056e \u0579\u0567", "nothing_found": "Nothing found!", + "notifications": "\u053e\u0561\u0576\u0578\u0582\u0581\u0578\u0582\u0574\u0576\u0565\u0580", + "notifications_dismiss": "Dismiss", + "notifications_empty": "\u0548\u0579 \u0574\u056b \u056e\u0561\u0576\u0578\u0582\u0581\u0578\u0582\u0574", "numeric": "\u0539\u057e\u0561\u0575\u056b\u0576 \u057e\u056b\u0573\u0561\u056f", "object": "\u0555\u0562\u0575\u0565\u056f\u057f", "ok": "OK", diff --git a/static/translations/id.json b/static/translations/id.json index 43cbf944..f6246201 100644 --- a/static/translations/id.json +++ b/static/translations/id.json @@ -183,6 +183,9 @@ "not_home": "Keluar", "nothing_configured": "Belum ada yang dikonfigurasi", "nothing_found": "Tidak ada yang ditemukan!", + "notifications": "Notifikasi", + "notifications_dismiss": "Tutup", + "notifications_empty": "Tidak ada notifikasi", "numeric": "Status numerik", "object": "Obyek", "off": "Mati", diff --git a/static/translations/is.json b/static/translations/is.json index 94a5b6a1..4a3399b4 100644 --- a/static/translations/is.json +++ b/static/translations/is.json @@ -147,6 +147,9 @@ "not_home": "Fjarverandi", "nothing_configured": "Ekkert skilgreint sem stendur", "nothing_found": "Ekkert fannst!", + "notifications": "Tilkynningar", + "notifications_dismiss": "V\u00edsa fr\u00e1", + "notifications_empty": "Engar tilkynningar", "numeric": "Numeric state", "object": "Object", "off": "Sl\u00f6kkt", diff --git a/static/translations/it.json b/static/translations/it.json index d57430c7..57df5977 100644 --- a/static/translations/it.json +++ b/static/translations/it.json @@ -183,6 +183,9 @@ "not_home": "Fuori casa", "nothing_configured": "Non hai ancora configurato niente", "nothing_found": "Non \u00e8 stato trovato niente!", + "notifications": "Notifiche", + "notifications_dismiss": "Rimuovi", + "notifications_empty": "Nessuna notifica", "numeric": "Valore numerico", "object": "Oggetto", "off": "Spento/a", diff --git a/static/translations/ja.json b/static/translations/ja.json index 98965fef..42612e8d 100644 --- a/static/translations/ja.json +++ b/static/translations/ja.json @@ -183,6 +183,9 @@ "not_home": "\u96e2\u5e2d(away)", "nothing_configured": "\u307e\u3060\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093", "nothing_found": "\u4f55\u3082\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\uff01", + "notifications": "\u901a\u77e5", + "notifications_dismiss": "\u5374\u4e0b", + "notifications_empty": "\u901a\u77e5\u306f\u3042\u308a\u307e\u305b\u3093", "numeric": "\u6570\u5024\u306e\u72b6\u614b", "object": "\u30aa\u30d6\u30b8\u30a7\u30af\u30c8", "off": "\u30aa\u30d5", diff --git a/static/translations/ka.json b/static/translations/ka.json index 061a5f20..950814ae 100644 --- a/static/translations/ka.json +++ b/static/translations/ka.json @@ -114,6 +114,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "\u10e8\u10d4\u10e2\u10e7\u10dd\u10d1\u10d8\u10dc\u10d4\u10d1\u10d4\u10d1\u10d8", + "notifications_dismiss": "Dismiss", + "notifications_empty": "\u10e8\u10d4\u10e2\u10e7\u10dd\u10d1\u10d8\u10dc\u10d4\u10d1\u10d4\u10d1\u10d8 \u10d0\u10e0 \u10d0\u10e0\u10d8\u10e1", "numeric": "\u10e0\u10d8\u10ea\u10ee\u10d5\u10d8\u10d7\u10d8 \u10db\u10d3\u10d2\u10dd\u10db\u10d0\u10e0\u10d4\u10dd\u10d1\u10d0", "object": "Object", "ok": "\u10d9\u10d0\u10e0\u10d2\u10d8", diff --git a/static/translations/ko.json b/static/translations/ko.json index c78d1be7..7c045a42 100644 --- a/static/translations/ko.json +++ b/static/translations/ko.json @@ -183,6 +183,9 @@ "not_home": "\uc678\ucd9c", "nothing_configured": "\uad6c\uc131\ub41c \ud1b5\ud569\uad6c\uc131\uc694\uc18c\uac00 \uc5c6\uc2b5\ub2c8\ub2e4", "nothing_found": "\ucc3e\uc744 \uc218 \uc5c6\uc74c!", + "notifications": "\uc54c\ub9bc", + "notifications_dismiss": "\ud574\uc81c\ud558\uae30", + "notifications_empty": "\uc54c\ub9bc \ub0b4\uc6a9\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.", "numeric": "\uc218\uce58 \uc0c1\ud0dc", "object": "\uac1c\uccb4", "off": "\uaebc\uc9d0", diff --git a/static/translations/lb.json b/static/translations/lb.json index 57c7d8a1..18ca2ce3 100644 --- a/static/translations/lb.json +++ b/static/translations/lb.json @@ -115,6 +115,9 @@ "none": "None", "nothing_configured": "Nach n\u00e4ischt konfigur\u00e9iert", "nothing_found": "Nothing found!", + "notifications": "Notifikatioune", + "notifications_dismiss": "Verwerfen", + "notifications_empty": "Keng Notifikatioune", "numeric": "Numereschen Zoustand", "object": "Object", "ok": "OK", diff --git a/static/translations/lt.json b/static/translations/lt.json index 64ef3a3b..beb17a08 100644 --- a/static/translations/lt.json +++ b/static/translations/lt.json @@ -183,6 +183,9 @@ "not_home": "I\u0161vyk\u0119s", "nothing_configured": "Dar nieko nesukonfig\u016bruota", "nothing_found": "Nerasta nieko!", + "notifications": "Prane\u0161imai", + "notifications_dismiss": "Atmesti", + "notifications_empty": "Prane\u0161im\u0173 n\u0117ra", "numeric": "Skaitin\u0117 vert\u0117", "object": "Objektas", "off": "I\u0161jungta", diff --git a/static/translations/lv.json b/static/translations/lv.json index 37adfa94..c7320959 100644 --- a/static/translations/lv.json +++ b/static/translations/lv.json @@ -176,6 +176,9 @@ "not_home": "Prom", "nothing_configured": "Pagaid\u0101m nekas nav nokonfigur\u0113ts", "nothing_found": "Nekas nav atrasts!", + "notifications": "Pazi\u0146ojumi", + "notifications_dismiss": "Aizv\u0113rt", + "notifications_empty": "Nav pazi\u0146ojumu", "numeric": "Skaitliskais st\u0101voklis", "object": "Object", "off": "Izsl\u0113gts", diff --git a/static/translations/ml.json b/static/translations/ml.json index f6dd9b5f..d2b0cc47 100644 --- a/static/translations/ml.json +++ b/static/translations/ml.json @@ -114,6 +114,9 @@ "none": "\u0d12\u0d28\u0d4d\u0d28\u0d41\u0d2e\u0d3f\u0d32\u0d4d\u0d32", "nothing_configured": "\u0d07\u0d24\u0d41\u0d35\u0d30\u0d46 \u0d12\u0d28\u0d4d\u0d28\u0d41\u0d02 \u0d15\u0d4b\u0d7a\u0d2b\u0d3f\u0d17\u0d7c \u0d1a\u0d46\u0d2f\u0d4d\u0d24\u0d3f\u0d1f\u0d4d\u0d1f\u0d3f\u0d32\u0d4d\u0d32", "nothing_found": "\u0d12\u0d28\u0d4d\u0d28\u0d41\u0d02 \u0d15\u0d23\u0d4d\u0d1f\u0d46\u0d24\u0d4d\u0d24\u0d3f\u0d2f\u0d3f\u0d32\u0d4d\u0d32!", + "notifications": "\u0d05\u0d31\u0d3f\u0d2f\u0d3f\u0d2a\u0d4d\u0d2a\u0d41\u0d15\u0d7e", + "notifications_dismiss": "\u0d2a\u0d3f\u0d30\u0d3f\u0d1a\u0d4d\u0d1a\u0d41\u0d35\u0d3f\u0d1f\u0d41\u0d15", + "notifications_empty": "\u0d05\u0d31\u0d3f\u0d2f\u0d3f\u0d2a\u0d4d\u0d2a\u0d41\u0d15\u0d33\u0d4a\u0d28\u0d4d\u0d28\u0d41\u0d2e\u0d3f\u0d32\u0d4d\u0d32", "numeric": "\u0d28\u0d4d\u0d2f\u0d42\u0d2e\u0d46\u0d31\u0d3f\u0d15\u0d4d \u0d28\u0d3f\u0d32", "object": "Object", "ok": "\u0d36\u0d30\u0d3f", diff --git a/static/translations/nb.json b/static/translations/nb.json index 913d2250..00aadddf 100644 --- a/static/translations/nb.json +++ b/static/translations/nb.json @@ -166,6 +166,9 @@ "not_home": "Borte", "nothing_configured": "Ingenting er konfigurert enda", "nothing_found": "Fant ingenting!", + "notifications": "Varsler", + "notifications_dismiss": "Avvis", + "notifications_empty": "Ingen varsler", "numeric": "Numerisk tilstand", "object": "Objekt", "off": "Av", diff --git a/static/translations/nl.json b/static/translations/nl.json index c8ca2a75..9a875057 100644 --- a/static/translations/nl.json +++ b/static/translations/nl.json @@ -181,6 +181,9 @@ "not_home": "Afwezig", "nothing_configured": "Er is nog niets geconfigureerd", "nothing_found": "Niets gevonden!", + "notifications": "Meldingen", + "notifications_dismiss": "Sluiten", + "notifications_empty": "Geen meldingen", "numeric": "Numerieke status", "object": "Object", "off": "Uit", diff --git a/static/translations/nn.json b/static/translations/nn.json index ec7d22e1..6dac15af 100644 --- a/static/translations/nn.json +++ b/static/translations/nn.json @@ -119,6 +119,9 @@ "not_home": "Borte", "nothing_configured": "Ikkje noko konfiguert end\u00e5", "nothing_found": "Ingenting funne!", + "notifications": "Varsler", + "notifications_dismiss": "Avvis", + "notifications_empty": "Ingen varslar", "numeric": "Numerisk tilstand", "object": "Object", "ok": "Ok", diff --git a/static/translations/no.json b/static/translations/no.json index a0c599e9..d469de65 100644 --- a/static/translations/no.json +++ b/static/translations/no.json @@ -114,6 +114,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "Notifications", + "notifications_dismiss": "Dismiss", + "notifications_empty": "No notifications", "numeric": "Numerisk tilstand", "object": "Object", "ok": "Ok", diff --git a/static/translations/pl.json b/static/translations/pl.json index 3180cabc..0b2a9d87 100644 --- a/static/translations/pl.json +++ b/static/translations/pl.json @@ -178,6 +178,9 @@ "not_home": "poza domem", "nothing_configured": "Nic jeszcze nie zosta\u0142o skonfigurowane", "nothing_found": "Nic nie znaleziono!", + "notifications": "Powiadomienia", + "notifications_dismiss": "Ukryj", + "notifications_empty": "Brak powiadomie\u0144", "numeric": "Stan numeryczny", "object": "Obiekt", "off": "wy\u0142.", diff --git a/static/translations/pt-BR.json b/static/translations/pt-BR.json index a47bb2bc..ff75d3d7 100644 --- a/static/translations/pt-BR.json +++ b/static/translations/pt-BR.json @@ -114,6 +114,9 @@ "none": "Nenhum", "nothing_configured": "Nada configurado ainda", "nothing_found": "Nada encontrado!", + "notifications": "Notifica\u00e7\u00f5es", + "notifications_dismiss": "Dispensar", + "notifications_empty": "Sem notifica\u00e7\u00f5es", "numeric": "Estado num\u00e9rico", "object": "Objeto", "ok": "OK", diff --git a/static/translations/pt.json b/static/translations/pt.json index 8212875a..30bb925b 100644 --- a/static/translations/pt.json +++ b/static/translations/pt.json @@ -180,6 +180,9 @@ "not_home": "Ausente", "nothing_configured": "Nada configurado ainda", "nothing_found": "Sem resultados!", + "notifications": "Notifica\u00e7\u00f5es", + "notifications_dismiss": "Descartar", + "notifications_empty": "Sem notifica\u00e7\u00f5es", "numeric": "Estado num\u00e9rico", "object": "Object", "off": "Desligado", diff --git a/static/translations/ro.json b/static/translations/ro.json index 16cefd0c..359091d6 100644 --- a/static/translations/ro.json +++ b/static/translations/ro.json @@ -180,6 +180,9 @@ "not_home": "Plecat", "nothing_configured": "\u00cenc\u0103 nu a fost configurat nimic", "nothing_found": "Nimic g\u0103sit!", + "notifications": "Notific\u0103ri", + "notifications_dismiss": "\u00cenl\u0103tur\u0103", + "notifications_empty": "Nicio notificare", "numeric": "Stare numeric\u0103", "object": "Obiect", "off": "Oprit", diff --git a/static/translations/ru.json b/static/translations/ru.json index 22668e67..97946c6b 100644 --- a/static/translations/ru.json +++ b/static/translations/ru.json @@ -181,6 +181,9 @@ "not_home": "\u041d\u0435 \u0434\u043e\u043c\u0430", "nothing_configured": "\u041f\u043e\u043a\u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e", "nothing_found": "\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e!", + "notifications": "\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f", + "notifications_dismiss": "\u0417\u0430\u043a\u0440\u044b\u0442\u044c", + "notifications_empty": "\u041d\u0435\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439", "numeric": "\u0427\u0438\u0441\u043b\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435", "object": "\u041e\u0431\u044a\u0435\u043a\u0442", "off": "\u0412\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043e", diff --git a/static/translations/sk.json b/static/translations/sk.json index ace2ca30..b2ea2814 100644 --- a/static/translations/sk.json +++ b/static/translations/sk.json @@ -183,6 +183,9 @@ "not_home": "Nepr\u00edtomnos\u0165", "nothing_configured": "Ni\u010d zatia\u013e nebolo nakonfigurovan\u00e9", "nothing_found": "Ni\u010d nebolo n\u00e1jden\u00e9!", + "notifications": "Upozornenia", + "notifications_dismiss": "Zru\u0161i\u0165", + "notifications_empty": "\u017diadne upozornenia", "numeric": "\u010c\u00edseln\u00fd stav", "object": "Objekt", "off": "Neakt\u00edvny", diff --git a/static/translations/sl.json b/static/translations/sl.json index 77ebf798..d3a88ae8 100644 --- a/static/translations/sl.json +++ b/static/translations/sl.json @@ -139,6 +139,9 @@ "not_home": "Odsoten", "nothing_configured": "Ni\u010d \u0161e ni konfigurirano", "nothing_found": "Ni\u010d ni bilo najdeno!", + "notifications": "Obvestila", + "notifications_dismiss": "Opusti", + "notifications_empty": "Ni obvestil", "numeric": "Numeri\u010dno stanje", "object": "Object", "off": "Izkl.", diff --git a/static/translations/sr-Latn.json b/static/translations/sr-Latn.json index 54e814ed..dd4f5109 100644 --- a/static/translations/sr-Latn.json +++ b/static/translations/sr-Latn.json @@ -114,6 +114,9 @@ "none": "Nijedan", "nothing_configured": "Jo\u0161 ni\u0161ta nije konfigurisano", "nothing_found": "Ni\u0161ta nije prona\u0111eno!", + "notifications": "Obave\u0161tenja", + "notifications_dismiss": "Dismiss", + "notifications_empty": "Nema obave\u0161tenja", "numeric": "Numeri\u010dko stanje", "object": "Object", "ok": "\u041e\u041a", diff --git a/static/translations/sr.json b/static/translations/sr.json index 15299a25..59e9d171 100644 --- a/static/translations/sr.json +++ b/static/translations/sr.json @@ -134,6 +134,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Ni\u0161ta nije prona\u0111eno!", + "notifications": "Notifications", + "notifications_dismiss": "Dismiss", + "notifications_empty": "No notifications", "numeric": "Numeric state", "object": "Object", "ok": "\u041e\u041a", diff --git a/static/translations/sv.json b/static/translations/sv.json index 7b9df06a..cdccf1b5 100644 --- a/static/translations/sv.json +++ b/static/translations/sv.json @@ -183,6 +183,9 @@ "not_home": "Borta", "nothing_configured": "Ingenting konfigurerat \u00e4n", "nothing_found": "Inget hittat!", + "notifications": "Notiser", + "notifications_dismiss": "Avf\u00e4rda", + "notifications_empty": "Inga notiser", "numeric": "Numeriskt tillst\u00e5nd", "object": "Objekt", "off": "Av", diff --git a/static/translations/ta.json b/static/translations/ta.json index 93eebc49..9af17662 100644 --- a/static/translations/ta.json +++ b/static/translations/ta.json @@ -114,6 +114,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "Notifications", + "notifications_dismiss": "Dismiss", + "notifications_empty": "No notifications", "numeric": "Numeric state", "object": "Object", "ok": "OK", diff --git a/static/translations/te.json b/static/translations/te.json index 464d87ca..7a6cc2ee 100644 --- a/static/translations/te.json +++ b/static/translations/te.json @@ -115,6 +115,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "\u0c2a\u0c4d\u0c30\u0c15\u0c1f\u0c28\u0c32\u0c41", + "notifications_dismiss": "Dismiss", + "notifications_empty": "\u0c2a\u0c4d\u0c30\u0c15\u0c1f\u0c28\u0c32\u0c41 \u0c32\u0c47\u0c35\u0c41", "numeric": "\u0c38\u0c02\u0c16\u0c4d\u0c2f\u0c3e \u0c38\u0c4d\u0c25\u0c3f\u0c24\u0c3f", "object": "Object", "ok": "OK", diff --git a/static/translations/th.json b/static/translations/th.json index caebe361..4a0a455d 100644 --- a/static/translations/th.json +++ b/static/translations/th.json @@ -121,6 +121,9 @@ "none": "None", "nothing_configured": "\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e43\u0e14\u0e46 \u0e40\u0e25\u0e22", "nothing_found": "Nothing found!", + "notifications": "\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19", + "notifications_dismiss": "Dismiss", + "notifications_empty": "\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19", "numeric": "\u0e2a\u0e16\u0e32\u0e19\u0e30\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02", "object": "Object", "off": "\u0e1b\u0e34\u0e14", diff --git a/static/translations/tr.json b/static/translations/tr.json index fbeb31dc..7cb83a41 100644 --- a/static/translations/tr.json +++ b/static/translations/tr.json @@ -183,6 +183,9 @@ "not_home": "D\u0131\u015far\u0131da", "nothing_configured": "Hen\u00fcz hi\u00e7bir \u015fey yap\u0131land\u0131r\u0131lmam\u0131\u015f", "nothing_found": "Hi\u00e7bir\u015fey Bulunamad\u0131!", + "notifications": "Bildirimler", + "notifications_dismiss": "Yoksay", + "notifications_empty": "Bildirim yok", "numeric": "Say\u0131sal durum", "object": "Nesne", "off": "Kapal\u0131", diff --git a/static/translations/uk.json b/static/translations/uk.json index bfc15a6b..bd1c49cb 100644 --- a/static/translations/uk.json +++ b/static/translations/uk.json @@ -179,6 +179,9 @@ "not_home": "\u041d\u0435 \u0432\u0434\u043e\u043c\u0430", "nothing_configured": "\u0429\u0435 \u043d\u0456\u0447\u043e\u0433\u043e \u043d\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u043e", "nothing_found": "\u041d\u0456\u0447\u043e\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e!", + "notifications": "\u0421\u043f\u043e\u0432\u0456\u0449\u0435\u043d\u043d\u044f", + "notifications_dismiss": "\u0412\u0456\u0434\u0445\u0438\u043b\u0438\u0442\u0438", + "notifications_empty": "\u041d\u0435\u043c\u0430\u0454 \u0441\u043f\u043e\u0432\u0456\u0449\u0435\u043d\u044c", "numeric": "\u0427\u0438\u0441\u043b\u043e\u0432\u0438\u0439 \u0441\u0442\u0430\u043d", "object": "\u041e\u0431'\u0454\u043a\u0442", "off": "\u0412\u0438\u043c\u043a\u043d\u0435\u043d\u043e", diff --git a/static/translations/ur.json b/static/translations/ur.json index 4f27baee..79bf0489 100644 --- a/static/translations/ur.json +++ b/static/translations/ur.json @@ -114,6 +114,9 @@ "none": "None", "nothing_configured": "Nothing configured yet", "nothing_found": "Nothing found!", + "notifications": "Notifications", + "notifications_dismiss": "Dismiss", + "notifications_empty": "No notifications", "numeric": "Numeric state", "object": "Object", "ok": "\u0679\u06be\u064a\u06a9", diff --git a/static/translations/vi.json b/static/translations/vi.json index e1ecf114..d721635a 100644 --- a/static/translations/vi.json +++ b/static/translations/vi.json @@ -172,6 +172,9 @@ "not_home": "\u0110i v\u1eafng", "nothing_configured": "Ch\u01b0a c\u00f3 c\u1ea5u h\u00ecnh n\u00e0o", "nothing_found": "Kh\u00f4ng t\u00ecm th\u1ea5y g\u00ec!", + "notifications": "Th\u00f4ng b\u00e1o", + "notifications_dismiss": "B\u1ecf qua", + "notifications_empty": "Kh\u00f4ng c\u00f3 th\u00f4ng b\u00e1o", "numeric": "Tr\u1ea1ng th\u00e1i s\u1ed1", "object": "\u0110\u1ed1i t\u01b0\u1ee3ng", "off": "T\u1eaft", diff --git a/static/translations/zh-Hans.json b/static/translations/zh-Hans.json index f8d2be82..dc40b238 100644 --- a/static/translations/zh-Hans.json +++ b/static/translations/zh-Hans.json @@ -114,6 +114,9 @@ "none": "\u65e0", "nothing_configured": "\u5c1a\u672a\u914d\u7f6e\u4efb\u4f55\u96c6\u6210", "nothing_found": "\u672a\u627e\u5230\u5185\u5bb9\u3002", + "notifications": "\u901a\u77e5", + "notifications_dismiss": "\u5173\u95ed", + "notifications_empty": "\u6ca1\u6709\u4efb\u4f55\u901a\u77e5", "numeric": "\u6570\u5b57\u7c7b\u72b6\u6001", "object": "\u5bf9\u8c61", "ok": "\u786e\u5b9a", diff --git a/static/translations/zh-Hant.json b/static/translations/zh-Hant.json index 41b72c4f..d4758ad9 100644 --- a/static/translations/zh-Hant.json +++ b/static/translations/zh-Hant.json @@ -114,6 +114,9 @@ "none": "\u7121", "nothing_configured": "\u5c1a\u672a\u8a2d\u5b9a", "nothing_found": "\u627e\u4e0d\u5230\u76f8\u7b26\uff01", + "notifications": "\u901a\u77e5\u63d0\u793a", + "notifications_dismiss": "\u95dc\u9589", + "notifications_empty": "\u6c92\u6709\u901a\u77e5", "numeric": "\u6578\u503c\u8b8a\u52d5\u89f8\u767c", "object": "\u7269\u4ef6", "ok": "\u597d", From 3d9dbc943d2f3c615346350548d486b453ace7dc Mon Sep 17 00:00:00 2001 From: Mattias Persson Date: Tue, 13 Feb 2024 17:27:18 +0100 Subject: [PATCH 4/4] Cleanup --- src/lib/Modal/AlarmControlPanelModal.svelte | 2 -- src/lib/Modal/ConfigButtons.svelte | 1 - src/lib/Modal/MainItemConfig.svelte | 11 +++++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lib/Modal/AlarmControlPanelModal.svelte b/src/lib/Modal/AlarmControlPanelModal.svelte index 42fa65f0..8b3bf2cb 100644 --- a/src/lib/Modal/AlarmControlPanelModal.svelte +++ b/src/lib/Modal/AlarmControlPanelModal.svelte @@ -20,7 +20,6 @@ let reject: boolean; let timeout: ReturnType | undefined; let selectedService: string | undefined; - let unsubscribe: () => void; function addCode(key: number) { code += key; @@ -56,7 +55,6 @@ } onDestroy(() => { - unsubscribe?.(); clearTimeout(timeout); }); diff --git a/src/lib/Modal/ConfigButtons.svelte b/src/lib/Modal/ConfigButtons.svelte index db1ad636..6004ea5f 100644 --- a/src/lib/Modal/ConfigButtons.svelte +++ b/src/lib/Modal/ConfigButtons.svelte @@ -109,7 +109,6 @@ class="options action" on:click={() => { handleChangeType(); - $record(); }} use:Ripple={$ripple} > diff --git a/src/lib/Modal/MainItemConfig.svelte b/src/lib/Modal/MainItemConfig.svelte index 43891cf6..8279bdeb 100644 --- a/src/lib/Modal/MainItemConfig.svelte +++ b/src/lib/Modal/MainItemConfig.svelte @@ -29,6 +29,17 @@ if (searchElement) { searchElement.focus(); } + + // if changing type reset object + if (sel) { + Object.keys(sel).forEach((key) => { + if (key !== 'id') { + delete (sel as any)[key]; + } + }); + sel.type = 'configure'; + $dashboard = $dashboard; + } }); $: filter = itemTypes