{r.name}
- {r.description &&
+ {r.description &&
{searchDescriptions && r.priority < 2 ? highlightText(r.description) : r.description}
From 11d03be4decacf4bbf9719768621e143f2f6fb57 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Mon, 30 Jan 2023 23:38:37 -0800
Subject: [PATCH 123/198] Use configured search provider, allow disable
internet search
---
public/locales/en/common.json | 2 +-
src/components/quicklaunch.jsx | 28 ++++++++++++------------
src/components/widgets/search/search.jsx | 4 ++--
src/pages/index.jsx | 7 ++++++
4 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index f2e09f58..fda37272 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -283,7 +283,7 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "searchGoogle": "Search Google"
+ "search": "Search"
},
"wmo": {
"0-day": "Sunny",
diff --git a/src/components/quicklaunch.jsx b/src/components/quicklaunch.jsx
index b7dbba45..877b98e5 100644
--- a/src/components/quicklaunch.jsx
+++ b/src/components/quicklaunch.jsx
@@ -6,7 +6,7 @@ import ResolvedIcon from "./resolvedicon";
import { SettingsContext } from "utils/contexts/settings";
-export default function QuickLaunch({servicesAndBookmarks, searchString, setSearchString, isOpen, close, searchDescriptions}) {
+export default function QuickLaunch({servicesAndBookmarks, searchString, setSearchString, isOpen, close, searchDescriptions, searchProvider}) {
const { t } = useTranslation();
const { settings } = useContext(SettingsContext);
@@ -76,15 +76,15 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
if (searchDescriptions) {
newResults = newResults.sort((a, b) => b.priority - a.priority);
}
- newResults.push(
- {
- name: searchString,
- href: `http://google.com/search?q=${searchString}`,
- description: t("quicklaunch.searchGoogle"),
- type: 'service',
- weight: 1
- }
- )
+ if (searchProvider) {
+ newResults.push(
+ {
+ href: searchProvider.url + encodeURIComponent(searchString),
+ name: `${searchProvider.name} ${t("quicklaunch.search")} `,
+ type: 'search',
+ }
+ )
+ }
setResults(newResults);
@@ -92,7 +92,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
setCurrentItemIndex(0);
}
}
- }, [searchString, servicesAndBookmarks, searchDescriptions, t]);
+ }, [searchString, servicesAndBookmarks, searchDescriptions, searchProvider, t]);
const [hidden, setHidden] = useState(true);
@@ -145,10 +145,10 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
i === currentItemIndex && "bg-theme-300/50 dark:bg-theme-700/50",
)} onClick={handleItemClick}>
-
+ {(r.icon || r.abbr) &&
{r.icon && }
{r.abbr && r.abbr}
-
+
}
{r.name}
{r.description &&
@@ -158,7 +158,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
}
-
{r.type === 'service' ? t("quicklaunch.service") : t("quicklaunch.bookmark")}
+
{t(`quicklaunch.${r.type ? r.type.toLowerCase() : 'bookmark'}`)}
))}
diff --git a/src/components/widgets/search/search.jsx b/src/components/widgets/search/search.jsx
index 11cd7e60..dfb18367 100644
--- a/src/components/widgets/search/search.jsx
+++ b/src/components/widgets/search/search.jsx
@@ -3,7 +3,7 @@ import { useTranslation } from "next-i18next";
import { FiSearch } from "react-icons/fi";
import { SiDuckduckgo, SiMicrosoftbing, SiGoogle, SiBaidu, SiBrave } from "react-icons/si";
-const providers = {
+export const searchProviders = {
google: {
name: "Google",
url: "https://www.google.com/search?q=",
@@ -39,7 +39,7 @@ const providers = {
export default function Search({ options }) {
const { t } = useTranslation();
- const provider = providers[options.provider];
+ const provider = searchProviders[options.provider];
const [query, setQuery] = useState("");
if (!provider) {
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index b6a1881a..7db02ef4 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -22,6 +22,7 @@ import { bookmarksResponse, servicesResponse, widgetsResponse } from "utils/conf
import ErrorBoundary from "components/errorboundry";
import themes from "utils/styles/themes";
import QuickLaunch from "components/quicklaunch";
+import { searchProviders } from "components/widgets/search/search";
const ThemeToggle = dynamic(() => import("components/toggles/theme"), {
ssr: false,
@@ -193,6 +194,11 @@ function Home({ initialSettings }) {
const [searching, setSearching] = useState(false);
const [searchString, setSearchString] = useState("");
+ let searchProvider = null;
+ const searchWidget = Object.values(widgets).find(w => w.type === "search");
+ if (searchWidget) {
+ searchProvider = searchProviders[searchWidget.options?.provider];
+ }
useEffect(() => {
function handleKeyDown(e) {
@@ -251,6 +257,7 @@ function Home({ initialSettings }) {
isOpen={searching}
close={setSearching}
searchDescriptions={settings.quicklaunch?.searchDescriptions}
+ searchProvider={settings.quicklaunch?.hideInternetSearch ? null : searchProvider}
/>
{widgets && (
<>
From 2fae3243a7470fa5c18dad402c20e803da230af5 Mon Sep 17 00:00:00 2001
From: Nonoss117
Date: Sun, 29 Jan 2023 18:04:41 +0000
Subject: [PATCH 124/198] Translated using Weblate (French)
Currently translated at 100.0% (309 of 309 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/fr/
---
public/locales/fr/common.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json
index f25bd9a0..8b56bad6 100644
--- a/public/locales/fr/common.json
+++ b/public/locales/fr/common.json
@@ -432,9 +432,9 @@
"memory_usage": "Mémoire"
},
"immich": {
- "users": "Users",
+ "users": "Utilisateurs",
"photos": "Photos",
- "videos": "Videos",
- "storage": "Storage"
+ "videos": "Vidéos",
+ "storage": "Stockage"
}
}
From 3194e5af85dd06af0024a3f647eec5504171cf27 Mon Sep 17 00:00:00 2001
From: achao1m5 <979288551@qq.com>
Date: Mon, 30 Jan 2023 10:09:22 +0000
Subject: [PATCH 125/198] Translated using Weblate (Chinese (Simplified))
Currently translated at 62.7% (194 of 309 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/zh_Hans/
---
public/locales/zh-CN/common.json | 48 ++++++++++++++++----------------
1 file changed, 24 insertions(+), 24 deletions(-)
diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json
index 008d09b4..3ce73b3f 100644
--- a/public/locales/zh-CN/common.json
+++ b/public/locales/zh-CN/common.json
@@ -3,10 +3,10 @@
"missing_type": "缺少小部件类型:{{type}}",
"api_error": "API错误",
"status": "状态",
- "information": "Information",
+ "information": "信息",
"url": "URL",
- "raw_error": "Raw Error",
- "response_data": "Response Data"
+ "raw_error": "原始错误",
+ "response_data": "返回数据"
},
"search": {
"placeholder": "搜索…"
@@ -24,8 +24,8 @@
"mem": "内存",
"cpu": "处理器",
"offline": "离线",
- "error": "Error",
- "unknown": "Unknown"
+ "error": "错误",
+ "unknown": "未知"
},
"emby": {
"playing": "播放中",
@@ -332,7 +332,7 @@
"hd": "HD"
},
"ping": {
- "error": "Error",
+ "error": "错误",
"ping": "Ping"
},
"scrutiny": {
@@ -345,22 +345,22 @@
"total": "Total"
},
"deluge": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
+ "download": "下载",
+ "upload": "上传",
+ "leech": "下载中",
+ "seed": "做种"
},
"flood": {
- "leech": "Leech",
- "download": "Download",
- "upload": "Upload",
- "seed": "Seed"
+ "leech": "下载中",
+ "download": "下载",
+ "upload": "上传",
+ "seed": "做种"
},
"tdarr": {
"saved": "Saved",
- "queue": "Queue",
+ "queue": "队列",
"processed": "Processed",
- "errored": "Errored"
+ "errored": "出错"
},
"miniflux": {
"read": "Read",
@@ -376,16 +376,16 @@
},
"omada": {
"connectedAp": "Connected APs",
- "activeUser": "Active devices",
- "alerts": "Alerts",
- "connectedGateway": "Connected gateways",
- "connectedSwitches": "Connected switches"
+ "activeUser": "活跃设备",
+ "alerts": "警报",
+ "connectedGateway": "已连接网关",
+ "connectedSwitches": "已连接开关"
},
"downloadstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
+ "download": "下载",
+ "upload": "上传",
+ "leech": "下载中",
+ "seed": "做种"
},
"mikrotik": {
"cpuLoad": "CPU Load",
From c2e52f8821b47508bca837ada95eb95c55617017 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 126/198] Translated using Weblate (German)
Currently translated at 73.5% (228 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/de/
---
public/locales/de/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/de/common.json b/public/locales/de/common.json
index afdf62e0..5ff63fcd 100644
--- a/public/locales/de/common.json
+++ b/public/locales/de/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Lesezeichen",
- "service": "Dienst"
+ "service": "Dienst",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 908ee43375f51cfd7b03e547c494b7ba72c5eced Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 127/198] Translated using Weblate (Spanish)
Currently translated at 98.3% (305 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/es/
---
public/locales/es/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/es/common.json b/public/locales/es/common.json
index f80f8f6c..3df60038 100644
--- a/public/locales/es/common.json
+++ b/public/locales/es/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Marcadores",
- "service": "Servicio"
+ "service": "Servicio",
+ "search": "Search"
},
"homebridge": {
"available_update": "Sistema",
From f1aa9444c100e6b784d5745c0d4a4d5f60368fa9 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 128/198] Translated using Weblate (French)
Currently translated at 99.6% (309 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/fr/
---
public/locales/fr/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json
index 8b56bad6..1aac8870 100644
--- a/public/locales/fr/common.json
+++ b/public/locales/fr/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Signet",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "Système",
From 66620c5d42f49df373d61343aeff9ee51369bd1b Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 129/198] Translated using Weblate (Portuguese)
Currently translated at 82.5% (256 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pt/
---
public/locales/pt/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json
index a61169f5..c8cbd602 100644
--- a/public/locales/pt/common.json
+++ b/public/locales/pt/common.json
@@ -292,7 +292,8 @@
},
"quicklaunch": {
"bookmark": "Marcador",
- "service": "Serviço"
+ "service": "Serviço",
+ "search": "Search"
},
"homebridge": {
"available_update": "Sistema",
From 4e47b19fb90086813efa23a6904407861c373f08 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 130/198] Translated using Weblate (Russian)
Currently translated at 15.4% (48 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ru/
---
public/locales/ru/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json
index c52e101f..c6927b05 100644
--- a/public/locales/ru/common.json
+++ b/public/locales/ru/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 50b435b7e384f042766fa07f796ee318336d3c73 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 131/198] Translated using Weblate (Chinese (Simplified))
Currently translated at 62.5% (194 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/zh_Hans/
---
public/locales/zh-CN/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json
index 3ce73b3f..d9a70903 100644
--- a/public/locales/zh-CN/common.json
+++ b/public/locales/zh-CN/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "书签",
- "service": "服务"
+ "service": "服务",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From cacbe6d17b0f3f667d6a6cad6dc4357fa41a5472 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 132/198] Translated using Weblate (Italian)
Currently translated at 92.9% (288 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/it/
---
public/locales/it/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/it/common.json b/public/locales/it/common.json
index f793bf06..6b161dc6 100644
--- a/public/locales/it/common.json
+++ b/public/locales/it/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Segnalibro",
- "service": "Servizio"
+ "service": "Servizio",
+ "search": "Search"
},
"homebridge": {
"available_update": "Sistema",
From ab436152dd11cf276f95bef9d74c1c3d75198e5e Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 133/198] =?UTF-8?q?Translated=20using=20Weblate=20(Norwegi?=
=?UTF-8?q?an=20Bokm=C3=A5l)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Currently translated at 25.4% (79 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/nb_NO/
---
public/locales/nb-NO/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/nb-NO/common.json b/public/locales/nb-NO/common.json
index cdd61403..c059e046 100644
--- a/public/locales/nb-NO/common.json
+++ b/public/locales/nb-NO/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 9699481b9a867c2f1b5b8f29775432a5218809ed Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:33 +0000
Subject: [PATCH 134/198] Translated using Weblate (Vietnamese)
Currently translated at 14.1% (44 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/vi/
---
public/locales/vi/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/vi/common.json b/public/locales/vi/common.json
index 97a458f7..c3345496 100644
--- a/public/locales/vi/common.json
+++ b/public/locales/vi/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 98b4280a024538ed38c045dcceafa569d63ae276 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 135/198] Translated using Weblate (Dutch)
Currently translated at 28.3% (88 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/nl/
---
public/locales/nl/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json
index 53a6483a..9d9f6d35 100644
--- a/public/locales/nl/common.json
+++ b/public/locales/nl/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From f406af59bcb44ffb583179b9ee46dfc53d34ea2c Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:33 +0000
Subject: [PATCH 136/198] Translated using Weblate (Chinese (Traditional))
Currently translated at 92.9% (288 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/zh_Hant/
---
public/locales/zh-Hant/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/zh-Hant/common.json b/public/locales/zh-Hant/common.json
index 7e873813..6107ca98 100644
--- a/public/locales/zh-Hant/common.json
+++ b/public/locales/zh-Hant/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "書籤",
- "service": "服務"
+ "service": "服務",
+ "search": "Search"
},
"homebridge": {
"available_update": "系統",
From 1805b43816b8bc67ff9a5bccba357642ce85540b Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 137/198] Translated using Weblate (Catalan)
Currently translated at 83.2% (258 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ca/
---
public/locales/ca/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ca/common.json b/public/locales/ca/common.json
index 31abc3d2..79a6e6cf 100644
--- a/public/locales/ca/common.json
+++ b/public/locales/ca/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Marcador",
- "service": "Servei"
+ "service": "Servei",
+ "search": "Search"
},
"homebridge": {
"available_update": "Sistema",
From 1785206df0a5c5260a331b4a93f656ce4f1cb0c9 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 138/198] Translated using Weblate (Polish)
Currently translated at 91.9% (285 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pl/
---
public/locales/pl/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/pl/common.json b/public/locales/pl/common.json
index 44d3f316..0164ca12 100644
--- a/public/locales/pl/common.json
+++ b/public/locales/pl/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Zakładka",
- "service": "Usługi"
+ "service": "Usługi",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 5cf95eb383dff04469f602a0c02bfc2291a2c298 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 139/198] Translated using Weblate (Swedish)
Currently translated at 42.5% (132 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/sv/
---
public/locales/sv/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/sv/common.json b/public/locales/sv/common.json
index 596e9e93..bba6d862 100644
--- a/public/locales/sv/common.json
+++ b/public/locales/sv/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 9076de919bdc789fd091f523997acfbfb8d70fea Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 140/198] Translated using Weblate (Croatian)
Currently translated at 92.2% (286 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/hr/
---
public/locales/hr/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/hr/common.json b/public/locales/hr/common.json
index 7f02d8aa..e970c8c1 100644
--- a/public/locales/hr/common.json
+++ b/public/locales/hr/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Straničnik",
- "service": "Usluga"
+ "service": "Usluga",
+ "search": "Search"
},
"homebridge": {
"available_update": "Sustav",
From fe148d4cd01185fd5ccfc18cf93e33635e7b3bc8 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 141/198] Translated using Weblate (Hungarian)
Currently translated at 34.8% (108 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/hu/
---
public/locales/hu/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/hu/common.json b/public/locales/hu/common.json
index 19dd6384..85719974 100644
--- a/public/locales/hu/common.json
+++ b/public/locales/hu/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 4581833ed49072ea83dcc6964a1687292e6c2606 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 142/198] Translated using Weblate (Hebrew)
Currently translated at 32.5% (101 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/he/
---
public/locales/he/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/he/common.json b/public/locales/he/common.json
index db63fedb..93ce7c2b 100644
--- a/public/locales/he/common.json
+++ b/public/locales/he/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 9550071dab365b5563364e48e202ed8db745012d Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 143/198] Translated using Weblate (Romanian)
Currently translated at 44.1% (137 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ro/
---
public/locales/ro/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ro/common.json b/public/locales/ro/common.json
index 5e9e47d3..66223259 100644
--- a/public/locales/ro/common.json
+++ b/public/locales/ro/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"update_available": "Update Available",
From fb5ebb0ca007d0529825f38e625296ff23845ccd Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 144/198] Translated using Weblate (Portuguese (Brazil))
Currently translated at 37.7% (117 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pt_BR/
---
public/locales/pt-BR/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/pt-BR/common.json b/public/locales/pt-BR/common.json
index 6b01edf7..79e0ec1b 100644
--- a/public/locales/pt-BR/common.json
+++ b/public/locales/pt-BR/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 96b00f92078b3b220eea2909aebc955879a67081 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:33 +0000
Subject: [PATCH 145/198] Translated using Weblate (Yue)
Currently translated at 38.0% (118 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/yue/
---
public/locales/yue/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/yue/common.json b/public/locales/yue/common.json
index 112699ee..23737b3d 100644
--- a/public/locales/yue/common.json
+++ b/public/locales/yue/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From a9e70b815dd2e0edce4651f90f033c0b4ec4c677 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 146/198] Translated using Weblate (Finnish)
Currently translated at 57.4% (178 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/fi/
---
public/locales/fi/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/fi/common.json b/public/locales/fi/common.json
index 07448c8b..30f82982 100644
--- a/public/locales/fi/common.json
+++ b/public/locales/fi/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From eb679d615b8e64f5094c6a7081795797da0f0bf3 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 147/198] Translated using Weblate (Telugu)
Currently translated at 70.0% (217 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/te/
---
public/locales/te/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/te/common.json b/public/locales/te/common.json
index 1e040d98..29eeee99 100644
--- a/public/locales/te/common.json
+++ b/public/locales/te/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "బుక్మార్క్",
- "service": "సేవ"
+ "service": "సేవ",
+ "search": "Search"
},
"homebridge": {
"available_update": "వ్యవస్థ",
From e4724690b2e1109b443cad08db2f43b701ab2cdf Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 148/198] Translated using Weblate (Bulgarian)
Currently translated at 14.8% (46 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/bg/
---
public/locales/bg/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/bg/common.json b/public/locales/bg/common.json
index e7fc6e97..d11b4715 100644
--- a/public/locales/bg/common.json
+++ b/public/locales/bg/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From c693a5e6906c3013ddd94e1bc345a0831cc90097 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:33 +0000
Subject: [PATCH 149/198] Translated using Weblate (Turkish)
Currently translated at 74.5% (231 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/tr/
---
public/locales/tr/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/tr/common.json b/public/locales/tr/common.json
index b38ec04e..6d39c1d5 100644
--- a/public/locales/tr/common.json
+++ b/public/locales/tr/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Yer İmi",
- "service": "Hizmet"
+ "service": "Hizmet",
+ "search": "Search"
},
"homebridge": {
"available_update": "Sistem",
From c29b174dcf68395366ddbd4f64dbdd32c81ae545 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 150/198] Translated using Weblate (Serbian)
Currently translated at 2.9% (9 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/sr/
---
public/locales/sr/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/sr/common.json b/public/locales/sr/common.json
index 9c39d9c2..b5aaa0e0 100644
--- a/public/locales/sr/common.json
+++ b/public/locales/sr/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"homebridge": {
"available_update": "System",
From 579cac73e0784fafbf3e96dc4113e60d4392c188 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 151/198] Translated using Weblate (Arabic)
Currently translated at 84.5% (262 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ar/
---
public/locales/ar/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json
index f0a8711d..37c22c1f 100644
--- a/public/locales/ar/common.json
+++ b/public/locales/ar/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "مفضلة",
- "service": "خدمة"
+ "service": "خدمة",
+ "search": "Search"
},
"homebridge": {
"available_update": "نظام",
From bca597febecc966f98a3d84d87ad368d545c2d21 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 152/198] Translated using Weblate (Czech)
Currently translated at 72.5% (225 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/cs/
---
public/locales/cs/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/cs/common.json b/public/locales/cs/common.json
index 167600a2..4b189727 100644
--- a/public/locales/cs/common.json
+++ b/public/locales/cs/common.json
@@ -291,7 +291,8 @@
},
"quicklaunch": {
"bookmark": "Záložka",
- "service": "Služba"
+ "service": "Služba",
+ "search": "Search"
},
"homebridge": {
"update_available": "Dostupná aktualizace",
From 56d9ec64fd51a153d1e4bbc08eaacbc293629f31 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 153/198] Translated using Weblate (Danish)
Currently translated at 63.8% (198 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/da/
---
public/locales/da/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/da/common.json b/public/locales/da/common.json
index 6ce7c5a2..37e9fd2e 100644
--- a/public/locales/da/common.json
+++ b/public/locales/da/common.json
@@ -287,7 +287,8 @@
},
"quicklaunch": {
"bookmark": "Bogmærker",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"watchtower": {
"containers_scanned": "Scannet",
From de70ce620e50dac217a246047f87c2f5d645ce65 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:32 +0000
Subject: [PATCH 154/198] Translated using Weblate (Malay)
Currently translated at 81.6% (253 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ms/
---
public/locales/ms/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ms/common.json b/public/locales/ms/common.json
index 527d77d2..d67d005d 100644
--- a/public/locales/ms/common.json
+++ b/public/locales/ms/common.json
@@ -62,7 +62,8 @@
},
"quicklaunch": {
"bookmark": "Tandabuku",
- "service": "Servis"
+ "service": "Servis",
+ "search": "Search"
},
"wmo": {
"0-day": "Terik",
From e3e5c0274b84b0d1e85c3551e1d7e0dee192c3d0 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 155/198] Translated using Weblate (Hindi)
Currently translated at 2.9% (9 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/hi/
---
public/locales/hi/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/hi/common.json b/public/locales/hi/common.json
index b78a2acd..5a8bbf84 100644
--- a/public/locales/hi/common.json
+++ b/public/locales/hi/common.json
@@ -225,7 +225,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"wmo": {
"0-day": "Sunny",
From 6a0a5ff1f77186c0d613d2a303382577479de65b Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:30 +0000
Subject: [PATCH 156/198] Translated using Weblate (Esperanto)
Currently translated at 33.2% (103 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/eo/
---
public/locales/eo/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/eo/common.json b/public/locales/eo/common.json
index 70260f7a..db7b6e94 100644
--- a/public/locales/eo/common.json
+++ b/public/locales/eo/common.json
@@ -235,7 +235,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Servo"
+ "service": "Servo",
+ "search": "Search"
},
"wmo": {
"0-day": "Suna",
From e079587d896e9febfa777c96a640c380355c2a3c Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:33 +0000
Subject: [PATCH 157/198] Translated using Weblate (Ukrainian)
Currently translated at 97.0% (301 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/uk/
---
public/locales/uk/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/uk/common.json b/public/locales/uk/common.json
index 5cf01ce0..87421288 100644
--- a/public/locales/uk/common.json
+++ b/public/locales/uk/common.json
@@ -341,7 +341,8 @@
},
"quicklaunch": {
"bookmark": "Закладка",
- "service": "Сервіс"
+ "service": "Сервіс",
+ "search": "Search"
},
"homebridge": {
"available_update": "Система",
From 7b12c9e24abd370effccea9c61a9136cb7fb262c Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 158/198] Translated using Weblate (Japanese)
Currently translated at 4.8% (15 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ja/
---
public/locales/ja/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json
index df32660e..677045d5 100644
--- a/public/locales/ja/common.json
+++ b/public/locales/ja/common.json
@@ -279,7 +279,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"wmo": {
"0-day": "Sunny",
From 9b8e01971f9491b965c76189dd434219ad619c8b Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 07:54:31 +0000
Subject: [PATCH 159/198] Translated using Weblate (Latvian)
Currently translated at 38.3% (119 of 310 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/lv/
---
public/locales/lv/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/lv/common.json b/public/locales/lv/common.json
index 40e31fe1..b5320c9f 100644
--- a/public/locales/lv/common.json
+++ b/public/locales/lv/common.json
@@ -273,7 +273,8 @@
},
"quicklaunch": {
"bookmark": "Bookmark",
- "service": "Service"
+ "service": "Service",
+ "search": "Search"
},
"wmo": {
"0-day": "Saulains",
From 1f5912c232ffa4318261d92a1d1ea914341ed343 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 31 Jan 2023 00:33:30 -0800
Subject: [PATCH 160/198] Support custom search in quicklaunch web search
---
public/locales/en/common.json | 3 ++-
src/components/quicklaunch.jsx | 2 +-
src/pages/index.jsx | 8 +++++++-
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index fda37272..52db2cb4 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -283,7 +283,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"wmo": {
"0-day": "Sunny",
diff --git a/src/components/quicklaunch.jsx b/src/components/quicklaunch.jsx
index 877b98e5..cc19aaf9 100644
--- a/src/components/quicklaunch.jsx
+++ b/src/components/quicklaunch.jsx
@@ -80,7 +80,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
newResults.push(
{
href: searchProvider.url + encodeURIComponent(searchString),
- name: `${searchProvider.name} ${t("quicklaunch.search")} `,
+ name: `${searchProvider.name ?? t("quicklaunch.custom")} ${t("quicklaunch.search")} `,
type: 'search',
}
)
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 7db02ef4..22b10248 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -197,7 +197,13 @@ function Home({ initialSettings }) {
let searchProvider = null;
const searchWidget = Object.values(widgets).find(w => w.type === "search");
if (searchWidget) {
- searchProvider = searchProviders[searchWidget.options?.provider];
+ if (searchWidget.options?.provider === 'custom') {
+ searchProvider = {
+ url: searchWidget.options.url
+ }
+ } else {
+ searchProvider = searchProviders[searchWidget.options?.provider];
+ }
}
useEffect(() => {
From 8f5dcd5175958e3d7735d696dbf6e71188912370 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 161/198] Translated using Weblate (German)
Currently translated at 73.3% (228 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/de/
---
public/locales/de/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/de/common.json b/public/locales/de/common.json
index 5ff63fcd..8c4907dc 100644
--- a/public/locales/de/common.json
+++ b/public/locales/de/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Lesezeichen",
"service": "Dienst",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From b31e64d1dca15b6dd8a8686aa1400185cbb3111f Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 162/198] Translated using Weblate (Spanish)
Currently translated at 98.0% (305 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/es/
---
public/locales/es/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/es/common.json b/public/locales/es/common.json
index 3df60038..d0540c10 100644
--- a/public/locales/es/common.json
+++ b/public/locales/es/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Marcadores",
"service": "Servicio",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "Sistema",
From 38d1ecc7c0eb47571f59157905f5010668153be3 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 163/198] Translated using Weblate (French)
Currently translated at 99.3% (309 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/fr/
---
public/locales/fr/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json
index 1aac8870..8384535c 100644
--- a/public/locales/fr/common.json
+++ b/public/locales/fr/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Signet",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "Système",
From 53743119b8367621db77b9a5317d30a11f50cf93 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:10 +0000
Subject: [PATCH 164/198] Translated using Weblate (Portuguese)
Currently translated at 82.3% (256 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pt/
---
public/locales/pt/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json
index c8cbd602..947d97c7 100644
--- a/public/locales/pt/common.json
+++ b/public/locales/pt/common.json
@@ -293,7 +293,8 @@
"quicklaunch": {
"bookmark": "Marcador",
"service": "Serviço",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "Sistema",
From d38948bb6a920cd5d11329f39eb3a558db72de02 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:06 +0000
Subject: [PATCH 165/198] Translated using Weblate (Russian)
Currently translated at 15.4% (48 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ru/
---
public/locales/ru/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json
index c6927b05..bc58a6d3 100644
--- a/public/locales/ru/common.json
+++ b/public/locales/ru/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 4e0a1fdcdd638f60e683dc5477db96833b08d940 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:07 +0000
Subject: [PATCH 166/198] Translated using Weblate (Chinese (Simplified))
Currently translated at 62.3% (194 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/zh_Hans/
---
public/locales/zh-CN/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json
index d9a70903..d98ce40f 100644
--- a/public/locales/zh-CN/common.json
+++ b/public/locales/zh-CN/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "书签",
"service": "服务",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 2951574caad34cf1ccdfa476dfaabd2ba98f3d56 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 167/198] Translated using Weblate (Italian)
Currently translated at 92.6% (288 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/it/
---
public/locales/it/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/it/common.json b/public/locales/it/common.json
index 6b161dc6..27728bd1 100644
--- a/public/locales/it/common.json
+++ b/public/locales/it/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Segnalibro",
"service": "Servizio",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "Sistema",
From 10a4cb85527a2da1300bf62951745b92b2381555 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 168/198] =?UTF-8?q?Translated=20using=20Weblate=20(Norwegi?=
=?UTF-8?q?an=20Bokm=C3=A5l)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Currently translated at 25.4% (79 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/nb_NO/
---
public/locales/nb-NO/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/nb-NO/common.json b/public/locales/nb-NO/common.json
index c059e046..20b97118 100644
--- a/public/locales/nb-NO/common.json
+++ b/public/locales/nb-NO/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 10fb1be6413257dd4d1833491a8591fa06b3bff4 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:10 +0000
Subject: [PATCH 169/198] Translated using Weblate (Vietnamese)
Currently translated at 14.1% (44 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/vi/
---
public/locales/vi/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/vi/common.json b/public/locales/vi/common.json
index c3345496..e999762b 100644
--- a/public/locales/vi/common.json
+++ b/public/locales/vi/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 6d779355b3ee951a14b64f82363e099a45378302 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:10 +0000
Subject: [PATCH 170/198] Translated using Weblate (Dutch)
Currently translated at 28.2% (88 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/nl/
---
public/locales/nl/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json
index 9d9f6d35..ad7809a8 100644
--- a/public/locales/nl/common.json
+++ b/public/locales/nl/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 2e43b93eb69f1c46a4365a0272b16c884cab8d5c Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:10 +0000
Subject: [PATCH 171/198] Translated using Weblate (Chinese (Traditional))
Currently translated at 92.6% (288 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/zh_Hant/
---
public/locales/zh-Hant/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/zh-Hant/common.json b/public/locales/zh-Hant/common.json
index 6107ca98..a296140a 100644
--- a/public/locales/zh-Hant/common.json
+++ b/public/locales/zh-Hant/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "書籤",
"service": "服務",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "系統",
From c52bc571900aa1d81ca889c8cc43a867365c5793 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 172/198] Translated using Weblate (Catalan)
Currently translated at 82.9% (258 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ca/
---
public/locales/ca/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ca/common.json b/public/locales/ca/common.json
index 79a6e6cf..8ac03b1c 100644
--- a/public/locales/ca/common.json
+++ b/public/locales/ca/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Marcador",
"service": "Servei",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "Sistema",
From 2356745e15963c8e0e85a4e4d829bc2579267ffb Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:10 +0000
Subject: [PATCH 173/198] Translated using Weblate (Polish)
Currently translated at 91.6% (285 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pl/
---
public/locales/pl/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/pl/common.json b/public/locales/pl/common.json
index 0164ca12..0d64fd7a 100644
--- a/public/locales/pl/common.json
+++ b/public/locales/pl/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Zakładka",
"service": "Usługi",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From c648e106db1244cad93d3910c39c8e9cff1f3977 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:10 +0000
Subject: [PATCH 174/198] Translated using Weblate (Swedish)
Currently translated at 42.4% (132 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/sv/
---
public/locales/sv/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/sv/common.json b/public/locales/sv/common.json
index bba6d862..f2b67f73 100644
--- a/public/locales/sv/common.json
+++ b/public/locales/sv/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 329985927bd936a90befbf67f8f8701c62d365f2 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 175/198] Translated using Weblate (Croatian)
Currently translated at 91.9% (286 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/hr/
---
public/locales/hr/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/hr/common.json b/public/locales/hr/common.json
index e970c8c1..05688a11 100644
--- a/public/locales/hr/common.json
+++ b/public/locales/hr/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Straničnik",
"service": "Usluga",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "Sustav",
From 6e5efc6804e764161bea0961290f68227eb9daec Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 176/198] Translated using Weblate (Hungarian)
Currently translated at 34.7% (108 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/hu/
---
public/locales/hu/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/hu/common.json b/public/locales/hu/common.json
index 85719974..495423f2 100644
--- a/public/locales/hu/common.json
+++ b/public/locales/hu/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 158dcf00986eb7efded8ded688ea596e767fafef Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 177/198] Translated using Weblate (Hebrew)
Currently translated at 32.4% (101 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/he/
---
public/locales/he/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/he/common.json b/public/locales/he/common.json
index 93ce7c2b..b097f701 100644
--- a/public/locales/he/common.json
+++ b/public/locales/he/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From f7520f2fdf3dc3c7fc4e9ea2ebe61290943ba129 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:10 +0000
Subject: [PATCH 178/198] Translated using Weblate (Romanian)
Currently translated at 44.0% (137 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ro/
---
public/locales/ro/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ro/common.json b/public/locales/ro/common.json
index 66223259..f51bd495 100644
--- a/public/locales/ro/common.json
+++ b/public/locales/ro/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"update_available": "Update Available",
From bddbe890f85a2c048f7376225d10a8dce6b36b51 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:07 +0000
Subject: [PATCH 179/198] Translated using Weblate (Portuguese (Brazil))
Currently translated at 37.6% (117 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pt_BR/
---
public/locales/pt-BR/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/pt-BR/common.json b/public/locales/pt-BR/common.json
index 79e0ec1b..e20ebf03 100644
--- a/public/locales/pt-BR/common.json
+++ b/public/locales/pt-BR/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 3034b7877281e2c7578582b9a652c4c9af217ff2 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:07 +0000
Subject: [PATCH 180/198] Translated using Weblate (Yue)
Currently translated at 37.9% (118 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/yue/
---
public/locales/yue/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/yue/common.json b/public/locales/yue/common.json
index 23737b3d..a1209b83 100644
--- a/public/locales/yue/common.json
+++ b/public/locales/yue/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 076c2fbb0de857916cfcfbc8c155612960c6a414 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:07 +0000
Subject: [PATCH 181/198] Translated using Weblate (Finnish)
Currently translated at 57.2% (178 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/fi/
---
public/locales/fi/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/fi/common.json b/public/locales/fi/common.json
index 30f82982..f0d3bd8c 100644
--- a/public/locales/fi/common.json
+++ b/public/locales/fi/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 3c06637dd76e79352af49f6d8ea799370b70cded Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 182/198] Translated using Weblate (Telugu)
Currently translated at 69.7% (217 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/te/
---
public/locales/te/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/te/common.json b/public/locales/te/common.json
index 29eeee99..6caf1553 100644
--- a/public/locales/te/common.json
+++ b/public/locales/te/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "బుక్మార్క్",
"service": "సేవ",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "వ్యవస్థ",
From 4837f26aa14e476df196cc609a50f4ffe70848a0 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 183/198] Translated using Weblate (Bulgarian)
Currently translated at 14.7% (46 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/bg/
---
public/locales/bg/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/bg/common.json b/public/locales/bg/common.json
index d11b4715..8c6373ce 100644
--- a/public/locales/bg/common.json
+++ b/public/locales/bg/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 98ca15c9626652740d0f16b2ebd3568d3dc42ef5 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 184/198] Translated using Weblate (Turkish)
Currently translated at 74.2% (231 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/tr/
---
public/locales/tr/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/tr/common.json b/public/locales/tr/common.json
index 6d39c1d5..a93a0f8f 100644
--- a/public/locales/tr/common.json
+++ b/public/locales/tr/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Yer İmi",
"service": "Hizmet",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "Sistem",
From 69a86bc5dc0ee50d7d59865cff30a545419da805 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 185/198] Translated using Weblate (Serbian)
Currently translated at 2.8% (9 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/sr/
---
public/locales/sr/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/sr/common.json b/public/locales/sr/common.json
index b5aaa0e0..50430cfc 100644
--- a/public/locales/sr/common.json
+++ b/public/locales/sr/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "System",
From 4af1f1bb7db1f33977c73f2e47bdf39d27e2ab63 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 186/198] Translated using Weblate (Arabic)
Currently translated at 84.2% (262 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ar/
---
public/locales/ar/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json
index 37c22c1f..238f8b62 100644
--- a/public/locales/ar/common.json
+++ b/public/locales/ar/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "مفضلة",
"service": "خدمة",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "نظام",
From 7ac98d010cedc26e5d2c5c9a50750b98a7dc115a Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 187/198] Translated using Weblate (Czech)
Currently translated at 72.3% (225 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/cs/
---
public/locales/cs/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/cs/common.json b/public/locales/cs/common.json
index 4b189727..fc3e5429 100644
--- a/public/locales/cs/common.json
+++ b/public/locales/cs/common.json
@@ -292,7 +292,8 @@
"quicklaunch": {
"bookmark": "Záložka",
"service": "Služba",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"update_available": "Dostupná aktualizace",
From 7ca1839287027ed1c6f4fc07a16b0a06340bf1b0 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 188/198] Translated using Weblate (Danish)
Currently translated at 63.6% (198 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/da/
---
public/locales/da/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/da/common.json b/public/locales/da/common.json
index 37e9fd2e..d9343153 100644
--- a/public/locales/da/common.json
+++ b/public/locales/da/common.json
@@ -288,7 +288,8 @@
"quicklaunch": {
"bookmark": "Bogmærker",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"watchtower": {
"containers_scanned": "Scannet",
From fe128a976fa3bd5ab36565a51fb6f7d22b4653ec Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 189/198] Translated using Weblate (Malay)
Currently translated at 81.3% (253 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ms/
---
public/locales/ms/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ms/common.json b/public/locales/ms/common.json
index d67d005d..61bb73ef 100644
--- a/public/locales/ms/common.json
+++ b/public/locales/ms/common.json
@@ -63,7 +63,8 @@
"quicklaunch": {
"bookmark": "Tandabuku",
"service": "Servis",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"wmo": {
"0-day": "Terik",
From 348833e682a539e5e18da92c49187de570e65aee Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 190/198] Translated using Weblate (Hindi)
Currently translated at 2.8% (9 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/hi/
---
public/locales/hi/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/hi/common.json b/public/locales/hi/common.json
index 5a8bbf84..dc9b1ba4 100644
--- a/public/locales/hi/common.json
+++ b/public/locales/hi/common.json
@@ -226,7 +226,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"wmo": {
"0-day": "Sunny",
From 711eedfc84fad148d1f67a256b155f0c5d5ffb3e Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 191/198] Translated using Weblate (Esperanto)
Currently translated at 33.1% (103 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/eo/
---
public/locales/eo/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/eo/common.json b/public/locales/eo/common.json
index db7b6e94..67a5a403 100644
--- a/public/locales/eo/common.json
+++ b/public/locales/eo/common.json
@@ -236,7 +236,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Servo",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"wmo": {
"0-day": "Suna",
From 3c44e49b76848f1306c1633b10d1d621a61a1756 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 192/198] Translated using Weblate (Ukrainian)
Currently translated at 96.7% (301 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/uk/
---
public/locales/uk/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/uk/common.json b/public/locales/uk/common.json
index 87421288..b22fed8a 100644
--- a/public/locales/uk/common.json
+++ b/public/locales/uk/common.json
@@ -342,7 +342,8 @@
"quicklaunch": {
"bookmark": "Закладка",
"service": "Сервіс",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"homebridge": {
"available_update": "Система",
From 1ccf0b3c7ac8f046096efc4b11483a63aa18d14c Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:08 +0000
Subject: [PATCH 193/198] Translated using Weblate (Japanese)
Currently translated at 4.8% (15 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ja/
---
public/locales/ja/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json
index 677045d5..59b20f87 100644
--- a/public/locales/ja/common.json
+++ b/public/locales/ja/common.json
@@ -280,7 +280,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"wmo": {
"0-day": "Sunny",
From adea9da881f61b1fe1a8b1f05b228248754ad30b Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Tue, 31 Jan 2023 08:34:09 +0000
Subject: [PATCH 194/198] Translated using Weblate (Latvian)
Currently translated at 38.2% (119 of 311 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/lv/
---
public/locales/lv/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/locales/lv/common.json b/public/locales/lv/common.json
index b5320c9f..0a511692 100644
--- a/public/locales/lv/common.json
+++ b/public/locales/lv/common.json
@@ -274,7 +274,8 @@
"quicklaunch": {
"bookmark": "Bookmark",
"service": "Service",
- "search": "Search"
+ "search": "Search",
+ "custom": "Custom"
},
"wmo": {
"0-day": "Saulains",
From 3bc052281232a0e58c4e0d2b93703ac1b444978b Mon Sep 17 00:00:00 2001
From: chain710
Date: Mon, 30 Jan 2023 16:06:56 +0800
Subject: [PATCH 195/198] Support multi search providers
- add `providers` option in search widget, value is array of provider name, like: `[google, bing]`
---
src/components/widgets/search/search.jsx | 126 ++++++++++++++++++++---
1 file changed, 111 insertions(+), 15 deletions(-)
diff --git a/src/components/widgets/search/search.jsx b/src/components/widgets/search/search.jsx
index dfb18367..61b8786d 100644
--- a/src/components/widgets/search/search.jsx
+++ b/src/components/widgets/search/search.jsx
@@ -1,7 +1,8 @@
-import { useState } from "react";
+import { useState, useEffect, Fragment } from "react";
import { useTranslation } from "next-i18next";
import { FiSearch } from "react-icons/fi";
import { SiDuckduckgo, SiMicrosoftbing, SiGoogle, SiBaidu, SiBrave } from "react-icons/si";
+import { Listbox, Transition } from "@headlessui/react";
export const searchProviders = {
google: {
@@ -36,21 +37,59 @@ export const searchProviders = {
},
};
+function classNames(...classes) {
+ return classes.filter(Boolean).join(" ");
+}
+
+function useProviderState() {
+ const key = "search-name";
+
+ const [value, setValue] = useState(providers.google);
+ useEffect(() => {
+ const storedName = localStorage.getItem(key);
+ let storedProvider = null;
+ if (storedName) {
+ storedProvider = Object.values(providers).find((el) => el.name === storedName);
+ if (storedProvider) {
+ setValue(storedProvider);
+ }
+ }
+ }, []);
+
+ return [
+ value,
+ (val) => {
+ setValue(val);
+ localStorage.setItem(key, val.name);
+ },
+ ];
+}
+
+function getAvailableProviderIds(options) {
+ if (options.providers && Array.isArray(options.providers)) {
+ return Object.keys(providers).filter((value) => options.providers.includes(value));
+ }
+ return null;
+}
+
export default function Search({ options }) {
const { t } = useTranslation();
const provider = searchProviders[options.provider];
const [query, setQuery] = useState("");
+ const [selectedProvider, setSelectedProvider] = useProviderState();
- if (!provider) {
+ const availableProviderIds = getAvailableProviderIds(options);
+ if (!provider && !availableProviderIds) {
return null;
}
function handleSubmit(event) {
const q = encodeURIComponent(query);
- if (provider.url) {
- window.open(`${provider.url}${q}`, options.target || "_blank");
+ const url = provider ? provider.url : selectedProvider.url;
+ if (url) {
+ window.open(`${url}${q}`, options.target || "_blank");
} else {
window.open(`${options.url}${q}`, options.target || "_blank");
}
@@ -60,6 +99,73 @@ export default function Search({ options }) {
setQuery("");
}
+ const multiProviders = () => (
+
+
+
+
+ {t("search.search")}
+
+
+
+
+
+
+ {availableProviderIds.map((providerId) => {
+ const p = providers[providerId];
+ return (
+
+ {({ active }) => (
+
+
+
+ )}
+
+ );
+ })}
+
+
+
+
+ );
+
+ const singleProvider = () => (
+
+ );
+
return (
);
}
From 87dbbcb1e05a251842cca813f7c8bc1f5b5fae1f Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Mon, 30 Jan 2023 21:09:15 -0800
Subject: [PATCH 196/198] Refactor multi & single providers & retain `provider`
key only
---
src/components/widgets/search/search.jsx | 178 ++++++++++-------------
1 file changed, 79 insertions(+), 99 deletions(-)
diff --git a/src/components/widgets/search/search.jsx b/src/components/widgets/search/search.jsx
index 61b8786d..0189e809 100644
--- a/src/components/widgets/search/search.jsx
+++ b/src/components/widgets/search/search.jsx
@@ -41,33 +41,12 @@ function classNames(...classes) {
return classes.filter(Boolean).join(" ");
}
-function useProviderState() {
- const key = "search-name";
-
- const [value, setValue] = useState(providers.google);
- useEffect(() => {
- const storedName = localStorage.getItem(key);
- let storedProvider = null;
- if (storedName) {
- storedProvider = Object.values(providers).find((el) => el.name === storedName);
- if (storedProvider) {
- setValue(storedProvider);
- }
- }
- }, []);
-
- return [
- value,
- (val) => {
- setValue(val);
- localStorage.setItem(key, val.name);
- },
- ];
-}
-
function getAvailableProviderIds(options) {
- if (options.providers && Array.isArray(options.providers)) {
- return Object.keys(providers).filter((value) => options.providers.includes(value));
+ if (options.provider && Array.isArray(options.provider)) {
+ return Object.keys(searchProviders).filter((value) => options.provider.includes(value));
+ }
+ if (options.provider && searchProviders[options.provider]) {
+ return [options.provider];
}
return null;
}
@@ -75,19 +54,34 @@ function getAvailableProviderIds(options) {
export default function Search({ options }) {
const { t } = useTranslation();
- const provider = searchProviders[options.provider];
- const [query, setQuery] = useState("");
- const [selectedProvider, setSelectedProvider] = useProviderState();
-
const availableProviderIds = getAvailableProviderIds(options);
- if (!provider && !availableProviderIds) {
+
+ const key = "search-name";
+
+ const [query, setQuery] = useState("");
+ const [selectedProvider, setSelectedProvider] = useState(searchProviders[availableProviderIds[0] ?? searchProviders.google]);
+
+ useEffect(() => {
+ const storedName = localStorage.getItem(key);
+ let storedProvider = null;
+ let storedProviderKey = null;
+ if (storedName) {
+ storedProvider = Object.values(searchProviders).find((el) => el.name === storedName);
+ storedProviderKey = Object.keys(searchProviders).find((pkey) => searchProviders[pkey] === storedProvider);
+ if (storedProvider && availableProviderIds.includes(storedProviderKey)) {
+ setSelectedProvider(storedProvider);
+ }
+ }
+ }, [availableProviderIds]);
+
+ if (!availableProviderIds) {
return null;
}
function handleSubmit(event) {
const q = encodeURIComponent(query);
- const url = provider ? provider.url : selectedProvider.url;
+ const url = { selectedProvider };
if (url) {
window.open(`${url}${q}`, options.target || "_blank");
} else {
@@ -99,72 +93,10 @@ export default function Search({ options }) {
setQuery("");
}
- const multiProviders = () => (
-
-
-
-
- {t("search.search")}
-
-
-
-
-
-
- {availableProviderIds.map((providerId) => {
- const p = providers[providerId];
- return (
-
- {({ active }) => (
-
-
-
- )}
-
- );
- })}
-
-
-
-
- );
-
- const singleProvider = () => (
-
- );
+ const onChangeProvider = (provider) => {
+ setSelectedProvider(provider);
+ localStorage.setItem(key, provider.name);
+ }
return (
);
}
From 7a5a3a6608dfc0e55f7468f23e81827e063a6726 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 31 Jan 2023 00:25:23 -0800
Subject: [PATCH 197/198] Compatible with quicklaunch internet search
---
src/components/widgets/search/search.jsx | 33 +++++++++++++-----------
src/pages/index.jsx | 17 +++++++-----
2 files changed, 29 insertions(+), 21 deletions(-)
diff --git a/src/components/widgets/search/search.jsx b/src/components/widgets/search/search.jsx
index 0189e809..b04f0e9f 100644
--- a/src/components/widgets/search/search.jsx
+++ b/src/components/widgets/search/search.jsx
@@ -3,6 +3,7 @@ import { useTranslation } from "next-i18next";
import { FiSearch } from "react-icons/fi";
import { SiDuckduckgo, SiMicrosoftbing, SiGoogle, SiBaidu, SiBrave } from "react-icons/si";
import { Listbox, Transition } from "@headlessui/react";
+import classNames from "classnames";
export const searchProviders = {
google: {
@@ -37,10 +38,6 @@ export const searchProviders = {
},
};
-function classNames(...classes) {
- return classes.filter(Boolean).join(" ");
-}
-
function getAvailableProviderIds(options) {
if (options.provider && Array.isArray(options.provider)) {
return Object.keys(searchProviders).filter((value) => options.provider.includes(value));
@@ -51,26 +48,32 @@ function getAvailableProviderIds(options) {
return null;
}
+const localStorageKey = "search-name";
+
+export function getStoredProvider() {
+ if (typeof window !== 'undefined') {
+ const storedName = localStorage.getItem(localStorageKey);
+ if (storedName) {
+ return Object.values(searchProviders).find((el) => el.name === storedName);
+ }
+ }
+ return null;
+}
+
export default function Search({ options }) {
const { t } = useTranslation();
const availableProviderIds = getAvailableProviderIds(options);
- const key = "search-name";
-
const [query, setQuery] = useState("");
const [selectedProvider, setSelectedProvider] = useState(searchProviders[availableProviderIds[0] ?? searchProviders.google]);
useEffect(() => {
- const storedName = localStorage.getItem(key);
- let storedProvider = null;
+ const storedProvider = getStoredProvider();
let storedProviderKey = null;
- if (storedName) {
- storedProvider = Object.values(searchProviders).find((el) => el.name === storedName);
- storedProviderKey = Object.keys(searchProviders).find((pkey) => searchProviders[pkey] === storedProvider);
- if (storedProvider && availableProviderIds.includes(storedProviderKey)) {
- setSelectedProvider(storedProvider);
- }
+ storedProviderKey = Object.keys(searchProviders).find((pkey) => searchProviders[pkey] === storedProvider);
+ if (storedProvider && availableProviderIds.includes(storedProviderKey)) {
+ setSelectedProvider(storedProvider);
}
}, [availableProviderIds]);
@@ -95,7 +98,7 @@ export default function Search({ options }) {
const onChangeProvider = (provider) => {
setSelectedProvider(provider);
- localStorage.setItem(key, provider.name);
+ localStorage.setItem(localStorageKey, provider.name);
}
return (
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 22b10248..6c42ab71 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -22,7 +22,7 @@ import { bookmarksResponse, servicesResponse, widgetsResponse } from "utils/conf
import ErrorBoundary from "components/errorboundry";
import themes from "utils/styles/themes";
import QuickLaunch from "components/quicklaunch";
-import { searchProviders } from "components/widgets/search/search";
+import { getStoredProvider, searchProviders } from "components/widgets/search/search";
const ThemeToggle = dynamic(() => import("components/toggles/theme"), {
ssr: false,
@@ -197,12 +197,17 @@ function Home({ initialSettings }) {
let searchProvider = null;
const searchWidget = Object.values(widgets).find(w => w.type === "search");
if (searchWidget) {
- if (searchWidget.options?.provider === 'custom') {
- searchProvider = {
- url: searchWidget.options.url
- }
+ if (Array.isArray(searchWidget.options?.provider)) {
+ // if search provider is a list, try to retrieve from localstorage, fall back to the first
+ searchProvider = getStoredProvider() ?? searchProviders[searchWidget.options.provider[0]];
} else {
- searchProvider = searchProviders[searchWidget.options?.provider];
+ if (searchWidget.options?.provider === 'custom') {
+ searchProvider = {
+ url: searchWidget.options.url
+ }
+ } else {
+ searchProvider = searchProviders[searchWidget.options?.provider];
+ }
}
}
From 046f2986a8da3c28a496611719eb611c3e2ecec8 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 31 Jan 2023 00:58:29 -0800
Subject: [PATCH 198/198] lint support custom search provider in quicklaunch
---
src/pages/index.jsx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 6c42ab71..152f28f1 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -200,14 +200,12 @@ function Home({ initialSettings }) {
if (Array.isArray(searchWidget.options?.provider)) {
// if search provider is a list, try to retrieve from localstorage, fall back to the first
searchProvider = getStoredProvider() ?? searchProviders[searchWidget.options.provider[0]];
- } else {
- if (searchWidget.options?.provider === 'custom') {
- searchProvider = {
- url: searchWidget.options.url
- }
- } else {
- searchProvider = searchProviders[searchWidget.options?.provider];
+ } else if (searchWidget.options?.provider === 'custom') {
+ searchProvider = {
+ url: searchWidget.options.url
}
+ } else {
+ searchProvider = searchProviders[searchWidget.options?.provider];
}
}