From cea9d9cf47f2b6c8b0cc12764edbfe19c16978a9 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Wed, 24 Jan 2024 21:45:41 +0100 Subject: [PATCH] fix: fix some linting errors Part-of: --- front/src/locales/fa_IR.json | 3 +-- front/src/locales/ga.json | 6 +----- front/src/locales/hu.json | 3 +-- front/src/locales/id.json | 6 +----- front/src/locales/ko_KR.json | 3 +-- front/src/locales/nn_NO.json | 6 +----- front/src/locales/sq.json | 6 +----- front/src/locales/zh_Hant.json | 3 +-- front/src/router/routes/index.ts | 2 +- front/src/views/ChooseInstance.vue | 27 +++++++++++++++------------ 10 files changed, 24 insertions(+), 41 deletions(-) diff --git a/front/src/locales/fa_IR.json b/front/src/locales/fa_IR.json index 770c0d30a..1dead2303 100644 --- a/front/src/locales/fa_IR.json +++ b/front/src/locales/fa_IR.json @@ -354,7 +354,6 @@ "messages": "پیام های شما", "notifications": "اعلان های شما" } - }, - "ChooseInstance": null + } } } diff --git a/front/src/locales/ga.json b/front/src/locales/ga.json index 9c71eeb54..0967ef424 100644 --- a/front/src/locales/ga.json +++ b/front/src/locales/ga.json @@ -1,5 +1 @@ -{ - "views": { - "ChooseInstance": null - } -} +{} diff --git a/front/src/locales/hu.json b/front/src/locales/hu.json index dccbb1458..b5f7caf42 100644 --- a/front/src/locales/hu.json +++ b/front/src/locales/hu.json @@ -949,8 +949,7 @@ "create": "Hozzáférés a lejátszási listákhoz" } } - }, - "ChooseInstance": null + } }, "init": { "serviceWorker": { diff --git a/front/src/locales/id.json b/front/src/locales/id.json index 9c71eeb54..0967ef424 100644 --- a/front/src/locales/id.json +++ b/front/src/locales/id.json @@ -1,5 +1 @@ -{ - "views": { - "ChooseInstance": null - } -} +{} diff --git a/front/src/locales/ko_KR.json b/front/src/locales/ko_KR.json index dc85bbc7a..00715dd9c 100644 --- a/front/src/locales/ko_KR.json +++ b/front/src/locales/ko_KR.json @@ -128,7 +128,6 @@ "createAccount": "{ app } 이 Funkwhale 계정에 접근하려고 합니다" } } - }, - "ChooseInstance": null + } } } diff --git a/front/src/locales/nn_NO.json b/front/src/locales/nn_NO.json index 9c71eeb54..0967ef424 100644 --- a/front/src/locales/nn_NO.json +++ b/front/src/locales/nn_NO.json @@ -1,5 +1 @@ -{ - "views": { - "ChooseInstance": null - } -} +{} diff --git a/front/src/locales/sq.json b/front/src/locales/sq.json index 9c71eeb54..0967ef424 100644 --- a/front/src/locales/sq.json +++ b/front/src/locales/sq.json @@ -1,5 +1 @@ -{ - "views": { - "ChooseInstance": null - } -} +{} diff --git a/front/src/locales/zh_Hant.json b/front/src/locales/zh_Hant.json index 4cc90bf6d..fe8028aae 100644 --- a/front/src/locales/zh_Hant.json +++ b/front/src/locales/zh_Hant.json @@ -157,8 +157,7 @@ "createAccount": "{ app } 需要訪問您的funkwhale賬戶" } } - }, - "ChooseInstance": null + } }, "init": { "serviceWorker": { diff --git a/front/src/router/routes/index.ts b/front/src/router/routes/index.ts index 9aae990be..d125d99d6 100644 --- a/front/src/router/routes/index.ts +++ b/front/src/router/routes/index.ts @@ -22,7 +22,7 @@ export default [ { path: '/instance-chooser', name: 'instance-chooser', - component: () => import('~/views/ChooseInstance.vue'), + component: () => import('~/views/ChooseInstance.vue') }, { path: '/index.html', diff --git a/front/src/views/ChooseInstance.vue b/front/src/views/ChooseInstance.vue index fdb11abfc..09e80d05d 100644 --- a/front/src/views/ChooseInstance.vue +++ b/front/src/views/ChooseInstance.vue @@ -38,7 +38,7 @@ const checkAndSwitch = async (url: string) => { await axios.get(instanceUrl + '/api/v1/instance/nodeinfo/2.0/') store.commit('ui/addMessage', { - content: t('components.SetInstanceModal.message.newUrl', { url: instanceUrl }), + content: t('views.ChooseInstance.message.newUrl', { url: instanceUrl }), date: new Date() }) @@ -57,11 +57,11 @@ const isTauriInstance = computed(() => store.getters['instance/url'].href === TA