From 923a1857d2b2e1df6cb6795a62b52a48b7e2a797 Mon Sep 17 00:00:00 2001 From: Amtul Noor Date: Thu, 30 Nov 2023 09:30:44 +0000 Subject: [PATCH] refactor: convert all components to composition API --- src/App.vue | 254 ++++++------ src/components/ContentView.vue | 153 ++++---- src/components/ImageView.vue | 149 ++++--- src/components/Loading.vue | 30 +- src/components/Notification.vue | 83 ++-- src/components/TreeView.vue | 371 +++++++++--------- src/components/annotations/AnnotationIcon.vue | 38 +- .../annotations/AnnotationsList.vue | 72 ++-- .../annotations/AnnotationsView.vue | 151 ++++--- src/components/header/GlobalHeader.vue | 53 +-- src/components/header/Language.vue | 63 ++- src/components/header/Navbar.vue | 175 ++++----- src/components/header/PanelsToggle.vue | 144 +++---- src/components/header/SoftwareInfo.vue | 38 +- src/components/header/TitleBar.vue | 34 +- src/components/header/Tools.vue | 36 +- src/components/metadata/Actor.vue | 33 +- .../metadata/CollectionMetadata.vue | 65 ++- src/components/metadata/ItemMetadata.vue | 59 +-- src/components/metadata/ManifestMetadata.vue | 66 ++-- src/components/metadata/MetadataItem.vue | 40 +- src/components/metadata/MetadataLink.vue | 26 +- src/components/metadata/MetadataValue.vue | 67 +--- src/components/metadata/MetadataView.vue | 28 +- src/components/panels/Panel.vue | 219 ++++++----- src/components/panels/PanelsWrapper.vue | 47 +-- .../panels/actions/PanelImageAction.vue | 27 +- .../panels/actions/PanelToggleAction.vue | 45 ++- .../panels/actions/PanelZoomAction.vue | 86 ++-- src/i18n/index.js | 1 + src/main.js | 12 +- 31 files changed, 1213 insertions(+), 1452 deletions(-) diff --git a/src/App.vue b/src/App.vue index 54e91402..ca031cb9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,6 +30,12 @@ + +