From 39c89c3f6d3761d877bcf40e79c9649c08ca516a Mon Sep 17 00:00:00 2001 From: Larvey Date: Tue, 25 Apr 2023 13:37:49 -0400 Subject: [PATCH 1/4] Added dashName variable to locales In preparation for the dashName variable addition --- public/locales/da/modules/dashdot.json | 3 +++ public/locales/de/modules/dashdot.json | 3 +++ public/locales/el/modules/dashdot.json | 3 +++ public/locales/en/modules/dashdot.json | 3 +++ public/locales/es/modules/dashdot.json | 3 +++ public/locales/fr/modules/dashdot.json | 3 +++ public/locales/he/modules/dashdot.json | 3 +++ public/locales/it/modules/dashdot.json | 3 +++ public/locales/ja/modules/dashdot.json | 3 +++ public/locales/ko/modules/dashdot.json | 3 +++ public/locales/lol/modules/dashdot.json | 3 +++ public/locales/nl/modules/dashdot.json | 3 +++ public/locales/no/modules/dashdot.json | 3 +++ public/locales/pl/modules/dashdot.json | 3 +++ public/locales/pt/modules/dashdot.json | 3 +++ public/locales/ru/modules/dashdot.json | 3 +++ public/locales/sk/modules/dashdot.json | 3 +++ public/locales/sl/modules/dashdot.json | 3 +++ public/locales/sv/modules/dashdot.json | 3 +++ public/locales/uk/modules/dashdot.json | 3 +++ public/locales/vi/modules/dashdot.json | 3 +++ public/locales/zh/modules/dashdot.json | 3 +++ 22 files changed, 66 insertions(+) diff --git a/public/locales/da/modules/dashdot.json b/public/locales/da/modules/dashdot.json index 42b20b855..c5c178ce0 100644 --- a/public/locales/da/modules/dashdot.json +++ b/public/locales/da/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Viser graferne for en ekstern Dash. instans i Homarr.", "settings": { "title": "Indstillinger for Dash. widget", + "dashName": { + "label": "Dash. Navn" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/de/modules/dashdot.json b/public/locales/de/modules/dashdot.json index a403da824..0b33e58bc 100644 --- a/public/locales/de/modules/dashdot.json +++ b/public/locales/de/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Zeigt die Graphen einer externen Dash.-Instanz innerhalb von Homarr an.", "settings": { "title": "Einstellungen für Dash. Widget", + "dashName": { + "label": "Dash. Name" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/el/modules/dashdot.json b/public/locales/el/modules/dashdot.json index 60f6c65b5..3c2f9d0af 100644 --- a/public/locales/el/modules/dashdot.json +++ b/public/locales/el/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "", "settings": { "title": "Ρυθμίσεις για το widget Dash", + "dashName": { + "label": "Dash. Ονομα" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/en/modules/dashdot.json b/public/locales/en/modules/dashdot.json index d0c21f74d..77842dda8 100644 --- a/public/locales/en/modules/dashdot.json +++ b/public/locales/en/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Displays the graphs of an external Dash. Instance inside Homarr.", "settings": { "title": "Settings for Dash. widget", + "dashName": { + "label": "Dash. Name" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/es/modules/dashdot.json b/public/locales/es/modules/dashdot.json index 1686364ec..6320dd445 100644 --- a/public/locales/es/modules/dashdot.json +++ b/public/locales/es/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Mostrar los gráficos de una instancia Dash. externa en Homarr.", "settings": { "title": "Ajustes para el widget Dash.", + "dashName": { + "label": "Dash. Nombre" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/fr/modules/dashdot.json b/public/locales/fr/modules/dashdot.json index 7d2b78a53..0e8aeee84 100644 --- a/public/locales/fr/modules/dashdot.json +++ b/public/locales/fr/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "", "settings": { "title": "Paramètres du widget Dash", + "dashName": { + "label": "Nom Dash." + }, "url": { "label": "URL Dash." }, diff --git a/public/locales/he/modules/dashdot.json b/public/locales/he/modules/dashdot.json index 6ca24a9df..0503530c8 100644 --- a/public/locales/he/modules/dashdot.json +++ b/public/locales/he/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "מציג מופעי נתוני גרפים מ- Dash בתוך Homarr.", "settings": { "title": "הגדרות עבור וידג׳ט Dash.", + "dashName": { + "label": "שֵׁם Dash." + }, "url": { "label": "כתובת אתר Dash." }, diff --git a/public/locales/it/modules/dashdot.json b/public/locales/it/modules/dashdot.json index 69ee1ff84..5ba58bc23 100644 --- a/public/locales/it/modules/dashdot.json +++ b/public/locales/it/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Visualizza i grafici di un'istanza Dash. esterna all'interno di Homarr.", "settings": { "title": "Impostazioni del widget Dash.", + "dashName": { + "label": "Dash. Nome" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/ja/modules/dashdot.json b/public/locales/ja/modules/dashdot.json index be49474b0..e19e178e6 100644 --- a/public/locales/ja/modules/dashdot.json +++ b/public/locales/ja/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "", "settings": { "title": "Dash.ウィジェットの設定", + "dashName": { + "label": "Dash.名前" + }, "url": { "label": "ダッシュURL" }, diff --git a/public/locales/ko/modules/dashdot.json b/public/locales/ko/modules/dashdot.json index c8041f55c..422717139 100644 --- a/public/locales/ko/modules/dashdot.json +++ b/public/locales/ko/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "", "settings": { "title": "", + "dashName": { + "label": "Dash. 이름" + }, "url": { "label": "Dash. 주소" }, diff --git a/public/locales/lol/modules/dashdot.json b/public/locales/lol/modules/dashdot.json index 223bfdfdd..948da2b42 100644 --- a/public/locales/lol/modules/dashdot.json +++ b/public/locales/lol/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "", "settings": { "title": "Settings 4 Dash. Widget", + "dashName": { + "label": "Dash. Namez" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/nl/modules/dashdot.json b/public/locales/nl/modules/dashdot.json index c4efb66b5..3077e9a91 100644 --- a/public/locales/nl/modules/dashdot.json +++ b/public/locales/nl/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Toont de grafieken van een externe Dash. instantie binnen Homarr.", "settings": { "title": "Instellingen voor Dash. widget", + "dashName": { + "label": "Dash. Naam" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/no/modules/dashdot.json b/public/locales/no/modules/dashdot.json index f580b8d8f..774f2eb2c 100644 --- a/public/locales/no/modules/dashdot.json +++ b/public/locales/no/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Viser grafene til en ekstern Dash. Instanse inne i Homarr.", "settings": { "title": "Innstillinger for Dash. widget", + "dashName": { + "label": "Dash. Navn" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/pl/modules/dashdot.json b/public/locales/pl/modules/dashdot.json index 2387f215e..6802dae33 100644 --- a/public/locales/pl/modules/dashdot.json +++ b/public/locales/pl/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Wyświetla wykresy zewnętrznego Dash. Instancja wewnątrz Homarr.", "settings": { "title": "Ustawienia dla widgetu Dash.", + "dashName": { + "label": "Dash. Nazwa" + }, "url": { "label": "Adres URL usługi Dash." }, diff --git a/public/locales/pt/modules/dashdot.json b/public/locales/pt/modules/dashdot.json index 58b5b8ed2..d4eab2e13 100644 --- a/public/locales/pt/modules/dashdot.json +++ b/public/locales/pt/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "", "settings": { "title": "Definições para o Dash. widget", + "dashName": { + "label": "Dash. Nome" + }, "url": { "label": "URL do Dash." }, diff --git a/public/locales/ru/modules/dashdot.json b/public/locales/ru/modules/dashdot.json index 9a2f5f981..c7ef9d09b 100644 --- a/public/locales/ru/modules/dashdot.json +++ b/public/locales/ru/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Показывает графики внешнего экземпляра Dash. в Homarr.", "settings": { "title": "Настройки для виджета Dash.", + "dashName": { + "label": "Имя Dash." + }, "url": { "label": "URL-адрес Dash." }, diff --git a/public/locales/sk/modules/dashdot.json b/public/locales/sk/modules/dashdot.json index 5367a9f08..13b0bd767 100644 --- a/public/locales/sk/modules/dashdot.json +++ b/public/locales/sk/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Zobrazí grafy externého Dash. Instancie vo vnútri Homarr.", "settings": { "title": "Nastavenia pre Dash. mini aplikácie", + "dashName": { + "label": "Dash. Názov" + }, "url": { "label": "Dash. URL adresa" }, diff --git a/public/locales/sl/modules/dashdot.json b/public/locales/sl/modules/dashdot.json index e9420fccc..d2b2150ad 100644 --- a/public/locales/sl/modules/dashdot.json +++ b/public/locales/sl/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Prikaže grafe zunanje instance Dash. znotraj Homarr.", "settings": { "title": "Nastavitve za pripomoček Dash", + "dashName": { + "label": "Dash. Ime" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/sv/modules/dashdot.json b/public/locales/sv/modules/dashdot.json index 99d68045e..4c084401a 100644 --- a/public/locales/sv/modules/dashdot.json +++ b/public/locales/sv/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Visar graferna för en extern Dash.-instans i Homarr.", "settings": { "title": "Inställningar för Dash. widget", + "dashName": { + "label": "Dash. Namn" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/uk/modules/dashdot.json b/public/locales/uk/modules/dashdot.json index 86cfbaa3d..215027399 100644 --- a/public/locales/uk/modules/dashdot.json +++ b/public/locales/uk/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Відображає графіки зовнішнього Dash. всередині Homarr.", "settings": { "title": "Налаштування віджета Dash.", + "dashName": { + "label": "Dash. Ім'я" + }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/vi/modules/dashdot.json b/public/locales/vi/modules/dashdot.json index 2dc01c902..0912acb7d 100644 --- a/public/locales/vi/modules/dashdot.json +++ b/public/locales/vi/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Hiển thị biểu đồ của Dash. bên trong Homarr.", "settings": { "title": "Cài đặt cho tiện ích Dash.", + "dashName": { + "label": "Tên Dash." + }, "url": { "label": "URL của Dash." }, diff --git a/public/locales/zh/modules/dashdot.json b/public/locales/zh/modules/dashdot.json index a7a367991..20f43d0ef 100644 --- a/public/locales/zh/modules/dashdot.json +++ b/public/locales/zh/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "在Homarr中显示一个外部Dash的图表。", "settings": { "title": "设置Dash小部件", + "dashName": { + "label": "Dash. 姓名" + }, "url": { "label": "Dash. 网址" }, From 59238ae2a6b0e9263b36bfec16674dbbb25bb5dc Mon Sep 17 00:00:00 2001 From: Larvey Date: Tue, 25 Apr 2023 13:43:14 -0400 Subject: [PATCH 2/4] Added dashName variable Allows user to change DashDot Name --- src/widgets/dashDot/DashDotTile.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/widgets/dashDot/DashDotTile.tsx b/src/widgets/dashDot/DashDotTile.tsx index fe19b0110..de21c8f16 100644 --- a/src/widgets/dashDot/DashDotTile.tsx +++ b/src/widgets/dashDot/DashDotTile.tsx @@ -13,6 +13,10 @@ const definition = defineWidget({ id: 'dashdot', icon: 'https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/dashdot.png', options: { + dashName: { + type: 'text', + defaultValue: 'Dash.', + }, url: { type: 'text', defaultValue: '', @@ -177,11 +181,11 @@ function DashDotTile({ widget }: DashDotTileProps) { ); } - const { graphsOrder, usePercentages, columns, graphHeight } = widget.properties; + const { dashName, graphsOrder, usePercentages, columns, graphHeight } = widget.properties; return ( - {t('card.title')} + {dashName ? dashName : t('card.title')} {!info &&

{t('card.errors.noInformation')}

} {info && (
From 815d4d6a624130287ab913e09f32eb5a47791e0e Mon Sep 17 00:00:00 2001 From: Larvey Date: Tue, 25 Apr 2023 14:01:58 -0400 Subject: [PATCH 3/4] Remove dashName from all languages but English As per request, seems this was not required. Only English --- public/locales/da/modules/dashdot.json | 3 --- public/locales/de/modules/dashdot.json | 3 --- public/locales/el/modules/dashdot.json | 3 --- public/locales/es/modules/dashdot.json | 3 --- public/locales/fr/modules/dashdot.json | 3 --- public/locales/he/modules/dashdot.json | 3 --- public/locales/it/modules/dashdot.json | 3 --- public/locales/ja/modules/dashdot.json | 3 --- public/locales/ko/modules/dashdot.json | 3 --- public/locales/lol/modules/dashdot.json | 3 --- public/locales/nl/modules/dashdot.json | 3 --- public/locales/no/modules/dashdot.json | 3 --- public/locales/pl/modules/dashdot.json | 3 --- public/locales/pt/modules/dashdot.json | 3 --- public/locales/ru/modules/dashdot.json | 3 --- public/locales/sk/modules/dashdot.json | 3 --- public/locales/sl/modules/dashdot.json | 3 --- public/locales/sv/modules/dashdot.json | 3 --- public/locales/uk/modules/dashdot.json | 3 --- public/locales/vi/modules/dashdot.json | 3 --- public/locales/zh/modules/dashdot.json | 3 --- 21 files changed, 63 deletions(-) diff --git a/public/locales/da/modules/dashdot.json b/public/locales/da/modules/dashdot.json index c5c178ce0..42b20b855 100644 --- a/public/locales/da/modules/dashdot.json +++ b/public/locales/da/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Viser graferne for en ekstern Dash. instans i Homarr.", "settings": { "title": "Indstillinger for Dash. widget", - "dashName": { - "label": "Dash. Navn" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/de/modules/dashdot.json b/public/locales/de/modules/dashdot.json index 0b33e58bc..a403da824 100644 --- a/public/locales/de/modules/dashdot.json +++ b/public/locales/de/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Zeigt die Graphen einer externen Dash.-Instanz innerhalb von Homarr an.", "settings": { "title": "Einstellungen für Dash. Widget", - "dashName": { - "label": "Dash. Name" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/el/modules/dashdot.json b/public/locales/el/modules/dashdot.json index 3c2f9d0af..60f6c65b5 100644 --- a/public/locales/el/modules/dashdot.json +++ b/public/locales/el/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "", "settings": { "title": "Ρυθμίσεις για το widget Dash", - "dashName": { - "label": "Dash. Ονομα" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/es/modules/dashdot.json b/public/locales/es/modules/dashdot.json index 6320dd445..1686364ec 100644 --- a/public/locales/es/modules/dashdot.json +++ b/public/locales/es/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Mostrar los gráficos de una instancia Dash. externa en Homarr.", "settings": { "title": "Ajustes para el widget Dash.", - "dashName": { - "label": "Dash. Nombre" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/fr/modules/dashdot.json b/public/locales/fr/modules/dashdot.json index 0e8aeee84..7d2b78a53 100644 --- a/public/locales/fr/modules/dashdot.json +++ b/public/locales/fr/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "", "settings": { "title": "Paramètres du widget Dash", - "dashName": { - "label": "Nom Dash." - }, "url": { "label": "URL Dash." }, diff --git a/public/locales/he/modules/dashdot.json b/public/locales/he/modules/dashdot.json index 0503530c8..6ca24a9df 100644 --- a/public/locales/he/modules/dashdot.json +++ b/public/locales/he/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "מציג מופעי נתוני גרפים מ- Dash בתוך Homarr.", "settings": { "title": "הגדרות עבור וידג׳ט Dash.", - "dashName": { - "label": "שֵׁם Dash." - }, "url": { "label": "כתובת אתר Dash." }, diff --git a/public/locales/it/modules/dashdot.json b/public/locales/it/modules/dashdot.json index 5ba58bc23..69ee1ff84 100644 --- a/public/locales/it/modules/dashdot.json +++ b/public/locales/it/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Visualizza i grafici di un'istanza Dash. esterna all'interno di Homarr.", "settings": { "title": "Impostazioni del widget Dash.", - "dashName": { - "label": "Dash. Nome" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/ja/modules/dashdot.json b/public/locales/ja/modules/dashdot.json index e19e178e6..be49474b0 100644 --- a/public/locales/ja/modules/dashdot.json +++ b/public/locales/ja/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "", "settings": { "title": "Dash.ウィジェットの設定", - "dashName": { - "label": "Dash.名前" - }, "url": { "label": "ダッシュURL" }, diff --git a/public/locales/ko/modules/dashdot.json b/public/locales/ko/modules/dashdot.json index 422717139..c8041f55c 100644 --- a/public/locales/ko/modules/dashdot.json +++ b/public/locales/ko/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "", "settings": { "title": "", - "dashName": { - "label": "Dash. 이름" - }, "url": { "label": "Dash. 주소" }, diff --git a/public/locales/lol/modules/dashdot.json b/public/locales/lol/modules/dashdot.json index 948da2b42..223bfdfdd 100644 --- a/public/locales/lol/modules/dashdot.json +++ b/public/locales/lol/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "", "settings": { "title": "Settings 4 Dash. Widget", - "dashName": { - "label": "Dash. Namez" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/nl/modules/dashdot.json b/public/locales/nl/modules/dashdot.json index 3077e9a91..c4efb66b5 100644 --- a/public/locales/nl/modules/dashdot.json +++ b/public/locales/nl/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Toont de grafieken van een externe Dash. instantie binnen Homarr.", "settings": { "title": "Instellingen voor Dash. widget", - "dashName": { - "label": "Dash. Naam" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/no/modules/dashdot.json b/public/locales/no/modules/dashdot.json index 774f2eb2c..f580b8d8f 100644 --- a/public/locales/no/modules/dashdot.json +++ b/public/locales/no/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Viser grafene til en ekstern Dash. Instanse inne i Homarr.", "settings": { "title": "Innstillinger for Dash. widget", - "dashName": { - "label": "Dash. Navn" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/pl/modules/dashdot.json b/public/locales/pl/modules/dashdot.json index 6802dae33..2387f215e 100644 --- a/public/locales/pl/modules/dashdot.json +++ b/public/locales/pl/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Wyświetla wykresy zewnętrznego Dash. Instancja wewnątrz Homarr.", "settings": { "title": "Ustawienia dla widgetu Dash.", - "dashName": { - "label": "Dash. Nazwa" - }, "url": { "label": "Adres URL usługi Dash." }, diff --git a/public/locales/pt/modules/dashdot.json b/public/locales/pt/modules/dashdot.json index d4eab2e13..58b5b8ed2 100644 --- a/public/locales/pt/modules/dashdot.json +++ b/public/locales/pt/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "", "settings": { "title": "Definições para o Dash. widget", - "dashName": { - "label": "Dash. Nome" - }, "url": { "label": "URL do Dash." }, diff --git a/public/locales/ru/modules/dashdot.json b/public/locales/ru/modules/dashdot.json index c7ef9d09b..9a2f5f981 100644 --- a/public/locales/ru/modules/dashdot.json +++ b/public/locales/ru/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Показывает графики внешнего экземпляра Dash. в Homarr.", "settings": { "title": "Настройки для виджета Dash.", - "dashName": { - "label": "Имя Dash." - }, "url": { "label": "URL-адрес Dash." }, diff --git a/public/locales/sk/modules/dashdot.json b/public/locales/sk/modules/dashdot.json index 13b0bd767..5367a9f08 100644 --- a/public/locales/sk/modules/dashdot.json +++ b/public/locales/sk/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Zobrazí grafy externého Dash. Instancie vo vnútri Homarr.", "settings": { "title": "Nastavenia pre Dash. mini aplikácie", - "dashName": { - "label": "Dash. Názov" - }, "url": { "label": "Dash. URL adresa" }, diff --git a/public/locales/sl/modules/dashdot.json b/public/locales/sl/modules/dashdot.json index d2b2150ad..e9420fccc 100644 --- a/public/locales/sl/modules/dashdot.json +++ b/public/locales/sl/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Prikaže grafe zunanje instance Dash. znotraj Homarr.", "settings": { "title": "Nastavitve za pripomoček Dash", - "dashName": { - "label": "Dash. Ime" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/sv/modules/dashdot.json b/public/locales/sv/modules/dashdot.json index 4c084401a..99d68045e 100644 --- a/public/locales/sv/modules/dashdot.json +++ b/public/locales/sv/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Visar graferna för en extern Dash.-instans i Homarr.", "settings": { "title": "Inställningar för Dash. widget", - "dashName": { - "label": "Dash. Namn" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/uk/modules/dashdot.json b/public/locales/uk/modules/dashdot.json index 215027399..86cfbaa3d 100644 --- a/public/locales/uk/modules/dashdot.json +++ b/public/locales/uk/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Відображає графіки зовнішнього Dash. всередині Homarr.", "settings": { "title": "Налаштування віджета Dash.", - "dashName": { - "label": "Dash. Ім'я" - }, "url": { "label": "Dash. URL" }, diff --git a/public/locales/vi/modules/dashdot.json b/public/locales/vi/modules/dashdot.json index 0912acb7d..2dc01c902 100644 --- a/public/locales/vi/modules/dashdot.json +++ b/public/locales/vi/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "Hiển thị biểu đồ của Dash. bên trong Homarr.", "settings": { "title": "Cài đặt cho tiện ích Dash.", - "dashName": { - "label": "Tên Dash." - }, "url": { "label": "URL của Dash." }, diff --git a/public/locales/zh/modules/dashdot.json b/public/locales/zh/modules/dashdot.json index 20f43d0ef..a7a367991 100644 --- a/public/locales/zh/modules/dashdot.json +++ b/public/locales/zh/modules/dashdot.json @@ -4,9 +4,6 @@ "description": "在Homarr中显示一个外部Dash的图表。", "settings": { "title": "设置Dash小部件", - "dashName": { - "label": "Dash. 姓名" - }, "url": { "label": "Dash. 网址" }, From 7c6ac76ace0f16e13de8de35660bbadde18610b8 Mon Sep 17 00:00:00 2001 From: Larvey Date: Tue, 25 Apr 2023 14:02:45 -0400 Subject: [PATCH 4/4] Remove unneeded ternary Didn't know this was possible. :D --- src/widgets/dashDot/DashDotTile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/dashDot/DashDotTile.tsx b/src/widgets/dashDot/DashDotTile.tsx index de21c8f16..b3fbd76db 100644 --- a/src/widgets/dashDot/DashDotTile.tsx +++ b/src/widgets/dashDot/DashDotTile.tsx @@ -185,7 +185,7 @@ function DashDotTile({ widget }: DashDotTileProps) { return ( - {dashName ? dashName : t('card.title')} + {dashName || t('card.title')} {!info &&

{t('card.errors.noInformation')}

} {info && (