From 52f9adceb8345fccfedea7393ef1aa2cc4dfd2cc Mon Sep 17 00:00:00 2001 From: Olivier Savignac <1275666+sircharlo@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:49:45 -0400 Subject: [PATCH] feat: manual refresh button on song list; added yeartext sanity checks --- package.json | 2 + .../dialog/DialogCongregationLookup.vue | 2 +- src/components/media/SongPicker.vue | 13 ++- src/pages/MediaPlayerPage.vue | 20 ++-- src/stores/jw.ts | 56 ++++++---- yarn.lock | 100 +++++++++++++++++- 6 files changed, 157 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index c25de6b1..b006cfef 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "pretty-bytes": "^6.1.1", "quasar": "^2.17.0", "sanitize-filename": "^1.6.3", + "sanitize-html": "^2.13.1", "upath": "^2.0.1", "vue": "^3.5.12", "vue-i18n": "^10.0.4", @@ -62,6 +63,7 @@ "@types/klaw-sync": "^6.0.5", "@types/node": "^20.16.11", "@types/pretty-bytes": "^5.2.0", + "@types/sanitize-html": "^2", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "autoprefixer": "^10.4.20", diff --git a/src/components/dialog/DialogCongregationLookup.vue b/src/components/dialog/DialogCongregationLookup.vue index 669b39de..b62be0be 100644 --- a/src/components/dialog/DialogCongregationLookup.vue +++ b/src/components/dialog/DialogCongregationLookup.vue @@ -116,7 +116,7 @@ import { useLocale } from 'src/composables/useLocale'; import { errorCatcher } from 'src/helpers/error-catcher'; import { useCurrentStateStore } from 'src/stores/current-state'; import { useJwStore } from 'src/stores/jw'; -import { type Ref, ref, watch } from 'vue'; +import { ref, watch } from 'vue'; const jwStore = useJwStore(); const { jwLanguages } = storeToRefs(jwStore); diff --git a/src/components/media/SongPicker.vue b/src/components/media/SongPicker.vue index 53855bd1..222ed5be 100644 --- a/src/components/media/SongPicker.vue +++ b/src/components/media/SongPicker.vue @@ -46,7 +46,18 @@
- + +
{{ diff --git a/src/pages/MediaPlayerPage.vue b/src/pages/MediaPlayerPage.vue index 62f8f20c..db742a1f 100644 --- a/src/pages/MediaPlayerPage.vue +++ b/src/pages/MediaPlayerPage.vue @@ -1,4 +1,3 @@ -