From b447daed47a9eb545f915b61ce584f13bdf4638e Mon Sep 17 00:00:00 2001 From: upsiflu Date: Sun, 8 Dec 2024 20:20:21 +0100 Subject: [PATCH] chore(ui): use `store` object instead of `$store` plugin --- front/src/components/About.vue | 8 +-- front/src/components/AboutPod.vue | 12 ++--- front/src/components/Sidebar.vue | 50 +++++++++---------- front/src/components/auth/LoginForm.vue | 6 +-- front/src/components/auth/SignupForm.vue | 4 +- front/src/components/channels/UploadForm.vue | 2 +- .../favorites/TrackFavoriteIcon.vue | 4 +- front/src/components/library/Albums.vue | 2 +- .../components/library/FileUploadWidget.vue | 4 +- front/src/components/library/Podcasts.vue | 4 +- front/src/components/library/Radios.vue | 8 +-- .../src/components/moderation/ReportModal.vue | 2 +- front/src/components/playlists/Editor.vue | 2 +- .../components/playlists/PlaylistModal.vue | 4 +- front/src/shims-vuex.d.ts | 2 +- front/src/views/auth/ProfileBase.vue | 14 +++--- front/src/views/channels/DetailBase.vue | 14 +++--- front/src/views/library/LibraryBase.vue | 8 +-- front/src/views/playlists/Detail.vue | 4 +- 19 files changed, 77 insertions(+), 77 deletions(-) diff --git a/front/src/components/About.vue b/front/src/components/About.vue index 216099ecf..ca50bbaf7 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -80,7 +80,7 @@ const headerStyle = computed(() => {

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

@@ -162,14 +162,14 @@ const headerStyle = computed(() => {
- {{ stats.users.toLocaleString($store.state.ui.momentLocale) }} + {{ stats.users.toLocaleString(store.state.ui.momentLocale) }}
{{ t('components.About.stat.activeUsers', stats.users) }}
- {{ stats.hours.toLocaleString($store.state.ui.momentLocale) }} + {{ stats.hours.toLocaleString(store.state.ui.momentLocale) }}
{{ t('components.About.stat.hoursOfMusic', stats.hours) }}
diff --git a/front/src/components/AboutPod.vue b/front/src/components/AboutPod.vue index df9ad7281..615b550b9 100644 --- a/front/src/components/AboutPod.vue +++ b/front/src/components/AboutPod.vue @@ -340,7 +340,7 @@ const headerStyle = computed(() => { class="statistics-statistic" > - {{ stats.hours.toLocaleString($store.state.ui.momentLocale) }} + {{ stats.hours.toLocaleString(store.state.ui.momentLocale) }}
{{ t('components.AboutPod.stat.hoursOfMusic', stats.hours) }}
@@ -350,7 +350,7 @@ const headerStyle = computed(() => { class="statistics-statistic" > - {{ stats.artists.toLocaleString($store.state.ui.momentLocale) }} + {{ stats.artists.toLocaleString(store.state.ui.momentLocale) }}
{{ t('components.AboutPod.stat.artistsCount', stats.artists) }}
@@ -360,7 +360,7 @@ const headerStyle = computed(() => { class="statistics-statistic" > - {{ stats.albums.toLocaleString($store.state.ui.momentLocale) }} + {{ stats.albums.toLocaleString(store.state.ui.momentLocale) }}
{{ t('components.AboutPod.stat.albumsCount', stats.albums) }}
@@ -370,7 +370,7 @@ const headerStyle = computed(() => { class="statistics-statistic" > - {{ stats.tracks.toLocaleString($store.state.ui.momentLocale) }} + {{ stats.tracks.toLocaleString(store.state.ui.momentLocale) }}
{{ t('components.AboutPod.stat.tracksCount', stats.tracks) }}
@@ -380,7 +380,7 @@ const headerStyle = computed(() => { class="statistics-statistic" > - {{ stats.users.toLocaleString($store.state.ui.momentLocale) }} + {{ stats.users.toLocaleString(store.state.ui.momentLocale) }}
{{ t('components.AboutPod.stat.activeUsers', stats.users) }}
@@ -390,7 +390,7 @@ const headerStyle = computed(() => { class="statistics-statistic" > - {{ stats.listenings.toLocaleString($store.state.ui.momentLocale) }} + {{ stats.listenings.toLocaleString(store.state.ui.momentLocale) }}
{{ t('components.AboutPod.stat.listeningsCount', stats.listenings) }}
diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue index 0fd93b46d..1bc012488 100644 --- a/front/src/components/Sidebar.vue +++ b/front/src/components/Sidebar.vue @@ -138,7 +138,7 @@ onMounted(() => {
-