From ef757e1854c64868e953db369e984a1a6114df0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sat, 17 Sep 2022 02:14:35 +0000 Subject: [PATCH] Update all components --- front/src/components/About.vue | 46 +- front/src/components/AboutPod.vue | 78 +- front/src/components/Home.vue | 60 +- front/src/components/PageNotFound.vue | 8 +- front/src/components/Queue.vue | 54 +- front/src/components/RemoteSearchForm.vue | 28 +- front/src/components/SetInstanceModal.vue | 26 +- front/src/components/ShortcutsModal.vue | 44 +- front/src/components/Sidebar.vue | 88 +- .../components/admin/SignupFormBuilder.vue | 4 +- front/src/components/audio/ChannelCard.vue | 8 +- front/src/components/audio/Player.vue | 6 +- front/src/components/auth/Authorize.vue | 4 +- front/src/components/auth/Plugin.vue | 2 +- front/src/components/auth/Settings.vue | 11 +- .../src/components/auth/SubsonicTokenForm.vue | 2 +- front/src/components/channels/AlbumSelect.vue | 2 +- front/src/components/common/ActionTable.vue | 13 +- front/src/components/common/Duration.vue | 2 +- .../components/common/RenderedDescription.vue | 14 +- front/src/components/common/UserMenu.vue | 30 +- front/src/components/common/UserModal.vue | 36 +- front/src/components/favorites/List.vue | 26 +- .../favorites/TrackFavoriteIcon.vue | 16 +- .../src/components/federation/FetchButton.vue | 81 +- .../components/federation/LibraryWidget.vue | 4 +- front/src/components/forms/PasswordInput.vue | 6 +- front/src/components/library/AlbumBase.vue | 48 +- front/src/components/library/AlbumDetail.vue | 29 +- .../src/components/library/AlbumDropdown.vue | 30 +- front/src/components/library/AlbumEdit.vue | 14 +- front/src/components/library/Albums.vue | 26 +- front/src/components/library/ArtistBase.vue | 40 +- front/src/components/library/ArtistDetail.vue | 16 +- front/src/components/library/ArtistEdit.vue | 14 +- front/src/components/library/Artists.vue | 26 +- front/src/components/library/EditCard.vue | 42 +- front/src/components/library/EditForm.vue | 44 +- front/src/components/library/FileUpload.vue | 83 +- front/src/components/library/FsBrowser.vue | 2 +- front/src/components/library/FsLogs.vue | 2 +- front/src/components/library/Home.vue | 12 +- .../components/library/ImportStatusModal.vue | 32 +- front/src/components/library/Podcasts.vue | 34 +- front/src/components/library/Radios.vue | 30 +- front/src/components/library/TagDetail.vue | 10 +- front/src/components/library/TagsSelector.vue | 2 +- front/src/components/library/TrackBase.vue | 36 +- front/src/components/library/TrackDetail.vue | 90 +- front/src/components/library/TrackEdit.vue | 6 +- .../src/components/library/radios/Builder.vue | 43 +- .../src/components/library/radios/Filter.vue | 10 +- front/src/components/manage/ChannelsTable.vue | 39 +- .../components/manage/library/AlbumsTable.vue | 45 +- .../manage/library/ArtistsTable.vue | 39 +- .../manage/library/EditsCardList.vue | 29 +- .../manage/library/LibrariesTable.vue | 43 +- .../components/manage/library/TagsTable.vue | 33 +- .../components/manage/library/TracksTable.vue | 43 +- .../manage/library/UploadsTable.vue | 63 +- .../manage/moderation/AccountsTable.vue | 37 +- .../manage/moderation/DomainsTable.vue | 49 +- .../manage/moderation/InstancePolicyCard.vue | 18 +- .../manage/moderation/InstancePolicyForm.vue | 68 +- .../manage/moderation/InstancePolicyModal.vue | 12 +- .../components/manage/moderation/NoteForm.vue | 6 +- .../manage/moderation/NotesThread.vue | 8 +- .../manage/moderation/ReportCard.vue | 77 +- .../manage/moderation/UserRequestCard.vue | 55 +- .../manage/users/InvitationForm.vue | 14 +- .../manage/users/InvitationsTable.vue | 43 +- .../components/manage/users/UsersTable.vue | 53 +- .../src/components/moderation/FilterModal.vue | 33 +- .../moderation/ReportCategoryDropdown.vue | 4 +- .../src/components/moderation/ReportModal.vue | 30 +- .../notifications/NotificationRow.vue | 20 +- front/src/components/playlists/Card.vue | 9 +- front/src/components/playlists/Editor.vue | 45 +- front/src/components/playlists/Form.vue | 18 +- .../components/playlists/PlaylistModal.vue | 50 +- .../playlists/TrackPlaylistIcon.vue | 4 +- front/src/components/playlists/Widget.vue | 6 +- front/src/components/radios/Button.vue | 16 +- front/src/components/radios/Card.vue | 2 +- front/src/components/tags/List.vue | 9 +- front/src/components/vui/Pagination.vue | 6 +- front/src/locales/en.json | 1116 +++++++++++++++++ 87 files changed, 2252 insertions(+), 1310 deletions(-) diff --git a/front/src/components/About.vue b/front/src/components/About.vue index f877959fd..cee705f60 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -13,7 +13,7 @@ const nodeinfo = computed(() => store.state.instance.nodeinfo) const { t } = useI18n() const labels = computed(() => ({ - title: t('About') + title: t('components.About.title') })) const podName = computed(() => get(nodeinfo.value, 'metadata.nodeName') ?? 'Funkwhale') @@ -67,10 +67,10 @@ const headerStyle = computed(() => {

- A social platform to enjoy and share music + {{ $t('components.About.funkwhaleHeader') }}

- Funkwhale is a community-driven project that lets you listen and share music and audio within a decentralized, open network. + {{ $t('components.About.funkwhaleDescription') }}

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

- Sign up + {{ $t('components.About.signupHeader') }}

- Registrations are closed on this pod. You can signup on another pod using the link below. + {{ $t('components.About.registrationsClosedHelp') }}

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

- Sign up + {{ $t('components.About.signupHeader') }}
- You're already signed in! + {{ $t('components.About.alreadyLoggedIn') }}

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

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

- No description available. + {{ $t('components.About.noDescription') }}

@@ -420,7 +420,7 @@ const headerStyle = computed(() => { class="ui left floated basic secondary button" > - Introduction + {{ $t('components.AboutPod.introductionLink') }} diff --git a/front/src/components/Home.vue b/front/src/components/Home.vue index 90e7bd6f2..6eceb1cd8 100644 --- a/front/src/components/Home.vue +++ b/front/src/components/Home.vue @@ -14,7 +14,7 @@ import { useRouter } from 'vue-router' const { t } = useI18n() const labels = computed(() => ({ - title: t('Home') + title: t('components.Home.title') })) const store = useStore() @@ -71,7 +71,7 @@ whenever(() => store.state.auth.authenticated, () => {

- {{ $t('Welcome to %{ podName }!', { podName }) }} + {{ $t('components.Home.welcomeMessage', {podName: podName}) }}
store.state.auth.authenticated, () => {

- About this Funkwhale pod + {{ $t('components.Home.aboutPod') }}

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

- No description available. + {{ $t('components.Home.noDescription') }}

- +