From c884ccda316779f9398959b4c985cde6bc6d5926 Mon Sep 17 00:00:00 2001 From: Graeme Byrne Date: Mon, 2 Jun 2025 20:01:46 +0200 Subject: [PATCH] update dependencies and fix type errors --- components/Markdown.vue | 9 +- components/Pagination.vue | 2 +- .../authentication/AuthenticationForm.vue | 2 +- components/license/License.vue | 2 +- components/navigation/NavigationBar.vue | 4 + components/registration/RegistrationForm.vue | 2 +- components/torrent/TorrentActionCard.vue | 2 +- components/torrent/TorrentCreationDateTab.vue | 5 +- components/torrent/TorrentDetails.vue | 4 +- components/torrent/TorrentTable.vue | 2 +- components/user/ChangePasswordForm.vue | 2 +- components/user/UserTable.vue | 2 +- composables/states.ts | 24 +- cypress/e2e/contexts/category/specs/add.cy.ts | 2 +- .../e2e/contexts/category/specs/delete.cy.ts | 2 +- cypress/e2e/contexts/category/tasks.ts | 2 +- cypress/e2e/contexts/tag/specs/add.cy.ts | 2 +- cypress/e2e/contexts/tag/specs/delete.cy.ts | 2 +- cypress/e2e/contexts/tag/tasks.ts | 2 +- nuxt.config.ts | 4 + package-lock.json | 18328 +++++++++------- package.json | 46 +- pages/admin/settings.vue | 4 +- pages/admin/settings/categories.vue | 4 +- pages/admin/settings/tags.vue | 4 +- pages/admin/settings/users.vue | 40 +- pages/torrent/edit/[infoHash].vue | 18 +- pages/torrents.vue | 29 +- pages/upload.vue | 15 +- plugins/notifications.client.ts | 2 +- tsconfig.json | 4 +- types/notiwind-ts.d.ts | 1 + 32 files changed, 10754 insertions(+), 7819 deletions(-) create mode 100644 types/notiwind-ts.d.ts diff --git a/components/Markdown.vue b/components/Markdown.vue index 171e4e81..458ab723 100644 --- a/components/Markdown.vue +++ b/components/Markdown.vue @@ -20,7 +20,8 @@ const sanitizedDescription = ref(""); const options = { headerIds: false, - mangle: false + mangle: false, + async: true }; const source = computed(() => props.source); @@ -33,12 +34,12 @@ onMounted(() => { sanitizeDescription(); }); -function convert_markdown_to_html (src: string) { - return marked(src, options); +async function convert_markdown_to_html (src: string): Promise { + return await marked(src, options); } async function sanitizeDescription () { - const html = convert_markdown_to_html(props.source); + const html = await convert_markdown_to_html(props.source); // await here sanitizedDescription.value = await sanitize(html); } diff --git a/components/Pagination.vue b/components/Pagination.vue index 9a2530e3..64847ef2 100644 --- a/components/Pagination.vue +++ b/components/Pagination.vue @@ -3,7 +3,7 @@
- diff --git a/components/authentication/AuthenticationForm.vue b/components/authentication/AuthenticationForm.vue index 4310d94c..3646c8a0 100644 --- a/components/authentication/AuthenticationForm.vue +++ b/components/authentication/AuthenticationForm.vue @@ -62,7 +62,7 @@ async function login () { navigateTo("/torrents", { replace: true }); } }) - .catch((err) => { + .catch((err: Error) => { notify({ group: "error", title: "Error", diff --git a/components/license/License.vue b/components/license/License.vue index 24162b60..29267c9c 100644 --- a/components/license/License.vue +++ b/components/license/License.vue @@ -1,6 +1,6 @@