@abi-software/map-side-bar 1.2.0 → 1.2.3
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 +60 -60
- 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 +60 -60
- 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 +1 -1
- package/scaffold_context_info.json +3 -1
- package/src/algolia/algolia.js +4 -1
- package/src/components/DatasetCard.vue +1 -0
- package/src/components/SidebarContent.vue +9 -10
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"id": "Sample 1",
|
|
12
12
|
"path": "",
|
|
13
13
|
"view": "View 1",
|
|
14
|
+
"color": "#FFFF00",
|
|
14
15
|
"thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
|
|
15
16
|
},
|
|
16
17
|
{
|
|
@@ -21,8 +22,9 @@
|
|
|
21
22
|
"id": "Sample 2",
|
|
22
23
|
"path": "",
|
|
23
24
|
"view": "View 2",
|
|
25
|
+
"color": "#FFA500",
|
|
24
26
|
"thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
|
|
25
27
|
}
|
|
26
28
|
],
|
|
27
|
-
"version": "0.1.0"
|
|
29
|
+
"version": "0.1.0"
|
|
28
30
|
}
|
package/src/algolia/algolia.js
CHANGED
|
@@ -75,6 +75,7 @@ export class AlgoliaClient {
|
|
|
75
75
|
_processResultsForCards(results) {
|
|
76
76
|
let newResults = []
|
|
77
77
|
let newResult = {}
|
|
78
|
+
let id = 0
|
|
78
79
|
for (let res of results) {
|
|
79
80
|
newResult = {...res}
|
|
80
81
|
newResult = {
|
|
@@ -83,7 +84,9 @@ export class AlgoliaClient {
|
|
|
83
84
|
description: res.item.description,
|
|
84
85
|
updated: res.pennsieve.updatedAt,
|
|
85
86
|
publishDate: res.pennsieve.publishDate,
|
|
86
|
-
|
|
87
|
+
id: id
|
|
88
|
+
}
|
|
89
|
+
id++
|
|
87
90
|
newResults.push(newResult)
|
|
88
91
|
}
|
|
89
92
|
return newResults
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
@loading="filtersLoading"
|
|
23
23
|
></SearchFilters>
|
|
24
24
|
<div class="content scrollbar" v-loading="loadingCards" ref="content">
|
|
25
|
-
<div v-if="loadingScicrunch" class="loading-icon" v-loading="loadingScicrunch"></div>
|
|
26
25
|
<div
|
|
27
26
|
class="error-feedback"
|
|
28
27
|
v-if="results.length === 0 && !loadingCards && !sciCrunchError"
|
|
29
28
|
>No results found - Please change your search / filter criteria.</div>
|
|
30
29
|
<div class="error-feedback" v-if="sciCrunchError">{{sciCrunchError}}</div>
|
|
30
|
+
<div v-if="loadingScicrunch" class="loading-icon" v-loading="loadingScicrunch"></div>
|
|
31
31
|
<div v-for="result in results" :key="result.id" class="step-item">
|
|
32
32
|
<DatasetCard :entry="result" :envVars="envVars" @contextUpdate="contextCardUpdate"></DatasetCard>
|
|
33
33
|
</div>
|
|
@@ -249,7 +249,6 @@ export default {
|
|
|
249
249
|
resultsProcessing: function(data) {
|
|
250
250
|
this.lastSearch = this.searchInput;
|
|
251
251
|
|
|
252
|
-
let id = 0;
|
|
253
252
|
if (data.results.length === 0) {
|
|
254
253
|
return;
|
|
255
254
|
}
|
|
@@ -276,19 +275,15 @@ export default {
|
|
|
276
275
|
organs: (element.organs && element.organs.length > 0)
|
|
277
276
|
? [...new Set(element.organs.map(v => v.name))]
|
|
278
277
|
: undefined,
|
|
279
|
-
species: element.organisms
|
|
278
|
+
species: element.organisms
|
|
280
279
|
? element.organisms[0].species
|
|
281
280
|
? [...new Set(element.organisms.map((v) =>v.species ? v.species.name : null))]
|
|
282
281
|
: undefined
|
|
283
282
|
: undefined, // This processing only includes each gender once into 'sexes'
|
|
284
|
-
id: id,
|
|
285
283
|
scaffolds: element['abi-scaffold-metadata-file'] ? element['abi-scaffold-metadata-file'] : undefined,
|
|
286
284
|
contextualInformation: element['abi-contextual-information'].length > 0 ? element['abi-contextual-information'] : undefined,
|
|
287
|
-
simulation: element
|
|
288
|
-
? element.additionalLinks[0].description == 'Repository'
|
|
289
|
-
: false,
|
|
285
|
+
simulation: element['abi-simulation-file'],
|
|
290
286
|
});
|
|
291
|
-
id++;
|
|
292
287
|
|
|
293
288
|
Vue.set(this.results, i, this.results[i])
|
|
294
289
|
});
|
|
@@ -384,15 +379,19 @@ export default {
|
|
|
384
379
|
}
|
|
385
380
|
|
|
386
381
|
.loading-icon {
|
|
387
|
-
position:
|
|
382
|
+
position: absolute;
|
|
388
383
|
display: flex;
|
|
389
384
|
float: right;
|
|
390
|
-
|
|
385
|
+
right: 40px;
|
|
391
386
|
z-index: 20;
|
|
392
387
|
width: 40px;
|
|
393
388
|
height: 40px;
|
|
394
389
|
}
|
|
395
390
|
|
|
391
|
+
.loading-icon >>> .el-loading-mask {
|
|
392
|
+
background-color: rgba(117, 190, 218, 0.0) !important;
|
|
393
|
+
}
|
|
394
|
+
|
|
396
395
|
.pagination >>> button {
|
|
397
396
|
background-color: white !important;
|
|
398
397
|
}
|