From 2724a9fdcfe9f5c03176bf3a73759cb237550c07 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 24 Oct 2022 20:16:11 +0900 Subject: [PATCH 01/12] add support for da and he languages --- next-i18next.config.js | 2 ++ src/pages/_app.tsx | 5 +++-- src/tools/language.ts | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/next-i18next.config.js b/next-i18next.config.js index c0d83f7a5..eb842c73a 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -4,6 +4,8 @@ module.exports = { defaultLocale: 'en', locales: [ 'en', + 'da', + 'he', 'de', 'es', 'fr', diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index d57b7d782..7525d0bf6 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -5,7 +5,7 @@ import { getCookie, setCookie } from 'cookies-next'; import Head from 'next/head'; import { MantineProvider, ColorScheme, ColorSchemeProvider, MantineTheme } from '@mantine/core'; import { NotificationsProvider } from '@mantine/notifications'; -import { useHotkeys } from '@mantine/hooks'; +import { useColorScheme, useHotkeys } from '@mantine/hooks'; import { ModalsProvider } from '@mantine/modals'; import { appWithTranslation } from 'next-i18next'; import { QueryClientProvider } from '@tanstack/react-query'; @@ -16,7 +16,8 @@ import { queryClient } from '../tools/queryClient'; function App(this: any, props: AppProps & { colorScheme: ColorScheme }) { const { Component, pageProps } = props; - const [colorScheme, setColorScheme] = useState(props.colorScheme); + const preferredColorScheme = useColorScheme(); + const [colorScheme, setColorScheme] = useState(preferredColorScheme); const [primaryColor, setPrimaryColor] = useState('red'); const [secondaryColor, setSecondaryColor] = useState('orange'); diff --git a/src/tools/language.ts b/src/tools/language.ts index 9110caecd..e03f79a82 100644 --- a/src/tools/language.ts +++ b/src/tools/language.ts @@ -25,6 +25,20 @@ export const languages: Language[] = [ translatedName: 'English', emoji: '🇬🇧', }, + // Danish + { + shortName: 'da', + originalName: 'Dansk', + translatedName: 'Danish', + emoji: '🇩🇰', + }, + // Hebrew + { + shortName: 'he', + originalName: 'עברית', + translatedName: 'Hebrew', + emoji: '🇮🇱', + }, { shortName: 'es', originalName: 'Español', From 14920d4b57b3eb3bc6a216265e7afd01add7ec43 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Tue, 25 Oct 2022 09:14:19 +0900 Subject: [PATCH 02/12] =?UTF-8?q?=F0=9F=94=A7=20fix=20logo=20in=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3bc575f6a..3331187db 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ --- - + Homarr is a simple and lightweight homepage for your server, that helps you easily access all of your services in one place. From c6474923b04f63efa7121d199c317b4c65aa4a46 Mon Sep 17 00:00:00 2001 From: SR3u Date: Thu, 27 Oct 2022 17:20:02 +0300 Subject: [PATCH 03/12] :arrow_up: Updated: Next.js 12.1.6 -> 12.2.0 --- next.config.js | 3 - package.json | 2 +- src/middleware.ts | 23 ++++ src/pages/_middleware.ts | 16 --- src/pages/api/configs/tryPassword.tsx | 2 +- yarn.lock | 146 ++++++++++++++++---------- 6 files changed, 113 insertions(+), 79 deletions(-) create mode 100644 src/middleware.ts delete mode 100644 src/pages/_middleware.ts diff --git a/next.config.js b/next.config.js index 17decd099..b9989cfa8 100644 --- a/next.config.js +++ b/next.config.js @@ -11,9 +11,6 @@ module.exports = withBundleAnalyzer({ domains: ['cdn.jsdelivr.net'], }, reactStrictMode: false, - experimental: { - outputStandalone: true, - }, output: 'standalone', i18n, }); diff --git a/package.json b/package.json index 1e00d62f2..650453385 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "i18next-browser-languagedetector": "^6.1.5", "i18next-http-backend": "^1.4.1", "js-file-download": "^0.4.12", - "next": "12.1.6", + "next": "12.2.0", "next-i18next": "^11.3.0", "prism-react-renderer": "^1.3.5", "react": "^18.2.0", diff --git a/src/middleware.ts b/src/middleware.ts new file mode 100644 index 000000000..3fb5b88d8 --- /dev/null +++ b/src/middleware.ts @@ -0,0 +1,23 @@ +import { NextFetchEvent, NextRequest, NextResponse } from 'next/server'; + +// eslint-disable-next-line consistent-return +export function middleware(req: NextRequest, ev: NextFetchEvent) { + const isCorrectPassword = req.cookies.get('password') === process.env.PASSWORD; + const url = req.nextUrl.clone(); + const skipURL = url.pathname && ( + url.pathname.includes('login') || url.pathname === ('/api/configs/tryPassword') || ( + url.pathname.includes('/_next/') && !url.pathname.includes('/pages/') + ) || + url.pathname === '/favicon.ico' || + url.pathname === '/404' || + url.pathname.includes('pages/_app') + ); + if ( + !skipURL && + !isCorrectPassword && + process.env.PASSWORD + ) { + url.pathname = '/login'; + return NextResponse.rewrite(url); + } +} diff --git a/src/pages/_middleware.ts b/src/pages/_middleware.ts deleted file mode 100644 index 5b01cbe38..000000000 --- a/src/pages/_middleware.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { NextFetchEvent, NextRequest, NextResponse } from 'next/server'; - -// eslint-disable-next-line consistent-return -export function middleware(req: NextRequest, ev: NextFetchEvent) { - const isCorrectPassword = req.cookies.password === process.env.PASSWORD; - const url = req.nextUrl.clone(); - if ( - !isCorrectPassword && - url.pathname !== '/login' && - process.env.PASSWORD && - url.pathname !== '/api/configs/tryPassword' - ) { - url.pathname = '/login'; - return NextResponse.rewrite(url); - } -} diff --git a/src/pages/api/configs/tryPassword.tsx b/src/pages/api/configs/tryPassword.tsx index 18432739b..8f3848b9d 100644 --- a/src/pages/api/configs/tryPassword.tsx +++ b/src/pages/api/configs/tryPassword.tsx @@ -14,7 +14,7 @@ function Post(req: NextApiRequest, res: NextApiResponse) { } export default async (req: NextApiRequest, res: NextApiResponse) => { - // Filter out if the reuqest is a POST or a GET + // Filter out if the request is a POST or a GET if (req.method === 'POST') { return Post(req, res); } diff --git a/yarn.lock b/yarn.lock index 6c5c4b6ed..d9158d62d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1353,10 +1353,10 @@ __metadata: languageName: node linkType: hard -"@next/env@npm:12.1.6": - version: 12.1.6 - resolution: "@next/env@npm:12.1.6" - checksum: e6a4f189f0d653d13dc7ad510f6c9d2cf690bfd9e07c554bd501b840f8dabc3da5adcab874b0bc01aab86c3647cff4fb84692e3c3b28125af26f0b05cd4c7fcf +"@next/env@npm:12.2.0": + version: 12.2.0 + resolution: "@next/env@npm:12.2.0" + checksum: 5fb317bdb5eb2d5df12ff55e335368792dba21874c5ece3cabf8cd312cec911a1d54ecf368e69dc08640b0244669b8a98c86cd035c7874b17640602e67c1b9d9 languageName: node linkType: hard @@ -1369,86 +1369,93 @@ __metadata: languageName: node linkType: hard -"@next/swc-android-arm-eabi@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-android-arm-eabi@npm:12.1.6" +"@next/swc-android-arm-eabi@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-android-arm-eabi@npm:12.2.0" conditions: os=android & cpu=arm languageName: node linkType: hard -"@next/swc-android-arm64@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-android-arm64@npm:12.1.6" +"@next/swc-android-arm64@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-android-arm64@npm:12.2.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-arm64@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-darwin-arm64@npm:12.1.6" +"@next/swc-darwin-arm64@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-darwin-arm64@npm:12.2.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-x64@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-darwin-x64@npm:12.1.6" +"@next/swc-darwin-x64@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-darwin-x64@npm:12.2.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-arm-gnueabihf@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-linux-arm-gnueabihf@npm:12.1.6" +"@next/swc-freebsd-x64@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-freebsd-x64@npm:12.2.0" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@next/swc-linux-arm-gnueabihf@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-linux-arm-gnueabihf@npm:12.2.0" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-linux-arm64-gnu@npm:12.1.6" +"@next/swc-linux-arm64-gnu@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-linux-arm64-gnu@npm:12.2.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-arm64-musl@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-linux-arm64-musl@npm:12.1.6" +"@next/swc-linux-arm64-musl@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-linux-arm64-musl@npm:12.2.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@next/swc-linux-x64-gnu@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-linux-x64-gnu@npm:12.1.6" +"@next/swc-linux-x64-gnu@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-linux-x64-gnu@npm:12.2.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-x64-musl@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-linux-x64-musl@npm:12.1.6" +"@next/swc-linux-x64-musl@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-linux-x64-musl@npm:12.2.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-win32-arm64-msvc@npm:12.1.6" +"@next/swc-win32-arm64-msvc@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-win32-arm64-msvc@npm:12.2.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@next/swc-win32-ia32-msvc@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-win32-ia32-msvc@npm:12.1.6" +"@next/swc-win32-ia32-msvc@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-win32-ia32-msvc@npm:12.2.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@next/swc-win32-x64-msvc@npm:12.1.6": - version: 12.1.6 - resolution: "@next/swc-win32-x64-msvc@npm:12.1.6" +"@next/swc-win32-x64-msvc@npm:12.2.0": + version: 12.2.0 + resolution: "@next/swc-win32-x64-msvc@npm:12.2.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -1885,6 +1892,15 @@ __metadata: languageName: node linkType: hard +"@swc/helpers@npm:0.4.2": + version: 0.4.2 + resolution: "@swc/helpers@npm:0.4.2" + dependencies: + tslib: ^2.4.0 + checksum: 0b8c86ad03b17b8fe57dc4498e25dc294ea6bc42558a6b92d8fcd789351dac80199409bef38a2e3ac06aae0fedddfc0ab9c34409acbf74e55d1bbbd74f68b6b7 + languageName: node + linkType: hard + "@szmarczak/http-timer@npm:^4.0.5": version: 4.0.6 resolution: "@szmarczak/http-timer@npm:4.0.6" @@ -4833,7 +4849,7 @@ __metadata: i18next-http-backend: ^1.4.1 jest: ^28.1.3 js-file-download: ^0.4.12 - next: 12.1.6 + next: 12.2.0 next-i18next: ^11.3.0 prettier: ^2.7.1 prism-react-renderer: ^1.3.5 @@ -6369,26 +6385,29 @@ __metadata: languageName: node linkType: hard -"next@npm:12.1.6": - version: 12.1.6 - resolution: "next@npm:12.1.6" +"next@npm:12.2.0": + version: 12.2.0 + resolution: "next@npm:12.2.0" dependencies: - "@next/env": 12.1.6 - "@next/swc-android-arm-eabi": 12.1.6 - "@next/swc-android-arm64": 12.1.6 - "@next/swc-darwin-arm64": 12.1.6 - "@next/swc-darwin-x64": 12.1.6 - "@next/swc-linux-arm-gnueabihf": 12.1.6 - "@next/swc-linux-arm64-gnu": 12.1.6 - "@next/swc-linux-arm64-musl": 12.1.6 - "@next/swc-linux-x64-gnu": 12.1.6 - "@next/swc-linux-x64-musl": 12.1.6 - "@next/swc-win32-arm64-msvc": 12.1.6 - "@next/swc-win32-ia32-msvc": 12.1.6 - "@next/swc-win32-x64-msvc": 12.1.6 + "@next/env": 12.2.0 + "@next/swc-android-arm-eabi": 12.2.0 + "@next/swc-android-arm64": 12.2.0 + "@next/swc-darwin-arm64": 12.2.0 + "@next/swc-darwin-x64": 12.2.0 + "@next/swc-freebsd-x64": 12.2.0 + "@next/swc-linux-arm-gnueabihf": 12.2.0 + "@next/swc-linux-arm64-gnu": 12.2.0 + "@next/swc-linux-arm64-musl": 12.2.0 + "@next/swc-linux-x64-gnu": 12.2.0 + "@next/swc-linux-x64-musl": 12.2.0 + "@next/swc-win32-arm64-msvc": 12.2.0 + "@next/swc-win32-ia32-msvc": 12.2.0 + "@next/swc-win32-x64-msvc": 12.2.0 + "@swc/helpers": 0.4.2 caniuse-lite: ^1.0.30001332 postcss: 8.4.5 styled-jsx: 5.0.2 + use-sync-external-store: 1.1.0 peerDependencies: fibers: ">= 3.1.0" node-sass: ^6.0.0 || ^7.0.0 @@ -6404,6 +6423,8 @@ __metadata: optional: true "@next/swc-darwin-x64": optional: true + "@next/swc-freebsd-x64": + optional: true "@next/swc-linux-arm-gnueabihf": optional: true "@next/swc-linux-arm64-gnu": @@ -6429,7 +6450,7 @@ __metadata: optional: true bin: next: dist/bin/next - checksum: 670d544fd47670c29681d10824e6da625e9d4a048e564c8d9cb80d37f33c9ff9b5ca0a53e6d84d8d618b1fe7c9bb4e6b45040cb7e57a5c46b232a8f914425dc1 + checksum: 38456c33935122ac1581367e4982034be23269039a8470a66443d710334336f8f3fb587f25d172d138d84cf18c01d3a76627fb610c2e2e57bd1692277c23fa2b languageName: node linkType: hard @@ -8191,6 +8212,15 @@ __metadata: languageName: node linkType: hard +"use-sync-external-store@npm:1.1.0": + version: 1.1.0 + resolution: "use-sync-external-store@npm:1.1.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 8993a0b642f91d7fcdbb02b7b3ac984bd3af4769686f38291fe7fcfe73dfb73d6c64d20dfb7e5e7fbf5a6da8f5392d6f8e5b00c243a04975595946e82c02b883 + languageName: node + linkType: hard + "use-sync-external-store@npm:^1.2.0": version: 1.2.0 resolution: "use-sync-external-store@npm:1.2.0" From 3cfeac4678059b791581ffe89ee04c4b7cdff4d7 Mon Sep 17 00:00:00 2001 From: Manuel <30572287+manuel-rw@users.noreply.github.com> Date: Mon, 31 Oct 2022 17:36:45 +0100 Subject: [PATCH 04/12] =?UTF-8?q?=F0=9F=90=9B=20fix=20default=20favicon=20?= =?UTF-8?q?path=20(#492)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/da/settings/customization/page-appearance.json | 2 +- public/locales/de/settings/customization/page-appearance.json | 2 +- public/locales/en/settings/customization/page-appearance.json | 2 +- public/locales/es/settings/customization/page-appearance.json | 2 +- public/locales/fr/settings/customization/page-appearance.json | 2 +- public/locales/he/settings/customization/page-appearance.json | 2 +- public/locales/it/settings/customization/page-appearance.json | 2 +- public/locales/ja/settings/customization/page-appearance.json | 2 +- public/locales/ko/settings/customization/page-appearance.json | 2 +- public/locales/lol/settings/customization/page-appearance.json | 2 +- public/locales/nl/settings/customization/page-appearance.json | 2 +- public/locales/pl/settings/customization/page-appearance.json | 2 +- public/locales/sl/settings/customization/page-appearance.json | 2 +- public/locales/sv/settings/customization/page-appearance.json | 2 +- public/locales/uk/settings/customization/page-appearance.json | 2 +- public/locales/zh/settings/customization/page-appearance.json | 2 +- src/components/AppShelf/AddAppShelfItem.tsx | 2 +- src/tools/addToHomarr.ts | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/public/locales/da/settings/customization/page-appearance.json b/public/locales/da/settings/customization/page-appearance.json index 41d8ff74f..dd70de077 100644 --- a/public/locales/da/settings/customization/page-appearance.json +++ b/public/locales/da/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Baggrund", diff --git a/public/locales/de/settings/customization/page-appearance.json b/public/locales/de/settings/customization/page-appearance.json index 8c195e6a1..c494a8857 100644 --- a/public/locales/de/settings/customization/page-appearance.json +++ b/public/locales/de/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Hintergrund", diff --git a/public/locales/en/settings/customization/page-appearance.json b/public/locales/en/settings/customization/page-appearance.json index 3c9d62888..52781b5b9 100644 --- a/public/locales/en/settings/customization/page-appearance.json +++ b/public/locales/en/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Background", diff --git a/public/locales/es/settings/customization/page-appearance.json b/public/locales/es/settings/customization/page-appearance.json index e53877fa5..db65c7b47 100644 --- a/public/locales/es/settings/customization/page-appearance.json +++ b/public/locales/es/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Fondo", diff --git a/public/locales/fr/settings/customization/page-appearance.json b/public/locales/fr/settings/customization/page-appearance.json index e04992fcb..d13ef87e0 100644 --- a/public/locales/fr/settings/customization/page-appearance.json +++ b/public/locales/fr/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Contexte", diff --git a/public/locales/he/settings/customization/page-appearance.json b/public/locales/he/settings/customization/page-appearance.json index f8ef9cb30..86c38ae12 100644 --- a/public/locales/he/settings/customization/page-appearance.json +++ b/public/locales/he/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "אייקון לצד שם העמוד", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "רקע", diff --git a/public/locales/it/settings/customization/page-appearance.json b/public/locales/it/settings/customization/page-appearance.json index 68c35eeb3..ba17a50a7 100644 --- a/public/locales/it/settings/customization/page-appearance.json +++ b/public/locales/it/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Sfondo", diff --git a/public/locales/ja/settings/customization/page-appearance.json b/public/locales/ja/settings/customization/page-appearance.json index 4a6550f87..cb8b61145 100644 --- a/public/locales/ja/settings/customization/page-appearance.json +++ b/public/locales/ja/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "ファビコン", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "背景", diff --git a/public/locales/ko/settings/customization/page-appearance.json b/public/locales/ko/settings/customization/page-appearance.json index 670fe998d..1466fe4a2 100644 --- a/public/locales/ko/settings/customization/page-appearance.json +++ b/public/locales/ko/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "파비콘", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "배경", diff --git a/public/locales/lol/settings/customization/page-appearance.json b/public/locales/lol/settings/customization/page-appearance.json index d7cd7a138..ed5b4985f 100644 --- a/public/locales/lol/settings/customization/page-appearance.json +++ b/public/locales/lol/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Bakground", diff --git a/public/locales/nl/settings/customization/page-appearance.json b/public/locales/nl/settings/customization/page-appearance.json index 3d4ab79e9..003923550 100644 --- a/public/locales/nl/settings/customization/page-appearance.json +++ b/public/locales/nl/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Achtergrond", diff --git a/public/locales/pl/settings/customization/page-appearance.json b/public/locales/pl/settings/customization/page-appearance.json index 6ce08a2ec..05a6982b4 100644 --- a/public/locales/pl/settings/customization/page-appearance.json +++ b/public/locales/pl/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Ikona", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Tło", diff --git a/public/locales/sl/settings/customization/page-appearance.json b/public/locales/sl/settings/customization/page-appearance.json index 530958dad..5acc19596 100644 --- a/public/locales/sl/settings/customization/page-appearance.json +++ b/public/locales/sl/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Ozadje", diff --git a/public/locales/sv/settings/customization/page-appearance.json b/public/locales/sv/settings/customization/page-appearance.json index 5248c390c..d810fc6a7 100644 --- a/public/locales/sv/settings/customization/page-appearance.json +++ b/public/locales/sv/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Favicon", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Bakgrund", diff --git a/public/locales/uk/settings/customization/page-appearance.json b/public/locales/uk/settings/customization/page-appearance.json index 7f305b92b..3687a9551 100644 --- a/public/locales/uk/settings/customization/page-appearance.json +++ b/public/locales/uk/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "Іконка", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "Фон", diff --git a/public/locales/zh/settings/customization/page-appearance.json b/public/locales/zh/settings/customization/page-appearance.json index c810c2bfe..9a78e8bec 100644 --- a/public/locales/zh/settings/customization/page-appearance.json +++ b/public/locales/zh/settings/customization/page-appearance.json @@ -9,7 +9,7 @@ }, "favicon": { "label": "网站图标", - "placeholder": "/favicon.png" + "placeholder": "/imgs/favicon/favicon.png" }, "background": { "label": "背景", diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index e447f1dc0..33e35dbe1 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -83,7 +83,7 @@ function MatchService(name: string, form: any) { } } -const DEFAULT_ICON = '/favicon.png'; +const DEFAULT_ICON = '/imgs/favicon/favicon.png'; interface AddAppShelfItemFormProps { setOpened: (b: boolean) => void; diff --git a/src/tools/addToHomarr.ts b/src/tools/addToHomarr.ts index bb1945014..bd3cc24dc 100644 --- a/src/tools/addToHomarr.ts +++ b/src/tools/addToHomarr.ts @@ -7,7 +7,7 @@ async function MatchIcon(name: string) { .replace(/\s+/g, '-') .toLowerCase()}.png` ); - return res.ok ? res.url : '/favicon.png'; + return res.ok ? res.url : '/imgs/favicon/favicon.png'; } function tryMatchType(imageName: string): ServiceType { From 69298142b74b344ba20a30ad59b39455c8278037 Mon Sep 17 00:00:00 2001 From: Thomas Camlong <49837342+ajnart@users.noreply.github.com> Date: Wed, 2 Nov 2022 16:56:50 +0900 Subject: [PATCH 05/12] Remove useless translations --- src/components/Settings/AdvancedSettings.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Settings/AdvancedSettings.tsx b/src/components/Settings/AdvancedSettings.tsx index 17fcdcd25..d560c0dbf 100644 --- a/src/components/Settings/AdvancedSettings.tsx +++ b/src/components/Settings/AdvancedSettings.tsx @@ -47,22 +47,22 @@ export default function TitleChanger() {