From 9e34fbc47e5e450cc777daad7179a3b01bf9e42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 18 Sep 2022 23:12:39 +0000 Subject: [PATCH] Start to clean up structure --- front/src/components/About.vue | 44 +- front/src/components/AboutPod.vue | 72 +- front/src/components/Home.vue | 58 +- front/src/components/PageNotFound.vue | 6 +- front/src/components/Queue.vue | 48 +- front/src/components/RemoteSearchForm.vue | 28 +- front/src/components/SetInstanceModal.vue | 22 +- front/src/components/ShortcutsModal.vue | 44 +- front/src/components/Sidebar.vue | 74 +- front/src/components/admin/SettingsGroup.vue | 8 +- .../components/admin/SignupFormBuilder.vue | 38 +- front/src/components/audio/ChannelCard.vue | 6 +- front/src/components/audio/ChannelEntries.vue | 2 +- front/src/components/audio/ChannelForm.vue | 42 +- .../src/components/audio/ChannelSerieCard.vue | 2 +- front/src/components/audio/ChannelSeries.vue | 4 +- front/src/components/audio/ChannelsWidget.vue | 2 +- front/src/components/audio/EmbedWizard.vue | 20 +- .../components/audio/LibraryFollowButton.vue | 6 +- front/src/components/audio/PlayButton.vue | 34 +- front/src/components/audio/Player.vue | 34 +- front/src/components/audio/Search.vue | 12 +- front/src/locales/en.json | 748 +++++++++++------- 23 files changed, 772 insertions(+), 582 deletions(-) diff --git a/front/src/components/About.vue b/front/src/components/About.vue index cee705f60..be7b86ba6 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -67,10 +67,10 @@ const headerStyle = computed(() => {

- {{ $t('components.About.funkwhaleHeader') }} + {{ $t('components.About.header.funkwhale') }}

- {{ $t('components.About.funkwhaleDescription') }} + {{ $t('components.About.description.funkwhale') }}

@@ -84,14 +84,14 @@ const headerStyle = computed(() => { class="signup-form content" >

- {{ $t('components.About.signupHeader') }} + {{ $t('components.About.header.signup') }}

- {{ $t('components.About.registrationsClosedHelp') }} + {{ $t('components.About.help.closedRegistrations') }}

{ rel="noopener" href="https://funkwhale.audio/#get-started" > - {{ $t('components.About.findOtherPod') }} + {{ $t('components.About.link.findOtherPod') }}  
@@ -118,13 +118,13 @@ const headerStyle = computed(() => { class="signup-form content" >

- {{ $t('components.About.signupHeader') }} + {{ $t('components.About.header.signup') }}
- {{ $t('components.About.alreadyLoggedIn') }} + {{ $t('components.About.message.loggedIn') }}

- {{ $t('components.About.greetingMessage', {username: $store.state.auth.username}) }} + {{ $t('components.About.message.greeting', {username: $store.state.auth.username}) }}

@@ -145,7 +145,7 @@ const headerStyle = computed(() => { id="description" class="ui header" > - {{ $t('components.About.aboutPodHeader') }} + {{ $t('components.About.header.aboutPod') }}
{ {{ shortDescription }}

- {{ $t('components.About.noDescription') }} + {{ $t('components.About.placeholder.noDescription') }}

@@ -420,7 +420,7 @@ const headerStyle = computed(() => { class="ui left floated basic secondary button" > - {{ $t('components.AboutPod.introductionLink') }} + {{ $t('components.AboutPod.link.introduction') }} diff --git a/front/src/components/Home.vue b/front/src/components/Home.vue index 6eceb1cd8..90fa2c7a5 100644 --- a/front/src/components/Home.vue +++ b/front/src/components/Home.vue @@ -71,7 +71,7 @@ whenever(() => store.state.auth.authenticated, () => {

- {{ $t('components.Home.welcomeMessage', {podName: podName}) }} + {{ $t('components.Home.header.welcome', {podName: podName}) }}
store.state.auth.authenticated, () => {

- {{ $t('components.Home.aboutPod') }} + {{ $t('components.Home.header.about') }}

store.state.auth.authenticated, () => {

- {{ $t('components.Home.noDescription') }} + {{ $t('components.Home.placeholder.noDescription') }}

diff --git a/front/src/components/audio/ChannelsWidget.vue b/front/src/components/audio/ChannelsWidget.vue index bcdec4fb5..9f118ba84 100644 --- a/front/src/components/audio/ChannelsWidget.vue +++ b/front/src/components/audio/ChannelsWidget.vue @@ -77,7 +77,7 @@ fetchData() :class="['ui', 'basic', 'button']" @click="fetchData(nextPage)" > - {{ $t('components.audio.ChannelsWidget.showMore') }} + {{ $t('components.audio.ChannelsWidget.button.showMore') }}