@abi-software/map-side-bar 1.2.2 → 1.3.0
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/LICENSE +201 -201
- package/README.md +53 -53
- package/babel.config.js +14 -14
- package/dist/map-side-bar.common.js +1126 -405
- 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 +1126 -405
- 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 +13698 -13548
- package/package.json +65 -64
- package/public/index.html +17 -17
- package/src/App.vue +133 -130
- package/src/algolia/algolia.js +127 -119
- package/src/algolia/utils.js +51 -51
- package/src/components/BadgesGroup.vue +141 -0
- package/src/components/Cascader.vue +49 -49
- package/src/components/ContextCard.vue +240 -240
- package/src/components/DatasetCard.vue +324 -404
- package/src/components/EventBus.js +3 -3
- package/src/components/ImageGallery.vue +502 -0
- package/src/components/SearchFilters.vue +557 -557
- package/src/components/SideBar.vue +239 -239
- package/src/components/SidebarContent.vue +476 -457
- package/src/components/Tabs.vue +78 -78
- package/src/components/hardcoded-context-info.js +79 -79
- package/src/components/index.js +8 -8
- package/src/components/species-map.js +8 -8
- package/src/main.js +8 -8
- package/static.json +6 -6
- package/vue.config.js +11 -11
- package/scaffold_context_info.json +0 -30
- package/src/components/processFilters.js +0 -22
- package/src/components/scaffold-meta-map.js +0 -29
package/dist/map-side-bar.umd.js
CHANGED
|
@@ -138,17 +138,21 @@ module.exports = require("element-ui/lib/theme-chalk/select.css");
|
|
|
138
138
|
|
|
139
139
|
/***/ }),
|
|
140
140
|
|
|
141
|
-
/***/ "
|
|
142
|
-
/***/ (function(module, exports
|
|
141
|
+
/***/ "139f":
|
|
142
|
+
/***/ (function(module, exports) {
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
module.exports = require("core-js/modules/es.array.for-each");
|
|
145
145
|
|
|
146
146
|
/***/ }),
|
|
147
147
|
|
|
148
|
-
/***/ "
|
|
149
|
-
/***/ (function(module,
|
|
148
|
+
/***/ "183e":
|
|
149
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
"use strict";
|
|
152
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tabs_vue_vue_type_style_index_0_id_5d1b9484_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6cf4");
|
|
153
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tabs_vue_vue_type_style_index_0_id_5d1b9484_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tabs_vue_vue_type_style_index_0_id_5d1b9484_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
154
|
+
/* unused harmony reexport * */
|
|
155
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tabs_vue_vue_type_style_index_0_id_5d1b9484_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
152
156
|
|
|
153
157
|
/***/ }),
|
|
154
158
|
|
|
@@ -166,13 +170,6 @@ module.exports = require("core-js/modules/web.dom-collections.iterator");
|
|
|
166
170
|
|
|
167
171
|
/***/ }),
|
|
168
172
|
|
|
169
|
-
/***/ "1e9c":
|
|
170
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
171
|
-
|
|
172
|
-
// extracted by mini-css-extract-plugin
|
|
173
|
-
|
|
174
|
-
/***/ }),
|
|
175
|
-
|
|
176
173
|
/***/ "2175":
|
|
177
174
|
/***/ (function(module, exports) {
|
|
178
175
|
|
|
@@ -194,17 +191,6 @@ module.exports = require("element-ui/lib/theme-chalk/button.css");
|
|
|
194
191
|
|
|
195
192
|
/***/ }),
|
|
196
193
|
|
|
197
|
-
/***/ "26e6":
|
|
198
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
199
|
-
|
|
200
|
-
"use strict";
|
|
201
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_75e03782_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f86d");
|
|
202
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_75e03782_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_75e03782_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
203
|
-
/* unused harmony reexport * */
|
|
204
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_75e03782_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
205
|
-
|
|
206
|
-
/***/ }),
|
|
207
|
-
|
|
208
194
|
/***/ "2a6f":
|
|
209
195
|
/***/ (function(module, exports) {
|
|
210
196
|
|
|
@@ -219,35 +205,53 @@ module.exports = require("element-ui/lib/theme-chalk/loading.css");
|
|
|
219
205
|
|
|
220
206
|
/***/ }),
|
|
221
207
|
|
|
222
|
-
/***/ "
|
|
223
|
-
/***/ (function(module, exports) {
|
|
208
|
+
/***/ "2c6a":
|
|
209
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
224
210
|
|
|
225
|
-
|
|
211
|
+
// extracted by mini-css-extract-plugin
|
|
226
212
|
|
|
227
213
|
/***/ }),
|
|
228
214
|
|
|
229
|
-
/***/ "
|
|
230
|
-
/***/ (function(module,
|
|
215
|
+
/***/ "2dd0":
|
|
216
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
231
217
|
|
|
232
|
-
|
|
218
|
+
"use strict";
|
|
219
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchFilters_vue_vue_type_style_index_0_id_57801ec0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("db11");
|
|
220
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchFilters_vue_vue_type_style_index_0_id_57801ec0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchFilters_vue_vue_type_style_index_0_id_57801ec0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
221
|
+
/* unused harmony reexport * */
|
|
222
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchFilters_vue_vue_type_style_index_0_id_57801ec0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
233
223
|
|
|
234
224
|
/***/ }),
|
|
235
225
|
|
|
236
|
-
/***/ "
|
|
226
|
+
/***/ "373b":
|
|
237
227
|
/***/ (function(module, exports) {
|
|
238
228
|
|
|
239
|
-
module.exports = require("
|
|
229
|
+
module.exports = require("element-ui/lib/drawer");
|
|
230
|
+
|
|
231
|
+
/***/ }),
|
|
232
|
+
|
|
233
|
+
/***/ "3a09":
|
|
234
|
+
/***/ (function(module, exports) {
|
|
235
|
+
|
|
236
|
+
module.exports = require("@abi-software/gallery");
|
|
240
237
|
|
|
241
238
|
/***/ }),
|
|
242
239
|
|
|
243
|
-
/***/ "
|
|
240
|
+
/***/ "3d4f":
|
|
244
241
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
245
242
|
|
|
246
243
|
"use strict";
|
|
247
|
-
/* harmony import */ var
|
|
248
|
-
/* harmony import */ var
|
|
244
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_0d501578_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2c6a");
|
|
245
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_0d501578_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_0d501578_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
249
246
|
/* unused harmony reexport * */
|
|
250
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (
|
|
247
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_0d501578_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
248
|
+
|
|
249
|
+
/***/ }),
|
|
250
|
+
|
|
251
|
+
/***/ "429c":
|
|
252
|
+
/***/ (function(module, exports) {
|
|
253
|
+
|
|
254
|
+
module.exports = require("@abi-software/svg-sprite");
|
|
251
255
|
|
|
252
256
|
/***/ }),
|
|
253
257
|
|
|
@@ -307,6 +311,31 @@ module.exports = require("core-js/modules/es.regexp.exec");
|
|
|
307
311
|
|
|
308
312
|
/***/ }),
|
|
309
313
|
|
|
314
|
+
/***/ "5658":
|
|
315
|
+
/***/ (function(module, exports) {
|
|
316
|
+
|
|
317
|
+
module.exports = require("@abi-software/gallery/dist/gallery.css");
|
|
318
|
+
|
|
319
|
+
/***/ }),
|
|
320
|
+
|
|
321
|
+
/***/ "5835":
|
|
322
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
323
|
+
|
|
324
|
+
// extracted by mini-css-extract-plugin
|
|
325
|
+
|
|
326
|
+
/***/ }),
|
|
327
|
+
|
|
328
|
+
/***/ "584e":
|
|
329
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
330
|
+
|
|
331
|
+
"use strict";
|
|
332
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageGallery_vue_vue_type_style_index_0_id_2fb38a56_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6b3a");
|
|
333
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageGallery_vue_vue_type_style_index_0_id_2fb38a56_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageGallery_vue_vue_type_style_index_0_id_2fb38a56_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
334
|
+
/* unused harmony reexport * */
|
|
335
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageGallery_vue_vue_type_style_index_0_id_2fb38a56_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
336
|
+
|
|
337
|
+
/***/ }),
|
|
338
|
+
|
|
310
339
|
/***/ "5d8c":
|
|
311
340
|
/***/ (function(module, exports) {
|
|
312
341
|
|
|
@@ -342,6 +371,13 @@ module.exports = require("core-js/modules/es.object.get-own-property-descriptor"
|
|
|
342
371
|
|
|
343
372
|
/***/ }),
|
|
344
373
|
|
|
374
|
+
/***/ "6b3a":
|
|
375
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
376
|
+
|
|
377
|
+
// extracted by mini-css-extract-plugin
|
|
378
|
+
|
|
379
|
+
/***/ }),
|
|
380
|
+
|
|
345
381
|
/***/ "6bd8":
|
|
346
382
|
/***/ (function(module, exports) {
|
|
347
383
|
|
|
@@ -356,6 +392,13 @@ module.exports = require("element-ui/lib/locale/lang/en");
|
|
|
356
392
|
|
|
357
393
|
/***/ }),
|
|
358
394
|
|
|
395
|
+
/***/ "6cf4":
|
|
396
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
397
|
+
|
|
398
|
+
// extracted by mini-css-extract-plugin
|
|
399
|
+
|
|
400
|
+
/***/ }),
|
|
401
|
+
|
|
359
402
|
/***/ "6e25":
|
|
360
403
|
/***/ (function(module, exports) {
|
|
361
404
|
|
|
@@ -377,14 +420,14 @@ module.exports = require("core-js/modules/es.number.constructor");
|
|
|
377
420
|
|
|
378
421
|
/***/ }),
|
|
379
422
|
|
|
380
|
-
/***/ "
|
|
423
|
+
/***/ "788d":
|
|
381
424
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
382
425
|
|
|
383
426
|
"use strict";
|
|
384
|
-
/* harmony import */ var
|
|
385
|
-
/* harmony import */ var
|
|
427
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BadgesGroup_vue_vue_type_style_index_0_id_ee8bc524_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("96d8");
|
|
428
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BadgesGroup_vue_vue_type_style_index_0_id_ee8bc524_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BadgesGroup_vue_vue_type_style_index_0_id_ee8bc524_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
386
429
|
/* unused harmony reexport * */
|
|
387
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (
|
|
430
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BadgesGroup_vue_vue_type_style_index_0_id_ee8bc524_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
388
431
|
|
|
389
432
|
/***/ }),
|
|
390
433
|
|
|
@@ -395,13 +438,6 @@ module.exports = require("regenerator-runtime/runtime");
|
|
|
395
438
|
|
|
396
439
|
/***/ }),
|
|
397
440
|
|
|
398
|
-
/***/ "7ad0":
|
|
399
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
400
|
-
|
|
401
|
-
// extracted by mini-css-extract-plugin
|
|
402
|
-
|
|
403
|
-
/***/ }),
|
|
404
|
-
|
|
405
441
|
/***/ "7c81":
|
|
406
442
|
/***/ (function(module, exports) {
|
|
407
443
|
|
|
@@ -465,6 +501,17 @@ module.exports = require("core-js/modules/es.array.iterator");
|
|
|
465
501
|
|
|
466
502
|
/***/ }),
|
|
467
503
|
|
|
504
|
+
/***/ "8d78":
|
|
505
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
506
|
+
|
|
507
|
+
"use strict";
|
|
508
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_14674f48_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b5e6");
|
|
509
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_14674f48_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_14674f48_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
510
|
+
/* unused harmony reexport * */
|
|
511
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_14674f48_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
512
|
+
|
|
513
|
+
/***/ }),
|
|
514
|
+
|
|
468
515
|
/***/ "8f11":
|
|
469
516
|
/***/ (function(module, exports) {
|
|
470
517
|
|
|
@@ -486,6 +533,13 @@ module.exports = require("element-ui/lib/popover");
|
|
|
486
533
|
|
|
487
534
|
/***/ }),
|
|
488
535
|
|
|
536
|
+
/***/ "96d8":
|
|
537
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
538
|
+
|
|
539
|
+
// extracted by mini-css-extract-plugin
|
|
540
|
+
|
|
541
|
+
/***/ }),
|
|
542
|
+
|
|
489
543
|
/***/ "9861":
|
|
490
544
|
/***/ (function(module, exports) {
|
|
491
545
|
|
|
@@ -514,14 +568,21 @@ module.exports = __webpack_require__.p + "img/missing-image.1878d8b8.svg";
|
|
|
514
568
|
|
|
515
569
|
/***/ }),
|
|
516
570
|
|
|
517
|
-
/***/ "
|
|
571
|
+
/***/ "9fdf":
|
|
518
572
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
519
573
|
|
|
520
574
|
"use strict";
|
|
521
|
-
/* harmony import */ var
|
|
522
|
-
/* harmony import */ var
|
|
575
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_26e5ef37_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fde8");
|
|
576
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_26e5ef37_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_26e5ef37_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
523
577
|
/* unused harmony reexport * */
|
|
524
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (
|
|
578
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_26e5ef37_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
579
|
+
|
|
580
|
+
/***/ }),
|
|
581
|
+
|
|
582
|
+
/***/ "a012":
|
|
583
|
+
/***/ (function(module, exports) {
|
|
584
|
+
|
|
585
|
+
module.exports = require("@abi-software/gallery/src/mixins/GalleryHelpers");
|
|
525
586
|
|
|
526
587
|
/***/ }),
|
|
527
588
|
|
|
@@ -574,6 +635,13 @@ module.exports = require("element-ui/lib/icon");
|
|
|
574
635
|
|
|
575
636
|
/***/ }),
|
|
576
637
|
|
|
638
|
+
/***/ "b5e6":
|
|
639
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
640
|
+
|
|
641
|
+
// extracted by mini-css-extract-plugin
|
|
642
|
+
|
|
643
|
+
/***/ }),
|
|
644
|
+
|
|
577
645
|
/***/ "b917":
|
|
578
646
|
/***/ (function(module, exports) {
|
|
579
647
|
|
|
@@ -581,6 +649,17 @@ module.exports = require("core-js/modules/es.object.assign");
|
|
|
581
649
|
|
|
582
650
|
/***/ }),
|
|
583
651
|
|
|
652
|
+
/***/ "bc5f":
|
|
653
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
654
|
+
|
|
655
|
+
"use strict";
|
|
656
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SideBar_vue_vue_type_style_index_0_id_3d831a8e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5835");
|
|
657
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SideBar_vue_vue_type_style_index_0_id_3d831a8e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SideBar_vue_vue_type_style_index_0_id_3d831a8e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
658
|
+
/* unused harmony reexport * */
|
|
659
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SideBar_vue_vue_type_style_index_0_id_3d831a8e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
660
|
+
|
|
661
|
+
/***/ }),
|
|
662
|
+
|
|
584
663
|
/***/ "bcd8":
|
|
585
664
|
/***/ (function(module, exports) {
|
|
586
665
|
|
|
@@ -616,14 +695,10 @@ module.exports = require("element-ui/lib/option");
|
|
|
616
695
|
|
|
617
696
|
/***/ }),
|
|
618
697
|
|
|
619
|
-
/***/ "
|
|
620
|
-
/***/ (function(module,
|
|
698
|
+
/***/ "db11":
|
|
699
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
621
700
|
|
|
622
|
-
|
|
623
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e743");
|
|
624
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
625
|
-
/* unused harmony reexport * */
|
|
626
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
701
|
+
// extracted by mini-css-extract-plugin
|
|
627
702
|
|
|
628
703
|
/***/ }),
|
|
629
704
|
|
|
@@ -655,13 +730,6 @@ module.exports = require("element-ui/lib/input");
|
|
|
655
730
|
|
|
656
731
|
/***/ }),
|
|
657
732
|
|
|
658
|
-
/***/ "e743":
|
|
659
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
660
|
-
|
|
661
|
-
// extracted by mini-css-extract-plugin
|
|
662
|
-
|
|
663
|
-
/***/ }),
|
|
664
|
-
|
|
665
733
|
/***/ "ece9":
|
|
666
734
|
/***/ (function(module, exports) {
|
|
667
735
|
|
|
@@ -676,17 +744,6 @@ module.exports = require("core-js/modules/es.array.unscopables.flat");
|
|
|
676
744
|
|
|
677
745
|
/***/ }),
|
|
678
746
|
|
|
679
|
-
/***/ "efb8":
|
|
680
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
681
|
-
|
|
682
|
-
"use strict";
|
|
683
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchFilters_vue_vue_type_style_index_0_id_58d5fb22_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7ad0");
|
|
684
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchFilters_vue_vue_type_style_index_0_id_58d5fb22_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchFilters_vue_vue_type_style_index_0_id_58d5fb22_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
685
|
-
/* unused harmony reexport * */
|
|
686
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchFilters_vue_vue_type_style_index_0_id_58d5fb22_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
687
|
-
|
|
688
|
-
/***/ }),
|
|
689
|
-
|
|
690
747
|
/***/ "f705":
|
|
691
748
|
/***/ (function(module, exports) {
|
|
692
749
|
|
|
@@ -694,13 +751,6 @@ module.exports = require("core-js/modules/es.array.map");
|
|
|
694
751
|
|
|
695
752
|
/***/ }),
|
|
696
753
|
|
|
697
|
-
/***/ "f86d":
|
|
698
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
699
|
-
|
|
700
|
-
// extracted by mini-css-extract-plugin
|
|
701
|
-
|
|
702
|
-
/***/ }),
|
|
703
|
-
|
|
704
754
|
/***/ "f96d":
|
|
705
755
|
/***/ (function(module, exports) {
|
|
706
756
|
|
|
@@ -735,12 +785,12 @@ if (typeof window !== 'undefined') {
|
|
|
735
785
|
// Indicate to webpack that this file can be concatenated
|
|
736
786
|
/* harmony default export */ var setPublicPath = (null);
|
|
737
787
|
|
|
738
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
788
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14374f4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SideBar.vue?vue&type=template&id=3d831a8e&scoped=true&
|
|
739
789
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container"},[(!_vm.drawerOpen)?_c('div',{staticClass:"open-tab",on:{"click":_vm.toggleDrawer}},[_c('i',{staticClass:"el-icon-arrow-left"})]):_vm._e(),_c('el-drawer',{staticClass:"side-bar",attrs:{"custom-class":"my-drawer","visible":_vm.drawerOpen,"appendToBody":false,"modal-append-to-body":false,"size":"550","with-header":false,"wrapperClosable":false,"modal":false},on:{"update:visible":function($event){_vm.drawerOpen=$event}}},[_c('div',{staticClass:"box-card"},[(_vm.drawerOpen)?_c('div',{staticClass:"close-tab",on:{"click":_vm.close}},[_c('i',{staticClass:"el-icon-arrow-right"})]):_vm._e(),_c('div',{staticClass:"sidebar-container"},[(_vm.tabs.length > 1)?_c('tabs',{attrs:{"tabTitles":_vm.tabs,"activeId":_vm.activeId},on:{"titleClicked":_vm.tabClicked}}):_vm._e(),_vm._l((_vm.tabs),function(tab){return [_c('sidebar-content',{directives:[{name:"show",rawName:"v-show",value:(tab.id===_vm.activeId),expression:"tab.id===activeId"}],key:tab.id,ref:tab.id,refInFor:true,staticClass:"sidebar-content-container",attrs:{"contextCardEntry":tab.contextCard,"envVars":_vm.envVars},on:{"search-changed":function($event){return _vm.searchChanged(tab.id, $event)}}})]})],2)])])],1)}
|
|
740
790
|
var staticRenderFns = []
|
|
741
791
|
|
|
742
792
|
|
|
743
|
-
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=
|
|
793
|
+
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=3d831a8e&scoped=true&
|
|
744
794
|
|
|
745
795
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol"
|
|
746
796
|
var es_symbol_ = __webpack_require__("6049");
|
|
@@ -810,12 +860,12 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en_);
|
|
|
810
860
|
var locale_ = __webpack_require__("7f9f");
|
|
811
861
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
812
862
|
|
|
813
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
814
|
-
var
|
|
815
|
-
var
|
|
863
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14374f4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SidebarContent.vue?vue&type=template&id=0d501578&scoped=true&
|
|
864
|
+
var SidebarContentvue_type_template_id_0d501578_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"content-card",attrs:{"body-style":_vm.bodyStyle}},[_c('div',{staticClass:"header",attrs:{"slot":"header"},slot:"header"},[(_vm.contextCardEntry && _vm.contextCardEnabled)?_c('context-card',{attrs:{"entry":_vm.contextCardEntry}}):_vm._e(),_c('el-input',{staticClass:"search-input",attrs:{"placeholder":"Search","clearable":""},on:{"clear":_vm.clearSearchClicked},nativeOn:{"keyup":function($event){return _vm.searchEvent($event)}},model:{value:(_vm.searchInput),callback:function ($$v) {_vm.searchInput=$$v},expression:"searchInput"}}),_c('el-button',{staticClass:"button",on:{"click":_vm.searchEvent}},[_vm._v("Search")])],1),_c('SearchFilters',{ref:"filtersRef",staticClass:"filters",attrs:{"entry":_vm.filterEntry,"envVars":_vm.envVars},on:{"filterResults":_vm.filterUpdate,"numberPerPage":_vm.numberPerPageUpdate,"loading":_vm.filtersLoading}}),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loadingCards),expression:"loadingCards"}],ref:"content",staticClass:"content scrollbar"},[(_vm.results.length === 0 && !_vm.loadingCards)?_c('div',{staticClass:"error-feedback"},[_vm._v("No results found - Please change your search / filter criteria.")]):_vm._e(),_vm._l((_vm.results),function(result){return _c('div',{key:result.doi,staticClass:"step-item"},[_c('DatasetCard',{attrs:{"entry":result,"envVars":_vm.envVars},on:{"contextUpdate":_vm.contextCardUpdate}})],1)}),_c('el-pagination',{staticClass:"pagination",attrs:{"current-page":_vm.page,"hide-on-single-page":"","large":"","layout":"prev, pager, next","page-size":_vm.numberPerPage,"total":_vm.numberOfHits},on:{"update:currentPage":function($event){_vm.page=$event},"update:current-page":function($event){_vm.page=$event},"current-change":_vm.pageChange}})],2)],1)}
|
|
865
|
+
var SidebarContentvue_type_template_id_0d501578_scoped_true_staticRenderFns = []
|
|
816
866
|
|
|
817
867
|
|
|
818
|
-
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=
|
|
868
|
+
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=0d501578&scoped=true&
|
|
819
869
|
|
|
820
870
|
// EXTERNAL MODULE: external "core-js/modules/es.array.find-index"
|
|
821
871
|
var es_array_find_index_ = __webpack_require__("aecd");
|
|
@@ -985,12 +1035,12 @@ var button_css_ = __webpack_require__("26bc");
|
|
|
985
1035
|
var button_ = __webpack_require__("5d8c");
|
|
986
1036
|
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
987
1037
|
|
|
988
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
989
|
-
var
|
|
990
|
-
var
|
|
1038
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14374f4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SearchFilters.vue?vue&type=template&id=57801ec0&scoped=true&
|
|
1039
|
+
var SearchFiltersvue_type_template_id_57801ec0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"filters"},[_c('map-svg-sprite-color'),_c('transition',{attrs:{"name":"el-zoom-in-top"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilters),expression:"showFilters"}],staticClass:"search-filters transition-box"},[_c('custom-cascader',{ref:"cascader",staticClass:"cascader",attrs:{"placeholder":"","collapse-tags":true,"options":_vm.options,"props":_vm.props,"show-all-levels":false,"append-to-body":false},on:{"change":function($event){return _vm.cascadeEvent($event)},"expand-change":_vm.cascadeExpandChange,"tags-changed":_vm.tagsChangedCallback},model:{value:(_vm.cascadeSelected),callback:function ($$v) {_vm.cascadeSelected=$$v},expression:"cascadeSelected"}}),(_vm.showFiltersText)?_c('div',{staticClass:"filter-default-value"},[_vm._v(" Filters ")]):_vm._e(),_c('el-popover',{attrs:{"title":"How do filters work?","width":"250","trigger":"hover","append-to-body":false,"popper-class":"popover"}},[_c('map-svg-icon',{staticClass:"help",attrs:{"slot":"reference","icon":"help"},slot:"reference"}),_c('div',[_c('strong',[_vm._v("Within categories:")]),_vm._v(" OR "),_c('br'),_vm._v(" example: 'heart' OR 'colon' "),_c('br'),_c('br'),_c('strong',[_vm._v("Between categories:")]),_vm._v(" AND "),_c('br'),_vm._v(" example: 'rat' AND 'lung' ")])],1)],1)]),_c('el-select',{staticClass:"number-shown-select",attrs:{"placeholder":"10"},on:{"change":function($event){return _vm.numberShownChanged($event)}},model:{value:(_vm.numberShown),callback:function ($$v) {_vm.numberShown=$$v},expression:"numberShown"}},_vm._l((_vm.numberDatasetsShown),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1),_c('span',{staticClass:"dataset-results-feedback"},[_vm._v(_vm._s(this.numberOfResultsText))])],1)}
|
|
1040
|
+
var SearchFiltersvue_type_template_id_57801ec0_scoped_true_staticRenderFns = []
|
|
991
1041
|
|
|
992
1042
|
|
|
993
|
-
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=
|
|
1043
|
+
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=57801ec0&scoped=true&
|
|
994
1044
|
|
|
995
1045
|
// EXTERNAL MODULE: external "core-js/modules/es.array.includes"
|
|
996
1046
|
var es_array_includes_ = __webpack_require__("ab7e");
|
|
@@ -1426,7 +1476,6 @@ function () {
|
|
|
1426
1476
|
value: function _processResultsForCards(results) {
|
|
1427
1477
|
var newResults = [];
|
|
1428
1478
|
var newResult = {};
|
|
1429
|
-
var id = 0;
|
|
1430
1479
|
var _iteratorNormalCompletion = true;
|
|
1431
1480
|
var _didIteratorError = false;
|
|
1432
1481
|
var _iteratorError = undefined;
|
|
@@ -1441,9 +1490,9 @@ function () {
|
|
|
1441
1490
|
description: res.item.description,
|
|
1442
1491
|
updated: res.pennsieve.updatedAt,
|
|
1443
1492
|
publishDate: res.pennsieve.publishDate,
|
|
1444
|
-
|
|
1493
|
+
datasetId: res.objectID,
|
|
1494
|
+
detailsReady: false
|
|
1445
1495
|
};
|
|
1446
|
-
id++;
|
|
1447
1496
|
newResults.push(newResult);
|
|
1448
1497
|
}
|
|
1449
1498
|
} catch (err) {
|
|
@@ -1463,9 +1512,9 @@ function () {
|
|
|
1463
1512
|
|
|
1464
1513
|
return newResults;
|
|
1465
1514
|
}
|
|
1466
|
-
/**
|
|
1467
|
-
* Get Search results
|
|
1468
|
-
* This is using fetch from the Algolia API
|
|
1515
|
+
/**
|
|
1516
|
+
* Get Search results
|
|
1517
|
+
* This is using fetch from the Algolia API
|
|
1469
1518
|
*/
|
|
1470
1519
|
|
|
1471
1520
|
}, {
|
|
@@ -1481,7 +1530,9 @@ function () {
|
|
|
1481
1530
|
facets: ['*'],
|
|
1482
1531
|
hitsPerPage: hitsperPage,
|
|
1483
1532
|
page: page - 1,
|
|
1484
|
-
filters: filter
|
|
1533
|
+
filters: filter,
|
|
1534
|
+
attributesToHighlight: [],
|
|
1535
|
+
attributesToRetrieve: ['pennsieve.publishDate', 'pennsieve.updatedAt', 'item.curie', 'item.name', 'item.description', 'objectID']
|
|
1485
1536
|
}).then(function (response) {
|
|
1486
1537
|
var searchData = {
|
|
1487
1538
|
items: _this2._processResultsForCards(response.hits),
|
|
@@ -1523,8 +1574,8 @@ var facetPropPathMapping = {
|
|
|
1523
1574
|
'attributes.subject.sex.value': 'Sex',
|
|
1524
1575
|
'attributes.subject.ageCategory.value': 'Age Categories'
|
|
1525
1576
|
};
|
|
1526
|
-
/* Returns filter for searching algolia. All facets of the same category are joined with OR,
|
|
1527
|
-
* and each of those results is then joined with an AND.
|
|
1577
|
+
/* Returns filter for searching algolia. All facets of the same category are joined with OR,
|
|
1578
|
+
* and each of those results is then joined with an AND.
|
|
1528
1579
|
* i.e. (color:blue OR color:red) AND (shape:circle OR shape:red) */
|
|
1529
1580
|
|
|
1530
1581
|
function getFilters() {
|
|
@@ -1704,9 +1755,9 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1704
1755
|
MapSvgSpriteColor: svg_sprite_["MapSvgSpriteColor"]
|
|
1705
1756
|
},
|
|
1706
1757
|
props: {
|
|
1707
|
-
/**
|
|
1708
|
-
* Object containing information for
|
|
1709
|
-
* the required viewing.
|
|
1758
|
+
/**
|
|
1759
|
+
* Object containing information for
|
|
1760
|
+
* the required viewing.
|
|
1710
1761
|
*/
|
|
1711
1762
|
entry: Object,
|
|
1712
1763
|
envVars: {
|
|
@@ -2014,8 +2065,8 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
2014
2065
|
});
|
|
2015
2066
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=script&lang=js&
|
|
2016
2067
|
/* harmony default export */ var components_SearchFiltersvue_type_script_lang_js_ = (SearchFiltersvue_type_script_lang_js_);
|
|
2017
|
-
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=
|
|
2018
|
-
var
|
|
2068
|
+
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=57801ec0&scoped=true&lang=css&
|
|
2069
|
+
var SearchFiltersvue_type_style_index_0_id_57801ec0_scoped_true_lang_css_ = __webpack_require__("2dd0");
|
|
2019
2070
|
|
|
2020
2071
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue
|
|
2021
2072
|
|
|
@@ -2028,143 +2079,34 @@ var SearchFiltersvue_type_style_index_0_id_58d5fb22_scoped_true_lang_css_ = __we
|
|
|
2028
2079
|
|
|
2029
2080
|
var SearchFilters_component = normalizeComponent(
|
|
2030
2081
|
components_SearchFiltersvue_type_script_lang_js_,
|
|
2031
|
-
|
|
2032
|
-
|
|
2082
|
+
SearchFiltersvue_type_template_id_57801ec0_scoped_true_render,
|
|
2083
|
+
SearchFiltersvue_type_template_id_57801ec0_scoped_true_staticRenderFns,
|
|
2033
2084
|
false,
|
|
2034
2085
|
null,
|
|
2035
|
-
"
|
|
2086
|
+
"57801ec0",
|
|
2036
2087
|
null
|
|
2037
2088
|
|
|
2038
2089
|
)
|
|
2039
2090
|
|
|
2040
2091
|
/* harmony default export */ var SearchFilters = (SearchFilters_component.exports);
|
|
2041
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2042
|
-
var
|
|
2043
|
-
var
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=75e03782&scoped=true&
|
|
2047
|
-
|
|
2048
|
-
// CONCATENATED MODULE: ./src/components/EventBus.js
|
|
2049
|
-
|
|
2050
|
-
var EventBus = new external_vue_default.a();
|
|
2051
|
-
/* harmony default export */ var components_EventBus = (EventBus);
|
|
2052
|
-
// CONCATENATED MODULE: ./src/components/hardcoded-context-info.js
|
|
2053
|
-
/* harmony default export */ var hardcoded_context_info = ({}); // //Uncomment the code below to add in hardcoded data
|
|
2054
|
-
// export default {
|
|
2055
|
-
// 77: {
|
|
2056
|
-
// "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.",
|
|
2057
|
-
// "heading": "Mapped ICN samples",
|
|
2058
|
-
// "id": "sparc.science.context_data",
|
|
2059
|
-
// "samples": [
|
|
2060
|
-
// {
|
|
2061
|
-
// "annotation": "",
|
|
2062
|
-
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
2063
|
-
// "doi": "",
|
|
2064
|
-
// "heading": "ICNS from subject M54-8",
|
|
2065
|
-
// "id": "Sample 1",
|
|
2066
|
-
// "path": "",
|
|
2067
|
-
// "view": "View 1",
|
|
2068
|
-
// "color": "#FFFF00",
|
|
2069
|
-
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
|
|
2070
|
-
// },
|
|
2071
|
-
// {
|
|
2072
|
-
// "annotation": "",
|
|
2073
|
-
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
2074
|
-
// "doi": "",
|
|
2075
|
-
// "heading": "ICNS from subject M54-5",
|
|
2076
|
-
// "id": "Sample 2",
|
|
2077
|
-
// "path": "",
|
|
2078
|
-
// "view": "View 2",
|
|
2079
|
-
// "color": "#FFA500",
|
|
2080
|
-
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
|
|
2081
|
-
// }
|
|
2082
|
-
// ],
|
|
2083
|
-
// "version": "0.1.0",
|
|
2084
|
-
// },
|
|
2085
|
-
// 221: {
|
|
2086
|
-
// "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
|
|
2087
|
-
// "heading": "Digital tracings of enteric plexus",
|
|
2088
|
-
// "id": "sparc.science.context_data",
|
|
2089
|
-
// "samples": [
|
|
2090
|
-
// {
|
|
2091
|
-
// "annotation": "",
|
|
2092
|
-
// "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
|
|
2093
|
-
// "doi": "",
|
|
2094
|
-
// "heading": "Digital tracing for subject M11",
|
|
2095
|
-
// "id": "Sample 1",
|
|
2096
|
-
// "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
|
|
2097
|
-
// "view": "View 1"
|
|
2098
|
-
// },
|
|
2099
|
-
// {
|
|
2100
|
-
// "annotation": "",
|
|
2101
|
-
// "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
|
|
2102
|
-
// "doi": "",
|
|
2103
|
-
// "heading": "Digital tracing for subject M16",
|
|
2104
|
-
// "id": "Sample 2",
|
|
2105
|
-
// "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
|
|
2106
|
-
// "view": "View 2"
|
|
2107
|
-
// }
|
|
2108
|
-
// ],
|
|
2109
|
-
// "version": "0.1.0",
|
|
2110
|
-
// "views": [
|
|
2111
|
-
// {
|
|
2112
|
-
// "annotation": "--",
|
|
2113
|
-
// "description": "Digital tracing of neurons for subject M11.",
|
|
2114
|
-
// "id": "View 1",
|
|
2115
|
-
// "path": "files/derivative/Scaffolds/M11_view.json",
|
|
2116
|
-
// "sample": "Sample 1",
|
|
2117
|
-
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
|
|
2118
|
-
// },
|
|
2119
|
-
// {
|
|
2120
|
-
// "annotation": "--",
|
|
2121
|
-
// "description": "Digital tracing of neurons for subject M16.",
|
|
2122
|
-
// "id": "View 2",
|
|
2123
|
-
// "path": "files/derivative/Scaffolds/M16_view.json",
|
|
2124
|
-
// "sample": "Sample 2",
|
|
2125
|
-
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
|
|
2126
|
-
// }
|
|
2127
|
-
// ]
|
|
2128
|
-
// }
|
|
2129
|
-
// }
|
|
2130
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatasetCard.vue?vue&type=script&lang=js&
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2092
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14374f4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatasetCard.vue?vue&type=template&id=14674f48&scoped=true&
|
|
2093
|
+
var DatasetCardvue_type_template_id_14674f48_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"dataset-card-container"},[_c('div',{ref:"card",staticClass:"dataset-card"},[_c('div',{staticClass:"seperator-path"}),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"card"},[_c('span',{staticClass:"card-left"},[(!_vm.loading && _vm.discoverId)?_c('image-gallery',{attrs:{"datasetId":_vm.discoverId,"datasetVersion":_vm.version,"entry":_vm.entry,"envVars":_vm.envVars,"label":_vm.label,"datasetThumbnail":_vm.thumbnail,"dataset-biolucida":_vm.biolucidaData,"category":_vm.currentCategory},on:{"card-clicked":_vm.galleryClicked}}):_vm._e()],1),_c('div',{staticClass:"card-right"},[_c('div',{staticClass:"title",on:{"click":_vm.cardClicked}},[_vm._v(_vm._s(_vm.entry.name))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.contributors)+" "+_vm._s(_vm.entry.publishDate ? ("(" + _vm.publishYear + ")") : ''))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.samples))]),(!_vm.entry.detailsReady)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(!_vm.entry.detailsReady),expression:"!entry.detailsReady"}],staticClass:"details loading-icon"}):_vm._e(),_c('div',[(_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openRepository}},[_vm._v("View repository")]):_vm._e()],1),_c('div',{staticClass:"badges-container"},[_c('badges-group',{attrs:{"entry":_vm.entry,"dataset-biolucida":_vm.biolucidaData},on:{"categoryChanged":_vm.categoryChanged}})],1)])])])])}
|
|
2094
|
+
var DatasetCardvue_type_template_id_14674f48_scoped_true_staticRenderFns = []
|
|
2136
2095
|
|
|
2137
2096
|
|
|
2097
|
+
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=14674f48&scoped=true&
|
|
2138
2098
|
|
|
2099
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14374f4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BadgesGroup.vue?vue&type=template&id=ee8bc524&scoped=true&
|
|
2100
|
+
var BadgesGroupvue_type_template_id_ee8bc524_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.categories['All'].size > 1)?_c('div',{ref:"container",staticClass:"container"},[_c('div',[_vm._v(" View data types: ")]),_vm._l((_vm.categories),function(item,key){return [(item.size > 0)?_c('el-button',{key:key,class:[{ 'active': key == _vm.active},'tag-button'],attrs:{"size":"small"},on:{"click":function($event){return _vm.categoryClicked(key)}}},[_vm._v(_vm._s(key + " (" + item.size + ")")+" ")]):_vm._e()]})],2):_vm._e()}
|
|
2101
|
+
var BadgesGroupvue_type_template_id_ee8bc524_scoped_true_staticRenderFns = []
|
|
2139
2102
|
|
|
2140
2103
|
|
|
2104
|
+
// CONCATENATED MODULE: ./src/components/BadgesGroup.vue?vue&type=template&id=ee8bc524&scoped=true&
|
|
2141
2105
|
|
|
2106
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BadgesGroup.vue?vue&type=script&lang=js&
|
|
2142
2107
|
|
|
2143
2108
|
|
|
2144
2109
|
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
//
|
|
2149
|
-
//
|
|
2150
|
-
//
|
|
2151
|
-
//
|
|
2152
|
-
//
|
|
2153
|
-
//
|
|
2154
|
-
//
|
|
2155
|
-
//
|
|
2156
|
-
//
|
|
2157
|
-
//
|
|
2158
|
-
//
|
|
2159
|
-
//
|
|
2160
|
-
//
|
|
2161
|
-
//
|
|
2162
|
-
//
|
|
2163
|
-
//
|
|
2164
|
-
//
|
|
2165
|
-
//
|
|
2166
|
-
//
|
|
2167
|
-
//
|
|
2168
2110
|
//
|
|
2169
2111
|
//
|
|
2170
2112
|
//
|
|
@@ -2187,25 +2129,756 @@ var EventBus = new external_vue_default.a();
|
|
|
2187
2129
|
|
|
2188
2130
|
|
|
2189
2131
|
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
2132
|
locale_default.a.use(en_default.a);
|
|
2194
2133
|
external_vue_default.a.use(button_default.a);
|
|
2195
|
-
|
|
2134
|
+
/* harmony default export */ var BadgesGroupvue_type_script_lang_js_ = ({
|
|
2135
|
+
name: "BadgesGroup",
|
|
2136
|
+
props: {
|
|
2137
|
+
/**
|
|
2138
|
+
* Object containing information for
|
|
2139
|
+
* the required viewing.
|
|
2140
|
+
*/
|
|
2141
|
+
additionalLinks: {
|
|
2142
|
+
type: Array,
|
|
2143
|
+
default: function _default() {
|
|
2144
|
+
return [];
|
|
2145
|
+
}
|
|
2146
|
+
},
|
|
2147
|
+
datasetBiolucida: {
|
|
2148
|
+
type: Object,
|
|
2149
|
+
default: function _default() {
|
|
2150
|
+
return {};
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
entry: {
|
|
2154
|
+
type: Object,
|
|
2155
|
+
default: function _default() {
|
|
2156
|
+
return {};
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
},
|
|
2160
|
+
data: function data() {
|
|
2161
|
+
return {
|
|
2162
|
+
categories: {
|
|
2163
|
+
"All": {
|
|
2164
|
+
size: 1
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
active: "All"
|
|
2168
|
+
};
|
|
2169
|
+
},
|
|
2170
|
+
methods: {
|
|
2171
|
+
addToCategories: function addToCategories(array, name) {
|
|
2172
|
+
if (array && array.length > 0) {
|
|
2173
|
+
this.categories[name] = {
|
|
2174
|
+
size: array.length
|
|
2175
|
+
};
|
|
2176
|
+
this.categories["All"].size += array.length;
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
addSimulationsToCategories: function addSimulationsToCategories(array) {
|
|
2180
|
+
if (array && array.length > 0) {
|
|
2181
|
+
var size = 1;
|
|
2182
|
+
this.categories["Simulations"] = {
|
|
2183
|
+
size: size
|
|
2184
|
+
};
|
|
2185
|
+
this.categories["All"].size += size;
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
categoryClicked: function categoryClicked(name) {
|
|
2189
|
+
this.active = name;
|
|
2190
|
+
this.$emit("categoryChanged", name);
|
|
2191
|
+
}
|
|
2192
|
+
},
|
|
2193
|
+
watch: {
|
|
2194
|
+
datasetBiolucida: {
|
|
2195
|
+
deep: true,
|
|
2196
|
+
immediate: true,
|
|
2197
|
+
handler: function handler(biolucidaData) {
|
|
2198
|
+
if ("dataset_images" in biolucidaData) {
|
|
2199
|
+
this.addToCategories(biolucidaData["dataset_images"], "Biolucida Images");
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
entry: {
|
|
2204
|
+
deep: true,
|
|
2205
|
+
immediate: true,
|
|
2206
|
+
handler: function handler() {
|
|
2207
|
+
this.addToCategories(this.entry.scaffolds, 'Scaffolds');
|
|
2208
|
+
this.addToCategories(this.entry.segmentation, 'Segmentations');
|
|
2209
|
+
this.addToCategories(this.entry.plots, 'Plots');
|
|
2210
|
+
this.addSimulationsToCategories(this.entry.simulation);
|
|
2211
|
+
/** disable the following
|
|
2212
|
+
this.addToCategories(this.entry.images, 'Images');
|
|
2213
|
+
this.addToCategories(this.entry.videos, 'Videos');
|
|
2214
|
+
**/
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
});
|
|
2219
|
+
// CONCATENATED MODULE: ./src/components/BadgesGroup.vue?vue&type=script&lang=js&
|
|
2220
|
+
/* harmony default export */ var components_BadgesGroupvue_type_script_lang_js_ = (BadgesGroupvue_type_script_lang_js_);
|
|
2221
|
+
// EXTERNAL MODULE: ./src/components/BadgesGroup.vue?vue&type=style&index=0&id=ee8bc524&scoped=true&lang=css&
|
|
2222
|
+
var BadgesGroupvue_type_style_index_0_id_ee8bc524_scoped_true_lang_css_ = __webpack_require__("788d");
|
|
2223
|
+
|
|
2224
|
+
// CONCATENATED MODULE: ./src/components/BadgesGroup.vue
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
/* normalize component */
|
|
2232
|
+
|
|
2233
|
+
var BadgesGroup_component = normalizeComponent(
|
|
2234
|
+
components_BadgesGroupvue_type_script_lang_js_,
|
|
2235
|
+
BadgesGroupvue_type_template_id_ee8bc524_scoped_true_render,
|
|
2236
|
+
BadgesGroupvue_type_template_id_ee8bc524_scoped_true_staticRenderFns,
|
|
2237
|
+
false,
|
|
2238
|
+
null,
|
|
2239
|
+
"ee8bc524",
|
|
2240
|
+
null
|
|
2241
|
+
|
|
2242
|
+
)
|
|
2243
|
+
|
|
2244
|
+
/* harmony default export */ var BadgesGroup = (BadgesGroup_component.exports);
|
|
2245
|
+
// CONCATENATED MODULE: ./src/components/EventBus.js
|
|
2246
|
+
|
|
2247
|
+
var EventBus = new external_vue_default.a();
|
|
2248
|
+
/* harmony default export */ var components_EventBus = (EventBus);
|
|
2249
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14374f4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ImageGallery.vue?vue&type=template&id=2fb38a56&scoped=true&
|
|
2250
|
+
var ImageGalleryvue_type_template_id_2fb38a56_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"full-size"},[_c('gallery',{ref:"gallery",attrs:{"bottomSpacer":_vm.bottomSpacer,"cardWidth":10,"items":_vm.galleryItems,"max-width":_vm.maxWidth,"show-indicator-bar":false,"show-card-details":true,"highlight-active":false,"image-style":_vm.imageStyle,"image-container-style":_vm.imageContainerStyle,"body-style":_vm.bodyStyle,"shadow":_vm.shadow},on:{"card-clicked":_vm.cardClicked}})],1)}
|
|
2251
|
+
var ImageGalleryvue_type_template_id_2fb38a56_scoped_true_staticRenderFns = []
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
// CONCATENATED MODULE: ./src/components/ImageGallery.vue?vue&type=template&id=2fb38a56&scoped=true&
|
|
2255
|
+
|
|
2256
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
function _iterableToArrayLimit(arr, i) {
|
|
2266
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
2267
|
+
return;
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
var _arr = [];
|
|
2271
|
+
var _n = true;
|
|
2272
|
+
var _d = false;
|
|
2273
|
+
var _e = undefined;
|
|
2274
|
+
|
|
2275
|
+
try {
|
|
2276
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
2277
|
+
_arr.push(_s.value);
|
|
2278
|
+
|
|
2279
|
+
if (i && _arr.length === i) break;
|
|
2280
|
+
}
|
|
2281
|
+
} catch (err) {
|
|
2282
|
+
_d = true;
|
|
2283
|
+
_e = err;
|
|
2284
|
+
} finally {
|
|
2285
|
+
try {
|
|
2286
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
2287
|
+
} finally {
|
|
2288
|
+
if (_d) throw _e;
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
return _arr;
|
|
2293
|
+
}
|
|
2294
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
2295
|
+
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
function _slicedToArray(arr, i) {
|
|
2299
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
2300
|
+
}
|
|
2301
|
+
// EXTERNAL MODULE: external "@abi-software/gallery/src/mixins/GalleryHelpers"
|
|
2302
|
+
var GalleryHelpers_ = __webpack_require__("a012");
|
|
2303
|
+
var GalleryHelpers_default = /*#__PURE__*/__webpack_require__.n(GalleryHelpers_);
|
|
2304
|
+
|
|
2305
|
+
// EXTERNAL MODULE: external "@abi-software/gallery"
|
|
2306
|
+
var gallery_ = __webpack_require__("3a09");
|
|
2307
|
+
var gallery_default = /*#__PURE__*/__webpack_require__.n(gallery_);
|
|
2308
|
+
|
|
2309
|
+
// EXTERNAL MODULE: external "@abi-software/gallery/dist/gallery.css"
|
|
2310
|
+
var gallery_css_ = __webpack_require__("5658");
|
|
2311
|
+
|
|
2312
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ImageGallery.vue?vue&type=script&lang=js&
|
|
2313
|
+
|
|
2196
2314
|
|
|
2197
|
-
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
//
|
|
2330
|
+
//
|
|
2331
|
+
//
|
|
2332
|
+
//
|
|
2333
|
+
//
|
|
2334
|
+
//
|
|
2335
|
+
//
|
|
2336
|
+
//
|
|
2337
|
+
//
|
|
2338
|
+
//
|
|
2339
|
+
//
|
|
2340
|
+
//
|
|
2341
|
+
//
|
|
2342
|
+
//
|
|
2343
|
+
//
|
|
2344
|
+
//
|
|
2345
|
+
//
|
|
2346
|
+
//
|
|
2347
|
+
//
|
|
2348
|
+
//
|
|
2349
|
+
|
|
2350
|
+
/* eslint-disable no-alert, no-console */
|
|
2351
|
+
var baseName = function baseName(str) {
|
|
2352
|
+
return str.split("\\").pop().split("/").pop();
|
|
2353
|
+
};
|
|
2354
|
+
|
|
2355
|
+
var ImageGalleryvue_type_script_lang_js_capitalise = function capitalise(string) {
|
|
2198
2356
|
return string.replace(/\b\w/g, function (v) {
|
|
2199
2357
|
return v.toUpperCase();
|
|
2200
2358
|
});
|
|
2201
2359
|
};
|
|
2202
2360
|
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
/* harmony default export */ var ImageGalleryvue_type_script_lang_js_ = ({
|
|
2365
|
+
name: "ImageGallery",
|
|
2366
|
+
components: {
|
|
2367
|
+
Gallery: gallery_default.a
|
|
2368
|
+
},
|
|
2369
|
+
mixins: [GalleryHelpers_default.a],
|
|
2370
|
+
props: {
|
|
2371
|
+
datasetBiolucida: {
|
|
2372
|
+
type: Object,
|
|
2373
|
+
default: function _default() {
|
|
2374
|
+
return {};
|
|
2375
|
+
}
|
|
2376
|
+
},
|
|
2377
|
+
envVars: {
|
|
2378
|
+
type: Object,
|
|
2379
|
+
default: function _default() {}
|
|
2380
|
+
},
|
|
2381
|
+
label: {
|
|
2382
|
+
type: String,
|
|
2383
|
+
default: ""
|
|
2384
|
+
},
|
|
2385
|
+
plots: {
|
|
2386
|
+
type: Array,
|
|
2387
|
+
default: function _default() {
|
|
2388
|
+
return [];
|
|
2389
|
+
}
|
|
2390
|
+
},
|
|
2391
|
+
datasetId: {
|
|
2392
|
+
type: Number,
|
|
2393
|
+
default: -1
|
|
2394
|
+
},
|
|
2395
|
+
datasetVersion: {
|
|
2396
|
+
type: Number,
|
|
2397
|
+
default: -1
|
|
2398
|
+
},
|
|
2399
|
+
datasetThumbnail: {
|
|
2400
|
+
type: String,
|
|
2401
|
+
default: ""
|
|
2402
|
+
},
|
|
2403
|
+
category: {
|
|
2404
|
+
type: String,
|
|
2405
|
+
default: "All"
|
|
2406
|
+
},
|
|
2407
|
+
entry: {
|
|
2408
|
+
type: Object,
|
|
2409
|
+
default: function _default() {
|
|
2410
|
+
return {};
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
},
|
|
2414
|
+
data: function data() {
|
|
2415
|
+
return {
|
|
2416
|
+
currentIndex: 0,
|
|
2417
|
+
ro: null,
|
|
2418
|
+
maxWidth: 3,
|
|
2419
|
+
items: {
|
|
2420
|
+
"Biolucida Images": [],
|
|
2421
|
+
'Dataset': [],
|
|
2422
|
+
'Images': [],
|
|
2423
|
+
'Scaffolds': [],
|
|
2424
|
+
'Segmentations': [],
|
|
2425
|
+
'Simulations': [],
|
|
2426
|
+
'Videos': [],
|
|
2427
|
+
'Plots': []
|
|
2428
|
+
},
|
|
2429
|
+
bodyStyle: {
|
|
2430
|
+
padding: '0px',
|
|
2431
|
+
background: '#ffffff'
|
|
2432
|
+
},
|
|
2433
|
+
imageContainerStyle: {
|
|
2434
|
+
width: '160px',
|
|
2435
|
+
height: '160px',
|
|
2436
|
+
display: 'flex',
|
|
2437
|
+
alignItems: 'center',
|
|
2438
|
+
justifyContent: 'center'
|
|
2439
|
+
},
|
|
2440
|
+
imageStyle: {
|
|
2441
|
+
maxWidth: '160px',
|
|
2442
|
+
maxHeight: '160px'
|
|
2443
|
+
},
|
|
2444
|
+
shadow: "never",
|
|
2445
|
+
bottomSpacer: {
|
|
2446
|
+
minHeight: '1.5rem'
|
|
2447
|
+
},
|
|
2448
|
+
resetIndex: false
|
|
2449
|
+
};
|
|
2450
|
+
},
|
|
2451
|
+
methods: {
|
|
2452
|
+
cardClicked: function cardClicked(payload) {
|
|
2453
|
+
this.$emit('card-clicked', payload);
|
|
2454
|
+
},
|
|
2455
|
+
createSciCurnchItems: function createSciCurnchItems() {
|
|
2456
|
+
this.createDatasetItem();
|
|
2457
|
+
this.createScaffoldItems();
|
|
2458
|
+
this.createSimulationItems();
|
|
2459
|
+
this.createPlotItems();
|
|
2460
|
+
this.createSegmentationItems();
|
|
2461
|
+
/* Disable these two
|
|
2462
|
+
this.createImageItems();
|
|
2463
|
+
this.createVideoItems();
|
|
2464
|
+
*/
|
|
2465
|
+
},
|
|
2466
|
+
createDatasetItem: function createDatasetItem() {
|
|
2467
|
+
var link = "".concat(this.envVars.ROOT_URL, "/datasets/").concat(this.datasetId, "?type=dataset");
|
|
2468
|
+
|
|
2469
|
+
if (this.datasetThumbnail) {
|
|
2470
|
+
this.items['Dataset'].push({
|
|
2471
|
+
id: -1,
|
|
2472
|
+
//Work around gallery requires a truthy string
|
|
2473
|
+
title: " ",
|
|
2474
|
+
type: "Dataset ".concat(this.datasetId),
|
|
2475
|
+
thumbnail: this.datasetThumbnail,
|
|
2476
|
+
link: link,
|
|
2477
|
+
hideType: true
|
|
2478
|
+
});
|
|
2479
|
+
}
|
|
2480
|
+
},
|
|
2481
|
+
createImageItems: function createImageItems() {
|
|
2482
|
+
var _this = this;
|
|
2483
|
+
|
|
2484
|
+
if (this.entry.images) {
|
|
2485
|
+
this.entry.images.forEach(function (image) {
|
|
2486
|
+
var filePath = image.dataset.path;
|
|
2487
|
+
var id = image.identifier;
|
|
2488
|
+
var linkUrl = "".concat(_this.envVars.ROOT_URL, "/datasets/imageviewer?dataset_id=").concat(_this.datasetId, "&dataset_version=").concat(_this.datasetVersion, "&file_path=").concat(filePath, "&mimetype=").concat(image.mimetype.name);
|
|
2489
|
+
|
|
2490
|
+
_this.items['Images'].push({
|
|
2491
|
+
id: id,
|
|
2492
|
+
title: baseName(filePath),
|
|
2493
|
+
type: "Image",
|
|
2494
|
+
link: linkUrl,
|
|
2495
|
+
hideType: true
|
|
2496
|
+
});
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2499
|
+
},
|
|
2500
|
+
createPlotItems: function createPlotItems() {
|
|
2501
|
+
var _this2 = this;
|
|
2502
|
+
|
|
2503
|
+
if (this.entry.plots) {
|
|
2504
|
+
this.entry.plots.forEach(function (plot) {
|
|
2505
|
+
var filePath = plot.dataset.path;
|
|
2506
|
+
var id = plot.identifier;
|
|
2507
|
+
|
|
2508
|
+
var thumbnail = _this2.getThumbnailForPlot(plot, _this2.entry.thumbnails);
|
|
2509
|
+
|
|
2510
|
+
var thumbnailURL = undefined;
|
|
2511
|
+
var mimetype = '';
|
|
2512
|
+
|
|
2513
|
+
if (thumbnail) {
|
|
2514
|
+
thumbnailURL = _this2.getImageURLFromS3(_this2.envVars.API_LOCATION, {
|
|
2515
|
+
id: id,
|
|
2516
|
+
datasetId: _this2.datasetId,
|
|
2517
|
+
datasetVersion: _this2.datasetVersion,
|
|
2518
|
+
file_path: thumbnail.dataset.path
|
|
2519
|
+
});
|
|
2520
|
+
mimetype = thumbnail.mimetype.name;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
var plotAnnotation = plot.datacite;
|
|
2524
|
+
var filePathPrefix = "".concat(_this2.envVars.API_LOCATION, "/s3-resource/").concat(_this2.datasetId, "/").concat(_this2.datasetVersion, "/files/");
|
|
2525
|
+
var sourceUrl = filePathPrefix + plot.dataset.path;
|
|
2526
|
+
var metadata = JSON.parse(plotAnnotation.supplemental_json_metadata.description);
|
|
2527
|
+
var supplementalData = [];
|
|
2528
|
+
|
|
2529
|
+
if (plotAnnotation.isDescribedBy) {
|
|
2530
|
+
supplementalData.push({
|
|
2531
|
+
url: filePathPrefix + plotAnnotation.isDescribedBy.path
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
var resource = {
|
|
2536
|
+
dataSource: {
|
|
2537
|
+
url: sourceUrl
|
|
2538
|
+
},
|
|
2539
|
+
metadata: metadata,
|
|
2540
|
+
supplementalData: supplementalData
|
|
2541
|
+
};
|
|
2542
|
+
var action = {
|
|
2543
|
+
label: ImageGalleryvue_type_script_lang_js_capitalise(_this2.label),
|
|
2544
|
+
resource: resource,
|
|
2545
|
+
title: "View plot",
|
|
2546
|
+
type: "Plot",
|
|
2547
|
+
discoverId: _this2.discoverId,
|
|
2548
|
+
version: _this2.datasetVersion
|
|
2549
|
+
};
|
|
2550
|
+
|
|
2551
|
+
_this2.items['Plots'].push({
|
|
2552
|
+
id: id,
|
|
2553
|
+
title: baseName(filePath),
|
|
2554
|
+
type: "Plot",
|
|
2555
|
+
thumbnail: thumbnailURL,
|
|
2556
|
+
userData: action,
|
|
2557
|
+
hideType: true,
|
|
2558
|
+
mimetype: mimetype
|
|
2559
|
+
});
|
|
2560
|
+
});
|
|
2561
|
+
}
|
|
2562
|
+
},
|
|
2563
|
+
createScaffoldItems: function createScaffoldItems() {
|
|
2564
|
+
var _this3 = this;
|
|
2565
|
+
|
|
2566
|
+
if (this.entry.scaffolds) {
|
|
2567
|
+
var index = 0;
|
|
2568
|
+
this.entry.scaffolds.forEach(function (scaffold) {
|
|
2569
|
+
var filePath = scaffold.dataset.path;
|
|
2570
|
+
var id = scaffold.identifier;
|
|
2571
|
+
|
|
2572
|
+
var thumbnail = _this3.getThumbnailForScaffold(scaffold, _this3.entry.scaffoldViews, _this3.entry.thumbnails, index);
|
|
2573
|
+
|
|
2574
|
+
var mimetype = '';
|
|
2575
|
+
var thumbnailURL = undefined;
|
|
2576
|
+
|
|
2577
|
+
if (thumbnail) {
|
|
2578
|
+
thumbnailURL = _this3.getImageURLFromS3(_this3.envVars.API_LOCATION, {
|
|
2579
|
+
id: id,
|
|
2580
|
+
datasetId: _this3.datasetId,
|
|
2581
|
+
datasetVersion: _this3.datasetVersion,
|
|
2582
|
+
file_path: thumbnail.dataset.path
|
|
2583
|
+
});
|
|
2584
|
+
mimetype = thumbnail.mimetype.name;
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
var action = {
|
|
2588
|
+
label: ImageGalleryvue_type_script_lang_js_capitalise(_this3.label),
|
|
2589
|
+
resource: "".concat(_this3.envVars.API_LOCATION, "s3-resource/").concat(_this3.datasetId, "/").concat(_this3.datasetVersion, "/files/").concat(filePath),
|
|
2590
|
+
title: "View 3D scaffold",
|
|
2591
|
+
type: "Scaffold",
|
|
2592
|
+
discoverId: _this3.datasetId,
|
|
2593
|
+
apiLocation: _this3.envVars.API_LOCATION,
|
|
2594
|
+
version: _this3.datasetVersion,
|
|
2595
|
+
contextCardUrl: _this3.entry.contextualInformation ? "".concat(_this3.envVars.API_LOCATION, "s3-resource/").concat(_this3.datasetId, "/").concat(_this3.datasetVersion, "/files/").concat(_this3.entry.contextualInformation) : undefined
|
|
2596
|
+
};
|
|
2597
|
+
|
|
2598
|
+
_this3.items['Scaffolds'].push({
|
|
2599
|
+
id: id,
|
|
2600
|
+
title: baseName(filePath),
|
|
2601
|
+
type: "Scaffold",
|
|
2602
|
+
thumbnail: thumbnailURL,
|
|
2603
|
+
userData: action,
|
|
2604
|
+
hideType: true,
|
|
2605
|
+
mimetype: mimetype
|
|
2606
|
+
});
|
|
2607
|
+
});
|
|
2608
|
+
}
|
|
2609
|
+
},
|
|
2610
|
+
createSegmentationItems: function createSegmentationItems() {
|
|
2611
|
+
var _this4 = this;
|
|
2612
|
+
|
|
2613
|
+
if (this.entry.segmentation) {
|
|
2614
|
+
this.entry.segmentation.forEach(function (segmentation) {
|
|
2615
|
+
var id = segmentation.id;
|
|
2616
|
+
var filePath = segmentation.dataset.path;
|
|
2617
|
+
filePath = filePath.replaceAll(" ", "_");
|
|
2618
|
+
filePath = filePath.replaceAll(",", "_");
|
|
2619
|
+
var prefix = _this4.envVars.NL_LINK_PREFIX;
|
|
2620
|
+
var resource = {
|
|
2621
|
+
share_link: "".concat(prefix, "/dataviewer?datasetId=").concat(_this4.datasetId, "&version=").concat(_this4.datasetVersion, "&path=files/").concat(filePath)
|
|
2622
|
+
};
|
|
2623
|
+
var action = {
|
|
2624
|
+
label: ImageGalleryvue_type_script_lang_js_capitalise(_this4.label),
|
|
2625
|
+
resource: resource,
|
|
2626
|
+
datasetId: _this4.datasetId,
|
|
2627
|
+
title: "View segmentation",
|
|
2628
|
+
type: "Segmentation"
|
|
2629
|
+
};
|
|
2630
|
+
|
|
2631
|
+
var thumbnailURL = _this4.getSegmentationThumbnailURL(_this4.envVars.API_LOCATION, {
|
|
2632
|
+
id: id,
|
|
2633
|
+
datasetId: _this4.datasetId,
|
|
2634
|
+
datasetVersion: _this4.datasetVersion,
|
|
2635
|
+
segmentationFilePath: filePath
|
|
2636
|
+
});
|
|
2637
|
+
|
|
2638
|
+
_this4.items['Segmentations'].push({
|
|
2639
|
+
id: id,
|
|
2640
|
+
title: baseName(filePath),
|
|
2641
|
+
type: "Segmentation",
|
|
2642
|
+
thumbnail: thumbnailURL,
|
|
2643
|
+
userData: action,
|
|
2644
|
+
hideType: true,
|
|
2645
|
+
mimetype: 'image/png'
|
|
2646
|
+
});
|
|
2647
|
+
});
|
|
2648
|
+
}
|
|
2649
|
+
},
|
|
2650
|
+
createSimulationItems: function createSimulationItems() {
|
|
2651
|
+
if (this.entry.simulation && this.entry.simulation.length > 0) {
|
|
2652
|
+
var action = {
|
|
2653
|
+
label: undefined,
|
|
2654
|
+
apiLocation: this.envVars.API_LOCATION,
|
|
2655
|
+
version: this.datasetVersion,
|
|
2656
|
+
title: "View simulation",
|
|
2657
|
+
type: "Simulation",
|
|
2658
|
+
name: this.entry.name,
|
|
2659
|
+
description: this.entry.description,
|
|
2660
|
+
discoverId: this.datasetId,
|
|
2661
|
+
dataset: "".concat(this.envVars.ROOT_URL, "/datasets/").concat(this.datasetId, "?type=dataset")
|
|
2662
|
+
};
|
|
2663
|
+
this.items['Simulations'].push({
|
|
2664
|
+
id: "simulation",
|
|
2665
|
+
title: " ",
|
|
2666
|
+
type: "Simulation",
|
|
2667
|
+
hideType: true,
|
|
2668
|
+
userData: action
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2671
|
+
},
|
|
2672
|
+
createVideoItems: function createVideoItems() {
|
|
2673
|
+
var _this5 = this;
|
|
2674
|
+
|
|
2675
|
+
if (this.entry.videos) {
|
|
2676
|
+
this.entry.videos.forEach(function (video) {
|
|
2677
|
+
var filePath = _this5.getS3FilePath(_this5.datasetId, _this5.datasetVersion, video.dataset.path);
|
|
2678
|
+
|
|
2679
|
+
var linkUrl = "".concat(_this5.envVars.ROOT_URL, "/datasets/videoviewer?dataset_version=").concat(_this5.datasetVersion, "&dataset_id=").concat(_this5.datasetId, "&file_path=").concat(filePath, "&mimetype=").concat(video.mimetype.name);
|
|
2680
|
+
|
|
2681
|
+
_this5.items['Videos'].push({
|
|
2682
|
+
title: video.name,
|
|
2683
|
+
type: "Video",
|
|
2684
|
+
thumbnail: _this5.defaultVideoImg,
|
|
2685
|
+
hideType: true,
|
|
2686
|
+
link: linkUrl
|
|
2687
|
+
});
|
|
2688
|
+
});
|
|
2689
|
+
}
|
|
2690
|
+
},
|
|
2691
|
+
onResize: function onResize() {
|
|
2692
|
+
this.maxWidth = this.$el.clientWidth; // this.$emit('resize', this.$el.clientWidth)
|
|
2693
|
+
}
|
|
2694
|
+
},
|
|
2695
|
+
computed: {
|
|
2696
|
+
galleryItems: function galleryItems() {
|
|
2697
|
+
if (this.resetIndex) {
|
|
2698
|
+
this.$refs.gallery.indicatorClicked(0);
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
var items = _toConsumableArray(this.items["Dataset"]);
|
|
2702
|
+
|
|
2703
|
+
if (this.category === "All") {
|
|
2704
|
+
for (var _i = 0, _Object$entries = Object.entries(this.items); _i < _Object$entries.length; _i++) {
|
|
2705
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
2706
|
+
key = _Object$entries$_i[0],
|
|
2707
|
+
value = _Object$entries$_i[1];
|
|
2708
|
+
|
|
2709
|
+
if (key !== "Dataset") items = items.concat(value);
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
return items;
|
|
2713
|
+
} else return this.items[this.category];
|
|
2714
|
+
}
|
|
2715
|
+
},
|
|
2716
|
+
created: function created() {
|
|
2717
|
+
this.createSciCurnchItems();
|
|
2718
|
+
},
|
|
2719
|
+
watch: {
|
|
2720
|
+
category: function category() {
|
|
2721
|
+
this.resetIndex = true;
|
|
2722
|
+
},
|
|
2723
|
+
galleryItems: function galleryItems() {
|
|
2724
|
+
this.resetIndex = false;
|
|
2725
|
+
},
|
|
2726
|
+
datasetBiolucida: {
|
|
2727
|
+
deep: true,
|
|
2728
|
+
immediate: true,
|
|
2729
|
+
handler: function handler(biolucidaData) {
|
|
2730
|
+
var _this6 = this;
|
|
2731
|
+
|
|
2732
|
+
var items = [];
|
|
2733
|
+
|
|
2734
|
+
if ("dataset_images" in biolucidaData) {
|
|
2735
|
+
items.push.apply(items, _toConsumableArray(Array.from(biolucidaData.dataset_images, function (dataset_image) {
|
|
2736
|
+
var thumbnailURL = _this6.getThumbnailURLFromBiolucida(_this6.envVars.API_LOCATION, {
|
|
2737
|
+
id: dataset_image.image_id
|
|
2738
|
+
});
|
|
2739
|
+
|
|
2740
|
+
var resource = {
|
|
2741
|
+
share_link: dataset_image.share_link,
|
|
2742
|
+
id: dataset_image.image_id,
|
|
2743
|
+
itemId: dataset_image.sourcepkg_id
|
|
2744
|
+
};
|
|
2745
|
+
var action = {
|
|
2746
|
+
label: ImageGalleryvue_type_script_lang_js_capitalise(_this6.label),
|
|
2747
|
+
resource: resource,
|
|
2748
|
+
datasetId: _this6.datasetId,
|
|
2749
|
+
title: "View image",
|
|
2750
|
+
name: ImageGalleryvue_type_script_lang_js_capitalise(_this6.label),
|
|
2751
|
+
type: "Biolucida"
|
|
2752
|
+
};
|
|
2753
|
+
return {
|
|
2754
|
+
id: dataset_image.image_id,
|
|
2755
|
+
title: "Biolucida Image",
|
|
2756
|
+
type: "Image",
|
|
2757
|
+
thumbnail: thumbnailURL,
|
|
2758
|
+
userData: action,
|
|
2759
|
+
mimetype: 'image/png',
|
|
2760
|
+
hideType: true
|
|
2761
|
+
};
|
|
2762
|
+
})));
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
this.items['Biolucida Images'] = items;
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
},
|
|
2769
|
+
mounted: function mounted() {
|
|
2770
|
+
this.ro = new ResizeObserver(this.onResize).observe(this.$el);
|
|
2771
|
+
},
|
|
2772
|
+
destroyed: function destroyed() {
|
|
2773
|
+
delete this.ro;
|
|
2774
|
+
}
|
|
2775
|
+
});
|
|
2776
|
+
// CONCATENATED MODULE: ./src/components/ImageGallery.vue?vue&type=script&lang=js&
|
|
2777
|
+
/* harmony default export */ var components_ImageGalleryvue_type_script_lang_js_ = (ImageGalleryvue_type_script_lang_js_);
|
|
2778
|
+
// EXTERNAL MODULE: ./src/components/ImageGallery.vue?vue&type=style&index=0&id=2fb38a56&scoped=true&lang=css&
|
|
2779
|
+
var ImageGalleryvue_type_style_index_0_id_2fb38a56_scoped_true_lang_css_ = __webpack_require__("584e");
|
|
2780
|
+
|
|
2781
|
+
// CONCATENATED MODULE: ./src/components/ImageGallery.vue
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
|
|
2787
|
+
|
|
2788
|
+
/* normalize component */
|
|
2789
|
+
|
|
2790
|
+
var ImageGallery_component = normalizeComponent(
|
|
2791
|
+
components_ImageGalleryvue_type_script_lang_js_,
|
|
2792
|
+
ImageGalleryvue_type_template_id_2fb38a56_scoped_true_render,
|
|
2793
|
+
ImageGalleryvue_type_template_id_2fb38a56_scoped_true_staticRenderFns,
|
|
2794
|
+
false,
|
|
2795
|
+
null,
|
|
2796
|
+
"2fb38a56",
|
|
2797
|
+
null
|
|
2798
|
+
|
|
2799
|
+
)
|
|
2800
|
+
|
|
2801
|
+
/* harmony default export */ var ImageGallery = (ImageGallery_component.exports);
|
|
2802
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatasetCard.vue?vue&type=script&lang=js&
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2810
|
+
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
//
|
|
2821
|
+
//
|
|
2822
|
+
//
|
|
2823
|
+
//
|
|
2824
|
+
//
|
|
2825
|
+
//
|
|
2826
|
+
//
|
|
2827
|
+
//
|
|
2828
|
+
//
|
|
2829
|
+
//
|
|
2830
|
+
//
|
|
2831
|
+
//
|
|
2832
|
+
//
|
|
2833
|
+
//
|
|
2834
|
+
//
|
|
2835
|
+
//
|
|
2836
|
+
//
|
|
2837
|
+
//
|
|
2838
|
+
//
|
|
2839
|
+
//
|
|
2840
|
+
//
|
|
2841
|
+
//
|
|
2842
|
+
//
|
|
2843
|
+
//
|
|
2844
|
+
//
|
|
2845
|
+
//
|
|
2846
|
+
//
|
|
2847
|
+
//
|
|
2848
|
+
//
|
|
2849
|
+
//
|
|
2850
|
+
//
|
|
2851
|
+
//
|
|
2852
|
+
//
|
|
2853
|
+
//
|
|
2854
|
+
//
|
|
2855
|
+
//
|
|
2856
|
+
//
|
|
2857
|
+
//
|
|
2858
|
+
//
|
|
2859
|
+
//
|
|
2860
|
+
|
|
2861
|
+
/* eslint-disable no-alert, no-console */
|
|
2862
|
+
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
|
|
2866
|
+
|
|
2867
|
+
|
|
2868
|
+
|
|
2869
|
+
locale_default.a.use(en_default.a);
|
|
2870
|
+
external_vue_default.a.use(button_default.a);
|
|
2871
|
+
external_vue_default.a.use(icon_default.a);
|
|
2203
2872
|
/* harmony default export */ var DatasetCardvue_type_script_lang_js_ = ({
|
|
2204
2873
|
name: "DatasetCard",
|
|
2874
|
+
components: {
|
|
2875
|
+
BadgesGroup: BadgesGroup,
|
|
2876
|
+
ImageGallery: ImageGallery
|
|
2877
|
+
},
|
|
2205
2878
|
props: {
|
|
2206
|
-
/**
|
|
2207
|
-
* Object containing information for
|
|
2208
|
-
* the required viewing.
|
|
2879
|
+
/**
|
|
2880
|
+
* Object containing information for
|
|
2881
|
+
* the required viewing.
|
|
2209
2882
|
*/
|
|
2210
2883
|
entry: {
|
|
2211
2884
|
type: Object,
|
|
@@ -2221,16 +2894,14 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2221
2894
|
thumbnail: __webpack_require__("9b53"),
|
|
2222
2895
|
dataLocation: this.entry.doi,
|
|
2223
2896
|
discoverId: undefined,
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2897
|
+
loading: true,
|
|
2898
|
+
version: 1,
|
|
2899
|
+
lastDoi: undefined,
|
|
2900
|
+
biolucidaData: undefined,
|
|
2901
|
+
currentCategory: "All"
|
|
2228
2902
|
};
|
|
2229
2903
|
},
|
|
2230
2904
|
computed: {
|
|
2231
|
-
hasCSVFile: function hasCSVFile() {
|
|
2232
|
-
return this.entry.csvFiles && this.entry.csvFiles.length !== 0;
|
|
2233
|
-
},
|
|
2234
2905
|
contributors: function contributors() {
|
|
2235
2906
|
var text = "";
|
|
2236
2907
|
|
|
@@ -2286,44 +2957,13 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2286
2957
|
},
|
|
2287
2958
|
methods: {
|
|
2288
2959
|
cardClicked: function cardClicked() {
|
|
2289
|
-
|
|
2290
|
-
this.openScaffold();
|
|
2291
|
-
} else {
|
|
2292
|
-
this.openDataset();
|
|
2293
|
-
}
|
|
2960
|
+
this.openDataset();
|
|
2294
2961
|
},
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
type: "Scaffold",
|
|
2301
|
-
discoverId: this.discoverId,
|
|
2302
|
-
apiLocation: this.envVars.API_LOCATION,
|
|
2303
|
-
version: this.version,
|
|
2304
|
-
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
|
|
2305
|
-
banner: this.thumbnail
|
|
2306
|
-
};
|
|
2307
|
-
|
|
2308
|
-
if (hardcoded_context_info[this.discoverId]) {
|
|
2309
|
-
action.contextCardUrl = true;
|
|
2310
|
-
}
|
|
2311
|
-
|
|
2312
|
-
this.propogateCardAction(action);
|
|
2313
|
-
},
|
|
2314
|
-
openPlot: function openPlot() {
|
|
2315
|
-
var action = {
|
|
2316
|
-
label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
|
|
2317
|
-
resource: this.getFileFromPath(this.discoverId, this.version, this.entry.csvFiles[0].dataset.path),
|
|
2318
|
-
title: "View plot",
|
|
2319
|
-
type: "Plot",
|
|
2320
|
-
discoverId: this.discoverId,
|
|
2321
|
-
apiLocation: this.envVars.API_LOCATION,
|
|
2322
|
-
version: this.version,
|
|
2323
|
-
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
|
|
2324
|
-
banner: this.thumbnail
|
|
2325
|
-
};
|
|
2326
|
-
this.propogateCardAction(action);
|
|
2962
|
+
categoryChanged: function categoryChanged(name) {
|
|
2963
|
+
this.currentCategory = name;
|
|
2964
|
+
},
|
|
2965
|
+
galleryClicked: function galleryClicked(payload) {
|
|
2966
|
+
this.propogateCardAction(payload);
|
|
2327
2967
|
},
|
|
2328
2968
|
openDataset: function openDataset() {
|
|
2329
2969
|
window.open(this.dataLocation, '_blank');
|
|
@@ -2358,51 +2998,10 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2358
2998
|
}
|
|
2359
2999
|
});
|
|
2360
3000
|
},
|
|
2361
|
-
openSimulation: function openSimulation() {
|
|
2362
|
-
var isSedmlResource = false;
|
|
2363
|
-
var resource = undefined;
|
|
2364
|
-
this.entry.additionalLinks.forEach(function (el) {
|
|
2365
|
-
if (el.description == "SED-ML file") {
|
|
2366
|
-
isSedmlResource = true;
|
|
2367
|
-
resource = el.uri;
|
|
2368
|
-
} else if (!isSedmlResource && el.description == "CellML file") {
|
|
2369
|
-
resource = el.uri;
|
|
2370
|
-
}
|
|
2371
|
-
});
|
|
2372
|
-
var action = {
|
|
2373
|
-
label: undefined,
|
|
2374
|
-
resource: resource,
|
|
2375
|
-
dataset: this.dataLocation,
|
|
2376
|
-
apiLocation: this.envVars.API_LOCATION,
|
|
2377
|
-
version: this.version,
|
|
2378
|
-
discoverId: this.discoverId,
|
|
2379
|
-
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
|
|
2380
|
-
banner: this.thumbnail,
|
|
2381
|
-
title: "View simulation",
|
|
2382
|
-
name: this.entry.name,
|
|
2383
|
-
description: this.entry.description,
|
|
2384
|
-
type: "Simulation"
|
|
2385
|
-
};
|
|
2386
|
-
this.propogateCardAction(action);
|
|
2387
|
-
},
|
|
2388
3001
|
propogateCardAction: function propogateCardAction(action) {
|
|
2389
3002
|
components_EventBus.$emit("PopoverActionClick", action);
|
|
2390
3003
|
this.$emit('contextUpdate', action);
|
|
2391
3004
|
},
|
|
2392
|
-
getScaffoldPath: function getScaffoldPath(discoverId, version, scaffoldPath) {
|
|
2393
|
-
var id = discoverId;
|
|
2394
|
-
var path = "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(id, "/").concat(version, "/files/").concat(scaffoldPath);
|
|
2395
|
-
return path;
|
|
2396
|
-
},
|
|
2397
|
-
getFileFromPath: function getFileFromPath(discoverId, version, path) {
|
|
2398
|
-
return "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(discoverId, "/").concat(version, "/files/").concat(path);
|
|
2399
|
-
},
|
|
2400
|
-
isOverflown: function isOverflown(el) {
|
|
2401
|
-
return el.clientHeight < el.scrollHeight;
|
|
2402
|
-
},
|
|
2403
|
-
expand: function expand() {
|
|
2404
|
-
this.expanded = true;
|
|
2405
|
-
},
|
|
2406
3005
|
splitDOI: function splitDOI(doi) {
|
|
2407
3006
|
return [doi.split('/')[doi.split('/').length - 2], doi.split('/')[doi.split('/').length - 1]];
|
|
2408
3007
|
},
|
|
@@ -2414,7 +3013,7 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2414
3013
|
this.lastDoi = this.entry.doi;
|
|
2415
3014
|
this.loading = true;
|
|
2416
3015
|
var doi = this.splitDOI(this.entry.doi);
|
|
2417
|
-
fetch("
|
|
3016
|
+
fetch("".concat(this.envVars.PENNSIEVE_API_LOCATION, "/discover/datasets/doi/").concat(doi[0], "/").concat(doi[1])).then(function (response) {
|
|
2418
3017
|
if (!response.ok) {
|
|
2419
3018
|
throw Error(response.statusText);
|
|
2420
3019
|
} else {
|
|
@@ -2425,38 +3024,49 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2425
3024
|
_this.discoverId = data.id;
|
|
2426
3025
|
_this.version = data.version;
|
|
2427
3026
|
_this.dataLocation = "https://sparc.science/datasets/".concat(data.id, "?type=dataset");
|
|
3027
|
+
|
|
3028
|
+
_this.getBiolucidaInfo(_this.discoverId);
|
|
3029
|
+
|
|
2428
3030
|
_this.loading = false;
|
|
2429
3031
|
}).catch(function () {
|
|
2430
3032
|
//set defaults if we hit an error
|
|
2431
3033
|
_this.thumbnail = __webpack_require__("9b53");
|
|
2432
|
-
_this.discoverId =
|
|
3034
|
+
_this.discoverId = Number(_this.entry.datasetId);
|
|
2433
3035
|
_this.loading = false;
|
|
2434
3036
|
});
|
|
2435
3037
|
}
|
|
2436
3038
|
},
|
|
2437
3039
|
lastName: function lastName(fullName) {
|
|
2438
3040
|
return fullName.split(',')[0];
|
|
3041
|
+
},
|
|
3042
|
+
getBiolucidaInfo: function getBiolucidaInfo(id) {
|
|
3043
|
+
var _this2 = this;
|
|
3044
|
+
|
|
3045
|
+
var apiLocation = this.envVars.API_LOCATION;
|
|
3046
|
+
var endpoint = apiLocation + "image_search/" + id; // Add parameters if we are sent them
|
|
3047
|
+
|
|
3048
|
+
fetch(endpoint).then(function (response) {
|
|
3049
|
+
return response.json();
|
|
3050
|
+
}).then(function (data) {
|
|
3051
|
+
if (data.status == "success") _this2.biolucidaData = data;
|
|
3052
|
+
});
|
|
2439
3053
|
}
|
|
2440
3054
|
},
|
|
2441
|
-
|
|
3055
|
+
created: function created() {
|
|
2442
3056
|
this.getBanner();
|
|
2443
|
-
this.cardOverflow = this.isOverflown(this.$refs.card);
|
|
2444
3057
|
},
|
|
2445
|
-
updated: function updated() {},
|
|
2446
3058
|
watch: {
|
|
2447
3059
|
// currently not using card overflow
|
|
2448
3060
|
'entry.description': function entryDescription() {
|
|
2449
3061
|
// watch it
|
|
2450
|
-
this.
|
|
2451
|
-
this.expanded = false;
|
|
2452
|
-
this.cardOverflow = this.isOverflown(this.$refs.card);
|
|
3062
|
+
this.getBanner();
|
|
2453
3063
|
}
|
|
2454
3064
|
}
|
|
2455
3065
|
});
|
|
2456
3066
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=script&lang=js&
|
|
2457
3067
|
/* harmony default export */ var components_DatasetCardvue_type_script_lang_js_ = (DatasetCardvue_type_script_lang_js_);
|
|
2458
|
-
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=
|
|
2459
|
-
var
|
|
3068
|
+
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=14674f48&scoped=true&lang=css&
|
|
3069
|
+
var DatasetCardvue_type_style_index_0_id_14674f48_scoped_true_lang_css_ = __webpack_require__("8d78");
|
|
2460
3070
|
|
|
2461
3071
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue
|
|
2462
3072
|
|
|
@@ -2469,22 +3079,22 @@ var DatasetCardvue_type_style_index_0_id_75e03782_scoped_true_lang_css_ = __webp
|
|
|
2469
3079
|
|
|
2470
3080
|
var DatasetCard_component = normalizeComponent(
|
|
2471
3081
|
components_DatasetCardvue_type_script_lang_js_,
|
|
2472
|
-
|
|
2473
|
-
|
|
3082
|
+
DatasetCardvue_type_template_id_14674f48_scoped_true_render,
|
|
3083
|
+
DatasetCardvue_type_template_id_14674f48_scoped_true_staticRenderFns,
|
|
2474
3084
|
false,
|
|
2475
3085
|
null,
|
|
2476
|
-
"
|
|
3086
|
+
"14674f48",
|
|
2477
3087
|
null
|
|
2478
3088
|
|
|
2479
3089
|
)
|
|
2480
3090
|
|
|
2481
3091
|
/* harmony default export */ var DatasetCard = (DatasetCard_component.exports);
|
|
2482
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2483
|
-
var
|
|
2484
|
-
var
|
|
3092
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14374f4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ContextCard.vue?vue&type=template&id=26e5ef37&scoped=true&
|
|
3093
|
+
var ContextCardvue_type_template_id_26e5ef37_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"context-card-container"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showContextCard),expression:"showContextCard"}]},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDetails),expression:"showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Hide information"),_c('i',{staticClass:"el-icon-arrow-up"})]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showDetails),expression:"!showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Show information"),_c('i',{staticClass:"el-icon-arrow-down"})]),(_vm.showDetails && Object.keys(_vm.contextData).length !== 0)?_c('el-card',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"context-card card"},[_c('div',{staticClass:"card-left"},[_c('img',{staticClass:"context-image",attrs:{"src":_vm.entry.banner}})]),_c('div',{staticClass:"card-right"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.contextData.heading))]),_c('div',[_vm._v(_vm._s(_vm.contextData.description))]),_c('br'),(_vm.contextData.views && _vm.contextData.views.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Scaffold Views")]):_vm._e(),_vm._l((_vm.contextData.views),function(view,i){return [_c('span',{key:i+'_1',staticClass:"context-card-item",on:{"click":function($event){return _vm.openViewFile(view)}}},[_c('img',{staticClass:"key-image",attrs:{"src":_vm.getFileFromPath(view.thumbnail)}}),_vm._v(" "+_vm._s(view.description)+" ")]),_c('br',{key:i})]}),_c('div',{staticStyle:{"margin-bottom":"16px"}}),(_vm.contextData.samples && _vm.contextData.samples.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Samples on Scaffold")]):_vm._e(),_vm._l((_vm.contextData.samples),function(sample,i){return [_c('span',{key:i+'_3',staticClass:"context-card-item",on:{"click":function($event){return _vm.toggleSampleDetails(i)}}},[_c('div',{key:i+'_6',staticStyle:{"display":"flex"}},[(sample.color)?_c('div',{staticClass:"color-box",style:('background-color:'+ sample.color)}):(sample.thumbnail)?_c('img',{staticClass:"key-image",attrs:{"src":_vm.getFileFromPath(sample.thumbnail)}}):_vm._e(),_vm._v(" "+_vm._s(sample.heading)+" "),_c('i',{staticClass:"el-icon-warning-outline info"})])]),(_vm.sampleDetails[i])?_c('div',{key:i+'_4'},[_vm._v(" "+_vm._s(sample.description)+" "),(_vm.sampleDetails[i])?_c('a',{key:i+'_5',attrs:{"href":_vm.generateFileLink(sample.path),"target":"_blank"}},[_vm._v("View Source")]):_vm._e()]):_vm._e(),_c('br',{key:i+'_2'})]})],2)]):_vm._e()],1)])}
|
|
3094
|
+
var ContextCardvue_type_template_id_26e5ef37_scoped_true_staticRenderFns = []
|
|
2485
3095
|
|
|
2486
3096
|
|
|
2487
|
-
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=
|
|
3097
|
+
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=26e5ef37&scoped=true&
|
|
2488
3098
|
|
|
2489
3099
|
// EXTERNAL MODULE: external "element-ui/lib/theme-chalk/link.css"
|
|
2490
3100
|
var link_css_ = __webpack_require__("230a");
|
|
@@ -2493,6 +3103,84 @@ var link_css_ = __webpack_require__("230a");
|
|
|
2493
3103
|
var link_ = __webpack_require__("7db7");
|
|
2494
3104
|
var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
2495
3105
|
|
|
3106
|
+
// CONCATENATED MODULE: ./src/components/hardcoded-context-info.js
|
|
3107
|
+
/* harmony default export */ var hardcoded_context_info = ({}); // //Uncomment the code below to add in hardcoded data
|
|
3108
|
+
// export default {
|
|
3109
|
+
// 77: {
|
|
3110
|
+
// "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.",
|
|
3111
|
+
// "heading": "Mapped ICN samples",
|
|
3112
|
+
// "id": "sparc.science.context_data",
|
|
3113
|
+
// "samples": [
|
|
3114
|
+
// {
|
|
3115
|
+
// "annotation": "",
|
|
3116
|
+
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
3117
|
+
// "doi": "",
|
|
3118
|
+
// "heading": "ICNS from subject M54-8",
|
|
3119
|
+
// "id": "Sample 1",
|
|
3120
|
+
// "path": "",
|
|
3121
|
+
// "view": "View 1",
|
|
3122
|
+
// "color": "#FFFF00",
|
|
3123
|
+
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
|
|
3124
|
+
// },
|
|
3125
|
+
// {
|
|
3126
|
+
// "annotation": "",
|
|
3127
|
+
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
3128
|
+
// "doi": "",
|
|
3129
|
+
// "heading": "ICNS from subject M54-5",
|
|
3130
|
+
// "id": "Sample 2",
|
|
3131
|
+
// "path": "",
|
|
3132
|
+
// "view": "View 2",
|
|
3133
|
+
// "color": "#FFA500",
|
|
3134
|
+
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
|
|
3135
|
+
// }
|
|
3136
|
+
// ],
|
|
3137
|
+
// "version": "0.1.0",
|
|
3138
|
+
// },
|
|
3139
|
+
// 221: {
|
|
3140
|
+
// "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
|
|
3141
|
+
// "heading": "Digital tracings of enteric plexus",
|
|
3142
|
+
// "id": "sparc.science.context_data",
|
|
3143
|
+
// "samples": [
|
|
3144
|
+
// {
|
|
3145
|
+
// "annotation": "",
|
|
3146
|
+
// "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
|
|
3147
|
+
// "doi": "",
|
|
3148
|
+
// "heading": "Digital tracing for subject M11",
|
|
3149
|
+
// "id": "Sample 1",
|
|
3150
|
+
// "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
|
|
3151
|
+
// "view": "View 1"
|
|
3152
|
+
// },
|
|
3153
|
+
// {
|
|
3154
|
+
// "annotation": "",
|
|
3155
|
+
// "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
|
|
3156
|
+
// "doi": "",
|
|
3157
|
+
// "heading": "Digital tracing for subject M16",
|
|
3158
|
+
// "id": "Sample 2",
|
|
3159
|
+
// "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
|
|
3160
|
+
// "view": "View 2"
|
|
3161
|
+
// }
|
|
3162
|
+
// ],
|
|
3163
|
+
// "version": "0.1.0",
|
|
3164
|
+
// "views": [
|
|
3165
|
+
// {
|
|
3166
|
+
// "annotation": "--",
|
|
3167
|
+
// "description": "Digital tracing of neurons for subject M11.",
|
|
3168
|
+
// "id": "View 1",
|
|
3169
|
+
// "path": "files/derivative/Scaffolds/M11_view.json",
|
|
3170
|
+
// "sample": "Sample 1",
|
|
3171
|
+
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
|
|
3172
|
+
// },
|
|
3173
|
+
// {
|
|
3174
|
+
// "annotation": "--",
|
|
3175
|
+
// "description": "Digital tracing of neurons for subject M16.",
|
|
3176
|
+
// "id": "View 2",
|
|
3177
|
+
// "path": "files/derivative/Scaffolds/M16_view.json",
|
|
3178
|
+
// "sample": "Sample 2",
|
|
3179
|
+
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
|
|
3180
|
+
// }
|
|
3181
|
+
// ]
|
|
3182
|
+
// }
|
|
3183
|
+
// }
|
|
2496
3184
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ContextCard.vue?vue&type=script&lang=js&
|
|
2497
3185
|
|
|
2498
3186
|
|
|
@@ -2582,9 +3270,9 @@ external_vue_default.a.use(input_default.a);
|
|
|
2582
3270
|
/* harmony default export */ var ContextCardvue_type_script_lang_js_ = ({
|
|
2583
3271
|
name: "contextCard",
|
|
2584
3272
|
props: {
|
|
2585
|
-
/**
|
|
2586
|
-
* Object containing information for
|
|
2587
|
-
* the required viewing.
|
|
3273
|
+
/**
|
|
3274
|
+
* Object containing information for
|
|
3275
|
+
* the required viewing.
|
|
2588
3276
|
*/
|
|
2589
3277
|
entry: Object
|
|
2590
3278
|
},
|
|
@@ -2673,8 +3361,8 @@ external_vue_default.a.use(input_default.a);
|
|
|
2673
3361
|
});
|
|
2674
3362
|
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=script&lang=js&
|
|
2675
3363
|
/* harmony default export */ var components_ContextCardvue_type_script_lang_js_ = (ContextCardvue_type_script_lang_js_);
|
|
2676
|
-
// EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=
|
|
2677
|
-
var
|
|
3364
|
+
// EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=26e5ef37&scoped=true&lang=css&
|
|
3365
|
+
var ContextCardvue_type_style_index_0_id_26e5ef37_scoped_true_lang_css_ = __webpack_require__("9fdf");
|
|
2678
3366
|
|
|
2679
3367
|
// CONCATENATED MODULE: ./src/components/ContextCard.vue
|
|
2680
3368
|
|
|
@@ -2687,11 +3375,11 @@ var ContextCardvue_type_style_index_0_id_41eb07ec_scoped_true_lang_css_ = __webp
|
|
|
2687
3375
|
|
|
2688
3376
|
var ContextCard_component = normalizeComponent(
|
|
2689
3377
|
components_ContextCardvue_type_script_lang_js_,
|
|
2690
|
-
|
|
2691
|
-
|
|
3378
|
+
ContextCardvue_type_template_id_26e5ef37_scoped_true_render,
|
|
3379
|
+
ContextCardvue_type_template_id_26e5ef37_scoped_true_staticRenderFns,
|
|
2692
3380
|
false,
|
|
2693
3381
|
null,
|
|
2694
|
-
"
|
|
3382
|
+
"26e5ef37",
|
|
2695
3383
|
null
|
|
2696
3384
|
|
|
2697
3385
|
)
|
|
@@ -2797,8 +3485,6 @@ function SidebarContentvue_type_script_lang_js_objectSpread(target) { for (var i
|
|
|
2797
3485
|
//
|
|
2798
3486
|
//
|
|
2799
3487
|
//
|
|
2800
|
-
//
|
|
2801
|
-
//
|
|
2802
3488
|
|
|
2803
3489
|
/* eslint-disable no-alert, no-console */
|
|
2804
3490
|
|
|
@@ -2879,10 +3565,8 @@ var initial_state = {
|
|
|
2879
3565
|
pageModel: 1,
|
|
2880
3566
|
start: 0,
|
|
2881
3567
|
hasSearched: false,
|
|
2882
|
-
sciCrunchError: false,
|
|
2883
3568
|
contextCardEntry: undefined,
|
|
2884
|
-
contextCardEnabled: true
|
|
2885
|
-
loadingScicrunch: false
|
|
3569
|
+
contextCardEnabled: true
|
|
2886
3570
|
};
|
|
2887
3571
|
/* harmony default export */ var SidebarContentvue_type_script_lang_js_ = ({
|
|
2888
3572
|
components: {
|
|
@@ -2983,15 +3667,27 @@ var initial_state = {
|
|
|
2983
3667
|
|
|
2984
3668
|
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
2985
3669
|
// Algolia search
|
|
3670
|
+
this.loadingCards = true;
|
|
2986
3671
|
this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(function (searchData) {
|
|
2987
3672
|
_this.numberOfHits = searchData.total;
|
|
2988
3673
|
_this.discoverIds = searchData.discoverIds;
|
|
2989
|
-
_this.
|
|
3674
|
+
_this._dois = searchData.dois;
|
|
2990
3675
|
_this.results = searchData.items;
|
|
2991
3676
|
_this.loadingCards = false;
|
|
2992
3677
|
|
|
2993
|
-
_this.
|
|
2994
|
-
|
|
3678
|
+
_this.scrollToTop();
|
|
3679
|
+
|
|
3680
|
+
_this.$emit("search-changed", {
|
|
3681
|
+
value: _this.searchInput,
|
|
3682
|
+
type: "query-update"
|
|
3683
|
+
});
|
|
3684
|
+
|
|
3685
|
+
if (_this._abortController) _this._abortController.abort();
|
|
3686
|
+
_this._abortController = new AbortController();
|
|
3687
|
+
var signal = _this._abortController.signal; //Search ongoing, let the current flow progress
|
|
3688
|
+
|
|
3689
|
+
_this.perItemSearch(signal, {
|
|
3690
|
+
count: 0
|
|
2995
3691
|
});
|
|
2996
3692
|
});
|
|
2997
3693
|
},
|
|
@@ -3007,32 +3703,45 @@ var initial_state = {
|
|
|
3007
3703
|
this.page = page;
|
|
3008
3704
|
this.searchAlgolia(this.filters, this.searchInput, this.numberPerPage, this.page);
|
|
3009
3705
|
},
|
|
3010
|
-
|
|
3706
|
+
handleMissingData: function handleMissingData(doi) {
|
|
3707
|
+
var i = this.results.findIndex(function (res) {
|
|
3708
|
+
return res.doi === doi;
|
|
3709
|
+
});
|
|
3710
|
+
if (this.results[i]) this.results[i].detailsReady = true;
|
|
3711
|
+
},
|
|
3712
|
+
perItemSearch: function perItemSearch(signal, data) {
|
|
3011
3713
|
var _this2 = this;
|
|
3012
3714
|
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3715
|
+
//Maximum 10 downloads at once to prevent long waiting time
|
|
3716
|
+
//between unfinished search and new search
|
|
3717
|
+
var maxDownloads = 10;
|
|
3718
|
+
|
|
3719
|
+
if (maxDownloads > data.count) {
|
|
3720
|
+
var doi = this._dois.shift();
|
|
3721
|
+
|
|
3722
|
+
if (doi) {
|
|
3723
|
+
data.count++;
|
|
3724
|
+
this.callSciCrunch(this.envVars.API_LOCATION, {
|
|
3725
|
+
'dois': [doi]
|
|
3726
|
+
}, signal).then(function (result) {
|
|
3727
|
+
if (result.numberOfHits === 0) _this2.handleMissingData(doi);else _this2.resultsProcessing(result);
|
|
3728
|
+
_this2.$refs.content.style["overflow-y"] = "scroll";
|
|
3729
|
+
data.count--; //Async::Download finished, get the next one
|
|
3730
|
+
|
|
3731
|
+
_this2.perItemSearch(signal, data);
|
|
3732
|
+
}).catch(function (result) {
|
|
3733
|
+
if (result.name !== 'AbortError') {
|
|
3734
|
+
_this2.handleMissingData(doi);
|
|
3735
|
+
|
|
3736
|
+
data.count--; //Async::Download not aborted, get the next one
|
|
3737
|
+
|
|
3738
|
+
_this2.perItemSearch(signal, data);
|
|
3739
|
+
}
|
|
3740
|
+
}); //Check and make another request until it gets to max downloads
|
|
3741
|
+
|
|
3742
|
+
this.perItemSearch(signal, data);
|
|
3034
3743
|
}
|
|
3035
|
-
}
|
|
3744
|
+
}
|
|
3036
3745
|
},
|
|
3037
3746
|
scrollToTop: function scrollToTop() {
|
|
3038
3747
|
if (this.$refs.content) {
|
|
@@ -3069,7 +3778,9 @@ var initial_state = {
|
|
|
3069
3778
|
numberSubjects: element.subjectSize ? parseInt(element.subjectSize) : 0,
|
|
3070
3779
|
updated: element.updated[0].timestamp.split("T")[0],
|
|
3071
3780
|
url: element.uri[0],
|
|
3072
|
-
datasetId: element.
|
|
3781
|
+
datasetId: element.dataset_identifier,
|
|
3782
|
+
datasetRevision: element.dataset_revision,
|
|
3783
|
+
datasetVersion: element.dataset_version,
|
|
3073
3784
|
organs: element.organs && element.organs.length > 0 ? _toConsumableArray(new Set(element.organs.map(function (v) {
|
|
3074
3785
|
return v.name;
|
|
3075
3786
|
}))) : undefined,
|
|
@@ -3077,9 +3788,17 @@ var initial_state = {
|
|
|
3077
3788
|
return v.species ? v.species.name : null;
|
|
3078
3789
|
}))) : undefined : undefined,
|
|
3079
3790
|
// This processing only includes each gender once into 'sexes'
|
|
3080
|
-
scaffolds: element['abi-scaffold-metadata-file']
|
|
3791
|
+
scaffolds: element['abi-scaffold-metadata-file'],
|
|
3792
|
+
thumbnails: element['abi-thumbnail'] ? element['abi-thumbnail'] : element['abi-scaffold-thumbnail'],
|
|
3793
|
+
scaffoldViews: element['abi-scaffold-view-file'],
|
|
3794
|
+
videos: element.video,
|
|
3795
|
+
plots: element['abi-plot'],
|
|
3796
|
+
images: element['common-images'],
|
|
3081
3797
|
contextualInformation: element['abi-contextual-information'].length > 0 ? element['abi-contextual-information'] : undefined,
|
|
3082
|
-
|
|
3798
|
+
segmentation: element['mbf-segmentation'],
|
|
3799
|
+
simulation: element['abi-simulation-file'],
|
|
3800
|
+
additionalLinks: element.additionalLinks,
|
|
3801
|
+
detailsReady: true
|
|
3083
3802
|
});
|
|
3084
3803
|
external_vue_default.a.set(_this3.results, i, _this3.results[i]);
|
|
3085
3804
|
});
|
|
@@ -3107,13 +3826,9 @@ var initial_state = {
|
|
|
3107
3826
|
var _this4 = this;
|
|
3108
3827
|
|
|
3109
3828
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
3829
|
+
var signal = arguments.length > 2 ? arguments[2] : undefined;
|
|
3110
3830
|
return new Promise(function (resolve, reject) {
|
|
3111
|
-
//
|
|
3112
|
-
// if a new one has been started
|
|
3113
|
-
if (_this4._controller) _this4._controller.abort();
|
|
3114
|
-
_this4._controller = new AbortController();
|
|
3115
|
-
var signal = _this4._controller.signal; // Add parameters if we are sent them
|
|
3116
|
-
|
|
3831
|
+
// Add parameters if we are sent them
|
|
3117
3832
|
var fullEndpoint = _this4.envVars.API_LOCATION + _this4.searchEndpoint + "?" + _this4.createfilterParams(params);
|
|
3118
3833
|
|
|
3119
3834
|
fetch(fullEndpoint, {
|
|
@@ -3131,8 +3846,7 @@ var initial_state = {
|
|
|
3131
3846
|
mounted: function mounted() {
|
|
3132
3847
|
// initialise algolia
|
|
3133
3848
|
this.algoliaClient = new algolia_AlgoliaClient(this.envVars.ALGOLIA_ID, this.envVars.ALGOLIA_KEY, this.envVars.PENNSIEVE_API_LOCATION);
|
|
3134
|
-
this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX);
|
|
3135
|
-
console.log('Algolia initialised in sidebar'); // temporarily disable flatmap search since there are no datasets
|
|
3849
|
+
this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX); // temporarily disable flatmap search since there are no datasets
|
|
3136
3850
|
|
|
3137
3851
|
if (this.firstSearch === "Flatmap" || this.firstSearch === "flatmap") {
|
|
3138
3852
|
this.openSearch(undefined, '');
|
|
@@ -3147,8 +3861,8 @@ var initial_state = {
|
|
|
3147
3861
|
});
|
|
3148
3862
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=script&lang=js&
|
|
3149
3863
|
/* harmony default export */ var components_SidebarContentvue_type_script_lang_js_ = (SidebarContentvue_type_script_lang_js_);
|
|
3150
|
-
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=
|
|
3151
|
-
var
|
|
3864
|
+
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=0d501578&scoped=true&lang=css&
|
|
3865
|
+
var SidebarContentvue_type_style_index_0_id_0d501578_scoped_true_lang_css_ = __webpack_require__("3d4f");
|
|
3152
3866
|
|
|
3153
3867
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue
|
|
3154
3868
|
|
|
@@ -3161,22 +3875,22 @@ var SidebarContentvue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css_ = __w
|
|
|
3161
3875
|
|
|
3162
3876
|
var SidebarContent_component = normalizeComponent(
|
|
3163
3877
|
components_SidebarContentvue_type_script_lang_js_,
|
|
3164
|
-
|
|
3165
|
-
|
|
3878
|
+
SidebarContentvue_type_template_id_0d501578_scoped_true_render,
|
|
3879
|
+
SidebarContentvue_type_template_id_0d501578_scoped_true_staticRenderFns,
|
|
3166
3880
|
false,
|
|
3167
3881
|
null,
|
|
3168
|
-
"
|
|
3882
|
+
"0d501578",
|
|
3169
3883
|
null
|
|
3170
3884
|
|
|
3171
3885
|
)
|
|
3172
3886
|
|
|
3173
3887
|
/* harmony default export */ var SidebarContent = (SidebarContent_component.exports);
|
|
3174
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3175
|
-
var
|
|
3176
|
-
var
|
|
3888
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14374f4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Tabs.vue?vue&type=template&id=5d1b9484&scoped=true&
|
|
3889
|
+
var Tabsvue_type_template_id_5d1b9484_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tab-container"},_vm._l((_vm.tabTitles),function(title){return _c('div',{key:title.id,staticClass:"title"},[_c('div',{staticClass:"title-text-table",class:{ highlightText : (title.id==_vm.activeId) },on:{"click":function($event){return _vm.titleClicked(title.id)}}},[_c('div',{staticClass:"title-text"},[_vm._v(" "+_vm._s(title.title)+" ")])])])}),0)}
|
|
3890
|
+
var Tabsvue_type_template_id_5d1b9484_scoped_true_staticRenderFns = []
|
|
3177
3891
|
|
|
3178
3892
|
|
|
3179
|
-
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=template&id=
|
|
3893
|
+
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=template&id=5d1b9484&scoped=true&
|
|
3180
3894
|
|
|
3181
3895
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Tabs.vue?vue&type=script&lang=js&
|
|
3182
3896
|
|
|
@@ -3216,8 +3930,8 @@ var Tabsvue_type_template_id_d68260c4_scoped_true_staticRenderFns = []
|
|
|
3216
3930
|
});
|
|
3217
3931
|
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=script&lang=js&
|
|
3218
3932
|
/* harmony default export */ var components_Tabsvue_type_script_lang_js_ = (Tabsvue_type_script_lang_js_);
|
|
3219
|
-
// EXTERNAL MODULE: ./src/components/Tabs.vue?vue&type=style&index=0&id=
|
|
3220
|
-
var
|
|
3933
|
+
// EXTERNAL MODULE: ./src/components/Tabs.vue?vue&type=style&index=0&id=5d1b9484&scoped=true&lang=css&
|
|
3934
|
+
var Tabsvue_type_style_index_0_id_5d1b9484_scoped_true_lang_css_ = __webpack_require__("183e");
|
|
3221
3935
|
|
|
3222
3936
|
// CONCATENATED MODULE: ./src/components/Tabs.vue
|
|
3223
3937
|
|
|
@@ -3230,11 +3944,11 @@ var Tabsvue_type_style_index_0_id_d68260c4_scoped_true_lang_css_ = __webpack_req
|
|
|
3230
3944
|
|
|
3231
3945
|
var Tabs_component = normalizeComponent(
|
|
3232
3946
|
components_Tabsvue_type_script_lang_js_,
|
|
3233
|
-
|
|
3234
|
-
|
|
3947
|
+
Tabsvue_type_template_id_5d1b9484_scoped_true_render,
|
|
3948
|
+
Tabsvue_type_template_id_5d1b9484_scoped_true_staticRenderFns,
|
|
3235
3949
|
false,
|
|
3236
3950
|
null,
|
|
3237
|
-
"
|
|
3951
|
+
"5d1b9484",
|
|
3238
3952
|
null
|
|
3239
3953
|
|
|
3240
3954
|
)
|
|
@@ -3426,8 +4140,8 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
3426
4140
|
});
|
|
3427
4141
|
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=script&lang=js&
|
|
3428
4142
|
/* harmony default export */ var components_SideBarvue_type_script_lang_js_ = (SideBarvue_type_script_lang_js_);
|
|
3429
|
-
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=
|
|
3430
|
-
var
|
|
4143
|
+
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=3d831a8e&scoped=true&lang=css&
|
|
4144
|
+
var SideBarvue_type_style_index_0_id_3d831a8e_scoped_true_lang_css_ = __webpack_require__("bc5f");
|
|
3431
4145
|
|
|
3432
4146
|
// CONCATENATED MODULE: ./src/components/SideBar.vue
|
|
3433
4147
|
|
|
@@ -3444,7 +4158,7 @@ var SideBar_component = normalizeComponent(
|
|
|
3444
4158
|
staticRenderFns,
|
|
3445
4159
|
false,
|
|
3446
4160
|
null,
|
|
3447
|
-
"
|
|
4161
|
+
"3d831a8e",
|
|
3448
4162
|
null
|
|
3449
4163
|
|
|
3450
4164
|
)
|
|
@@ -3465,6 +4179,13 @@ var SideBar_component = normalizeComponent(
|
|
|
3465
4179
|
|
|
3466
4180
|
module.exports = require("core-js/modules/es.string.includes");
|
|
3467
4181
|
|
|
4182
|
+
/***/ }),
|
|
4183
|
+
|
|
4184
|
+
/***/ "fde8":
|
|
4185
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4186
|
+
|
|
4187
|
+
// extracted by mini-css-extract-plugin
|
|
4188
|
+
|
|
3468
4189
|
/***/ })
|
|
3469
4190
|
|
|
3470
4191
|
/******/ });
|