diff --git a/.env b/.env index c2d1ab80..560ff8d6 100644 --- a/.env +++ b/.env @@ -6,4 +6,5 @@ VITE_APP_ALGOLIA_INDEX=k-core_dev_published_time_desc VITE_APP_BL_SERVER_URL= VITE_APP_NL_LINK_PREFIX= VITE_APP_ROOT_URL= -VITE_FLATMAPAPI_LOCATION=https://mapcore-demo.org/curation/flatmap/ \ No newline at end of file +VITE_FLATMAPAPI_LOCATION=https://mapcore-demo.org/curation/flatmap/ +VITE_APP_CELL_CARDS_API=http://localhost:8787/cellCardsData.json diff --git a/src/App.vue b/src/App.vue index 3299be0d..b1e7a0c4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -19,6 +19,7 @@ Get facets Create Data/Annotation Connectivity Search + Show Cell Card Explorer str.charAt(0).toUpperCase() + str.slice(1); +import { capitalise } from './utils/common.js' const flatmapQuery = (flatmapApi, sql) => { const data = { sql: sql }; @@ -136,6 +136,7 @@ export default { BL_SERVER_URL: import.meta.env.VITE_APP_BL_SERVER_URL, ROOT_URL: import.meta.env.VITE_APP_ROOT_URL, FLATMAPAPI_LOCATION: import.meta.env.VITE_FLATMAPAPI_LOCATION, + CELL_CARDS_API: import.meta.env.VITE_APP_CELL_CARDS_API, }, connectivityEntry: [], createData: { @@ -152,6 +153,7 @@ export default { query: '', filter: [], target: [], + showCellCards: false, } }, methods: { @@ -366,7 +368,12 @@ export default { }, onConnectivityCollapseChange: function () { this.connectivityEntry = [...exampleConnectivityInput] - } + }, + showCellCardExplorer: function () { + this.showCellCards = true; + this.$refs.sideBar.tabClicked({ id: 4, type: 'cellCardExplorer' }); + this.$refs.sideBar.setDrawerOpen(true); + }, }, mounted: async function () { console.log('mounted app') diff --git a/src/components.d.ts b/src/components.d.ts index 6b02393b..388aab43 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,8 @@ declare module 'vue' { export interface GlobalComponents { AnnotationTool: typeof import('./components/AnnotationTool.vue')['default'] BadgesGroup: typeof import('./components/BadgesGroup.vue')['default'] + CellCard: typeof import('./components/CellCard.vue')['default'] + CellCardExplorer: typeof import('./components/CellCardExplorer.vue')['default'] ConnectivityCard: typeof import('./components/ConnectivityCard.vue')['default'] ConnectivityExplorer: typeof import('./components/ConnectivityExplorer.vue')['default'] ConnectivityInfo: typeof import('./components/ConnectivityInfo.vue')['default'] @@ -43,6 +45,7 @@ declare module 'vue' { ElRow: typeof import('element-plus/es')['ElRow'] ElSelect: typeof import('element-plus/es')['ElSelect'] ElTag: typeof import('element-plus/es')['ElTag'] + IconOpenExternal: typeof import('./components/icons/IconOpenExternal.vue')['default'] ImageGallery: typeof import('./components/ImageGallery.vue')['default'] SearchFilters: typeof import('./components/SearchFilters.vue')['default'] SearchHistory: typeof import('./components/SearchHistory.vue')['default'] diff --git a/src/components/CellCard.vue b/src/components/CellCard.vue new file mode 100644 index 00000000..24194b85 --- /dev/null +++ b/src/components/CellCard.vue @@ -0,0 +1,994 @@ + + + + + diff --git a/src/components/CellCardExplorer.vue b/src/components/CellCardExplorer.vue new file mode 100644 index 00000000..17cdc24e --- /dev/null +++ b/src/components/CellCardExplorer.vue @@ -0,0 +1,882 @@ + + + + + diff --git a/src/components/ConnectivityCard.vue b/src/components/ConnectivityCard.vue index 40b4f649..9bd0cb58 100644 --- a/src/components/ConnectivityCard.vue +++ b/src/components/ConnectivityCard.vue @@ -28,6 +28,7 @@