From 84065f34ca4170298a4a5cf3665eb4c6e957a383 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Thu, 20 Feb 2025 21:19:54 +1100 Subject: [PATCH] fix: refactoring and error handling --- desktop/components/LibrarySearch.vue | 157 +++++++++-------- desktop/error.vue | 89 ++++++++++ desktop/layouts/default.vue | 77 +++++++- desktop/layouts/mini.vue | 2 +- desktop/package.json | 1 + desktop/pages/error/index.vue | 66 ------- desktop/pages/library.vue | 27 ++- desktop/pages/library/[id]/index.vue | 167 +++++++++--------- desktop/pages/library/index.vue | 11 +- desktop/pages/store/index.vue | 3 +- desktop/plugins/global-error-handler.ts | 3 + desktop/yarn.lock | 222 +++++++++++++++++++++++- 12 files changed, 577 insertions(+), 248 deletions(-) create mode 100644 desktop/error.vue delete mode 100644 desktop/pages/error/index.vue diff --git a/desktop/components/LibrarySearch.vue b/desktop/components/LibrarySearch.vue index a73542e7..14399bf2 100644 --- a/desktop/components/LibrarySearch.vue +++ b/desktop/components/LibrarySearch.vue @@ -1,7 +1,11 @@ \ No newline at end of file + diff --git a/desktop/error.vue b/desktop/error.vue new file mode 100644 index 00000000..c8de2f79 --- /dev/null +++ b/desktop/error.vue @@ -0,0 +1,89 @@ + + + diff --git a/desktop/layouts/default.vue b/desktop/layouts/default.vue index 025a7cfc..b46858db 100644 --- a/desktop/layouts/default.vue +++ b/desktop/layouts/default.vue @@ -1,9 +1,76 @@ diff --git a/desktop/layouts/mini.vue b/desktop/layouts/mini.vue index 4519a777..31aa1407 100644 --- a/desktop/layouts/mini.vue +++ b/desktop/layouts/mini.vue @@ -1,5 +1,5 @@ - +