diff --git a/front/.eslintrc.cjs b/front/.eslintrc.cjs index e804db382..3e6abe29a 100644 --- a/front/.eslintrc.cjs +++ b/front/.eslintrc.cjs @@ -19,11 +19,13 @@ module.exports = { ecmaVersion: 2020 }, plugins: [ + 'html', 'vue' ], ignorePatterns: [ 'src/locales/*.json', - 'dist/' + 'dist/', + 'stats.html' ], rules: { // NOTE: Nicer for the eye diff --git a/front/index.html b/front/index.html index 331427637..59ccbe663 100644 --- a/front/index.html +++ b/front/index.html @@ -97,5 +97,4 @@
- diff --git a/front/package.json b/front/package.json index cf9f3bede..453c982df 100644 --- a/front/package.json +++ b/front/package.json @@ -101,7 +101,7 @@ "cypress": "13.6.4", "eslint": "8.57.0", "eslint-config-standard": "17.1.0", - "eslint-plugin-html": "8.0.0", + "eslint-plugin-html": "8.1.2", "eslint-plugin-import": "2.29.1", "eslint-plugin-n": "16.6.2", "eslint-plugin-node": "11.1.0", diff --git a/front/public/embed.html b/front/public/embed.html index 8e367ada3..484838ce1 100644 --- a/front/public/embed.html +++ b/front/public/embed.html @@ -25,7 +25,7 @@ const id = params.get('id') // Error - let error = reactive({ value: false }) + const error = reactive({ value: false }) if (!SUPPORTED_TYPES.includes(type)) { error.value = `The embed widget doesn't support this media type: ${type}.` } @@ -38,7 +38,7 @@ try { baseUrl = new URL(baseUrl).origin } catch (err) { - console.error(err) + // console.error(err) error.value = `The embed widget couldn't read the provided instance URL: ${baseUrl}.` } @@ -147,7 +147,7 @@ // NOTE: If we already have some tracks, let's fail silently if (tracks.length > 0) { - console.error(error.value) + // console.error(error.value) error.value = false } @@ -181,7 +181,7 @@ // NOTE: Fetch tracks only if there is no error if (error.value === false) { fetchTracks().catch(err => { - console.error(err) + // console.error(err) error.value = `An unknown error occurred while loading this ${type}.` }) } diff --git a/front/src/locales/en_US.json b/front/src/locales/en_US.json index 182af5d50..2a082eee8 100644 --- a/front/src/locales/en_US.json +++ b/front/src/locales/en_US.json @@ -529,6 +529,9 @@ "previous": "Previous track" } }, + "PlaylistCard": { + "title": "Updated on {date}" + }, "Search": { "empty": { "noAlbums": "No album matched your query", diff --git a/front/src/ui/components/UploadModal.vue b/front/src/ui/components/UploadModal.vue index 7bd98dc27..b25ba5e3e 100644 --- a/front/src/ui/components/UploadModal.vue +++ b/front/src/ui/components/UploadModal.vue @@ -100,7 +100,7 @@ const isOpen = computed({ > diff --git a/front/src/views/auth/ManageUploads.vue b/front/src/views/auth/ManageUploads.vue index 5a184ec16..bfa05728a 100644 --- a/front/src/views/auth/ManageUploads.vue +++ b/front/src/views/auth/ManageUploads.vue @@ -403,7 +403,7 @@ const getPrivacyLevelChoice = (privacyLevel: PrivacyLevel) => {