From b5bc561902554647a719d96cf4171eeca33669cf Mon Sep 17 00:00:00 2001 From: jlpereira Date: Tue, 13 Jun 2023 19:19:26 -0300 Subject: [PATCH] Fix fake component register. Add clipboard --- .../Clipboard/VClipboard.global.vue | 49 +++++++++++++++++++ src/components/Icon/IconCheck.global.vue | 15 ++++++ src/components/Icon/IconClipboard.global.vue | 15 ++++++ src/components/Modal/VModal.global.vue | 1 + .../Panel/PanelDescendants/Descendants.vue | 17 ++++--- .../otus/components/Panel/PanelDropdown.vue | 16 ++++-- .../components/Panel/PanelMap/PanelMap.vue | 18 +++---- .../PanelTypeDesignation.vue | 12 +++-- src/modules/otus/store/request.js | 8 +-- src/modules/otus/views/Index.vue | 4 +- src/ssr/utils/registerFakeClientComponents.js | 6 ++- 11 files changed, 130 insertions(+), 31 deletions(-) create mode 100644 src/components/Clipboard/VClipboard.global.vue create mode 100644 src/components/Icon/IconCheck.global.vue create mode 100644 src/components/Icon/IconClipboard.global.vue diff --git a/src/components/Clipboard/VClipboard.global.vue b/src/components/Clipboard/VClipboard.global.vue new file mode 100644 index 0000000..6209603 --- /dev/null +++ b/src/components/Clipboard/VClipboard.global.vue @@ -0,0 +1,49 @@ + + + diff --git a/src/components/Icon/IconCheck.global.vue b/src/components/Icon/IconCheck.global.vue new file mode 100644 index 0000000..e14d285 --- /dev/null +++ b/src/components/Icon/IconCheck.global.vue @@ -0,0 +1,15 @@ + diff --git a/src/components/Icon/IconClipboard.global.vue b/src/components/Icon/IconClipboard.global.vue new file mode 100644 index 0000000..ae5a626 --- /dev/null +++ b/src/components/Icon/IconClipboard.global.vue @@ -0,0 +1,15 @@ + diff --git a/src/components/Modal/VModal.global.vue b/src/components/Modal/VModal.global.vue index 1ddc78d..f51a159 100644 --- a/src/components/Modal/VModal.global.vue +++ b/src/components/Modal/VModal.global.vue @@ -6,6 +6,7 @@ >
- -

Descendants and synonyms

+ +

Descendants and synonyms

+
    @@ -24,6 +25,8 @@ import { ref, watch } from 'vue' import DescendantsTree from './DescendantsTree.vue' import TaxonWorks from '../../../services/TaxonWorks' +import PanelDropdown from '../PanelDropdown.vue' +import { useOtuPageRequest } from '@/modules/otus/helpers/useOtuPageRequest' const props = defineProps({ otuId: { @@ -41,11 +44,11 @@ watch( return } - TaxonWorks.getTaxonomy(props.otuId, { max_descendants_depth: 1 }).then( - ({ data }) => { - taxonomy.value = data - } - ) + useOtuPageRequest('panel:descendants', () => + TaxonWorks.getTaxonomy(props.otuId, { max_descendants_depth: 1 }) + ).then(({ data }) => { + taxonomy.value = data + }) }, { immediate: true } ) diff --git a/src/modules/otus/components/Panel/PanelDropdown.vue b/src/modules/otus/components/Panel/PanelDropdown.vue index 1dfd361..911ed0d 100644 --- a/src/modules/otus/components/Panel/PanelDropdown.vue +++ b/src/modules/otus/components/Panel/PanelDropdown.vue @@ -12,16 +12,22 @@

    JSON Data

    URL: {{ request.url }}

    -

    +

    +

    + +

    diff --git a/src/modules/otus/components/Panel/PanelMap/PanelMap.vue b/src/modules/otus/components/Panel/PanelMap/PanelMap.vue index 97f0700..e1b345a 100644 --- a/src/modules/otus/components/Panel/PanelMap/PanelMap.vue +++ b/src/modules/otus/components/Panel/PanelMap/PanelMap.vue @@ -10,15 +10,15 @@ :geojson="store.distribution.geojson" @geojson:ready="() => (isLoading = false)" /> - - - Search - - + + + Search + + - -

    Type

    + +

    Type

    +

    @@ -11,6 +12,8 @@