-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
José Luis Pereira
committed
Sep 5, 2022
1 parent
ac2ecc6
commit 4818bf2
Showing
21 changed files
with
128 additions
and
115 deletions.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/modules/otus/components/Panel/PanelTypeDesignation/PanelTypeDesignation.vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <template> | ||
| <VCard> | ||
| <VCardHeader> | ||
| <h1 class="text-md"> | ||
| Type | ||
| </h1> | ||
| </VCardHeader> | ||
| <VCardContent class="text-sm"> | ||
| <p v-html="typeDesignationLabel" /> | ||
| </VCardContent> | ||
| </VCard> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| import { ref, watch, computed } from 'vue' | ||
| import TaxonWorks from '../../../services/TaxonWorks' | ||
| const props = defineProps({ | ||
| taxonId: { | ||
| type: [String, Number], | ||
| required: true | ||
| } | ||
| }) | ||
| const typeDesignation = ref({}) | ||
| const typeDesignationLabel = computed(() => | ||
| [ | ||
| typeDesignation.value.subject_object_tag || '', | ||
| typeDesignation.value.subject_status_tag || '', | ||
| typeDesignation.value.object_object_tag || '' | ||
| ].join(' ')) | ||
| watch( | ||
| () => props.taxonId, | ||
| async () => { | ||
| if (!props.taxonId) { return } | ||
| TaxonWorks.getTaxonTypeDesignation(props.taxonId).then(({ data }) => { | ||
| typeDesignation.value = data.type_taxon_name_relationship | ||
| }) | ||
| }, | ||
| { immediate: true } | ||
| ) | ||
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export * from './typeOrder'; | ||
| export * from './typeOrder' | ||
| export * from './rankGroups' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import { FAMILY_GROUP, GENUS_GROUP, SPECIES_GROUP } from './index.js' | ||
| import PanelGallery from '../components/Panel/PanelGallery/Gallery.vue' | ||
| import PanelTypeSpecimen from '../components/Panel/PanelTypeSpecimen/PanelTypeSpecimen.vue' | ||
| import PanelTypeDesignation from '../components/Panel/PanelTypeDesignation/PanelTypeDesignation.vue' | ||
| import PanelCitations from '../components/Panel/PanelCitation/PanelCitation.vue' | ||
| import PanelMap from '../components/Panel/PanelMap/PanelMap.vue' | ||
| import PanelDescendants from '../components/Panel/PanelDescendants/Descendants.vue' | ||
| import PanelContent from '../components/Panel/PanelContent/PanelContent.vue' | ||
|
|
||
| export const overviewLayout = { | ||
| left: [ | ||
| { component: PanelGallery }, | ||
| { | ||
| component: PanelTypeSpecimen, | ||
| available: [SPECIES_GROUP] | ||
| }, | ||
| { | ||
| component: PanelTypeDesignation, | ||
| available: [FAMILY_GROUP, GENUS_GROUP] | ||
| }, | ||
| { component: PanelCitations } | ||
| ], | ||
|
|
||
| right: [ | ||
| { component: PanelMap }, | ||
| { component: PanelDescendants }, | ||
| { component: PanelContent } | ||
| ] | ||
| } |
File renamed without changes.
Oops, something went wrong.