@abi-software/map-side-bar 1.3.25 → 1.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/delte.json +30 -0
- package/dist/map-side-bar.common.js +99 -85
- package/dist/map-side-bar.common.js.map +1 -1
- package/dist/map-side-bar.css +1 -1
- package/dist/map-side-bar.umd.js +99 -85
- package/dist/map-side-bar.umd.js.map +1 -1
- package/dist/map-side-bar.umd.min.js +1 -1
- package/dist/map-side-bar.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/scaffold_context_info.json +1 -0
- package/src/components/ContextCard.vue +11 -1
- package/src/components/ImageGallery.vue +1 -0
- package/src/components/SidebarContent.vue +2 -2
- package/src/components/delte.json +0 -27
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"description": "This dataset contains single cell scale anatomical map of the rat intrinsic cardiac nervous system (ICNS) across four male and three female hearts. These cell clusters can be seen by the yellow data points on the image as well as spherical markers on the 3D heart scaffold. The dataset provides an integrative framework to visualise the spatial distribution of ICNS across different hearts.",
|
|
3
3
|
"heading": "Mapped ICN samples",
|
|
4
4
|
"id": "sparc.science.context_data",
|
|
5
|
+
"views": [],
|
|
5
6
|
"samples": [
|
|
6
7
|
{
|
|
7
8
|
"annotation": "",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div v-show="!showDetails" class="hide" @click="showDetails = !showDetails">Show information<i class="el-icon-arrow-down"></i></div>
|
|
6
6
|
<el-card v-if="showDetails && Object.keys(contextData).length !== 0" v-loading="loading" class="context-card" >
|
|
7
7
|
<div class="card-left">
|
|
8
|
-
<img :src="
|
|
8
|
+
<img :src="banner" class="context-image">
|
|
9
9
|
</div>
|
|
10
10
|
<div class="card-right scrollbar">
|
|
11
11
|
<div class="title">{{contextData.heading}}</div>
|
|
@@ -158,6 +158,16 @@ export default {
|
|
|
158
158
|
}
|
|
159
159
|
else return false
|
|
160
160
|
},
|
|
161
|
+
banner: function(){
|
|
162
|
+
if (this.contextData.banner){
|
|
163
|
+
this.getFileFromPath(this.contextData.banner)
|
|
164
|
+
} else if (this.contextData && this.contextData.views) {
|
|
165
|
+
if(this.contextData.views[0].thumbnail){
|
|
166
|
+
return this.getFileFromPath(this.contextData.views[0].thumbnail)
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return this.entry.banner
|
|
170
|
+
}
|
|
161
171
|
},
|
|
162
172
|
methods: {
|
|
163
173
|
samplesMatching: function(viewId){
|
|
@@ -311,7 +311,7 @@ export default {
|
|
|
311
311
|
}
|
|
312
312
|
data.results.forEach(element => {
|
|
313
313
|
// match the scicrunch result with algolia result
|
|
314
|
-
let i = this.results.findIndex(res=>
|
|
314
|
+
let i = this.results.findIndex(res => element.doi ? element.doi.includes(res.doi) : false )
|
|
315
315
|
// Assign scicrunch results to the object
|
|
316
316
|
Object.assign(this.results[i], element)
|
|
317
317
|
// Assign the attributes that need some processing
|
|
@@ -322,7 +322,7 @@ export default {
|
|
|
322
322
|
numberSubjects: element.subjectSize
|
|
323
323
|
? parseInt(element.subjectSize)
|
|
324
324
|
: 0,
|
|
325
|
-
updated: element.updated[0].timestamp.split("T")[0],
|
|
325
|
+
updated: (element.updated && element.updated.length) > 0 ? element.updated[0].timestamp.split("T")[0] : "",
|
|
326
326
|
url: element.uri[0],
|
|
327
327
|
datasetId: element.dataset_identifier,
|
|
328
328
|
datasetRevision: element.dataset_revision,
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "Mean luminal pressure (represented by a color field with red as high pressure and blue as low pressure) recorded from the proximal, transverse and distal sections of the pig colon are mapped on the scaffold. \n\nBaseline data was collected for 30min, followed by 15min of stimulation and 30min of post-stimulation.",
|
|
3
|
-
"heading": "Direct proximal colon stimulation",
|
|
4
|
-
"id": "sparc.science.context_data",
|
|
5
|
-
"samples": [
|
|
6
|
-
{
|
|
7
|
-
"annotation": "",
|
|
8
|
-
"description": "Manometry data recorded from pigs under direct proximal colon stimulation.",
|
|
9
|
-
"doi": "https://doi.org/10.26275/up27-ibcr",
|
|
10
|
-
"heading": "Proximal direct stimulation samples",
|
|
11
|
-
"id": "Sample 1",
|
|
12
|
-
"path": "derivative\\stim_proximal-colon_manometry.csv",
|
|
13
|
-
"view": "View 1"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"version": "0.1.0",
|
|
17
|
-
"views": [
|
|
18
|
-
{
|
|
19
|
-
"annotation": "--",
|
|
20
|
-
"description": "Sections of pig colon scaffold with mapped manometry data where the data are collected from. ",
|
|
21
|
-
"id": "View 1",
|
|
22
|
-
"path": "colon_Layout1_view.json",
|
|
23
|
-
"sample": "Sample 1",
|
|
24
|
-
"thumbnail": "derivative\\pig_colon_main_thumbnail.jpeg"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|