-
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.
Merge pull request #23 from SpeciesFileGroup/development
Development
- Loading branch information
Showing
15 changed files
with
1,892 additions
and
2,373 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,30 +1,31 @@ | ||
| { | ||
| "name": "taxonpages", | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "vite build", | ||
| "preview": "vite preview", | ||
| "lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src" | ||
| }, | ||
| "dependencies": { | ||
| "axios": "^1.1.3", | ||
| "axios": "^1.3.4", | ||
| "js-yaml": "^4.1.0", | ||
| "leaflet": "^1.9.2", | ||
| "vue": "^3.2.41", | ||
| "leaflet": "^1.9.3", | ||
| "vue": "^3.2.47", | ||
| "vue-router": "^4.1.6" | ||
| }, | ||
| "devDependencies": { | ||
| "@tailwindcss/typography": "^0.5.7", | ||
| "@vitejs/plugin-vue": "^3.2.0", | ||
| "autoprefixer": "^10.4.13", | ||
| "eslint": "^8.26.0", | ||
| "eslint-plugin-vue": "^9.7.0", | ||
| "postcss": "^8.4.18", | ||
| "sass": "^1.56.0", | ||
| "tailwindcss": "^3.2.1", | ||
| "vite": "^3.2.2", | ||
| "vite-plugin-md": "^0.20.4", | ||
| "vite-plugin-pages": "^0.27.1" | ||
| "@tailwindcss/typography": "^0.5.9", | ||
| "@vitejs/plugin-vue": "^4.0.0", | ||
| "autoprefixer": "^10.4.14", | ||
| "eslint": "^8.35.0", | ||
| "eslint-plugin-vue": "^9.9.0", | ||
| "postcss": "^8.4.21", | ||
| "sass": "^1.58.3", | ||
| "tailwindcss": "^3.2.7", | ||
| "vite": "^4.1.4", | ||
| "vite-plugin-md": "^0.21.5", | ||
| "vite-plugin-pages": "^0.28.0" | ||
| } | ||
| } |
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,17 @@ | ||
| const fs = require('fs') | ||
| const { | ||
| userTailwindConfigPath, | ||
| defaultTailwindConfigPath | ||
| } = require('./src/constants/configPaths.cjs') | ||
|
|
||
| module.exports = { | ||
| plugins: { | ||
| 'tailwindcss/nesting': {}, | ||
| tailwindcss: { | ||
| config: fs.existsSync(userTailwindConfigPath) | ||
| ? userTailwindConfigPath | ||
| : defaultTailwindConfigPath | ||
| }, | ||
| autoprefixer: {} | ||
| } | ||
| } |
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
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,4 @@ | ||
| module.exports = { | ||
| userTailwindConfigPath: './config/vendor/tailwind.config.cjs', | ||
| defaultTailwindConfigPath: './tailwind.config.cjs' | ||
| } |
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
74 changes: 14 additions & 60 deletions
74
src/modules/otus/components/Panel/PanelCitation/PanelCitationRow.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 |
|---|---|---|
| @@ -1,69 +1,23 @@ | ||
| <template> | ||
| <div | ||
| class=" | ||
| flex | ||
| justify-start | ||
| border-b | ||
| border-base-muted | ||
| p-3 | ||
| px-4 | ||
| " | ||
| > | ||
| <div | ||
| class="h-5 w-5 text-secondary-color opacity-60 mr-2 cursor-pointer" | ||
| @click="isExpanded = !isExpanded" | ||
| > | ||
| <IconArrowRight | ||
| v-if="!isExpanded" | ||
| class="h-5 w-5" | ||
| /> | ||
| <IconArrowDown | ||
| v-else | ||
| class="h-5 w-5" | ||
| /> | ||
| </div> | ||
|
|
||
| <div class="break-all"> | ||
| <span | ||
| :title="citation.source.name" | ||
| v-html="sourceLabel" | ||
| /> | ||
| <span> — </span> | ||
| <span | ||
| class=" text-base-lighter" | ||
| v-html="taxonNames" | ||
| /> | ||
| </div> | ||
| </div> | ||
| <li class="border-b border-base-muted p-3 px-5"> | ||
| <span | ||
| class="break-all block" | ||
| :title="citation.label" | ||
| v-html="citation.label" | ||
| /> | ||
| <span | ||
| v-if="citation.type_label" | ||
| class="ml-4 text-base-soft" | ||
| v-html="citation.type_label" | ||
| /> | ||
| </li> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| import { ref, computed } from 'vue' | ||
| const props = defineProps({ | ||
| defineProps({ | ||
| citation: { | ||
| type: Object, | ||
| required: true | ||
| } | ||
| }) | ||
| const isExpanded = ref(false) | ||
| const sourceLabel = computed(() => { | ||
| const { source } = props.citation | ||
| return isExpanded.value | ||
| ? source.name | ||
| : source.short_name | ||
| }) | ||
| const taxonNames = computed(() => props.citation.names.join(', ')) | ||
| const setExpanded = value => { | ||
| isExpanded.value = value | ||
| } | ||
| defineExpose({ | ||
| setExpanded | ||
| }) | ||
| </script> | ||
| </script> |
18 changes: 18 additions & 0 deletions
18
src/modules/otus/components/Panel/PanelCitation/PanelReferenceRow.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,18 @@ | ||
| <template> | ||
| <li class="border-b border-base-muted p-3 px-5"> | ||
| <span | ||
| class="break-all block" | ||
| :title="source" | ||
| v-html="source" | ||
| /> | ||
| </li> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| defineProps({ | ||
| source: { | ||
| type: String, | ||
| required: 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
Oops, something went wrong.