@abi-software/map-side-bar 1.2.0-beta.1 → 1.2.0-beta.4
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/dist/map-side-bar.common.js +215 -18075
- 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 +215 -18075
- 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-lock.json +1 -1
- package/package.json +2 -2
- package/src/components/DatasetCard.vue +5 -3
- package/src/components/ImageGallery.vue +15 -3
- package/dist/img/logo-sparc-wave-primary.8ed83a51.svg +0 -1
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/map-side-bar",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.4",
|
|
4
4
|
"main": "./dist/map-side-bar.common.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"start": "vue-cli-service serve"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@abi-software/gallery": "^0.
|
|
20
|
+
"@abi-software/gallery": "^0.3.0-beta.1",
|
|
21
21
|
"@abi-software/svg-sprite": "^0.1.14",
|
|
22
22
|
"algoliasearch": "^4.10.5",
|
|
23
23
|
"element-ui": "^2.13.0",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
<image-gallery v-if="dataIsReady"
|
|
12
12
|
:datasetId="discoverId"
|
|
13
13
|
:datasetVersion="version"
|
|
14
|
+
:name="entry.name"
|
|
15
|
+
:description="entry.description"
|
|
14
16
|
:envVars="envVars"
|
|
15
17
|
:images="entry.images"
|
|
16
18
|
:scaffolds="entry.scaffolds"
|
|
@@ -44,11 +46,11 @@
|
|
|
44
46
|
<div>
|
|
45
47
|
<el-button v-if="entry.simulation" @click="openRepository" size="mini" class="button" icon="el-icon-view">View repository</el-button>
|
|
46
48
|
</div>
|
|
47
|
-
|
|
49
|
+
|
|
48
50
|
<div>
|
|
49
51
|
<el-button v-if="entry.simulation" @click="openSimulation" size="mini" class="button" icon="el-icon-view">View simulation</el-button>
|
|
50
52
|
</div>
|
|
51
|
-
|
|
53
|
+
|
|
52
54
|
<!--
|
|
53
55
|
<div>
|
|
54
56
|
<el-button v-if="entry.segmentation" @click="openSegmentation" size="mini" class="button" icon="el-icon-view">View segmentation</el-button>
|
|
@@ -242,7 +244,7 @@ export default {
|
|
|
242
244
|
let action = {
|
|
243
245
|
label: undefined,
|
|
244
246
|
resource: resource,
|
|
245
|
-
|
|
247
|
+
discoverId: this.dataLocation,
|
|
246
248
|
apiLocation: this.envVars.API_LOCATION,
|
|
247
249
|
version: this.version,
|
|
248
250
|
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version,this.entry.contextualInformation) : undefined,
|
|
@@ -115,6 +115,14 @@ export default {
|
|
|
115
115
|
type: String,
|
|
116
116
|
default: "",
|
|
117
117
|
},
|
|
118
|
+
name: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: "",
|
|
121
|
+
},
|
|
122
|
+
description: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: "",
|
|
125
|
+
},
|
|
118
126
|
},
|
|
119
127
|
data() {
|
|
120
128
|
return {
|
|
@@ -165,7 +173,6 @@ export default {
|
|
|
165
173
|
id,
|
|
166
174
|
title: baseName(filePath),
|
|
167
175
|
type: "Image",
|
|
168
|
-
thumbnail: this.defaultImg,
|
|
169
176
|
link: linkUrl,
|
|
170
177
|
});
|
|
171
178
|
});
|
|
@@ -307,13 +314,18 @@ export default {
|
|
|
307
314
|
apiLocation: this.envVars.API_LOCATION,
|
|
308
315
|
version: this.datasetVersion,
|
|
309
316
|
title: "View simulation",
|
|
310
|
-
type: "Simulation"
|
|
317
|
+
type: "Simulation",
|
|
318
|
+
name: this.name,
|
|
319
|
+
description: this.description,
|
|
320
|
+
discoverId: this.datasetId,
|
|
321
|
+
dataset: `${this.envVars.ROOT_URL}/datasets/${this.datasetId}?type=dataset`
|
|
311
322
|
};
|
|
312
323
|
this.scicrunchItems.push({
|
|
313
324
|
id: "simulation",
|
|
314
325
|
title: resource,
|
|
315
326
|
type: "Simulation",
|
|
316
327
|
userData: action,
|
|
328
|
+
|
|
317
329
|
});
|
|
318
330
|
}
|
|
319
331
|
}
|
|
@@ -411,8 +423,8 @@ export default {
|
|
|
411
423
|
|
|
412
424
|
<style scoped>
|
|
413
425
|
.full-size {
|
|
414
|
-
width: 100%;
|
|
415
426
|
height: 100%;
|
|
427
|
+
width: 244px;
|
|
416
428
|
}
|
|
417
429
|
|
|
418
430
|
.key-image-span.active {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg id="logo-sparc-wave-primary" data-name="logo-sparc-wave-primary" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 190.5854"><defs><linearGradient id="linear-gradient" y1="96.3505" x2="400" y2="96.3505" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0b00bf"/><stop offset="1" stop-color="#bc00fc"/></linearGradient></defs><title>SPARC Logo</title><path d="M396.6976,128.6248l-146.2735-3.38a6.5358,6.5358,0,0,0-6.1378,3.9236l-.0612.1407-13.673,31.4482L202.9416,9.5333l-.01-.0685a8.9823,8.9823,0,0,0-17.6624-.0114L163.673,125.3819,3.298,129.2886a3.38,3.38,0,0,0,.0269,6.7592L169.34,138.7635a6.5939,6.5939,0,0,0,6.5373-5.1457l.0571-.2546,17.8534-79.5649L221.26,185.1237l.0256.1243A6.7593,6.7593,0,0,0,234.092,186.52L254.9005,138.66l141.7971-3.2762a3.3805,3.3805,0,0,0,0-6.7592Z" style="fill:url(#linear-gradient)"/><path d="M25.6793,0C41.3957,0,51.057,10.0926,51.057,26.0972v9.5162H36.2053V26.0972c0-7.3532-3.8945-11.8219-10.526-11.8219-6.7768,0-10.6691,4.4687-10.6691,11.8219,0,3.8945,1.2982,7.3533,5.4786,11.3908l19.754,18.601C46.5861,62.1441,52.21,68.7778,52.21,79.88c0,16.0047-9.95,26.0973-25.9543,26.0973C10.108,105.9776.1585,95.885.1585,79.88V70.362H15.01V79.88c0,7.3533,4.0375,11.822,11.2455,11.822,7.065,0,11.1025-4.4687,11.1025-11.822,0-4.4709-2.1628-8.6514-6.0551-12.2576L11.1158,48.7357C3.043,41.2372.1585,34.8939.1585,25.666.1585,10.0926,9.82,0,25.6793,0Z" style="fill:#0e0e19"/><path d="M99.7971,69.7856v35.1821H84.9454V1.01h25.3755c16.0047,0,26.0973,10.0926,26.0973,26.0973V43.6883c0,16.15-10.0926,26.0973-26.0973,26.0973Zm10.3808-13.9849c7.2081,0,11.3908-4.3257,11.3908-11.6789V26.6759c0-7.21-4.1827-11.6811-11.3908-11.6811H99.7971V55.8007Z" style="fill:#0e0e19"/><path d="M278.5812,108.147H263.73V4.1893h26.0972c16.0047,0,26.0973,10.0926,26.0973,26.0972v14.13c0,9.95-4.3257,17.7363-11.3908,22.205,4.1827,12.6889,10.0926,29.9917,13.8418,41.5254h-15.14L290.6914,70.3708h-12.11Zm11.1-51.7632c7.21,0,11.3907-4.3257,11.3907-11.5338V29.8553c0-7.21-4.18-11.6812-11.3907-11.6812h-11.1v38.21Z" style="fill:#0e0e19"/><path d="M399.844,73.5414V83.06c0,16.0047-9.9474,26.0973-25.9521,26.0973-16.15,0-26.0972-10.0926-26.0972-26.0973V29.2766c0-16.0046,9.9473-26.0972,26.0972-26.0972,16.0047,0,25.9521,10.0926,25.9521,26.0972v9.5161h-14.85V29.2766c0-7.3532-4.0374-11.822-11.1025-11.822-7.21,0-11.2477,4.4688-11.2477,11.822V83.06c0,7.3533,4.0375,11.822,11.2477,11.822,7.0651,0,11.1025-4.4687,11.1025-11.822V73.5414Z" style="fill:#0e0e19"/></svg>
|