From 26a980054b35d46ce098d6609decacf6eae1bb44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Thu, 19 Dec 2024 20:09:40 +0100 Subject: [PATCH] refactor(shared): migrate validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fernando Fernández --- .../Buttons/Playback/PlaybackSettingsButton.vue | 2 +- frontend/src/components/Forms/LoginForm.vue | 2 +- frontend/src/components/Item/Card/GenericItemCard.vue | 2 +- frontend/src/components/Item/Card/ItemCard.vue | 2 +- frontend/src/components/Item/Identify/IdentifyDialog.vue | 2 +- frontend/src/components/Item/ItemMenu.vue | 9 ++++++--- .../src/components/Item/MediaDetail/MediaDetailAttr.vue | 2 +- .../components/Item/MediaDetail/MediaDetailContent.vue | 2 +- .../components/Item/MediaDetail/MediaDetailDialog.vue | 4 ++-- frontend/src/components/Item/Metadata/MetadataEditor.vue | 2 +- frontend/src/components/Layout/AudioControls.vue | 6 +++--- frontend/src/components/Layout/Backdrop.vue | 2 +- .../Layout/Carousel/Item/ItemsCarouselTitle.vue | 2 +- frontend/src/components/Layout/SettingsPage.vue | 4 ++-- frontend/src/components/Playback/DraggableQueue.vue | 2 +- frontend/src/components/Playback/PlayerElement.vue | 2 +- frontend/src/components/Playback/SubtitleTrack.vue | 2 +- frontend/src/components/Wizard/WizardLanguage.vue | 2 +- frontend/src/components/Wizard/WizardMetadata.vue | 2 +- frontend/src/components/lib/JImg.vue | 2 +- frontend/src/components/lib/JView.vue | 2 +- frontend/src/components/lib/JVirtual/JVirtual.vue | 2 +- frontend/src/components/lib/JVirtual/j-virtual.worker.ts | 2 +- frontend/src/composables/apis.ts | 2 +- frontend/src/composables/page-title.ts | 2 +- frontend/src/composables/use-datefns.ts | 2 +- frontend/src/pages/genre/[itemId].vue | 2 +- frontend/src/pages/index.vue | 2 +- frontend/src/pages/playback/music.vue | 2 +- frontend/src/plugins/remote/auth.ts | 2 +- frontend/src/plugins/remote/axios.ts | 2 +- frontend/src/plugins/remote/index.ts | 2 +- frontend/src/plugins/remote/sdk/index.ts | 2 +- frontend/src/plugins/remote/socket.ts | 2 +- frontend/src/plugins/router/index.ts | 2 +- frontend/src/plugins/router/middlewares/login.ts | 2 +- frontend/src/plugins/router/middlewares/playback.ts | 2 +- frontend/src/plugins/router/middlewares/validate.ts | 2 +- frontend/src/plugins/workers/blurhash-decoder.worker.ts | 2 +- frontend/src/plugins/workers/canvas-drawer.worker.ts | 2 +- frontend/src/plugins/workers/generic.worker.ts | 2 +- frontend/src/splashscreen.ts | 2 +- frontend/src/store/api.ts | 2 +- frontend/src/store/client-settings/index.ts | 2 +- frontend/src/store/client-settings/subtitle-settings.ts | 2 +- frontend/src/store/index.ts | 2 +- frontend/src/store/playback-manager.ts | 2 +- frontend/src/store/player-element.ts | 2 +- frontend/src/store/super/common-store.ts | 8 ++++---- frontend/src/store/super/synced-store.ts | 2 +- frontend/src/store/task-manager.ts | 2 +- frontend/src/utils/external-config.ts | 2 +- frontend/src/utils/i18n.ts | 2 +- frontend/src/utils/items.ts | 2 +- .../utils/playback-profiles/helpers/codec-profiles.ts | 2 +- .../src/utils => packages/shared/src}/validation.ts | 1 + 56 files changed, 68 insertions(+), 64 deletions(-) rename {frontend/src/utils => packages/shared/src}/validation.ts (96%) diff --git a/frontend/src/components/Buttons/Playback/PlaybackSettingsButton.vue b/frontend/src/components/Buttons/Playback/PlaybackSettingsButton.vue index 0abfda2fbc2..7a2eb5416f8 100644 --- a/frontend/src/components/Buttons/Playback/PlaybackSettingsButton.vue +++ b/frontend/src/components/Buttons/Playback/PlaybackSettingsButton.vue @@ -94,9 +94,9 @@ diff --git a/frontend/src/components/Layout/Backdrop.vue b/frontend/src/components/Layout/Backdrop.vue index 1bd05ad2b49..42afc062192 100644 --- a/frontend/src/components/Layout/Backdrop.vue +++ b/frontend/src/components/Layout/Backdrop.vue @@ -19,7 +19,7 @@