@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
|
@@ -129,17 +129,21 @@ module.exports = require("element-ui/lib/theme-chalk/select.css");
|
|
|
129
129
|
|
|
130
130
|
/***/ }),
|
|
131
131
|
|
|
132
|
-
/***/ "
|
|
133
|
-
/***/ (function(module, exports
|
|
132
|
+
/***/ "139f":
|
|
133
|
+
/***/ (function(module, exports) {
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
module.exports = require("core-js/modules/es.array.for-each");
|
|
136
136
|
|
|
137
137
|
/***/ }),
|
|
138
138
|
|
|
139
|
-
/***/ "
|
|
140
|
-
/***/ (function(module,
|
|
139
|
+
/***/ "183e":
|
|
140
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
"use strict";
|
|
143
|
+
/* 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");
|
|
144
|
+
/* 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__);
|
|
145
|
+
/* unused harmony reexport * */
|
|
146
|
+
/* 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);
|
|
143
147
|
|
|
144
148
|
/***/ }),
|
|
145
149
|
|
|
@@ -157,13 +161,6 @@ module.exports = require("core-js/modules/web.dom-collections.iterator");
|
|
|
157
161
|
|
|
158
162
|
/***/ }),
|
|
159
163
|
|
|
160
|
-
/***/ "1e9c":
|
|
161
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
162
|
-
|
|
163
|
-
// extracted by mini-css-extract-plugin
|
|
164
|
-
|
|
165
|
-
/***/ }),
|
|
166
|
-
|
|
167
164
|
/***/ "2175":
|
|
168
165
|
/***/ (function(module, exports) {
|
|
169
166
|
|
|
@@ -185,17 +182,6 @@ module.exports = require("element-ui/lib/theme-chalk/button.css");
|
|
|
185
182
|
|
|
186
183
|
/***/ }),
|
|
187
184
|
|
|
188
|
-
/***/ "26e6":
|
|
189
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
190
|
-
|
|
191
|
-
"use strict";
|
|
192
|
-
/* 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");
|
|
193
|
-
/* 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__);
|
|
194
|
-
/* unused harmony reexport * */
|
|
195
|
-
/* 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);
|
|
196
|
-
|
|
197
|
-
/***/ }),
|
|
198
|
-
|
|
199
185
|
/***/ "2a6f":
|
|
200
186
|
/***/ (function(module, exports) {
|
|
201
187
|
|
|
@@ -210,35 +196,53 @@ module.exports = require("element-ui/lib/theme-chalk/loading.css");
|
|
|
210
196
|
|
|
211
197
|
/***/ }),
|
|
212
198
|
|
|
213
|
-
/***/ "
|
|
214
|
-
/***/ (function(module, exports) {
|
|
199
|
+
/***/ "2c6a":
|
|
200
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
215
201
|
|
|
216
|
-
|
|
202
|
+
// extracted by mini-css-extract-plugin
|
|
217
203
|
|
|
218
204
|
/***/ }),
|
|
219
205
|
|
|
220
|
-
/***/ "
|
|
221
|
-
/***/ (function(module,
|
|
206
|
+
/***/ "2dd0":
|
|
207
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
222
208
|
|
|
223
|
-
|
|
209
|
+
"use strict";
|
|
210
|
+
/* 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");
|
|
211
|
+
/* 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__);
|
|
212
|
+
/* unused harmony reexport * */
|
|
213
|
+
/* 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);
|
|
224
214
|
|
|
225
215
|
/***/ }),
|
|
226
216
|
|
|
227
|
-
/***/ "
|
|
217
|
+
/***/ "373b":
|
|
228
218
|
/***/ (function(module, exports) {
|
|
229
219
|
|
|
230
|
-
module.exports = require("
|
|
220
|
+
module.exports = require("element-ui/lib/drawer");
|
|
221
|
+
|
|
222
|
+
/***/ }),
|
|
223
|
+
|
|
224
|
+
/***/ "3a09":
|
|
225
|
+
/***/ (function(module, exports) {
|
|
226
|
+
|
|
227
|
+
module.exports = require("@abi-software/gallery");
|
|
231
228
|
|
|
232
229
|
/***/ }),
|
|
233
230
|
|
|
234
|
-
/***/ "
|
|
231
|
+
/***/ "3d4f":
|
|
235
232
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
236
233
|
|
|
237
234
|
"use strict";
|
|
238
|
-
/* harmony import */ var
|
|
239
|
-
/* harmony import */ var
|
|
235
|
+
/* 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");
|
|
236
|
+
/* 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__);
|
|
240
237
|
/* unused harmony reexport * */
|
|
241
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (
|
|
238
|
+
/* 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);
|
|
239
|
+
|
|
240
|
+
/***/ }),
|
|
241
|
+
|
|
242
|
+
/***/ "429c":
|
|
243
|
+
/***/ (function(module, exports) {
|
|
244
|
+
|
|
245
|
+
module.exports = require("@abi-software/svg-sprite");
|
|
242
246
|
|
|
243
247
|
/***/ }),
|
|
244
248
|
|
|
@@ -298,6 +302,31 @@ module.exports = require("core-js/modules/es.regexp.exec");
|
|
|
298
302
|
|
|
299
303
|
/***/ }),
|
|
300
304
|
|
|
305
|
+
/***/ "5658":
|
|
306
|
+
/***/ (function(module, exports) {
|
|
307
|
+
|
|
308
|
+
module.exports = require("@abi-software/gallery/dist/gallery.css");
|
|
309
|
+
|
|
310
|
+
/***/ }),
|
|
311
|
+
|
|
312
|
+
/***/ "5835":
|
|
313
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
314
|
+
|
|
315
|
+
// extracted by mini-css-extract-plugin
|
|
316
|
+
|
|
317
|
+
/***/ }),
|
|
318
|
+
|
|
319
|
+
/***/ "584e":
|
|
320
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
321
|
+
|
|
322
|
+
"use strict";
|
|
323
|
+
/* 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");
|
|
324
|
+
/* 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__);
|
|
325
|
+
/* unused harmony reexport * */
|
|
326
|
+
/* 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);
|
|
327
|
+
|
|
328
|
+
/***/ }),
|
|
329
|
+
|
|
301
330
|
/***/ "5d8c":
|
|
302
331
|
/***/ (function(module, exports) {
|
|
303
332
|
|
|
@@ -333,6 +362,13 @@ module.exports = require("core-js/modules/es.object.get-own-property-descriptor"
|
|
|
333
362
|
|
|
334
363
|
/***/ }),
|
|
335
364
|
|
|
365
|
+
/***/ "6b3a":
|
|
366
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
367
|
+
|
|
368
|
+
// extracted by mini-css-extract-plugin
|
|
369
|
+
|
|
370
|
+
/***/ }),
|
|
371
|
+
|
|
336
372
|
/***/ "6bd8":
|
|
337
373
|
/***/ (function(module, exports) {
|
|
338
374
|
|
|
@@ -347,6 +383,13 @@ module.exports = require("element-ui/lib/locale/lang/en");
|
|
|
347
383
|
|
|
348
384
|
/***/ }),
|
|
349
385
|
|
|
386
|
+
/***/ "6cf4":
|
|
387
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
388
|
+
|
|
389
|
+
// extracted by mini-css-extract-plugin
|
|
390
|
+
|
|
391
|
+
/***/ }),
|
|
392
|
+
|
|
350
393
|
/***/ "6e25":
|
|
351
394
|
/***/ (function(module, exports) {
|
|
352
395
|
|
|
@@ -368,14 +411,14 @@ module.exports = require("core-js/modules/es.number.constructor");
|
|
|
368
411
|
|
|
369
412
|
/***/ }),
|
|
370
413
|
|
|
371
|
-
/***/ "
|
|
414
|
+
/***/ "788d":
|
|
372
415
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
373
416
|
|
|
374
417
|
"use strict";
|
|
375
|
-
/* harmony import */ var
|
|
376
|
-
/* harmony import */ var
|
|
418
|
+
/* 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");
|
|
419
|
+
/* 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__);
|
|
377
420
|
/* unused harmony reexport * */
|
|
378
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (
|
|
421
|
+
/* 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);
|
|
379
422
|
|
|
380
423
|
/***/ }),
|
|
381
424
|
|
|
@@ -386,13 +429,6 @@ module.exports = require("regenerator-runtime/runtime");
|
|
|
386
429
|
|
|
387
430
|
/***/ }),
|
|
388
431
|
|
|
389
|
-
/***/ "7ad0":
|
|
390
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
391
|
-
|
|
392
|
-
// extracted by mini-css-extract-plugin
|
|
393
|
-
|
|
394
|
-
/***/ }),
|
|
395
|
-
|
|
396
432
|
/***/ "7c81":
|
|
397
433
|
/***/ (function(module, exports) {
|
|
398
434
|
|
|
@@ -456,6 +492,17 @@ module.exports = require("core-js/modules/es.array.iterator");
|
|
|
456
492
|
|
|
457
493
|
/***/ }),
|
|
458
494
|
|
|
495
|
+
/***/ "8d78":
|
|
496
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
497
|
+
|
|
498
|
+
"use strict";
|
|
499
|
+
/* 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");
|
|
500
|
+
/* 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__);
|
|
501
|
+
/* unused harmony reexport * */
|
|
502
|
+
/* 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);
|
|
503
|
+
|
|
504
|
+
/***/ }),
|
|
505
|
+
|
|
459
506
|
/***/ "8f11":
|
|
460
507
|
/***/ (function(module, exports) {
|
|
461
508
|
|
|
@@ -477,6 +524,13 @@ module.exports = require("element-ui/lib/popover");
|
|
|
477
524
|
|
|
478
525
|
/***/ }),
|
|
479
526
|
|
|
527
|
+
/***/ "96d8":
|
|
528
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
529
|
+
|
|
530
|
+
// extracted by mini-css-extract-plugin
|
|
531
|
+
|
|
532
|
+
/***/ }),
|
|
533
|
+
|
|
480
534
|
/***/ "9861":
|
|
481
535
|
/***/ (function(module, exports) {
|
|
482
536
|
|
|
@@ -505,14 +559,21 @@ module.exports = __webpack_require__.p + "img/missing-image.1878d8b8.svg";
|
|
|
505
559
|
|
|
506
560
|
/***/ }),
|
|
507
561
|
|
|
508
|
-
/***/ "
|
|
562
|
+
/***/ "9fdf":
|
|
509
563
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
510
564
|
|
|
511
565
|
"use strict";
|
|
512
|
-
/* harmony import */ var
|
|
513
|
-
/* harmony import */ var
|
|
566
|
+
/* 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");
|
|
567
|
+
/* 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__);
|
|
514
568
|
/* unused harmony reexport * */
|
|
515
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (
|
|
569
|
+
/* 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);
|
|
570
|
+
|
|
571
|
+
/***/ }),
|
|
572
|
+
|
|
573
|
+
/***/ "a012":
|
|
574
|
+
/***/ (function(module, exports) {
|
|
575
|
+
|
|
576
|
+
module.exports = require("@abi-software/gallery/src/mixins/GalleryHelpers");
|
|
516
577
|
|
|
517
578
|
/***/ }),
|
|
518
579
|
|
|
@@ -565,6 +626,13 @@ module.exports = require("element-ui/lib/icon");
|
|
|
565
626
|
|
|
566
627
|
/***/ }),
|
|
567
628
|
|
|
629
|
+
/***/ "b5e6":
|
|
630
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
631
|
+
|
|
632
|
+
// extracted by mini-css-extract-plugin
|
|
633
|
+
|
|
634
|
+
/***/ }),
|
|
635
|
+
|
|
568
636
|
/***/ "b917":
|
|
569
637
|
/***/ (function(module, exports) {
|
|
570
638
|
|
|
@@ -572,6 +640,17 @@ module.exports = require("core-js/modules/es.object.assign");
|
|
|
572
640
|
|
|
573
641
|
/***/ }),
|
|
574
642
|
|
|
643
|
+
/***/ "bc5f":
|
|
644
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
645
|
+
|
|
646
|
+
"use strict";
|
|
647
|
+
/* 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");
|
|
648
|
+
/* 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__);
|
|
649
|
+
/* unused harmony reexport * */
|
|
650
|
+
/* 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);
|
|
651
|
+
|
|
652
|
+
/***/ }),
|
|
653
|
+
|
|
575
654
|
/***/ "bcd8":
|
|
576
655
|
/***/ (function(module, exports) {
|
|
577
656
|
|
|
@@ -607,14 +686,10 @@ module.exports = require("element-ui/lib/option");
|
|
|
607
686
|
|
|
608
687
|
/***/ }),
|
|
609
688
|
|
|
610
|
-
/***/ "
|
|
611
|
-
/***/ (function(module,
|
|
689
|
+
/***/ "db11":
|
|
690
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
612
691
|
|
|
613
|
-
|
|
614
|
-
/* 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");
|
|
615
|
-
/* 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__);
|
|
616
|
-
/* unused harmony reexport * */
|
|
617
|
-
/* 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);
|
|
692
|
+
// extracted by mini-css-extract-plugin
|
|
618
693
|
|
|
619
694
|
/***/ }),
|
|
620
695
|
|
|
@@ -646,13 +721,6 @@ module.exports = require("element-ui/lib/input");
|
|
|
646
721
|
|
|
647
722
|
/***/ }),
|
|
648
723
|
|
|
649
|
-
/***/ "e743":
|
|
650
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
651
|
-
|
|
652
|
-
// extracted by mini-css-extract-plugin
|
|
653
|
-
|
|
654
|
-
/***/ }),
|
|
655
|
-
|
|
656
724
|
/***/ "ece9":
|
|
657
725
|
/***/ (function(module, exports) {
|
|
658
726
|
|
|
@@ -667,17 +735,6 @@ module.exports = require("core-js/modules/es.array.unscopables.flat");
|
|
|
667
735
|
|
|
668
736
|
/***/ }),
|
|
669
737
|
|
|
670
|
-
/***/ "efb8":
|
|
671
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
672
|
-
|
|
673
|
-
"use strict";
|
|
674
|
-
/* 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");
|
|
675
|
-
/* 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__);
|
|
676
|
-
/* unused harmony reexport * */
|
|
677
|
-
/* 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);
|
|
678
|
-
|
|
679
|
-
/***/ }),
|
|
680
|
-
|
|
681
738
|
/***/ "f705":
|
|
682
739
|
/***/ (function(module, exports) {
|
|
683
740
|
|
|
@@ -685,13 +742,6 @@ module.exports = require("core-js/modules/es.array.map");
|
|
|
685
742
|
|
|
686
743
|
/***/ }),
|
|
687
744
|
|
|
688
|
-
/***/ "f86d":
|
|
689
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
690
|
-
|
|
691
|
-
// extracted by mini-css-extract-plugin
|
|
692
|
-
|
|
693
|
-
/***/ }),
|
|
694
|
-
|
|
695
745
|
/***/ "f96d":
|
|
696
746
|
/***/ (function(module, exports) {
|
|
697
747
|
|
|
@@ -726,12 +776,12 @@ if (typeof window !== 'undefined') {
|
|
|
726
776
|
// Indicate to webpack that this file can be concatenated
|
|
727
777
|
/* harmony default export */ var setPublicPath = (null);
|
|
728
778
|
|
|
729
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
779
|
+
// 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&
|
|
730
780
|
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)}
|
|
731
781
|
var staticRenderFns = []
|
|
732
782
|
|
|
733
783
|
|
|
734
|
-
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=
|
|
784
|
+
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=3d831a8e&scoped=true&
|
|
735
785
|
|
|
736
786
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol"
|
|
737
787
|
var es_symbol_ = __webpack_require__("6049");
|
|
@@ -801,12 +851,12 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en_);
|
|
|
801
851
|
var locale_ = __webpack_require__("7f9f");
|
|
802
852
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
803
853
|
|
|
804
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
805
|
-
var
|
|
806
|
-
var
|
|
854
|
+
// 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&
|
|
855
|
+
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)}
|
|
856
|
+
var SidebarContentvue_type_template_id_0d501578_scoped_true_staticRenderFns = []
|
|
807
857
|
|
|
808
858
|
|
|
809
|
-
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=
|
|
859
|
+
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=0d501578&scoped=true&
|
|
810
860
|
|
|
811
861
|
// EXTERNAL MODULE: external "core-js/modules/es.array.find-index"
|
|
812
862
|
var es_array_find_index_ = __webpack_require__("aecd");
|
|
@@ -976,12 +1026,12 @@ var button_css_ = __webpack_require__("26bc");
|
|
|
976
1026
|
var button_ = __webpack_require__("5d8c");
|
|
977
1027
|
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
978
1028
|
|
|
979
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
980
|
-
var
|
|
981
|
-
var
|
|
1029
|
+
// 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&
|
|
1030
|
+
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)}
|
|
1031
|
+
var SearchFiltersvue_type_template_id_57801ec0_scoped_true_staticRenderFns = []
|
|
982
1032
|
|
|
983
1033
|
|
|
984
|
-
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=
|
|
1034
|
+
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=57801ec0&scoped=true&
|
|
985
1035
|
|
|
986
1036
|
// EXTERNAL MODULE: external "core-js/modules/es.array.includes"
|
|
987
1037
|
var es_array_includes_ = __webpack_require__("ab7e");
|
|
@@ -1417,7 +1467,6 @@ function () {
|
|
|
1417
1467
|
value: function _processResultsForCards(results) {
|
|
1418
1468
|
var newResults = [];
|
|
1419
1469
|
var newResult = {};
|
|
1420
|
-
var id = 0;
|
|
1421
1470
|
var _iteratorNormalCompletion = true;
|
|
1422
1471
|
var _didIteratorError = false;
|
|
1423
1472
|
var _iteratorError = undefined;
|
|
@@ -1432,9 +1481,9 @@ function () {
|
|
|
1432
1481
|
description: res.item.description,
|
|
1433
1482
|
updated: res.pennsieve.updatedAt,
|
|
1434
1483
|
publishDate: res.pennsieve.publishDate,
|
|
1435
|
-
|
|
1484
|
+
datasetId: res.objectID,
|
|
1485
|
+
detailsReady: false
|
|
1436
1486
|
};
|
|
1437
|
-
id++;
|
|
1438
1487
|
newResults.push(newResult);
|
|
1439
1488
|
}
|
|
1440
1489
|
} catch (err) {
|
|
@@ -1454,9 +1503,9 @@ function () {
|
|
|
1454
1503
|
|
|
1455
1504
|
return newResults;
|
|
1456
1505
|
}
|
|
1457
|
-
/**
|
|
1458
|
-
* Get Search results
|
|
1459
|
-
* This is using fetch from the Algolia API
|
|
1506
|
+
/**
|
|
1507
|
+
* Get Search results
|
|
1508
|
+
* This is using fetch from the Algolia API
|
|
1460
1509
|
*/
|
|
1461
1510
|
|
|
1462
1511
|
}, {
|
|
@@ -1472,7 +1521,9 @@ function () {
|
|
|
1472
1521
|
facets: ['*'],
|
|
1473
1522
|
hitsPerPage: hitsperPage,
|
|
1474
1523
|
page: page - 1,
|
|
1475
|
-
filters: filter
|
|
1524
|
+
filters: filter,
|
|
1525
|
+
attributesToHighlight: [],
|
|
1526
|
+
attributesToRetrieve: ['pennsieve.publishDate', 'pennsieve.updatedAt', 'item.curie', 'item.name', 'item.description', 'objectID']
|
|
1476
1527
|
}).then(function (response) {
|
|
1477
1528
|
var searchData = {
|
|
1478
1529
|
items: _this2._processResultsForCards(response.hits),
|
|
@@ -1514,8 +1565,8 @@ var facetPropPathMapping = {
|
|
|
1514
1565
|
'attributes.subject.sex.value': 'Sex',
|
|
1515
1566
|
'attributes.subject.ageCategory.value': 'Age Categories'
|
|
1516
1567
|
};
|
|
1517
|
-
/* Returns filter for searching algolia. All facets of the same category are joined with OR,
|
|
1518
|
-
* and each of those results is then joined with an AND.
|
|
1568
|
+
/* Returns filter for searching algolia. All facets of the same category are joined with OR,
|
|
1569
|
+
* and each of those results is then joined with an AND.
|
|
1519
1570
|
* i.e. (color:blue OR color:red) AND (shape:circle OR shape:red) */
|
|
1520
1571
|
|
|
1521
1572
|
function getFilters() {
|
|
@@ -1695,9 +1746,9 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1695
1746
|
MapSvgSpriteColor: svg_sprite_["MapSvgSpriteColor"]
|
|
1696
1747
|
},
|
|
1697
1748
|
props: {
|
|
1698
|
-
/**
|
|
1699
|
-
* Object containing information for
|
|
1700
|
-
* the required viewing.
|
|
1749
|
+
/**
|
|
1750
|
+
* Object containing information for
|
|
1751
|
+
* the required viewing.
|
|
1701
1752
|
*/
|
|
1702
1753
|
entry: Object,
|
|
1703
1754
|
envVars: {
|
|
@@ -2005,8 +2056,8 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
2005
2056
|
});
|
|
2006
2057
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=script&lang=js&
|
|
2007
2058
|
/* harmony default export */ var components_SearchFiltersvue_type_script_lang_js_ = (SearchFiltersvue_type_script_lang_js_);
|
|
2008
|
-
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=
|
|
2009
|
-
var
|
|
2059
|
+
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=57801ec0&scoped=true&lang=css&
|
|
2060
|
+
var SearchFiltersvue_type_style_index_0_id_57801ec0_scoped_true_lang_css_ = __webpack_require__("2dd0");
|
|
2010
2061
|
|
|
2011
2062
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue
|
|
2012
2063
|
|
|
@@ -2019,143 +2070,34 @@ var SearchFiltersvue_type_style_index_0_id_58d5fb22_scoped_true_lang_css_ = __we
|
|
|
2019
2070
|
|
|
2020
2071
|
var SearchFilters_component = normalizeComponent(
|
|
2021
2072
|
components_SearchFiltersvue_type_script_lang_js_,
|
|
2022
|
-
|
|
2023
|
-
|
|
2073
|
+
SearchFiltersvue_type_template_id_57801ec0_scoped_true_render,
|
|
2074
|
+
SearchFiltersvue_type_template_id_57801ec0_scoped_true_staticRenderFns,
|
|
2024
2075
|
false,
|
|
2025
2076
|
null,
|
|
2026
|
-
"
|
|
2077
|
+
"57801ec0",
|
|
2027
2078
|
null
|
|
2028
2079
|
|
|
2029
2080
|
)
|
|
2030
2081
|
|
|
2031
2082
|
/* harmony default export */ var SearchFilters = (SearchFilters_component.exports);
|
|
2032
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2033
|
-
var
|
|
2034
|
-
var
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=75e03782&scoped=true&
|
|
2038
|
-
|
|
2039
|
-
// CONCATENATED MODULE: ./src/components/EventBus.js
|
|
2040
|
-
|
|
2041
|
-
var EventBus = new external_vue_default.a();
|
|
2042
|
-
/* harmony default export */ var components_EventBus = (EventBus);
|
|
2043
|
-
// CONCATENATED MODULE: ./src/components/hardcoded-context-info.js
|
|
2044
|
-
/* harmony default export */ var hardcoded_context_info = ({}); // //Uncomment the code below to add in hardcoded data
|
|
2045
|
-
// export default {
|
|
2046
|
-
// 77: {
|
|
2047
|
-
// "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.",
|
|
2048
|
-
// "heading": "Mapped ICN samples",
|
|
2049
|
-
// "id": "sparc.science.context_data",
|
|
2050
|
-
// "samples": [
|
|
2051
|
-
// {
|
|
2052
|
-
// "annotation": "",
|
|
2053
|
-
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
2054
|
-
// "doi": "",
|
|
2055
|
-
// "heading": "ICNS from subject M54-8",
|
|
2056
|
-
// "id": "Sample 1",
|
|
2057
|
-
// "path": "",
|
|
2058
|
-
// "view": "View 1",
|
|
2059
|
-
// "color": "#FFFF00",
|
|
2060
|
-
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
|
|
2061
|
-
// },
|
|
2062
|
-
// {
|
|
2063
|
-
// "annotation": "",
|
|
2064
|
-
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
2065
|
-
// "doi": "",
|
|
2066
|
-
// "heading": "ICNS from subject M54-5",
|
|
2067
|
-
// "id": "Sample 2",
|
|
2068
|
-
// "path": "",
|
|
2069
|
-
// "view": "View 2",
|
|
2070
|
-
// "color": "#FFA500",
|
|
2071
|
-
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
|
|
2072
|
-
// }
|
|
2073
|
-
// ],
|
|
2074
|
-
// "version": "0.1.0",
|
|
2075
|
-
// },
|
|
2076
|
-
// 221: {
|
|
2077
|
-
// "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.",
|
|
2078
|
-
// "heading": "Digital tracings of enteric plexus",
|
|
2079
|
-
// "id": "sparc.science.context_data",
|
|
2080
|
-
// "samples": [
|
|
2081
|
-
// {
|
|
2082
|
-
// "annotation": "",
|
|
2083
|
-
// "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",
|
|
2084
|
-
// "doi": "",
|
|
2085
|
-
// "heading": "Digital tracing for subject M11",
|
|
2086
|
-
// "id": "Sample 1",
|
|
2087
|
-
// "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
|
|
2088
|
-
// "view": "View 1"
|
|
2089
|
-
// },
|
|
2090
|
-
// {
|
|
2091
|
-
// "annotation": "",
|
|
2092
|
-
// "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. ",
|
|
2093
|
-
// "doi": "",
|
|
2094
|
-
// "heading": "Digital tracing for subject M16",
|
|
2095
|
-
// "id": "Sample 2",
|
|
2096
|
-
// "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
|
|
2097
|
-
// "view": "View 2"
|
|
2098
|
-
// }
|
|
2099
|
-
// ],
|
|
2100
|
-
// "version": "0.1.0",
|
|
2101
|
-
// "views": [
|
|
2102
|
-
// {
|
|
2103
|
-
// "annotation": "--",
|
|
2104
|
-
// "description": "Digital tracing of neurons for subject M11.",
|
|
2105
|
-
// "id": "View 1",
|
|
2106
|
-
// "path": "files/derivative/Scaffolds/M11_view.json",
|
|
2107
|
-
// "sample": "Sample 1",
|
|
2108
|
-
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
|
|
2109
|
-
// },
|
|
2110
|
-
// {
|
|
2111
|
-
// "annotation": "--",
|
|
2112
|
-
// "description": "Digital tracing of neurons for subject M16.",
|
|
2113
|
-
// "id": "View 2",
|
|
2114
|
-
// "path": "files/derivative/Scaffolds/M16_view.json",
|
|
2115
|
-
// "sample": "Sample 2",
|
|
2116
|
-
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
|
|
2117
|
-
// }
|
|
2118
|
-
// ]
|
|
2119
|
-
// }
|
|
2120
|
-
// }
|
|
2121
|
-
// 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&
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2083
|
+
// 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&
|
|
2084
|
+
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)])])])])}
|
|
2085
|
+
var DatasetCardvue_type_template_id_14674f48_scoped_true_staticRenderFns = []
|
|
2127
2086
|
|
|
2128
2087
|
|
|
2088
|
+
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=14674f48&scoped=true&
|
|
2129
2089
|
|
|
2090
|
+
// 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&
|
|
2091
|
+
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()}
|
|
2092
|
+
var BadgesGroupvue_type_template_id_ee8bc524_scoped_true_staticRenderFns = []
|
|
2130
2093
|
|
|
2131
2094
|
|
|
2095
|
+
// CONCATENATED MODULE: ./src/components/BadgesGroup.vue?vue&type=template&id=ee8bc524&scoped=true&
|
|
2132
2096
|
|
|
2097
|
+
// 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&
|
|
2133
2098
|
|
|
2134
2099
|
|
|
2135
2100
|
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
//
|
|
2140
|
-
//
|
|
2141
|
-
//
|
|
2142
|
-
//
|
|
2143
|
-
//
|
|
2144
|
-
//
|
|
2145
|
-
//
|
|
2146
|
-
//
|
|
2147
|
-
//
|
|
2148
|
-
//
|
|
2149
|
-
//
|
|
2150
|
-
//
|
|
2151
|
-
//
|
|
2152
|
-
//
|
|
2153
|
-
//
|
|
2154
|
-
//
|
|
2155
|
-
//
|
|
2156
|
-
//
|
|
2157
|
-
//
|
|
2158
|
-
//
|
|
2159
2101
|
//
|
|
2160
2102
|
//
|
|
2161
2103
|
//
|
|
@@ -2178,25 +2120,756 @@ var EventBus = new external_vue_default.a();
|
|
|
2178
2120
|
|
|
2179
2121
|
|
|
2180
2122
|
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
2123
|
locale_default.a.use(en_default.a);
|
|
2185
2124
|
external_vue_default.a.use(button_default.a);
|
|
2186
|
-
|
|
2125
|
+
/* harmony default export */ var BadgesGroupvue_type_script_lang_js_ = ({
|
|
2126
|
+
name: "BadgesGroup",
|
|
2127
|
+
props: {
|
|
2128
|
+
/**
|
|
2129
|
+
* Object containing information for
|
|
2130
|
+
* the required viewing.
|
|
2131
|
+
*/
|
|
2132
|
+
additionalLinks: {
|
|
2133
|
+
type: Array,
|
|
2134
|
+
default: function _default() {
|
|
2135
|
+
return [];
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
datasetBiolucida: {
|
|
2139
|
+
type: Object,
|
|
2140
|
+
default: function _default() {
|
|
2141
|
+
return {};
|
|
2142
|
+
}
|
|
2143
|
+
},
|
|
2144
|
+
entry: {
|
|
2145
|
+
type: Object,
|
|
2146
|
+
default: function _default() {
|
|
2147
|
+
return {};
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2151
|
+
data: function data() {
|
|
2152
|
+
return {
|
|
2153
|
+
categories: {
|
|
2154
|
+
"All": {
|
|
2155
|
+
size: 1
|
|
2156
|
+
}
|
|
2157
|
+
},
|
|
2158
|
+
active: "All"
|
|
2159
|
+
};
|
|
2160
|
+
},
|
|
2161
|
+
methods: {
|
|
2162
|
+
addToCategories: function addToCategories(array, name) {
|
|
2163
|
+
if (array && array.length > 0) {
|
|
2164
|
+
this.categories[name] = {
|
|
2165
|
+
size: array.length
|
|
2166
|
+
};
|
|
2167
|
+
this.categories["All"].size += array.length;
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2170
|
+
addSimulationsToCategories: function addSimulationsToCategories(array) {
|
|
2171
|
+
if (array && array.length > 0) {
|
|
2172
|
+
var size = 1;
|
|
2173
|
+
this.categories["Simulations"] = {
|
|
2174
|
+
size: size
|
|
2175
|
+
};
|
|
2176
|
+
this.categories["All"].size += size;
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
categoryClicked: function categoryClicked(name) {
|
|
2180
|
+
this.active = name;
|
|
2181
|
+
this.$emit("categoryChanged", name);
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
watch: {
|
|
2185
|
+
datasetBiolucida: {
|
|
2186
|
+
deep: true,
|
|
2187
|
+
immediate: true,
|
|
2188
|
+
handler: function handler(biolucidaData) {
|
|
2189
|
+
if ("dataset_images" in biolucidaData) {
|
|
2190
|
+
this.addToCategories(biolucidaData["dataset_images"], "Biolucida Images");
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
entry: {
|
|
2195
|
+
deep: true,
|
|
2196
|
+
immediate: true,
|
|
2197
|
+
handler: function handler() {
|
|
2198
|
+
this.addToCategories(this.entry.scaffolds, 'Scaffolds');
|
|
2199
|
+
this.addToCategories(this.entry.segmentation, 'Segmentations');
|
|
2200
|
+
this.addToCategories(this.entry.plots, 'Plots');
|
|
2201
|
+
this.addSimulationsToCategories(this.entry.simulation);
|
|
2202
|
+
/** disable the following
|
|
2203
|
+
this.addToCategories(this.entry.images, 'Images');
|
|
2204
|
+
this.addToCategories(this.entry.videos, 'Videos');
|
|
2205
|
+
**/
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
});
|
|
2210
|
+
// CONCATENATED MODULE: ./src/components/BadgesGroup.vue?vue&type=script&lang=js&
|
|
2211
|
+
/* harmony default export */ var components_BadgesGroupvue_type_script_lang_js_ = (BadgesGroupvue_type_script_lang_js_);
|
|
2212
|
+
// EXTERNAL MODULE: ./src/components/BadgesGroup.vue?vue&type=style&index=0&id=ee8bc524&scoped=true&lang=css&
|
|
2213
|
+
var BadgesGroupvue_type_style_index_0_id_ee8bc524_scoped_true_lang_css_ = __webpack_require__("788d");
|
|
2214
|
+
|
|
2215
|
+
// CONCATENATED MODULE: ./src/components/BadgesGroup.vue
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
/* normalize component */
|
|
2223
|
+
|
|
2224
|
+
var BadgesGroup_component = normalizeComponent(
|
|
2225
|
+
components_BadgesGroupvue_type_script_lang_js_,
|
|
2226
|
+
BadgesGroupvue_type_template_id_ee8bc524_scoped_true_render,
|
|
2227
|
+
BadgesGroupvue_type_template_id_ee8bc524_scoped_true_staticRenderFns,
|
|
2228
|
+
false,
|
|
2229
|
+
null,
|
|
2230
|
+
"ee8bc524",
|
|
2231
|
+
null
|
|
2232
|
+
|
|
2233
|
+
)
|
|
2234
|
+
|
|
2235
|
+
/* harmony default export */ var BadgesGroup = (BadgesGroup_component.exports);
|
|
2236
|
+
// CONCATENATED MODULE: ./src/components/EventBus.js
|
|
2237
|
+
|
|
2238
|
+
var EventBus = new external_vue_default.a();
|
|
2239
|
+
/* harmony default export */ var components_EventBus = (EventBus);
|
|
2240
|
+
// 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&
|
|
2241
|
+
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)}
|
|
2242
|
+
var ImageGalleryvue_type_template_id_2fb38a56_scoped_true_staticRenderFns = []
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
// CONCATENATED MODULE: ./src/components/ImageGallery.vue?vue&type=template&id=2fb38a56&scoped=true&
|
|
2246
|
+
|
|
2247
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
function _iterableToArrayLimit(arr, i) {
|
|
2257
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
2258
|
+
return;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
var _arr = [];
|
|
2262
|
+
var _n = true;
|
|
2263
|
+
var _d = false;
|
|
2264
|
+
var _e = undefined;
|
|
2265
|
+
|
|
2266
|
+
try {
|
|
2267
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
2268
|
+
_arr.push(_s.value);
|
|
2269
|
+
|
|
2270
|
+
if (i && _arr.length === i) break;
|
|
2271
|
+
}
|
|
2272
|
+
} catch (err) {
|
|
2273
|
+
_d = true;
|
|
2274
|
+
_e = err;
|
|
2275
|
+
} finally {
|
|
2276
|
+
try {
|
|
2277
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
2278
|
+
} finally {
|
|
2279
|
+
if (_d) throw _e;
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
return _arr;
|
|
2284
|
+
}
|
|
2285
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
function _slicedToArray(arr, i) {
|
|
2290
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
2291
|
+
}
|
|
2292
|
+
// EXTERNAL MODULE: external "@abi-software/gallery/src/mixins/GalleryHelpers"
|
|
2293
|
+
var GalleryHelpers_ = __webpack_require__("a012");
|
|
2294
|
+
var GalleryHelpers_default = /*#__PURE__*/__webpack_require__.n(GalleryHelpers_);
|
|
2295
|
+
|
|
2296
|
+
// EXTERNAL MODULE: external "@abi-software/gallery"
|
|
2297
|
+
var gallery_ = __webpack_require__("3a09");
|
|
2298
|
+
var gallery_default = /*#__PURE__*/__webpack_require__.n(gallery_);
|
|
2299
|
+
|
|
2300
|
+
// EXTERNAL MODULE: external "@abi-software/gallery/dist/gallery.css"
|
|
2301
|
+
var gallery_css_ = __webpack_require__("5658");
|
|
2302
|
+
|
|
2303
|
+
// 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&
|
|
2304
|
+
|
|
2187
2305
|
|
|
2188
|
-
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
|
|
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
|
+
/* eslint-disable no-alert, no-console */
|
|
2342
|
+
var baseName = function baseName(str) {
|
|
2343
|
+
return str.split("\\").pop().split("/").pop();
|
|
2344
|
+
};
|
|
2345
|
+
|
|
2346
|
+
var ImageGalleryvue_type_script_lang_js_capitalise = function capitalise(string) {
|
|
2189
2347
|
return string.replace(/\b\w/g, function (v) {
|
|
2190
2348
|
return v.toUpperCase();
|
|
2191
2349
|
});
|
|
2192
2350
|
};
|
|
2193
2351
|
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
/* harmony default export */ var ImageGalleryvue_type_script_lang_js_ = ({
|
|
2356
|
+
name: "ImageGallery",
|
|
2357
|
+
components: {
|
|
2358
|
+
Gallery: gallery_default.a
|
|
2359
|
+
},
|
|
2360
|
+
mixins: [GalleryHelpers_default.a],
|
|
2361
|
+
props: {
|
|
2362
|
+
datasetBiolucida: {
|
|
2363
|
+
type: Object,
|
|
2364
|
+
default: function _default() {
|
|
2365
|
+
return {};
|
|
2366
|
+
}
|
|
2367
|
+
},
|
|
2368
|
+
envVars: {
|
|
2369
|
+
type: Object,
|
|
2370
|
+
default: function _default() {}
|
|
2371
|
+
},
|
|
2372
|
+
label: {
|
|
2373
|
+
type: String,
|
|
2374
|
+
default: ""
|
|
2375
|
+
},
|
|
2376
|
+
plots: {
|
|
2377
|
+
type: Array,
|
|
2378
|
+
default: function _default() {
|
|
2379
|
+
return [];
|
|
2380
|
+
}
|
|
2381
|
+
},
|
|
2382
|
+
datasetId: {
|
|
2383
|
+
type: Number,
|
|
2384
|
+
default: -1
|
|
2385
|
+
},
|
|
2386
|
+
datasetVersion: {
|
|
2387
|
+
type: Number,
|
|
2388
|
+
default: -1
|
|
2389
|
+
},
|
|
2390
|
+
datasetThumbnail: {
|
|
2391
|
+
type: String,
|
|
2392
|
+
default: ""
|
|
2393
|
+
},
|
|
2394
|
+
category: {
|
|
2395
|
+
type: String,
|
|
2396
|
+
default: "All"
|
|
2397
|
+
},
|
|
2398
|
+
entry: {
|
|
2399
|
+
type: Object,
|
|
2400
|
+
default: function _default() {
|
|
2401
|
+
return {};
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
},
|
|
2405
|
+
data: function data() {
|
|
2406
|
+
return {
|
|
2407
|
+
currentIndex: 0,
|
|
2408
|
+
ro: null,
|
|
2409
|
+
maxWidth: 3,
|
|
2410
|
+
items: {
|
|
2411
|
+
"Biolucida Images": [],
|
|
2412
|
+
'Dataset': [],
|
|
2413
|
+
'Images': [],
|
|
2414
|
+
'Scaffolds': [],
|
|
2415
|
+
'Segmentations': [],
|
|
2416
|
+
'Simulations': [],
|
|
2417
|
+
'Videos': [],
|
|
2418
|
+
'Plots': []
|
|
2419
|
+
},
|
|
2420
|
+
bodyStyle: {
|
|
2421
|
+
padding: '0px',
|
|
2422
|
+
background: '#ffffff'
|
|
2423
|
+
},
|
|
2424
|
+
imageContainerStyle: {
|
|
2425
|
+
width: '160px',
|
|
2426
|
+
height: '160px',
|
|
2427
|
+
display: 'flex',
|
|
2428
|
+
alignItems: 'center',
|
|
2429
|
+
justifyContent: 'center'
|
|
2430
|
+
},
|
|
2431
|
+
imageStyle: {
|
|
2432
|
+
maxWidth: '160px',
|
|
2433
|
+
maxHeight: '160px'
|
|
2434
|
+
},
|
|
2435
|
+
shadow: "never",
|
|
2436
|
+
bottomSpacer: {
|
|
2437
|
+
minHeight: '1.5rem'
|
|
2438
|
+
},
|
|
2439
|
+
resetIndex: false
|
|
2440
|
+
};
|
|
2441
|
+
},
|
|
2442
|
+
methods: {
|
|
2443
|
+
cardClicked: function cardClicked(payload) {
|
|
2444
|
+
this.$emit('card-clicked', payload);
|
|
2445
|
+
},
|
|
2446
|
+
createSciCurnchItems: function createSciCurnchItems() {
|
|
2447
|
+
this.createDatasetItem();
|
|
2448
|
+
this.createScaffoldItems();
|
|
2449
|
+
this.createSimulationItems();
|
|
2450
|
+
this.createPlotItems();
|
|
2451
|
+
this.createSegmentationItems();
|
|
2452
|
+
/* Disable these two
|
|
2453
|
+
this.createImageItems();
|
|
2454
|
+
this.createVideoItems();
|
|
2455
|
+
*/
|
|
2456
|
+
},
|
|
2457
|
+
createDatasetItem: function createDatasetItem() {
|
|
2458
|
+
var link = "".concat(this.envVars.ROOT_URL, "/datasets/").concat(this.datasetId, "?type=dataset");
|
|
2459
|
+
|
|
2460
|
+
if (this.datasetThumbnail) {
|
|
2461
|
+
this.items['Dataset'].push({
|
|
2462
|
+
id: -1,
|
|
2463
|
+
//Work around gallery requires a truthy string
|
|
2464
|
+
title: " ",
|
|
2465
|
+
type: "Dataset ".concat(this.datasetId),
|
|
2466
|
+
thumbnail: this.datasetThumbnail,
|
|
2467
|
+
link: link,
|
|
2468
|
+
hideType: true
|
|
2469
|
+
});
|
|
2470
|
+
}
|
|
2471
|
+
},
|
|
2472
|
+
createImageItems: function createImageItems() {
|
|
2473
|
+
var _this = this;
|
|
2474
|
+
|
|
2475
|
+
if (this.entry.images) {
|
|
2476
|
+
this.entry.images.forEach(function (image) {
|
|
2477
|
+
var filePath = image.dataset.path;
|
|
2478
|
+
var id = image.identifier;
|
|
2479
|
+
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);
|
|
2480
|
+
|
|
2481
|
+
_this.items['Images'].push({
|
|
2482
|
+
id: id,
|
|
2483
|
+
title: baseName(filePath),
|
|
2484
|
+
type: "Image",
|
|
2485
|
+
link: linkUrl,
|
|
2486
|
+
hideType: true
|
|
2487
|
+
});
|
|
2488
|
+
});
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
createPlotItems: function createPlotItems() {
|
|
2492
|
+
var _this2 = this;
|
|
2493
|
+
|
|
2494
|
+
if (this.entry.plots) {
|
|
2495
|
+
this.entry.plots.forEach(function (plot) {
|
|
2496
|
+
var filePath = plot.dataset.path;
|
|
2497
|
+
var id = plot.identifier;
|
|
2498
|
+
|
|
2499
|
+
var thumbnail = _this2.getThumbnailForPlot(plot, _this2.entry.thumbnails);
|
|
2500
|
+
|
|
2501
|
+
var thumbnailURL = undefined;
|
|
2502
|
+
var mimetype = '';
|
|
2503
|
+
|
|
2504
|
+
if (thumbnail) {
|
|
2505
|
+
thumbnailURL = _this2.getImageURLFromS3(_this2.envVars.API_LOCATION, {
|
|
2506
|
+
id: id,
|
|
2507
|
+
datasetId: _this2.datasetId,
|
|
2508
|
+
datasetVersion: _this2.datasetVersion,
|
|
2509
|
+
file_path: thumbnail.dataset.path
|
|
2510
|
+
});
|
|
2511
|
+
mimetype = thumbnail.mimetype.name;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
var plotAnnotation = plot.datacite;
|
|
2515
|
+
var filePathPrefix = "".concat(_this2.envVars.API_LOCATION, "/s3-resource/").concat(_this2.datasetId, "/").concat(_this2.datasetVersion, "/files/");
|
|
2516
|
+
var sourceUrl = filePathPrefix + plot.dataset.path;
|
|
2517
|
+
var metadata = JSON.parse(plotAnnotation.supplemental_json_metadata.description);
|
|
2518
|
+
var supplementalData = [];
|
|
2519
|
+
|
|
2520
|
+
if (plotAnnotation.isDescribedBy) {
|
|
2521
|
+
supplementalData.push({
|
|
2522
|
+
url: filePathPrefix + plotAnnotation.isDescribedBy.path
|
|
2523
|
+
});
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
var resource = {
|
|
2527
|
+
dataSource: {
|
|
2528
|
+
url: sourceUrl
|
|
2529
|
+
},
|
|
2530
|
+
metadata: metadata,
|
|
2531
|
+
supplementalData: supplementalData
|
|
2532
|
+
};
|
|
2533
|
+
var action = {
|
|
2534
|
+
label: ImageGalleryvue_type_script_lang_js_capitalise(_this2.label),
|
|
2535
|
+
resource: resource,
|
|
2536
|
+
title: "View plot",
|
|
2537
|
+
type: "Plot",
|
|
2538
|
+
discoverId: _this2.discoverId,
|
|
2539
|
+
version: _this2.datasetVersion
|
|
2540
|
+
};
|
|
2541
|
+
|
|
2542
|
+
_this2.items['Plots'].push({
|
|
2543
|
+
id: id,
|
|
2544
|
+
title: baseName(filePath),
|
|
2545
|
+
type: "Plot",
|
|
2546
|
+
thumbnail: thumbnailURL,
|
|
2547
|
+
userData: action,
|
|
2548
|
+
hideType: true,
|
|
2549
|
+
mimetype: mimetype
|
|
2550
|
+
});
|
|
2551
|
+
});
|
|
2552
|
+
}
|
|
2553
|
+
},
|
|
2554
|
+
createScaffoldItems: function createScaffoldItems() {
|
|
2555
|
+
var _this3 = this;
|
|
2556
|
+
|
|
2557
|
+
if (this.entry.scaffolds) {
|
|
2558
|
+
var index = 0;
|
|
2559
|
+
this.entry.scaffolds.forEach(function (scaffold) {
|
|
2560
|
+
var filePath = scaffold.dataset.path;
|
|
2561
|
+
var id = scaffold.identifier;
|
|
2562
|
+
|
|
2563
|
+
var thumbnail = _this3.getThumbnailForScaffold(scaffold, _this3.entry.scaffoldViews, _this3.entry.thumbnails, index);
|
|
2564
|
+
|
|
2565
|
+
var mimetype = '';
|
|
2566
|
+
var thumbnailURL = undefined;
|
|
2567
|
+
|
|
2568
|
+
if (thumbnail) {
|
|
2569
|
+
thumbnailURL = _this3.getImageURLFromS3(_this3.envVars.API_LOCATION, {
|
|
2570
|
+
id: id,
|
|
2571
|
+
datasetId: _this3.datasetId,
|
|
2572
|
+
datasetVersion: _this3.datasetVersion,
|
|
2573
|
+
file_path: thumbnail.dataset.path
|
|
2574
|
+
});
|
|
2575
|
+
mimetype = thumbnail.mimetype.name;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
var action = {
|
|
2579
|
+
label: ImageGalleryvue_type_script_lang_js_capitalise(_this3.label),
|
|
2580
|
+
resource: "".concat(_this3.envVars.API_LOCATION, "s3-resource/").concat(_this3.datasetId, "/").concat(_this3.datasetVersion, "/files/").concat(filePath),
|
|
2581
|
+
title: "View 3D scaffold",
|
|
2582
|
+
type: "Scaffold",
|
|
2583
|
+
discoverId: _this3.datasetId,
|
|
2584
|
+
apiLocation: _this3.envVars.API_LOCATION,
|
|
2585
|
+
version: _this3.datasetVersion,
|
|
2586
|
+
contextCardUrl: _this3.entry.contextualInformation ? "".concat(_this3.envVars.API_LOCATION, "s3-resource/").concat(_this3.datasetId, "/").concat(_this3.datasetVersion, "/files/").concat(_this3.entry.contextualInformation) : undefined
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
_this3.items['Scaffolds'].push({
|
|
2590
|
+
id: id,
|
|
2591
|
+
title: baseName(filePath),
|
|
2592
|
+
type: "Scaffold",
|
|
2593
|
+
thumbnail: thumbnailURL,
|
|
2594
|
+
userData: action,
|
|
2595
|
+
hideType: true,
|
|
2596
|
+
mimetype: mimetype
|
|
2597
|
+
});
|
|
2598
|
+
});
|
|
2599
|
+
}
|
|
2600
|
+
},
|
|
2601
|
+
createSegmentationItems: function createSegmentationItems() {
|
|
2602
|
+
var _this4 = this;
|
|
2603
|
+
|
|
2604
|
+
if (this.entry.segmentation) {
|
|
2605
|
+
this.entry.segmentation.forEach(function (segmentation) {
|
|
2606
|
+
var id = segmentation.id;
|
|
2607
|
+
var filePath = segmentation.dataset.path;
|
|
2608
|
+
filePath = filePath.replaceAll(" ", "_");
|
|
2609
|
+
filePath = filePath.replaceAll(",", "_");
|
|
2610
|
+
var prefix = _this4.envVars.NL_LINK_PREFIX;
|
|
2611
|
+
var resource = {
|
|
2612
|
+
share_link: "".concat(prefix, "/dataviewer?datasetId=").concat(_this4.datasetId, "&version=").concat(_this4.datasetVersion, "&path=files/").concat(filePath)
|
|
2613
|
+
};
|
|
2614
|
+
var action = {
|
|
2615
|
+
label: ImageGalleryvue_type_script_lang_js_capitalise(_this4.label),
|
|
2616
|
+
resource: resource,
|
|
2617
|
+
datasetId: _this4.datasetId,
|
|
2618
|
+
title: "View segmentation",
|
|
2619
|
+
type: "Segmentation"
|
|
2620
|
+
};
|
|
2621
|
+
|
|
2622
|
+
var thumbnailURL = _this4.getSegmentationThumbnailURL(_this4.envVars.API_LOCATION, {
|
|
2623
|
+
id: id,
|
|
2624
|
+
datasetId: _this4.datasetId,
|
|
2625
|
+
datasetVersion: _this4.datasetVersion,
|
|
2626
|
+
segmentationFilePath: filePath
|
|
2627
|
+
});
|
|
2628
|
+
|
|
2629
|
+
_this4.items['Segmentations'].push({
|
|
2630
|
+
id: id,
|
|
2631
|
+
title: baseName(filePath),
|
|
2632
|
+
type: "Segmentation",
|
|
2633
|
+
thumbnail: thumbnailURL,
|
|
2634
|
+
userData: action,
|
|
2635
|
+
hideType: true,
|
|
2636
|
+
mimetype: 'image/png'
|
|
2637
|
+
});
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
},
|
|
2641
|
+
createSimulationItems: function createSimulationItems() {
|
|
2642
|
+
if (this.entry.simulation && this.entry.simulation.length > 0) {
|
|
2643
|
+
var action = {
|
|
2644
|
+
label: undefined,
|
|
2645
|
+
apiLocation: this.envVars.API_LOCATION,
|
|
2646
|
+
version: this.datasetVersion,
|
|
2647
|
+
title: "View simulation",
|
|
2648
|
+
type: "Simulation",
|
|
2649
|
+
name: this.entry.name,
|
|
2650
|
+
description: this.entry.description,
|
|
2651
|
+
discoverId: this.datasetId,
|
|
2652
|
+
dataset: "".concat(this.envVars.ROOT_URL, "/datasets/").concat(this.datasetId, "?type=dataset")
|
|
2653
|
+
};
|
|
2654
|
+
this.items['Simulations'].push({
|
|
2655
|
+
id: "simulation",
|
|
2656
|
+
title: " ",
|
|
2657
|
+
type: "Simulation",
|
|
2658
|
+
hideType: true,
|
|
2659
|
+
userData: action
|
|
2660
|
+
});
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2663
|
+
createVideoItems: function createVideoItems() {
|
|
2664
|
+
var _this5 = this;
|
|
2665
|
+
|
|
2666
|
+
if (this.entry.videos) {
|
|
2667
|
+
this.entry.videos.forEach(function (video) {
|
|
2668
|
+
var filePath = _this5.getS3FilePath(_this5.datasetId, _this5.datasetVersion, video.dataset.path);
|
|
2669
|
+
|
|
2670
|
+
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);
|
|
2671
|
+
|
|
2672
|
+
_this5.items['Videos'].push({
|
|
2673
|
+
title: video.name,
|
|
2674
|
+
type: "Video",
|
|
2675
|
+
thumbnail: _this5.defaultVideoImg,
|
|
2676
|
+
hideType: true,
|
|
2677
|
+
link: linkUrl
|
|
2678
|
+
});
|
|
2679
|
+
});
|
|
2680
|
+
}
|
|
2681
|
+
},
|
|
2682
|
+
onResize: function onResize() {
|
|
2683
|
+
this.maxWidth = this.$el.clientWidth; // this.$emit('resize', this.$el.clientWidth)
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
computed: {
|
|
2687
|
+
galleryItems: function galleryItems() {
|
|
2688
|
+
if (this.resetIndex) {
|
|
2689
|
+
this.$refs.gallery.indicatorClicked(0);
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
var items = _toConsumableArray(this.items["Dataset"]);
|
|
2693
|
+
|
|
2694
|
+
if (this.category === "All") {
|
|
2695
|
+
for (var _i = 0, _Object$entries = Object.entries(this.items); _i < _Object$entries.length; _i++) {
|
|
2696
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
2697
|
+
key = _Object$entries$_i[0],
|
|
2698
|
+
value = _Object$entries$_i[1];
|
|
2699
|
+
|
|
2700
|
+
if (key !== "Dataset") items = items.concat(value);
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
return items;
|
|
2704
|
+
} else return this.items[this.category];
|
|
2705
|
+
}
|
|
2706
|
+
},
|
|
2707
|
+
created: function created() {
|
|
2708
|
+
this.createSciCurnchItems();
|
|
2709
|
+
},
|
|
2710
|
+
watch: {
|
|
2711
|
+
category: function category() {
|
|
2712
|
+
this.resetIndex = true;
|
|
2713
|
+
},
|
|
2714
|
+
galleryItems: function galleryItems() {
|
|
2715
|
+
this.resetIndex = false;
|
|
2716
|
+
},
|
|
2717
|
+
datasetBiolucida: {
|
|
2718
|
+
deep: true,
|
|
2719
|
+
immediate: true,
|
|
2720
|
+
handler: function handler(biolucidaData) {
|
|
2721
|
+
var _this6 = this;
|
|
2722
|
+
|
|
2723
|
+
var items = [];
|
|
2724
|
+
|
|
2725
|
+
if ("dataset_images" in biolucidaData) {
|
|
2726
|
+
items.push.apply(items, _toConsumableArray(Array.from(biolucidaData.dataset_images, function (dataset_image) {
|
|
2727
|
+
var thumbnailURL = _this6.getThumbnailURLFromBiolucida(_this6.envVars.API_LOCATION, {
|
|
2728
|
+
id: dataset_image.image_id
|
|
2729
|
+
});
|
|
2730
|
+
|
|
2731
|
+
var resource = {
|
|
2732
|
+
share_link: dataset_image.share_link,
|
|
2733
|
+
id: dataset_image.image_id,
|
|
2734
|
+
itemId: dataset_image.sourcepkg_id
|
|
2735
|
+
};
|
|
2736
|
+
var action = {
|
|
2737
|
+
label: ImageGalleryvue_type_script_lang_js_capitalise(_this6.label),
|
|
2738
|
+
resource: resource,
|
|
2739
|
+
datasetId: _this6.datasetId,
|
|
2740
|
+
title: "View image",
|
|
2741
|
+
name: ImageGalleryvue_type_script_lang_js_capitalise(_this6.label),
|
|
2742
|
+
type: "Biolucida"
|
|
2743
|
+
};
|
|
2744
|
+
return {
|
|
2745
|
+
id: dataset_image.image_id,
|
|
2746
|
+
title: "Biolucida Image",
|
|
2747
|
+
type: "Image",
|
|
2748
|
+
thumbnail: thumbnailURL,
|
|
2749
|
+
userData: action,
|
|
2750
|
+
mimetype: 'image/png',
|
|
2751
|
+
hideType: true
|
|
2752
|
+
};
|
|
2753
|
+
})));
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
this.items['Biolucida Images'] = items;
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
},
|
|
2760
|
+
mounted: function mounted() {
|
|
2761
|
+
this.ro = new ResizeObserver(this.onResize).observe(this.$el);
|
|
2762
|
+
},
|
|
2763
|
+
destroyed: function destroyed() {
|
|
2764
|
+
delete this.ro;
|
|
2765
|
+
}
|
|
2766
|
+
});
|
|
2767
|
+
// CONCATENATED MODULE: ./src/components/ImageGallery.vue?vue&type=script&lang=js&
|
|
2768
|
+
/* harmony default export */ var components_ImageGalleryvue_type_script_lang_js_ = (ImageGalleryvue_type_script_lang_js_);
|
|
2769
|
+
// EXTERNAL MODULE: ./src/components/ImageGallery.vue?vue&type=style&index=0&id=2fb38a56&scoped=true&lang=css&
|
|
2770
|
+
var ImageGalleryvue_type_style_index_0_id_2fb38a56_scoped_true_lang_css_ = __webpack_require__("584e");
|
|
2771
|
+
|
|
2772
|
+
// CONCATENATED MODULE: ./src/components/ImageGallery.vue
|
|
2773
|
+
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
/* normalize component */
|
|
2780
|
+
|
|
2781
|
+
var ImageGallery_component = normalizeComponent(
|
|
2782
|
+
components_ImageGalleryvue_type_script_lang_js_,
|
|
2783
|
+
ImageGalleryvue_type_template_id_2fb38a56_scoped_true_render,
|
|
2784
|
+
ImageGalleryvue_type_template_id_2fb38a56_scoped_true_staticRenderFns,
|
|
2785
|
+
false,
|
|
2786
|
+
null,
|
|
2787
|
+
"2fb38a56",
|
|
2788
|
+
null
|
|
2789
|
+
|
|
2790
|
+
)
|
|
2791
|
+
|
|
2792
|
+
/* harmony default export */ var ImageGallery = (ImageGallery_component.exports);
|
|
2793
|
+
// 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&
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
|
|
2802
|
+
|
|
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
|
+
/* eslint-disable no-alert, no-console */
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
|
|
2856
|
+
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
|
+
|
|
2860
|
+
locale_default.a.use(en_default.a);
|
|
2861
|
+
external_vue_default.a.use(button_default.a);
|
|
2862
|
+
external_vue_default.a.use(icon_default.a);
|
|
2194
2863
|
/* harmony default export */ var DatasetCardvue_type_script_lang_js_ = ({
|
|
2195
2864
|
name: "DatasetCard",
|
|
2865
|
+
components: {
|
|
2866
|
+
BadgesGroup: BadgesGroup,
|
|
2867
|
+
ImageGallery: ImageGallery
|
|
2868
|
+
},
|
|
2196
2869
|
props: {
|
|
2197
|
-
/**
|
|
2198
|
-
* Object containing information for
|
|
2199
|
-
* the required viewing.
|
|
2870
|
+
/**
|
|
2871
|
+
* Object containing information for
|
|
2872
|
+
* the required viewing.
|
|
2200
2873
|
*/
|
|
2201
2874
|
entry: {
|
|
2202
2875
|
type: Object,
|
|
@@ -2212,16 +2885,14 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2212
2885
|
thumbnail: __webpack_require__("9b53"),
|
|
2213
2886
|
dataLocation: this.entry.doi,
|
|
2214
2887
|
discoverId: undefined,
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2888
|
+
loading: true,
|
|
2889
|
+
version: 1,
|
|
2890
|
+
lastDoi: undefined,
|
|
2891
|
+
biolucidaData: undefined,
|
|
2892
|
+
currentCategory: "All"
|
|
2219
2893
|
};
|
|
2220
2894
|
},
|
|
2221
2895
|
computed: {
|
|
2222
|
-
hasCSVFile: function hasCSVFile() {
|
|
2223
|
-
return this.entry.csvFiles && this.entry.csvFiles.length !== 0;
|
|
2224
|
-
},
|
|
2225
2896
|
contributors: function contributors() {
|
|
2226
2897
|
var text = "";
|
|
2227
2898
|
|
|
@@ -2277,44 +2948,13 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2277
2948
|
},
|
|
2278
2949
|
methods: {
|
|
2279
2950
|
cardClicked: function cardClicked() {
|
|
2280
|
-
|
|
2281
|
-
this.openScaffold();
|
|
2282
|
-
} else {
|
|
2283
|
-
this.openDataset();
|
|
2284
|
-
}
|
|
2951
|
+
this.openDataset();
|
|
2285
2952
|
},
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
type: "Scaffold",
|
|
2292
|
-
discoverId: this.discoverId,
|
|
2293
|
-
apiLocation: this.envVars.API_LOCATION,
|
|
2294
|
-
version: this.version,
|
|
2295
|
-
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
|
|
2296
|
-
banner: this.thumbnail
|
|
2297
|
-
};
|
|
2298
|
-
|
|
2299
|
-
if (hardcoded_context_info[this.discoverId]) {
|
|
2300
|
-
action.contextCardUrl = true;
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
this.propogateCardAction(action);
|
|
2304
|
-
},
|
|
2305
|
-
openPlot: function openPlot() {
|
|
2306
|
-
var action = {
|
|
2307
|
-
label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
|
|
2308
|
-
resource: this.getFileFromPath(this.discoverId, this.version, this.entry.csvFiles[0].dataset.path),
|
|
2309
|
-
title: "View plot",
|
|
2310
|
-
type: "Plot",
|
|
2311
|
-
discoverId: this.discoverId,
|
|
2312
|
-
apiLocation: this.envVars.API_LOCATION,
|
|
2313
|
-
version: this.version,
|
|
2314
|
-
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
|
|
2315
|
-
banner: this.thumbnail
|
|
2316
|
-
};
|
|
2317
|
-
this.propogateCardAction(action);
|
|
2953
|
+
categoryChanged: function categoryChanged(name) {
|
|
2954
|
+
this.currentCategory = name;
|
|
2955
|
+
},
|
|
2956
|
+
galleryClicked: function galleryClicked(payload) {
|
|
2957
|
+
this.propogateCardAction(payload);
|
|
2318
2958
|
},
|
|
2319
2959
|
openDataset: function openDataset() {
|
|
2320
2960
|
window.open(this.dataLocation, '_blank');
|
|
@@ -2349,51 +2989,10 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2349
2989
|
}
|
|
2350
2990
|
});
|
|
2351
2991
|
},
|
|
2352
|
-
openSimulation: function openSimulation() {
|
|
2353
|
-
var isSedmlResource = false;
|
|
2354
|
-
var resource = undefined;
|
|
2355
|
-
this.entry.additionalLinks.forEach(function (el) {
|
|
2356
|
-
if (el.description == "SED-ML file") {
|
|
2357
|
-
isSedmlResource = true;
|
|
2358
|
-
resource = el.uri;
|
|
2359
|
-
} else if (!isSedmlResource && el.description == "CellML file") {
|
|
2360
|
-
resource = el.uri;
|
|
2361
|
-
}
|
|
2362
|
-
});
|
|
2363
|
-
var action = {
|
|
2364
|
-
label: undefined,
|
|
2365
|
-
resource: resource,
|
|
2366
|
-
dataset: this.dataLocation,
|
|
2367
|
-
apiLocation: this.envVars.API_LOCATION,
|
|
2368
|
-
version: this.version,
|
|
2369
|
-
discoverId: this.discoverId,
|
|
2370
|
-
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
|
|
2371
|
-
banner: this.thumbnail,
|
|
2372
|
-
title: "View simulation",
|
|
2373
|
-
name: this.entry.name,
|
|
2374
|
-
description: this.entry.description,
|
|
2375
|
-
type: "Simulation"
|
|
2376
|
-
};
|
|
2377
|
-
this.propogateCardAction(action);
|
|
2378
|
-
},
|
|
2379
2992
|
propogateCardAction: function propogateCardAction(action) {
|
|
2380
2993
|
components_EventBus.$emit("PopoverActionClick", action);
|
|
2381
2994
|
this.$emit('contextUpdate', action);
|
|
2382
2995
|
},
|
|
2383
|
-
getScaffoldPath: function getScaffoldPath(discoverId, version, scaffoldPath) {
|
|
2384
|
-
var id = discoverId;
|
|
2385
|
-
var path = "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(id, "/").concat(version, "/files/").concat(scaffoldPath);
|
|
2386
|
-
return path;
|
|
2387
|
-
},
|
|
2388
|
-
getFileFromPath: function getFileFromPath(discoverId, version, path) {
|
|
2389
|
-
return "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(discoverId, "/").concat(version, "/files/").concat(path);
|
|
2390
|
-
},
|
|
2391
|
-
isOverflown: function isOverflown(el) {
|
|
2392
|
-
return el.clientHeight < el.scrollHeight;
|
|
2393
|
-
},
|
|
2394
|
-
expand: function expand() {
|
|
2395
|
-
this.expanded = true;
|
|
2396
|
-
},
|
|
2397
2996
|
splitDOI: function splitDOI(doi) {
|
|
2398
2997
|
return [doi.split('/')[doi.split('/').length - 2], doi.split('/')[doi.split('/').length - 1]];
|
|
2399
2998
|
},
|
|
@@ -2405,7 +3004,7 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2405
3004
|
this.lastDoi = this.entry.doi;
|
|
2406
3005
|
this.loading = true;
|
|
2407
3006
|
var doi = this.splitDOI(this.entry.doi);
|
|
2408
|
-
fetch("
|
|
3007
|
+
fetch("".concat(this.envVars.PENNSIEVE_API_LOCATION, "/discover/datasets/doi/").concat(doi[0], "/").concat(doi[1])).then(function (response) {
|
|
2409
3008
|
if (!response.ok) {
|
|
2410
3009
|
throw Error(response.statusText);
|
|
2411
3010
|
} else {
|
|
@@ -2416,38 +3015,49 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2416
3015
|
_this.discoverId = data.id;
|
|
2417
3016
|
_this.version = data.version;
|
|
2418
3017
|
_this.dataLocation = "https://sparc.science/datasets/".concat(data.id, "?type=dataset");
|
|
3018
|
+
|
|
3019
|
+
_this.getBiolucidaInfo(_this.discoverId);
|
|
3020
|
+
|
|
2419
3021
|
_this.loading = false;
|
|
2420
3022
|
}).catch(function () {
|
|
2421
3023
|
//set defaults if we hit an error
|
|
2422
3024
|
_this.thumbnail = __webpack_require__("9b53");
|
|
2423
|
-
_this.discoverId =
|
|
3025
|
+
_this.discoverId = Number(_this.entry.datasetId);
|
|
2424
3026
|
_this.loading = false;
|
|
2425
3027
|
});
|
|
2426
3028
|
}
|
|
2427
3029
|
},
|
|
2428
3030
|
lastName: function lastName(fullName) {
|
|
2429
3031
|
return fullName.split(',')[0];
|
|
3032
|
+
},
|
|
3033
|
+
getBiolucidaInfo: function getBiolucidaInfo(id) {
|
|
3034
|
+
var _this2 = this;
|
|
3035
|
+
|
|
3036
|
+
var apiLocation = this.envVars.API_LOCATION;
|
|
3037
|
+
var endpoint = apiLocation + "image_search/" + id; // Add parameters if we are sent them
|
|
3038
|
+
|
|
3039
|
+
fetch(endpoint).then(function (response) {
|
|
3040
|
+
return response.json();
|
|
3041
|
+
}).then(function (data) {
|
|
3042
|
+
if (data.status == "success") _this2.biolucidaData = data;
|
|
3043
|
+
});
|
|
2430
3044
|
}
|
|
2431
3045
|
},
|
|
2432
|
-
|
|
3046
|
+
created: function created() {
|
|
2433
3047
|
this.getBanner();
|
|
2434
|
-
this.cardOverflow = this.isOverflown(this.$refs.card);
|
|
2435
3048
|
},
|
|
2436
|
-
updated: function updated() {},
|
|
2437
3049
|
watch: {
|
|
2438
3050
|
// currently not using card overflow
|
|
2439
3051
|
'entry.description': function entryDescription() {
|
|
2440
3052
|
// watch it
|
|
2441
|
-
this.
|
|
2442
|
-
this.expanded = false;
|
|
2443
|
-
this.cardOverflow = this.isOverflown(this.$refs.card);
|
|
3053
|
+
this.getBanner();
|
|
2444
3054
|
}
|
|
2445
3055
|
}
|
|
2446
3056
|
});
|
|
2447
3057
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=script&lang=js&
|
|
2448
3058
|
/* harmony default export */ var components_DatasetCardvue_type_script_lang_js_ = (DatasetCardvue_type_script_lang_js_);
|
|
2449
|
-
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=
|
|
2450
|
-
var
|
|
3059
|
+
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=14674f48&scoped=true&lang=css&
|
|
3060
|
+
var DatasetCardvue_type_style_index_0_id_14674f48_scoped_true_lang_css_ = __webpack_require__("8d78");
|
|
2451
3061
|
|
|
2452
3062
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue
|
|
2453
3063
|
|
|
@@ -2460,22 +3070,22 @@ var DatasetCardvue_type_style_index_0_id_75e03782_scoped_true_lang_css_ = __webp
|
|
|
2460
3070
|
|
|
2461
3071
|
var DatasetCard_component = normalizeComponent(
|
|
2462
3072
|
components_DatasetCardvue_type_script_lang_js_,
|
|
2463
|
-
|
|
2464
|
-
|
|
3073
|
+
DatasetCardvue_type_template_id_14674f48_scoped_true_render,
|
|
3074
|
+
DatasetCardvue_type_template_id_14674f48_scoped_true_staticRenderFns,
|
|
2465
3075
|
false,
|
|
2466
3076
|
null,
|
|
2467
|
-
"
|
|
3077
|
+
"14674f48",
|
|
2468
3078
|
null
|
|
2469
3079
|
|
|
2470
3080
|
)
|
|
2471
3081
|
|
|
2472
3082
|
/* harmony default export */ var DatasetCard = (DatasetCard_component.exports);
|
|
2473
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2474
|
-
var
|
|
2475
|
-
var
|
|
3083
|
+
// 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&
|
|
3084
|
+
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)])}
|
|
3085
|
+
var ContextCardvue_type_template_id_26e5ef37_scoped_true_staticRenderFns = []
|
|
2476
3086
|
|
|
2477
3087
|
|
|
2478
|
-
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=
|
|
3088
|
+
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=26e5ef37&scoped=true&
|
|
2479
3089
|
|
|
2480
3090
|
// EXTERNAL MODULE: external "element-ui/lib/theme-chalk/link.css"
|
|
2481
3091
|
var link_css_ = __webpack_require__("230a");
|
|
@@ -2484,6 +3094,84 @@ var link_css_ = __webpack_require__("230a");
|
|
|
2484
3094
|
var link_ = __webpack_require__("7db7");
|
|
2485
3095
|
var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
2486
3096
|
|
|
3097
|
+
// CONCATENATED MODULE: ./src/components/hardcoded-context-info.js
|
|
3098
|
+
/* harmony default export */ var hardcoded_context_info = ({}); // //Uncomment the code below to add in hardcoded data
|
|
3099
|
+
// export default {
|
|
3100
|
+
// 77: {
|
|
3101
|
+
// "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.",
|
|
3102
|
+
// "heading": "Mapped ICN samples",
|
|
3103
|
+
// "id": "sparc.science.context_data",
|
|
3104
|
+
// "samples": [
|
|
3105
|
+
// {
|
|
3106
|
+
// "annotation": "",
|
|
3107
|
+
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
3108
|
+
// "doi": "",
|
|
3109
|
+
// "heading": "ICNS from subject M54-8",
|
|
3110
|
+
// "id": "Sample 1",
|
|
3111
|
+
// "path": "",
|
|
3112
|
+
// "view": "View 1",
|
|
3113
|
+
// "color": "#FFFF00",
|
|
3114
|
+
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
|
|
3115
|
+
// },
|
|
3116
|
+
// {
|
|
3117
|
+
// "annotation": "",
|
|
3118
|
+
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
3119
|
+
// "doi": "",
|
|
3120
|
+
// "heading": "ICNS from subject M54-5",
|
|
3121
|
+
// "id": "Sample 2",
|
|
3122
|
+
// "path": "",
|
|
3123
|
+
// "view": "View 2",
|
|
3124
|
+
// "color": "#FFA500",
|
|
3125
|
+
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
|
|
3126
|
+
// }
|
|
3127
|
+
// ],
|
|
3128
|
+
// "version": "0.1.0",
|
|
3129
|
+
// },
|
|
3130
|
+
// 221: {
|
|
3131
|
+
// "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.",
|
|
3132
|
+
// "heading": "Digital tracings of enteric plexus",
|
|
3133
|
+
// "id": "sparc.science.context_data",
|
|
3134
|
+
// "samples": [
|
|
3135
|
+
// {
|
|
3136
|
+
// "annotation": "",
|
|
3137
|
+
// "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",
|
|
3138
|
+
// "doi": "",
|
|
3139
|
+
// "heading": "Digital tracing for subject M11",
|
|
3140
|
+
// "id": "Sample 1",
|
|
3141
|
+
// "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
|
|
3142
|
+
// "view": "View 1"
|
|
3143
|
+
// },
|
|
3144
|
+
// {
|
|
3145
|
+
// "annotation": "",
|
|
3146
|
+
// "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. ",
|
|
3147
|
+
// "doi": "",
|
|
3148
|
+
// "heading": "Digital tracing for subject M16",
|
|
3149
|
+
// "id": "Sample 2",
|
|
3150
|
+
// "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
|
|
3151
|
+
// "view": "View 2"
|
|
3152
|
+
// }
|
|
3153
|
+
// ],
|
|
3154
|
+
// "version": "0.1.0",
|
|
3155
|
+
// "views": [
|
|
3156
|
+
// {
|
|
3157
|
+
// "annotation": "--",
|
|
3158
|
+
// "description": "Digital tracing of neurons for subject M11.",
|
|
3159
|
+
// "id": "View 1",
|
|
3160
|
+
// "path": "files/derivative/Scaffolds/M11_view.json",
|
|
3161
|
+
// "sample": "Sample 1",
|
|
3162
|
+
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
|
|
3163
|
+
// },
|
|
3164
|
+
// {
|
|
3165
|
+
// "annotation": "--",
|
|
3166
|
+
// "description": "Digital tracing of neurons for subject M16.",
|
|
3167
|
+
// "id": "View 2",
|
|
3168
|
+
// "path": "files/derivative/Scaffolds/M16_view.json",
|
|
3169
|
+
// "sample": "Sample 2",
|
|
3170
|
+
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
|
|
3171
|
+
// }
|
|
3172
|
+
// ]
|
|
3173
|
+
// }
|
|
3174
|
+
// }
|
|
2487
3175
|
// 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&
|
|
2488
3176
|
|
|
2489
3177
|
|
|
@@ -2573,9 +3261,9 @@ external_vue_default.a.use(input_default.a);
|
|
|
2573
3261
|
/* harmony default export */ var ContextCardvue_type_script_lang_js_ = ({
|
|
2574
3262
|
name: "contextCard",
|
|
2575
3263
|
props: {
|
|
2576
|
-
/**
|
|
2577
|
-
* Object containing information for
|
|
2578
|
-
* the required viewing.
|
|
3264
|
+
/**
|
|
3265
|
+
* Object containing information for
|
|
3266
|
+
* the required viewing.
|
|
2579
3267
|
*/
|
|
2580
3268
|
entry: Object
|
|
2581
3269
|
},
|
|
@@ -2664,8 +3352,8 @@ external_vue_default.a.use(input_default.a);
|
|
|
2664
3352
|
});
|
|
2665
3353
|
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=script&lang=js&
|
|
2666
3354
|
/* harmony default export */ var components_ContextCardvue_type_script_lang_js_ = (ContextCardvue_type_script_lang_js_);
|
|
2667
|
-
// EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=
|
|
2668
|
-
var
|
|
3355
|
+
// EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=26e5ef37&scoped=true&lang=css&
|
|
3356
|
+
var ContextCardvue_type_style_index_0_id_26e5ef37_scoped_true_lang_css_ = __webpack_require__("9fdf");
|
|
2669
3357
|
|
|
2670
3358
|
// CONCATENATED MODULE: ./src/components/ContextCard.vue
|
|
2671
3359
|
|
|
@@ -2678,11 +3366,11 @@ var ContextCardvue_type_style_index_0_id_41eb07ec_scoped_true_lang_css_ = __webp
|
|
|
2678
3366
|
|
|
2679
3367
|
var ContextCard_component = normalizeComponent(
|
|
2680
3368
|
components_ContextCardvue_type_script_lang_js_,
|
|
2681
|
-
|
|
2682
|
-
|
|
3369
|
+
ContextCardvue_type_template_id_26e5ef37_scoped_true_render,
|
|
3370
|
+
ContextCardvue_type_template_id_26e5ef37_scoped_true_staticRenderFns,
|
|
2683
3371
|
false,
|
|
2684
3372
|
null,
|
|
2685
|
-
"
|
|
3373
|
+
"26e5ef37",
|
|
2686
3374
|
null
|
|
2687
3375
|
|
|
2688
3376
|
)
|
|
@@ -2788,8 +3476,6 @@ function SidebarContentvue_type_script_lang_js_objectSpread(target) { for (var i
|
|
|
2788
3476
|
//
|
|
2789
3477
|
//
|
|
2790
3478
|
//
|
|
2791
|
-
//
|
|
2792
|
-
//
|
|
2793
3479
|
|
|
2794
3480
|
/* eslint-disable no-alert, no-console */
|
|
2795
3481
|
|
|
@@ -2870,10 +3556,8 @@ var initial_state = {
|
|
|
2870
3556
|
pageModel: 1,
|
|
2871
3557
|
start: 0,
|
|
2872
3558
|
hasSearched: false,
|
|
2873
|
-
sciCrunchError: false,
|
|
2874
3559
|
contextCardEntry: undefined,
|
|
2875
|
-
contextCardEnabled: true
|
|
2876
|
-
loadingScicrunch: false
|
|
3560
|
+
contextCardEnabled: true
|
|
2877
3561
|
};
|
|
2878
3562
|
/* harmony default export */ var SidebarContentvue_type_script_lang_js_ = ({
|
|
2879
3563
|
components: {
|
|
@@ -2974,15 +3658,27 @@ var initial_state = {
|
|
|
2974
3658
|
|
|
2975
3659
|
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
2976
3660
|
// Algolia search
|
|
3661
|
+
this.loadingCards = true;
|
|
2977
3662
|
this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(function (searchData) {
|
|
2978
3663
|
_this.numberOfHits = searchData.total;
|
|
2979
3664
|
_this.discoverIds = searchData.discoverIds;
|
|
2980
|
-
_this.
|
|
3665
|
+
_this._dois = searchData.dois;
|
|
2981
3666
|
_this.results = searchData.items;
|
|
2982
3667
|
_this.loadingCards = false;
|
|
2983
3668
|
|
|
2984
|
-
_this.
|
|
2985
|
-
|
|
3669
|
+
_this.scrollToTop();
|
|
3670
|
+
|
|
3671
|
+
_this.$emit("search-changed", {
|
|
3672
|
+
value: _this.searchInput,
|
|
3673
|
+
type: "query-update"
|
|
3674
|
+
});
|
|
3675
|
+
|
|
3676
|
+
if (_this._abortController) _this._abortController.abort();
|
|
3677
|
+
_this._abortController = new AbortController();
|
|
3678
|
+
var signal = _this._abortController.signal; //Search ongoing, let the current flow progress
|
|
3679
|
+
|
|
3680
|
+
_this.perItemSearch(signal, {
|
|
3681
|
+
count: 0
|
|
2986
3682
|
});
|
|
2987
3683
|
});
|
|
2988
3684
|
},
|
|
@@ -2998,32 +3694,45 @@ var initial_state = {
|
|
|
2998
3694
|
this.page = page;
|
|
2999
3695
|
this.searchAlgolia(this.filters, this.searchInput, this.numberPerPage, this.page);
|
|
3000
3696
|
},
|
|
3001
|
-
|
|
3697
|
+
handleMissingData: function handleMissingData(doi) {
|
|
3698
|
+
var i = this.results.findIndex(function (res) {
|
|
3699
|
+
return res.doi === doi;
|
|
3700
|
+
});
|
|
3701
|
+
if (this.results[i]) this.results[i].detailsReady = true;
|
|
3702
|
+
},
|
|
3703
|
+
perItemSearch: function perItemSearch(signal, data) {
|
|
3002
3704
|
var _this2 = this;
|
|
3003
3705
|
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3706
|
+
//Maximum 10 downloads at once to prevent long waiting time
|
|
3707
|
+
//between unfinished search and new search
|
|
3708
|
+
var maxDownloads = 10;
|
|
3709
|
+
|
|
3710
|
+
if (maxDownloads > data.count) {
|
|
3711
|
+
var doi = this._dois.shift();
|
|
3712
|
+
|
|
3713
|
+
if (doi) {
|
|
3714
|
+
data.count++;
|
|
3715
|
+
this.callSciCrunch(this.envVars.API_LOCATION, {
|
|
3716
|
+
'dois': [doi]
|
|
3717
|
+
}, signal).then(function (result) {
|
|
3718
|
+
if (result.numberOfHits === 0) _this2.handleMissingData(doi);else _this2.resultsProcessing(result);
|
|
3719
|
+
_this2.$refs.content.style["overflow-y"] = "scroll";
|
|
3720
|
+
data.count--; //Async::Download finished, get the next one
|
|
3721
|
+
|
|
3722
|
+
_this2.perItemSearch(signal, data);
|
|
3723
|
+
}).catch(function (result) {
|
|
3724
|
+
if (result.name !== 'AbortError') {
|
|
3725
|
+
_this2.handleMissingData(doi);
|
|
3726
|
+
|
|
3727
|
+
data.count--; //Async::Download not aborted, get the next one
|
|
3728
|
+
|
|
3729
|
+
_this2.perItemSearch(signal, data);
|
|
3730
|
+
}
|
|
3731
|
+
}); //Check and make another request until it gets to max downloads
|
|
3732
|
+
|
|
3733
|
+
this.perItemSearch(signal, data);
|
|
3025
3734
|
}
|
|
3026
|
-
}
|
|
3735
|
+
}
|
|
3027
3736
|
},
|
|
3028
3737
|
scrollToTop: function scrollToTop() {
|
|
3029
3738
|
if (this.$refs.content) {
|
|
@@ -3060,7 +3769,9 @@ var initial_state = {
|
|
|
3060
3769
|
numberSubjects: element.subjectSize ? parseInt(element.subjectSize) : 0,
|
|
3061
3770
|
updated: element.updated[0].timestamp.split("T")[0],
|
|
3062
3771
|
url: element.uri[0],
|
|
3063
|
-
datasetId: element.
|
|
3772
|
+
datasetId: element.dataset_identifier,
|
|
3773
|
+
datasetRevision: element.dataset_revision,
|
|
3774
|
+
datasetVersion: element.dataset_version,
|
|
3064
3775
|
organs: element.organs && element.organs.length > 0 ? _toConsumableArray(new Set(element.organs.map(function (v) {
|
|
3065
3776
|
return v.name;
|
|
3066
3777
|
}))) : undefined,
|
|
@@ -3068,9 +3779,17 @@ var initial_state = {
|
|
|
3068
3779
|
return v.species ? v.species.name : null;
|
|
3069
3780
|
}))) : undefined : undefined,
|
|
3070
3781
|
// This processing only includes each gender once into 'sexes'
|
|
3071
|
-
scaffolds: element['abi-scaffold-metadata-file']
|
|
3782
|
+
scaffolds: element['abi-scaffold-metadata-file'],
|
|
3783
|
+
thumbnails: element['abi-thumbnail'] ? element['abi-thumbnail'] : element['abi-scaffold-thumbnail'],
|
|
3784
|
+
scaffoldViews: element['abi-scaffold-view-file'],
|
|
3785
|
+
videos: element.video,
|
|
3786
|
+
plots: element['abi-plot'],
|
|
3787
|
+
images: element['common-images'],
|
|
3072
3788
|
contextualInformation: element['abi-contextual-information'].length > 0 ? element['abi-contextual-information'] : undefined,
|
|
3073
|
-
|
|
3789
|
+
segmentation: element['mbf-segmentation'],
|
|
3790
|
+
simulation: element['abi-simulation-file'],
|
|
3791
|
+
additionalLinks: element.additionalLinks,
|
|
3792
|
+
detailsReady: true
|
|
3074
3793
|
});
|
|
3075
3794
|
external_vue_default.a.set(_this3.results, i, _this3.results[i]);
|
|
3076
3795
|
});
|
|
@@ -3098,13 +3817,9 @@ var initial_state = {
|
|
|
3098
3817
|
var _this4 = this;
|
|
3099
3818
|
|
|
3100
3819
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
3820
|
+
var signal = arguments.length > 2 ? arguments[2] : undefined;
|
|
3101
3821
|
return new Promise(function (resolve, reject) {
|
|
3102
|
-
//
|
|
3103
|
-
// if a new one has been started
|
|
3104
|
-
if (_this4._controller) _this4._controller.abort();
|
|
3105
|
-
_this4._controller = new AbortController();
|
|
3106
|
-
var signal = _this4._controller.signal; // Add parameters if we are sent them
|
|
3107
|
-
|
|
3822
|
+
// Add parameters if we are sent them
|
|
3108
3823
|
var fullEndpoint = _this4.envVars.API_LOCATION + _this4.searchEndpoint + "?" + _this4.createfilterParams(params);
|
|
3109
3824
|
|
|
3110
3825
|
fetch(fullEndpoint, {
|
|
@@ -3122,8 +3837,7 @@ var initial_state = {
|
|
|
3122
3837
|
mounted: function mounted() {
|
|
3123
3838
|
// initialise algolia
|
|
3124
3839
|
this.algoliaClient = new algolia_AlgoliaClient(this.envVars.ALGOLIA_ID, this.envVars.ALGOLIA_KEY, this.envVars.PENNSIEVE_API_LOCATION);
|
|
3125
|
-
this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX);
|
|
3126
|
-
console.log('Algolia initialised in sidebar'); // temporarily disable flatmap search since there are no datasets
|
|
3840
|
+
this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX); // temporarily disable flatmap search since there are no datasets
|
|
3127
3841
|
|
|
3128
3842
|
if (this.firstSearch === "Flatmap" || this.firstSearch === "flatmap") {
|
|
3129
3843
|
this.openSearch(undefined, '');
|
|
@@ -3138,8 +3852,8 @@ var initial_state = {
|
|
|
3138
3852
|
});
|
|
3139
3853
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=script&lang=js&
|
|
3140
3854
|
/* harmony default export */ var components_SidebarContentvue_type_script_lang_js_ = (SidebarContentvue_type_script_lang_js_);
|
|
3141
|
-
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=
|
|
3142
|
-
var
|
|
3855
|
+
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=0d501578&scoped=true&lang=css&
|
|
3856
|
+
var SidebarContentvue_type_style_index_0_id_0d501578_scoped_true_lang_css_ = __webpack_require__("3d4f");
|
|
3143
3857
|
|
|
3144
3858
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue
|
|
3145
3859
|
|
|
@@ -3152,22 +3866,22 @@ var SidebarContentvue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css_ = __w
|
|
|
3152
3866
|
|
|
3153
3867
|
var SidebarContent_component = normalizeComponent(
|
|
3154
3868
|
components_SidebarContentvue_type_script_lang_js_,
|
|
3155
|
-
|
|
3156
|
-
|
|
3869
|
+
SidebarContentvue_type_template_id_0d501578_scoped_true_render,
|
|
3870
|
+
SidebarContentvue_type_template_id_0d501578_scoped_true_staticRenderFns,
|
|
3157
3871
|
false,
|
|
3158
3872
|
null,
|
|
3159
|
-
"
|
|
3873
|
+
"0d501578",
|
|
3160
3874
|
null
|
|
3161
3875
|
|
|
3162
3876
|
)
|
|
3163
3877
|
|
|
3164
3878
|
/* harmony default export */ var SidebarContent = (SidebarContent_component.exports);
|
|
3165
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3166
|
-
var
|
|
3167
|
-
var
|
|
3879
|
+
// 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&
|
|
3880
|
+
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)}
|
|
3881
|
+
var Tabsvue_type_template_id_5d1b9484_scoped_true_staticRenderFns = []
|
|
3168
3882
|
|
|
3169
3883
|
|
|
3170
|
-
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=template&id=
|
|
3884
|
+
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=template&id=5d1b9484&scoped=true&
|
|
3171
3885
|
|
|
3172
3886
|
// 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&
|
|
3173
3887
|
|
|
@@ -3207,8 +3921,8 @@ var Tabsvue_type_template_id_d68260c4_scoped_true_staticRenderFns = []
|
|
|
3207
3921
|
});
|
|
3208
3922
|
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=script&lang=js&
|
|
3209
3923
|
/* harmony default export */ var components_Tabsvue_type_script_lang_js_ = (Tabsvue_type_script_lang_js_);
|
|
3210
|
-
// EXTERNAL MODULE: ./src/components/Tabs.vue?vue&type=style&index=0&id=
|
|
3211
|
-
var
|
|
3924
|
+
// EXTERNAL MODULE: ./src/components/Tabs.vue?vue&type=style&index=0&id=5d1b9484&scoped=true&lang=css&
|
|
3925
|
+
var Tabsvue_type_style_index_0_id_5d1b9484_scoped_true_lang_css_ = __webpack_require__("183e");
|
|
3212
3926
|
|
|
3213
3927
|
// CONCATENATED MODULE: ./src/components/Tabs.vue
|
|
3214
3928
|
|
|
@@ -3221,11 +3935,11 @@ var Tabsvue_type_style_index_0_id_d68260c4_scoped_true_lang_css_ = __webpack_req
|
|
|
3221
3935
|
|
|
3222
3936
|
var Tabs_component = normalizeComponent(
|
|
3223
3937
|
components_Tabsvue_type_script_lang_js_,
|
|
3224
|
-
|
|
3225
|
-
|
|
3938
|
+
Tabsvue_type_template_id_5d1b9484_scoped_true_render,
|
|
3939
|
+
Tabsvue_type_template_id_5d1b9484_scoped_true_staticRenderFns,
|
|
3226
3940
|
false,
|
|
3227
3941
|
null,
|
|
3228
|
-
"
|
|
3942
|
+
"5d1b9484",
|
|
3229
3943
|
null
|
|
3230
3944
|
|
|
3231
3945
|
)
|
|
@@ -3417,8 +4131,8 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
3417
4131
|
});
|
|
3418
4132
|
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=script&lang=js&
|
|
3419
4133
|
/* harmony default export */ var components_SideBarvue_type_script_lang_js_ = (SideBarvue_type_script_lang_js_);
|
|
3420
|
-
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=
|
|
3421
|
-
var
|
|
4134
|
+
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=3d831a8e&scoped=true&lang=css&
|
|
4135
|
+
var SideBarvue_type_style_index_0_id_3d831a8e_scoped_true_lang_css_ = __webpack_require__("bc5f");
|
|
3422
4136
|
|
|
3423
4137
|
// CONCATENATED MODULE: ./src/components/SideBar.vue
|
|
3424
4138
|
|
|
@@ -3435,7 +4149,7 @@ var SideBar_component = normalizeComponent(
|
|
|
3435
4149
|
staticRenderFns,
|
|
3436
4150
|
false,
|
|
3437
4151
|
null,
|
|
3438
|
-
"
|
|
4152
|
+
"3d831a8e",
|
|
3439
4153
|
null
|
|
3440
4154
|
|
|
3441
4155
|
)
|
|
@@ -3456,6 +4170,13 @@ var SideBar_component = normalizeComponent(
|
|
|
3456
4170
|
|
|
3457
4171
|
module.exports = require("core-js/modules/es.string.includes");
|
|
3458
4172
|
|
|
4173
|
+
/***/ }),
|
|
4174
|
+
|
|
4175
|
+
/***/ "fde8":
|
|
4176
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4177
|
+
|
|
4178
|
+
// extracted by mini-css-extract-plugin
|
|
4179
|
+
|
|
3459
4180
|
/***/ })
|
|
3460
4181
|
|
|
3461
4182
|
/******/ });
|