From 2aa1f00c60d4c68681636c863cfead73e2ad7920 Mon Sep 17 00:00:00 2001 From: jlpereira Date: Mon, 3 Jul 2023 15:58:55 -0300 Subject: [PATCH] Add spinners and cached map information --- src/components/VSkeleton.global.vue | 2 +- src/components/VSpinner.global.vue | 27 +++++++++++-------- src/modules/otus/components/DWCDownload.vue | 1 + .../Panel/PanelDescendants/Descendants.vue | 17 +++++++++--- .../components/Panel/PanelMap/CachedMap.vue | 18 ++++++++++--- .../PanelNomenclature/PanelNomenclature.vue | 6 ++++- .../PanelNomenclatureReferences.vue | 5 ++++ .../Panel/PanelStats/PanelStats.vue | 5 ++++ src/modules/otus/components/SiteMap.vue | 1 + src/modules/otus/store/actions/loadCatalog.js | 5 +++- src/modules/otus/store/store.js | 3 ++- 11 files changed, 68 insertions(+), 22 deletions(-) diff --git a/src/components/VSkeleton.global.vue b/src/components/VSkeleton.global.vue index 3a25638..af24498 100644 --- a/src/components/VSkeleton.global.vue +++ b/src/components/VSkeleton.global.vue @@ -7,7 +7,7 @@ diff --git a/src/components/VSpinner.global.vue b/src/components/VSpinner.global.vue index 43bc4f8..6a2fee7 100644 --- a/src/components/VSpinner.global.vue +++ b/src/components/VSpinner.global.vue @@ -13,6 +13,7 @@ :style="logoSize" aria-hidden="true" class="text-base-lighter animate-spin fill-primary-color" + :class="logoClass" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg" @@ -29,7 +30,9 @@ Loading...
({ - marginTop: '30px', - textAlign: 'center' - }) + default: () => ({}) + }, + + legendClass: { + type: String, + default: 'mt-5' }, showLegend: { @@ -99,10 +104,12 @@ const props = defineProps({ logoSize: { type: Object, - default: () => ({ - width: '50px', - height: '50px' - }) + default: () => ({}) + }, + + logoClass: { + type: String, + default: 'w-12 h-12' } }) @@ -201,8 +208,6 @@ const checkResize = () => { svg { display: block; position: relative; - width: 30px; - height: 30px; margin: 0px auto; } diff --git a/src/modules/otus/components/DWCDownload.vue b/src/modules/otus/components/DWCDownload.vue index 7ec2a9f..584a4c3 100644 --- a/src/modules/otus/components/DWCDownload.vue +++ b/src/modules/otus/components/DWCDownload.vue @@ -2,6 +2,7 @@

Descendants and synonyms

@@ -23,10 +28,10 @@