Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ImageThumbnails component in Sidebar #11

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4670afc
Add ImageThumbnails component in Sidebar
akhuoa Sep 5, 2024
64f0477
Show images tab in sidebar for image thumbnails
akhuoa Sep 5, 2024
51a29aa
Show image thumbnails with species filter
akhuoa Sep 6, 2024
8736f4e
Emit close event for imageThumbnail Tab
akhuoa Sep 9, 2024
b006448
Add dataset URL inn imageThumbnails sidebar
akhuoa Sep 9, 2024
dfa3e15
Add view selector in imageThumbnail on sidebar
akhuoa Sep 9, 2024
ceede37
Update ImageThumbnails on sidebar UI
akhuoa Sep 9, 2024
e7cda00
Add copy to clipboard feature in image thumbnail sidebar
akhuoa Sep 9, 2024
3ac4188
Remove unused file
akhuoa Sep 9, 2024
c05ecf3
Update image thumbnail button links
akhuoa Sep 9, 2024
3bad3c6
Add sample data to show images on sidebar
akhuoa Sep 10, 2024
04a7234
2.4.2-beta.0
akhuoa Sep 10, 2024
09f708f
Add dataset view button in image thumbnail card
akhuoa Sep 13, 2024
3acf34f
Add dataset details in image thumbnail card
akhuoa Sep 16, 2024
77097c2
Update image thumbnail links
akhuoa Sep 16, 2024
dadb121
Update image thumbnail copy content
akhuoa Sep 16, 2024
3d8dd29
Update fetching image thumbnails data
akhuoa Sep 17, 2024
079f9ac
Update data fetching for image thumbnnail dataset
akhuoa Sep 17, 2024
5edfea2
Update image thumbnail cards UI
akhuoa Sep 17, 2024
34851b9
Update image thumbnail links
akhuoa Sep 17, 2024
b3dd2d9
Update image thumbnail card click for image type
akhuoa Sep 19, 2024
305e44f
Add image title and fix data update
akhuoa Sep 23, 2024
e4785a5
Remove gallery view from image thumbnails list
akhuoa Sep 23, 2024
d354bfe
Add segmentation card click in image thumbnail list
akhuoa Sep 23, 2024
ca5cb41
Add thumbnnail click emit for scaffold and plot
akhuoa Sep 23, 2024
82e0b62
Add search filter UI for image thumbnnails
akhuoa Sep 23, 2024
2a56087
Add filters for image thumbnails
akhuoa Sep 24, 2024
e8adba1
Add imageThumbnails component into search area instead of separate tab
akhuoa Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
346 changes: 186 additions & 160 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abi-software/map-side-bar",
"version": "2.4.1",
"version": "2.4.2-beta.0",
"files": [
"dist/*",
"src/*",
Expand Down
25 changes: 24 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<el-button @click="neuronSearch">open neuron search</el-button>
<el-button @click="keywordSearch">keyword search</el-button>
<el-button @click="getFacets">Get facets</el-button>
<el-button @click="showImages">Show Images</el-button>
</div>
<SideBar
:envVars="envVars"
Expand All @@ -23,10 +24,13 @@
:tabs="tabs"
:activeTabId="activeId"
:connectivityInfo="connectivityInput"
:imageThumbnails="imageThumbnails"
@tabClicked="tabClicked"
@search-changed="searchChanged($event)"
@hover-changed="hoverChanged($event)"
@actionClick="action"
@connectivity-info-close="onConnectivityInfoClose"
@image-thumbnail-close="onImageThumbnailClose"
/>
</div>
</template>
Expand All @@ -37,6 +41,7 @@
import SideBar from './components/SideBar.vue'
import EventBus from './components/EventBus.js'
import exampleConnectivityInput from './exampleConnectivityInput.js'
import imageThumbnails from './data/images.json';

const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);

Expand Down Expand Up @@ -101,7 +106,11 @@ export default {
data: function () {
return {
contextArray: [null, null],
tabArray: [{ title: 'Flatmap', id: 1, type: 'search'}, { title: 'Connectivity', id: 2, type: 'connectivity' }],
tabArray: [
{ title: 'Flatmap', id: 1, type: 'search'},
{ title: 'Connectivity', id: 2, type: 'connectivity' },
// { title: 'Images', id: 3, type: 'images' },
],
sideBarVisibility: true,
envVars: {
API_LOCATION: import.meta.env.VITE_APP_API_LOCATION,
Expand All @@ -114,6 +123,7 @@ export default {
ROOT_URL: import.meta.env.VITE_APP_ROOT_URL,
},
connectivityInput: exampleConnectivityInput,
imageThumbnails: imageThumbnails,
activeId: 1,
}
},
Expand Down Expand Up @@ -224,6 +234,19 @@ export default {
let facets = await this.$refs.sideBar.getAlgoliaFacets()
console.log('Algolia facets:', facets)
},
showImages: function () {
if (this.$refs.sideBar) {
// this.tabClicked({id: 1, type: 'images'});
this.$refs.sideBar.searchType = 'images';
this.$refs.sideBar.setDrawerOpen(true);
}
},
onConnectivityInfoClose: function () {
console.log('connectivity-info-close');
},
onImageThumbnailClose: function () {
console.log('image-thumbnail-close');
},
},
mounted: function () {
console.log('mounted app')
Expand Down
4 changes: 4 additions & 0 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ declare module 'vue' {
ElIconArrowRight: typeof import('@element-plus/icons-vue')['ArrowRight']
ElIconLocation: typeof import('@element-plus/icons-vue')['Location']
ElIconWarning: typeof import('@element-plus/icons-vue')['Warning']
ElIconWarnTriangleFilled: typeof import('@element-plus/icons-vue')['WarnTriangleFilled']
ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput']
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
Expand All @@ -27,6 +29,8 @@ declare module 'vue' {
ElTag: typeof import('element-plus/es')['ElTag']
ExternalResourceCard: typeof import('./components/ExternalResourceCard.vue')['default']
ImageGallery: typeof import('./components/ImageGallery.vue')['default']
ImageThumbnails: typeof import('./components/ImageThumbnails.vue')['default']
ImageThumbnailsGallery: typeof import('./components/ImageThumbnailsGallery.vue')['default']
SearchFilters: typeof import('./components/SearchFilters.vue')['default']
SearchHistory: typeof import('./components/SearchHistory.vue')['default']
SideBar: typeof import('./components/SideBar.vue')['default']
Expand Down
Loading