fix: fix some linting errors

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2701>
environments/review-docs-v2-ov-8q6uyo/deployments/19323
Kasper Seweryn 2024-01-24 21:45:41 +01:00
rodzic 97aa045b0b
commit cea9d9cf47
10 zmienionych plików z 24 dodań i 41 usunięć

Wyświetl plik

@ -354,7 +354,6 @@
"messages": "پیام های شما", "messages": "پیام های شما",
"notifications": "اعلان های شما" "notifications": "اعلان های شما"
} }
}, }
"ChooseInstance": null
} }
} }

Wyświetl plik

@ -1,5 +1 @@
{ {}
"views": {
"ChooseInstance": null
}
}

Wyświetl plik

@ -949,8 +949,7 @@
"create": "Hozzáférés a lejátszási listákhoz" "create": "Hozzáférés a lejátszási listákhoz"
} }
} }
}, }
"ChooseInstance": null
}, },
"init": { "init": {
"serviceWorker": { "serviceWorker": {

Wyświetl plik

@ -1,5 +1 @@
{ {}
"views": {
"ChooseInstance": null
}
}

Wyświetl plik

@ -128,7 +128,6 @@
"createAccount": "{ app } 이 Funkwhale 계정에 접근하려고 합니다" "createAccount": "{ app } 이 Funkwhale 계정에 접근하려고 합니다"
} }
} }
}, }
"ChooseInstance": null
} }
} }

Wyświetl plik

@ -1,5 +1 @@
{ {}
"views": {
"ChooseInstance": null
}
}

Wyświetl plik

@ -1,5 +1 @@
{ {}
"views": {
"ChooseInstance": null
}
}

Wyświetl plik

@ -157,8 +157,7 @@
"createAccount": "{ app } 需要訪問您的funkwhale賬戶" "createAccount": "{ app } 需要訪問您的funkwhale賬戶"
} }
} }
}, }
"ChooseInstance": null
}, },
"init": { "init": {
"serviceWorker": { "serviceWorker": {

Wyświetl plik

@ -22,7 +22,7 @@ export default [
{ {
path: '/instance-chooser', path: '/instance-chooser',
name: 'instance-chooser', name: 'instance-chooser',
component: () => import('~/views/ChooseInstance.vue'), component: () => import('~/views/ChooseInstance.vue')
}, },
{ {
path: '/index.html', path: '/index.html',

Wyświetl plik

@ -38,7 +38,7 @@ const checkAndSwitch = async (url: string) => {
await axios.get(instanceUrl + '/api/v1/instance/nodeinfo/2.0/') await axios.get(instanceUrl + '/api/v1/instance/nodeinfo/2.0/')
store.commit('ui/addMessage', { store.commit('ui/addMessage', {
content: t('components.SetInstanceModal.message.newUrl', { url: instanceUrl }), content: t('views.ChooseInstance.message.newUrl', { url: instanceUrl }),
date: new Date() date: new Date()
}) })
@ -57,11 +57,11 @@ const isTauriInstance = computed(() => store.getters['instance/url'].href === TA
<template> <template>
<div class="instance-chooser"> <div class="instance-chooser">
<img src="../assets/logo/logo-full-500.png" /> <img src="../assets/logo/logo-full-500.png">
<div class="card"> <div class="card">
<h3 class="header"> <h3 class="header">
{{ t('components.SetInstanceModal.header.chooseInstance') }} {{ t('views.ChooseInstance.header.chooseInstance') }}
</h3> </h3>
<div class="scrolling content"> <div class="scrolling content">
@ -71,14 +71,14 @@ const isTauriInstance = computed(() => store.getters['instance/url'].href === TA
class="ui negative message" class="ui negative message"
> >
<h4 class="header"> <h4 class="header">
{{ t('components.SetInstanceModal.header.failure') }} {{ t('views.ChooseInstance.header.failure') }}
</h4> </h4>
<ul class="list"> <ul class="list">
<li> <li>
{{ t('components.SetInstanceModal.help.serverDown') }} {{ t('views.ChooseInstance.help.serverDown') }}
</li> </li>
<li> <li>
{{ t('components.SetInstanceModal.help.notFunkwhaleServer') }} {{ t('views.ChooseInstance.help.notFunkwhaleServer') }}
</li> </li>
</ul> </ul>
</div> </div>
@ -91,7 +91,7 @@ const isTauriInstance = computed(() => store.getters['instance/url'].href === TA
v-if="store.state.instance.instanceUrl && !isTauriInstance" v-if="store.state.instance.instanceUrl && !isTauriInstance"
class="description" class="description"
> >
<i18n-t keypath="components.SetInstanceModal.message.currentConnection"> <i18n-t keypath="views.ChooseInstance.message.currentConnection">
<a <a
:href="store.state.instance.instanceUrl" :href="store.state.instance.instanceUrl"
target="_blank" target="_blank"
@ -102,12 +102,15 @@ const isTauriInstance = computed(() => store.getters['instance/url'].href === TA
</i18n-t> </i18n-t>
{{ t('', {url: store.state.instance.instanceUrl, hostname: store.getters['instance/domain']}) }} {{ t('', {url: store.state.instance.instanceUrl, hostname: store.getters['instance/domain']}) }}
</p> </p>
<p v-else class="description"> <p
{{ t('components.SetInstanceModal.help.selectPod') }} v-else
class="description"
>
{{ t('views.ChooseInstance.help.selectPod') }}
</p> </p>
<div class="field"> <div class="field">
<label for="instance-picker">{{ t('components.SetInstanceModal.label.url') }}</label> <label for="instance-picker">{{ t('views.ChooseInstance.label.url') }}</label>
<div class="ui action input"> <div class="ui action input">
<input <input
id="instance-picker" id="instance-picker"
@ -119,7 +122,7 @@ const isTauriInstance = computed(() => store.getters['instance/url'].href === TA
type="submit" type="submit"
:class="['ui', 'icon', {loading: isLoading}, 'button']" :class="['ui', 'icon', {loading: isLoading}, 'button']"
> >
{{ t('components.SetInstanceModal.button.submit') }} {{ t('views.ChooseInstance.button.submit') }}
</button> </button>
</div> </div>
</div> </div>
@ -134,7 +137,7 @@ const isTauriInstance = computed(() => store.getters['instance/url'].href === TA
> >
<div class="field"> <div class="field">
<h4> <h4>
{{ t('components.SetInstanceModal.header.suggestions') }} {{ t('views.ChooseInstance.header.suggestions') }}
</h4> </h4>
<div class="h-scroll"> <div class="h-scroll">
<button <button