@abi-software/map-side-bar 1.2.0-beta.7 → 1.2.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 +493 -905
- 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 +493 -905
- 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 +13548 -13653
- package/package.json +64 -65
- package/public/index.html +17 -17
- package/scaffold_context_info.json +28 -0
- package/src/App.vue +130 -133
- package/src/algolia/algolia.js +116 -99
- package/src/algolia/utils.js +51 -51
- package/src/components/Cascader.vue +49 -49
- package/src/components/ContextCard.vue +240 -157
- package/src/components/DatasetCard.vue +404 -475
- package/src/components/EventBus.js +3 -3
- package/src/components/SearchFilters.vue +557 -557
- package/src/components/SideBar.vue +239 -239
- package/src/components/SidebarContent.vue +458 -459
- package/src/components/Tabs.vue +78 -78
- package/src/components/hardcoded-context-info.js +80 -0
- package/src/components/index.js +8 -8
- package/src/components/processFilters.js +22 -0
- package/src/components/scaffold-meta-map.js +29 -0
- 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/src/components/ImageGallery.vue +0 -494
|
@@ -129,21 +129,17 @@ module.exports = require("element-ui/lib/theme-chalk/select.css");
|
|
|
129
129
|
|
|
130
130
|
/***/ }),
|
|
131
131
|
|
|
132
|
-
/***/ "
|
|
133
|
-
/***/ (function(module, exports) {
|
|
132
|
+
/***/ "139b":
|
|
133
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
// extracted by mini-css-extract-plugin
|
|
136
136
|
|
|
137
137
|
/***/ }),
|
|
138
138
|
|
|
139
|
-
/***/ "
|
|
140
|
-
/***/ (function(module,
|
|
139
|
+
/***/ "139f":
|
|
140
|
+
/***/ (function(module, exports) {
|
|
141
141
|
|
|
142
|
-
|
|
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);
|
|
142
|
+
module.exports = require("core-js/modules/es.array.for-each");
|
|
147
143
|
|
|
148
144
|
/***/ }),
|
|
149
145
|
|
|
@@ -161,6 +157,13 @@ module.exports = require("core-js/modules/web.dom-collections.iterator");
|
|
|
161
157
|
|
|
162
158
|
/***/ }),
|
|
163
159
|
|
|
160
|
+
/***/ "1e9c":
|
|
161
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
162
|
+
|
|
163
|
+
// extracted by mini-css-extract-plugin
|
|
164
|
+
|
|
165
|
+
/***/ }),
|
|
166
|
+
|
|
164
167
|
/***/ "2175":
|
|
165
168
|
/***/ (function(module, exports) {
|
|
166
169
|
|
|
@@ -182,6 +185,17 @@ module.exports = require("element-ui/lib/theme-chalk/button.css");
|
|
|
182
185
|
|
|
183
186
|
/***/ }),
|
|
184
187
|
|
|
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
|
+
|
|
185
199
|
/***/ "2a6f":
|
|
186
200
|
/***/ (function(module, exports) {
|
|
187
201
|
|
|
@@ -196,17 +210,6 @@ module.exports = require("element-ui/lib/theme-chalk/loading.css");
|
|
|
196
210
|
|
|
197
211
|
/***/ }),
|
|
198
212
|
|
|
199
|
-
/***/ "2dd0":
|
|
200
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
201
|
-
|
|
202
|
-
"use strict";
|
|
203
|
-
/* 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");
|
|
204
|
-
/* 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__);
|
|
205
|
-
/* unused harmony reexport * */
|
|
206
|
-
/* 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);
|
|
207
|
-
|
|
208
|
-
/***/ }),
|
|
209
|
-
|
|
210
213
|
/***/ "373b":
|
|
211
214
|
/***/ (function(module, exports) {
|
|
212
215
|
|
|
@@ -214,10 +217,10 @@ module.exports = require("element-ui/lib/drawer");
|
|
|
214
217
|
|
|
215
218
|
/***/ }),
|
|
216
219
|
|
|
217
|
-
/***/ "
|
|
218
|
-
/***/ (function(module, exports) {
|
|
220
|
+
/***/ "3cbb":
|
|
221
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
219
222
|
|
|
220
|
-
|
|
223
|
+
// extracted by mini-css-extract-plugin
|
|
221
224
|
|
|
222
225
|
/***/ }),
|
|
223
226
|
|
|
@@ -228,6 +231,17 @@ module.exports = require("@abi-software/svg-sprite");
|
|
|
228
231
|
|
|
229
232
|
/***/ }),
|
|
230
233
|
|
|
234
|
+
/***/ "44cc":
|
|
235
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
236
|
+
|
|
237
|
+
"use strict";
|
|
238
|
+
/* 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_d68260c4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("139b");
|
|
239
|
+
/* 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_d68260c4_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_d68260c4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
240
|
+
/* unused harmony reexport * */
|
|
241
|
+
/* 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_d68260c4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
242
|
+
|
|
243
|
+
/***/ }),
|
|
244
|
+
|
|
231
245
|
/***/ "46bb":
|
|
232
246
|
/***/ (function(module, exports) {
|
|
233
247
|
|
|
@@ -256,24 +270,6 @@ module.exports = require("core-js/modules/es.array.filter");
|
|
|
256
270
|
|
|
257
271
|
/***/ }),
|
|
258
272
|
|
|
259
|
-
/***/ "4bff":
|
|
260
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
261
|
-
|
|
262
|
-
// extracted by mini-css-extract-plugin
|
|
263
|
-
|
|
264
|
-
/***/ }),
|
|
265
|
-
|
|
266
|
-
/***/ "4c16":
|
|
267
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
268
|
-
|
|
269
|
-
"use strict";
|
|
270
|
-
/* 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_3d1731ba_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4bff");
|
|
271
|
-
/* 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_3d1731ba_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_3d1731ba_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
272
|
-
/* unused harmony reexport * */
|
|
273
|
-
/* 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_3d1731ba_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
274
|
-
|
|
275
|
-
/***/ }),
|
|
276
|
-
|
|
277
273
|
/***/ "4c76":
|
|
278
274
|
/***/ (function(module, exports) {
|
|
279
275
|
|
|
@@ -302,13 +298,6 @@ module.exports = require("core-js/modules/es.regexp.exec");
|
|
|
302
298
|
|
|
303
299
|
/***/ }),
|
|
304
300
|
|
|
305
|
-
/***/ "5835":
|
|
306
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
307
|
-
|
|
308
|
-
// extracted by mini-css-extract-plugin
|
|
309
|
-
|
|
310
|
-
/***/ }),
|
|
311
|
-
|
|
312
301
|
/***/ "5d8c":
|
|
313
302
|
/***/ (function(module, exports) {
|
|
314
303
|
|
|
@@ -337,6 +326,13 @@ module.exports = require("core-js/modules/es.array.slice");
|
|
|
337
326
|
|
|
338
327
|
/***/ }),
|
|
339
328
|
|
|
329
|
+
/***/ "6824":
|
|
330
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
331
|
+
|
|
332
|
+
// extracted by mini-css-extract-plugin
|
|
333
|
+
|
|
334
|
+
/***/ }),
|
|
335
|
+
|
|
340
336
|
/***/ "6b07":
|
|
341
337
|
/***/ (function(module, exports) {
|
|
342
338
|
|
|
@@ -358,13 +354,6 @@ module.exports = require("element-ui/lib/locale/lang/en");
|
|
|
358
354
|
|
|
359
355
|
/***/ }),
|
|
360
356
|
|
|
361
|
-
/***/ "6cf4":
|
|
362
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
363
|
-
|
|
364
|
-
// extracted by mini-css-extract-plugin
|
|
365
|
-
|
|
366
|
-
/***/ }),
|
|
367
|
-
|
|
368
357
|
/***/ "6e25":
|
|
369
358
|
/***/ (function(module, exports) {
|
|
370
359
|
|
|
@@ -386,6 +375,17 @@ module.exports = require("core-js/modules/es.number.constructor");
|
|
|
386
375
|
|
|
387
376
|
/***/ }),
|
|
388
377
|
|
|
378
|
+
/***/ "718b":
|
|
379
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
380
|
+
|
|
381
|
+
"use strict";
|
|
382
|
+
/* 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_41eb07ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3cbb");
|
|
383
|
+
/* 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_41eb07ec_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_41eb07ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
384
|
+
/* unused harmony reexport * */
|
|
385
|
+
/* 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_41eb07ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
386
|
+
|
|
387
|
+
/***/ }),
|
|
388
|
+
|
|
389
389
|
/***/ "79d0":
|
|
390
390
|
/***/ (function(module, exports) {
|
|
391
391
|
|
|
@@ -393,6 +393,13 @@ module.exports = require("regenerator-runtime/runtime");
|
|
|
393
393
|
|
|
394
394
|
/***/ }),
|
|
395
395
|
|
|
396
|
+
/***/ "7ad0":
|
|
397
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
398
|
+
|
|
399
|
+
// extracted by mini-css-extract-plugin
|
|
400
|
+
|
|
401
|
+
/***/ }),
|
|
402
|
+
|
|
396
403
|
/***/ "7c81":
|
|
397
404
|
/***/ (function(module, exports) {
|
|
398
405
|
|
|
@@ -428,17 +435,6 @@ module.exports = require("core-js/modules/es.promise");
|
|
|
428
435
|
|
|
429
436
|
/***/ }),
|
|
430
437
|
|
|
431
|
-
/***/ "84e7":
|
|
432
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
433
|
-
|
|
434
|
-
"use strict";
|
|
435
|
-
/* 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_6e33602c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e4dc");
|
|
436
|
-
/* 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_6e33602c_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_6e33602c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
437
|
-
/* unused harmony reexport * */
|
|
438
|
-
/* 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_6e33602c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
439
|
-
|
|
440
|
-
/***/ }),
|
|
441
|
-
|
|
442
438
|
/***/ "850c":
|
|
443
439
|
/***/ (function(module, exports) {
|
|
444
440
|
|
|
@@ -488,17 +484,6 @@ module.exports = require("element-ui/lib/popover");
|
|
|
488
484
|
|
|
489
485
|
/***/ }),
|
|
490
486
|
|
|
491
|
-
/***/ "947f":
|
|
492
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
493
|
-
|
|
494
|
-
"use strict";
|
|
495
|
-
/* 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_5de93eb9_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a6a7");
|
|
496
|
-
/* 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_5de93eb9_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_5de93eb9_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
497
|
-
/* unused harmony reexport * */
|
|
498
|
-
/* 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_5de93eb9_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
499
|
-
|
|
500
|
-
/***/ }),
|
|
501
|
-
|
|
502
487
|
/***/ "9861":
|
|
503
488
|
/***/ (function(module, exports) {
|
|
504
489
|
|
|
@@ -527,10 +512,14 @@ module.exports = __webpack_require__.p + "img/missing-image.1878d8b8.svg";
|
|
|
527
512
|
|
|
528
513
|
/***/ }),
|
|
529
514
|
|
|
530
|
-
/***/ "
|
|
531
|
-
/***/ (function(module,
|
|
515
|
+
/***/ "a3fe":
|
|
516
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
532
517
|
|
|
533
|
-
|
|
518
|
+
"use strict";
|
|
519
|
+
/* 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_3f7eb1a5_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1e9c");
|
|
520
|
+
/* 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_3f7eb1a5_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_3f7eb1a5_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
521
|
+
/* unused harmony reexport * */
|
|
522
|
+
/* 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_3f7eb1a5_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
534
523
|
|
|
535
524
|
/***/ }),
|
|
536
525
|
|
|
@@ -541,13 +530,6 @@ module.exports = require("element-ui/lib/theme-chalk/popover.css");
|
|
|
541
530
|
|
|
542
531
|
/***/ }),
|
|
543
532
|
|
|
544
|
-
/***/ "a6a7":
|
|
545
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
546
|
-
|
|
547
|
-
// extracted by mini-css-extract-plugin
|
|
548
|
-
|
|
549
|
-
/***/ }),
|
|
550
|
-
|
|
551
533
|
/***/ "a9f8":
|
|
552
534
|
/***/ (function(module, exports) {
|
|
553
535
|
|
|
@@ -569,6 +551,13 @@ module.exports = require("element-ui/lib/loading");
|
|
|
569
551
|
|
|
570
552
|
/***/ }),
|
|
571
553
|
|
|
554
|
+
/***/ "aecd":
|
|
555
|
+
/***/ (function(module, exports) {
|
|
556
|
+
|
|
557
|
+
module.exports = require("core-js/modules/es.array.find-index");
|
|
558
|
+
|
|
559
|
+
/***/ }),
|
|
560
|
+
|
|
572
561
|
/***/ "b2c7":
|
|
573
562
|
/***/ (function(module, exports) {
|
|
574
563
|
|
|
@@ -583,14 +572,10 @@ module.exports = require("element-ui/lib/icon");
|
|
|
583
572
|
|
|
584
573
|
/***/ }),
|
|
585
574
|
|
|
586
|
-
/***/ "
|
|
587
|
-
/***/ (function(module,
|
|
575
|
+
/***/ "b917":
|
|
576
|
+
/***/ (function(module, exports) {
|
|
588
577
|
|
|
589
|
-
|
|
590
|
-
/* 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");
|
|
591
|
-
/* 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__);
|
|
592
|
-
/* unused harmony reexport * */
|
|
593
|
-
/* 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);
|
|
578
|
+
module.exports = require("core-js/modules/es.object.assign");
|
|
594
579
|
|
|
595
580
|
/***/ }),
|
|
596
581
|
|
|
@@ -629,17 +614,14 @@ module.exports = require("element-ui/lib/option");
|
|
|
629
614
|
|
|
630
615
|
/***/ }),
|
|
631
616
|
|
|
632
|
-
/***/ "
|
|
633
|
-
/***/ (function(module,
|
|
634
|
-
|
|
635
|
-
// extracted by mini-css-extract-plugin
|
|
636
|
-
|
|
637
|
-
/***/ }),
|
|
638
|
-
|
|
639
|
-
/***/ "db11":
|
|
640
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
617
|
+
/***/ "c426":
|
|
618
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
641
619
|
|
|
642
|
-
|
|
620
|
+
"use strict";
|
|
621
|
+
/* 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_53d83468_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6824");
|
|
622
|
+
/* 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_53d83468_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_53d83468_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
623
|
+
/* unused harmony reexport * */
|
|
624
|
+
/* 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_53d83468_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
643
625
|
|
|
644
626
|
/***/ }),
|
|
645
627
|
|
|
@@ -657,17 +639,6 @@ module.exports = require("current-script-polyfill");
|
|
|
657
639
|
|
|
658
640
|
/***/ }),
|
|
659
641
|
|
|
660
|
-
/***/ "e3d4":
|
|
661
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
662
|
-
|
|
663
|
-
"use strict";
|
|
664
|
-
/* 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_66c0a49d_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c38d");
|
|
665
|
-
/* 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_66c0a49d_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_66c0a49d_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
666
|
-
/* unused harmony reexport * */
|
|
667
|
-
/* 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_66c0a49d_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
668
|
-
|
|
669
|
-
/***/ }),
|
|
670
|
-
|
|
671
642
|
/***/ "e42b":
|
|
672
643
|
/***/ (function(module, exports) {
|
|
673
644
|
|
|
@@ -675,13 +646,6 @@ module.exports = require("core-js/modules/es.array.from");
|
|
|
675
646
|
|
|
676
647
|
/***/ }),
|
|
677
648
|
|
|
678
|
-
/***/ "e4dc":
|
|
679
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
680
|
-
|
|
681
|
-
// extracted by mini-css-extract-plugin
|
|
682
|
-
|
|
683
|
-
/***/ }),
|
|
684
|
-
|
|
685
649
|
/***/ "e67a":
|
|
686
650
|
/***/ (function(module, exports) {
|
|
687
651
|
|
|
@@ -703,6 +667,17 @@ module.exports = require("core-js/modules/es.array.unscopables.flat");
|
|
|
703
667
|
|
|
704
668
|
/***/ }),
|
|
705
669
|
|
|
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
|
+
|
|
706
681
|
/***/ "f705":
|
|
707
682
|
/***/ (function(module, exports) {
|
|
708
683
|
|
|
@@ -710,6 +685,13 @@ module.exports = require("core-js/modules/es.array.map");
|
|
|
710
685
|
|
|
711
686
|
/***/ }),
|
|
712
687
|
|
|
688
|
+
/***/ "f86d":
|
|
689
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
690
|
+
|
|
691
|
+
// extracted by mini-css-extract-plugin
|
|
692
|
+
|
|
693
|
+
/***/ }),
|
|
694
|
+
|
|
713
695
|
/***/ "f96d":
|
|
714
696
|
/***/ (function(module, exports) {
|
|
715
697
|
|
|
@@ -744,12 +726,12 @@ if (typeof window !== 'undefined') {
|
|
|
744
726
|
// Indicate to webpack that this file can be concatenated
|
|
745
727
|
/* harmony default export */ var setPublicPath = (null);
|
|
746
728
|
|
|
747
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
729
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4bc52cf4-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=3f7eb1a5&scoped=true&
|
|
748
730
|
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)}
|
|
749
731
|
var staticRenderFns = []
|
|
750
732
|
|
|
751
733
|
|
|
752
|
-
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=
|
|
734
|
+
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=template&id=3f7eb1a5&scoped=true&
|
|
753
735
|
|
|
754
736
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol"
|
|
755
737
|
var es_symbol_ = __webpack_require__("6049");
|
|
@@ -819,16 +801,19 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en_);
|
|
|
819
801
|
var locale_ = __webpack_require__("7f9f");
|
|
820
802
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
821
803
|
|
|
822
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
823
|
-
var
|
|
824
|
-
var
|
|
804
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4bc52cf4-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=53d83468&scoped=true&
|
|
805
|
+
var SidebarContentvue_type_template_id_53d83468_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.loadingScicrunch)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loadingScicrunch),expression:"loadingScicrunch"}],staticClass:"loading-icon"}):_vm._e(),(_vm.results.length === 0 && !_vm.loadingCards && !_vm.sciCrunchError)?_c('div',{staticClass:"error-feedback"},[_vm._v("No results found - Please change your search / filter criteria.")]):_vm._e(),(_vm.sciCrunchError)?_c('div',{staticClass:"error-feedback"},[_vm._v(_vm._s(_vm.sciCrunchError))]):_vm._e(),_vm._l((_vm.results),function(result){return _c('div',{key:result.id,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)}
|
|
806
|
+
var SidebarContentvue_type_template_id_53d83468_scoped_true_staticRenderFns = []
|
|
825
807
|
|
|
826
808
|
|
|
827
|
-
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=
|
|
809
|
+
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=53d83468&scoped=true&
|
|
828
810
|
|
|
829
811
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.description"
|
|
830
812
|
var es_symbol_description_ = __webpack_require__("51e9");
|
|
831
813
|
|
|
814
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.find-index"
|
|
815
|
+
var es_array_find_index_ = __webpack_require__("aecd");
|
|
816
|
+
|
|
832
817
|
// EXTERNAL MODULE: external "core-js/modules/es.array.iterator"
|
|
833
818
|
var es_array_iterator_ = __webpack_require__("8c84");
|
|
834
819
|
|
|
@@ -838,6 +823,9 @@ var es_array_map_ = __webpack_require__("f705");
|
|
|
838
823
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name"
|
|
839
824
|
var es_function_name_ = __webpack_require__("bcd8");
|
|
840
825
|
|
|
826
|
+
// EXTERNAL MODULE: external "core-js/modules/es.object.assign"
|
|
827
|
+
var es_object_assign_ = __webpack_require__("b917");
|
|
828
|
+
|
|
841
829
|
// EXTERNAL MODULE: external "core-js/modules/es.object.to-string"
|
|
842
830
|
var es_object_to_string_ = __webpack_require__("850c");
|
|
843
831
|
|
|
@@ -988,12 +976,12 @@ var button_css_ = __webpack_require__("26bc");
|
|
|
988
976
|
var button_ = __webpack_require__("5d8c");
|
|
989
977
|
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
990
978
|
|
|
991
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
992
|
-
var
|
|
993
|
-
var
|
|
979
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4bc52cf4-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=58d5fb22&scoped=true&
|
|
980
|
+
var SearchFiltersvue_type_template_id_58d5fb22_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)}
|
|
981
|
+
var SearchFiltersvue_type_template_id_58d5fb22_scoped_true_staticRenderFns = []
|
|
994
982
|
|
|
995
983
|
|
|
996
|
-
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=
|
|
984
|
+
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=template&id=58d5fb22&scoped=true&
|
|
997
985
|
|
|
998
986
|
// EXTERNAL MODULE: external "core-js/modules/es.array.includes"
|
|
999
987
|
var es_array_includes_ = __webpack_require__("ab7e");
|
|
@@ -1319,6 +1307,20 @@ var external_algoliasearch_default = /*#__PURE__*/__webpack_require__.n(external
|
|
|
1319
1307
|
|
|
1320
1308
|
|
|
1321
1309
|
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1321
|
+
|
|
1322
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1323
|
+
|
|
1322
1324
|
/* eslint-disable no-alert, no-console */
|
|
1323
1325
|
// export `createAlgoliaClient` to use it in page components
|
|
1324
1326
|
|
|
@@ -1410,9 +1412,48 @@ function () {
|
|
|
1410
1412
|
});
|
|
1411
1413
|
});
|
|
1412
1414
|
}
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1415
|
+
}, {
|
|
1416
|
+
key: "_processResultsForCards",
|
|
1417
|
+
value: function _processResultsForCards(results) {
|
|
1418
|
+
var newResults = [];
|
|
1419
|
+
var newResult = {};
|
|
1420
|
+
var _iteratorNormalCompletion = true;
|
|
1421
|
+
var _didIteratorError = false;
|
|
1422
|
+
var _iteratorError = undefined;
|
|
1423
|
+
|
|
1424
|
+
try {
|
|
1425
|
+
for (var _iterator = results[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1426
|
+
var res = _step.value;
|
|
1427
|
+
newResult = _objectSpread({}, res);
|
|
1428
|
+
newResult = {
|
|
1429
|
+
doi: res.item.curie.split(':')[1],
|
|
1430
|
+
name: res.item.name,
|
|
1431
|
+
description: res.item.description,
|
|
1432
|
+
updated: res.pennsieve.updatedAt,
|
|
1433
|
+
publishDate: res.pennsieve.publishDate
|
|
1434
|
+
};
|
|
1435
|
+
newResults.push(newResult);
|
|
1436
|
+
}
|
|
1437
|
+
} catch (err) {
|
|
1438
|
+
_didIteratorError = true;
|
|
1439
|
+
_iteratorError = err;
|
|
1440
|
+
} finally {
|
|
1441
|
+
try {
|
|
1442
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1443
|
+
_iterator.return();
|
|
1444
|
+
}
|
|
1445
|
+
} finally {
|
|
1446
|
+
if (_didIteratorError) {
|
|
1447
|
+
throw _iteratorError;
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
return newResults;
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Get Search results
|
|
1456
|
+
* This is using fetch from the Algolia API
|
|
1416
1457
|
*/
|
|
1417
1458
|
|
|
1418
1459
|
}, {
|
|
@@ -1431,7 +1472,7 @@ function () {
|
|
|
1431
1472
|
filters: filter
|
|
1432
1473
|
}).then(function (response) {
|
|
1433
1474
|
var searchData = {
|
|
1434
|
-
items: response.hits,
|
|
1475
|
+
items: _this2._processResultsForCards(response.hits),
|
|
1435
1476
|
total: response.nbHits,
|
|
1436
1477
|
discoverIds: response.hits.map(function (r) {
|
|
1437
1478
|
return r.pennsieve.identifier;
|
|
@@ -1470,8 +1511,8 @@ var facetPropPathMapping = {
|
|
|
1470
1511
|
'attributes.subject.sex.value': 'Sex',
|
|
1471
1512
|
'attributes.subject.ageCategory.value': 'Age Categories'
|
|
1472
1513
|
};
|
|
1473
|
-
/* Returns filter for searching algolia. All facets of the same category are joined with OR,
|
|
1474
|
-
* and each of those results is then joined with an AND.
|
|
1514
|
+
/* Returns filter for searching algolia. All facets of the same category are joined with OR,
|
|
1515
|
+
* and each of those results is then joined with an AND.
|
|
1475
1516
|
* i.e. (color:blue OR color:red) AND (shape:circle OR shape:red) */
|
|
1476
1517
|
|
|
1477
1518
|
function getFilters() {
|
|
@@ -1547,9 +1588,9 @@ function removeShowAllFacets(facetArray) {
|
|
|
1547
1588
|
|
|
1548
1589
|
|
|
1549
1590
|
|
|
1550
|
-
function
|
|
1591
|
+
function SearchFiltersvue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1551
1592
|
|
|
1552
|
-
function
|
|
1593
|
+
function SearchFiltersvue_type_script_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { SearchFiltersvue_type_script_lang_js_ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { SearchFiltersvue_type_script_lang_js_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1553
1594
|
|
|
1554
1595
|
//
|
|
1555
1596
|
//
|
|
@@ -1651,9 +1692,9 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1651
1692
|
MapSvgSpriteColor: svg_sprite_["MapSvgSpriteColor"]
|
|
1652
1693
|
},
|
|
1653
1694
|
props: {
|
|
1654
|
-
/**
|
|
1655
|
-
* Object containing information for
|
|
1656
|
-
* the required viewing.
|
|
1695
|
+
/**
|
|
1696
|
+
* Object containing information for
|
|
1697
|
+
* the required viewing.
|
|
1657
1698
|
*/
|
|
1658
1699
|
entry: Object,
|
|
1659
1700
|
envVars: {
|
|
@@ -1839,7 +1880,7 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1839
1880
|
return event;
|
|
1840
1881
|
},
|
|
1841
1882
|
createDataTypeFacet: function createDataTypeFacet() {
|
|
1842
|
-
var dataFacet =
|
|
1883
|
+
var dataFacet = SearchFiltersvue_type_script_lang_js_objectSpread({}, this.facets[2]); // copy the 'Experiemental approach' facet
|
|
1843
1884
|
|
|
1844
1885
|
|
|
1845
1886
|
var count = this.facets.at(-1).id; // get the last id count
|
|
@@ -1961,8 +2002,8 @@ var SearchFiltersvue_type_script_lang_js_convertReadableLabel = function convert
|
|
|
1961
2002
|
});
|
|
1962
2003
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue?vue&type=script&lang=js&
|
|
1963
2004
|
/* harmony default export */ var components_SearchFiltersvue_type_script_lang_js_ = (SearchFiltersvue_type_script_lang_js_);
|
|
1964
|
-
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=
|
|
1965
|
-
var
|
|
2005
|
+
// EXTERNAL MODULE: ./src/components/SearchFilters.vue?vue&type=style&index=0&id=58d5fb22&scoped=true&lang=css&
|
|
2006
|
+
var SearchFiltersvue_type_style_index_0_id_58d5fb22_scoped_true_lang_css_ = __webpack_require__("efb8");
|
|
1966
2007
|
|
|
1967
2008
|
// CONCATENATED MODULE: ./src/components/SearchFilters.vue
|
|
1968
2009
|
|
|
@@ -1975,43 +2016,109 @@ var SearchFiltersvue_type_style_index_0_id_57801ec0_scoped_true_lang_css_ = __we
|
|
|
1975
2016
|
|
|
1976
2017
|
var SearchFilters_component = normalizeComponent(
|
|
1977
2018
|
components_SearchFiltersvue_type_script_lang_js_,
|
|
1978
|
-
|
|
1979
|
-
|
|
2019
|
+
SearchFiltersvue_type_template_id_58d5fb22_scoped_true_render,
|
|
2020
|
+
SearchFiltersvue_type_template_id_58d5fb22_scoped_true_staticRenderFns,
|
|
1980
2021
|
false,
|
|
1981
2022
|
null,
|
|
1982
|
-
"
|
|
2023
|
+
"58d5fb22",
|
|
1983
2024
|
null
|
|
1984
2025
|
|
|
1985
2026
|
)
|
|
1986
2027
|
|
|
1987
2028
|
/* harmony default export */ var SearchFilters = (SearchFilters_component.exports);
|
|
1988
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1989
|
-
var
|
|
1990
|
-
var
|
|
2029
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4bc52cf4-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=75e03782&scoped=true&
|
|
2030
|
+
var DatasetCardvue_type_template_id_75e03782_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",class:_vm.expanded ? 'dataset-card-expanded' : 'dataset-card'},[(_vm.entry.id !== 0)?_c('div',{staticClass:"seperator-path"}):_vm._e(),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"card"},[_c('span',{staticClass:"card-left"},[_c('img',{staticClass:"banner-img",attrs:{"svg-inline":"","src":_vm.thumbnail},on:{"click":_vm.openDataset}})]),_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))]),_c('div',{staticClass:"details"},[_vm._v("id: "+_vm._s(_vm.discoverId))]),_c('div',[(!_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-coin"},on:{"click":_vm.openDataset}},[_vm._v("View dataset")]):_vm._e()],1),_c('div',[(_vm.entry.scaffolds)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openScaffold}},[_vm._v("View scaffold")]):_vm._e()],1),_c('div',[(_vm.hasCSVFile)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openPlot}},[_vm._v("View plot")]):_vm._e()],1),_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',[(_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openSimulation}},[_vm._v("View simulation")]):_vm._e()],1)])]),((_vm.cardOverflow && !_vm.expanded))?_c('p',{staticClass:"read-more"},[_c('el-button',{staticClass:"read-more-button",on:{"click":_vm.expand}},[_vm._v("Read more...")])],1):_vm._e()])])}
|
|
2031
|
+
var DatasetCardvue_type_template_id_75e03782_scoped_true_staticRenderFns = []
|
|
1991
2032
|
|
|
1992
2033
|
|
|
1993
|
-
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=
|
|
2034
|
+
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=75e03782&scoped=true&
|
|
1994
2035
|
|
|
1995
2036
|
// CONCATENATED MODULE: ./src/components/EventBus.js
|
|
1996
2037
|
|
|
1997
2038
|
var EventBus = new external_vue_default.a();
|
|
1998
2039
|
/* harmony default export */ var components_EventBus = (EventBus);
|
|
1999
|
-
// CONCATENATED MODULE: ./
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
//
|
|
2040
|
+
// CONCATENATED MODULE: ./src/components/hardcoded-context-info.js
|
|
2041
|
+
/* harmony default export */ var hardcoded_context_info = ({}); // //Uncomment the code below to add in hardcoded data
|
|
2042
|
+
// export default {
|
|
2043
|
+
// 77: {
|
|
2044
|
+
// "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.",
|
|
2045
|
+
// "heading": "Mapped ICN samples",
|
|
2046
|
+
// "id": "sparc.science.context_data",
|
|
2047
|
+
// "samples": [
|
|
2048
|
+
// {
|
|
2049
|
+
// "annotation": "",
|
|
2050
|
+
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
2051
|
+
// "doi": "",
|
|
2052
|
+
// "heading": "ICNS from subject M54-8",
|
|
2053
|
+
// "id": "Sample 1",
|
|
2054
|
+
// "path": "",
|
|
2055
|
+
// "view": "View 1",
|
|
2056
|
+
// "color": "#FFFF00",
|
|
2057
|
+
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
|
|
2058
|
+
// },
|
|
2059
|
+
// {
|
|
2060
|
+
// "annotation": "",
|
|
2061
|
+
// "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
|
|
2062
|
+
// "doi": "",
|
|
2063
|
+
// "heading": "ICNS from subject M54-5",
|
|
2064
|
+
// "id": "Sample 2",
|
|
2065
|
+
// "path": "",
|
|
2066
|
+
// "view": "View 2",
|
|
2067
|
+
// "color": "#FFA500",
|
|
2068
|
+
// "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
|
|
2069
|
+
// }
|
|
2070
|
+
// ],
|
|
2071
|
+
// "version": "0.1.0",
|
|
2072
|
+
// },
|
|
2073
|
+
// 221: {
|
|
2074
|
+
// "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.",
|
|
2075
|
+
// "heading": "Digital tracings of enteric plexus",
|
|
2076
|
+
// "id": "sparc.science.context_data",
|
|
2077
|
+
// "samples": [
|
|
2078
|
+
// {
|
|
2079
|
+
// "annotation": "",
|
|
2080
|
+
// "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",
|
|
2081
|
+
// "doi": "",
|
|
2082
|
+
// "heading": "Digital tracing for subject M11",
|
|
2083
|
+
// "id": "Sample 1",
|
|
2084
|
+
// "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
|
|
2085
|
+
// "view": "View 1"
|
|
2086
|
+
// },
|
|
2087
|
+
// {
|
|
2088
|
+
// "annotation": "",
|
|
2089
|
+
// "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. ",
|
|
2090
|
+
// "doi": "",
|
|
2091
|
+
// "heading": "Digital tracing for subject M16",
|
|
2092
|
+
// "id": "Sample 2",
|
|
2093
|
+
// "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
|
|
2094
|
+
// "view": "View 2"
|
|
2095
|
+
// }
|
|
2096
|
+
// ],
|
|
2097
|
+
// "version": "0.1.0",
|
|
2098
|
+
// "views": [
|
|
2099
|
+
// {
|
|
2100
|
+
// "annotation": "--",
|
|
2101
|
+
// "description": "Digital tracing of neurons for subject M11.",
|
|
2102
|
+
// "id": "View 1",
|
|
2103
|
+
// "path": "files/derivative/Scaffolds/M11_view.json",
|
|
2104
|
+
// "sample": "Sample 1",
|
|
2105
|
+
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
|
|
2106
|
+
// },
|
|
2107
|
+
// {
|
|
2108
|
+
// "annotation": "--",
|
|
2109
|
+
// "description": "Digital tracing of neurons for subject M16.",
|
|
2110
|
+
// "id": "View 2",
|
|
2111
|
+
// "path": "files/derivative/Scaffolds/M16_view.json",
|
|
2112
|
+
// "sample": "Sample 2",
|
|
2113
|
+
// "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
|
|
2114
|
+
// }
|
|
2115
|
+
// ]
|
|
2116
|
+
// }
|
|
2117
|
+
// }
|
|
2118
|
+
// 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&
|
|
2005
2119
|
|
|
2006
|
-
// EXTERNAL MODULE: external "@abi-software/gallery/src/mixins/GalleryHelpers"
|
|
2007
|
-
var GalleryHelpers_ = __webpack_require__("a012");
|
|
2008
|
-
var GalleryHelpers_default = /*#__PURE__*/__webpack_require__.n(GalleryHelpers_);
|
|
2009
2120
|
|
|
2010
|
-
// EXTERNAL MODULE: external "@abi-software/gallery"
|
|
2011
|
-
var gallery_ = __webpack_require__("3a09");
|
|
2012
|
-
var gallery_default = /*#__PURE__*/__webpack_require__.n(gallery_);
|
|
2013
2121
|
|
|
2014
|
-
// 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&
|
|
2015
2122
|
|
|
2016
2123
|
|
|
2017
2124
|
|
|
@@ -2026,6 +2133,24 @@ var gallery_default = /*#__PURE__*/__webpack_require__.n(gallery_);
|
|
|
2026
2133
|
|
|
2027
2134
|
|
|
2028
2135
|
|
|
2136
|
+
//
|
|
2137
|
+
//
|
|
2138
|
+
//
|
|
2139
|
+
//
|
|
2140
|
+
//
|
|
2141
|
+
//
|
|
2142
|
+
//
|
|
2143
|
+
//
|
|
2144
|
+
//
|
|
2145
|
+
//
|
|
2146
|
+
//
|
|
2147
|
+
//
|
|
2148
|
+
//
|
|
2149
|
+
//
|
|
2150
|
+
//
|
|
2151
|
+
//
|
|
2152
|
+
//
|
|
2153
|
+
//
|
|
2029
2154
|
//
|
|
2030
2155
|
//
|
|
2031
2156
|
//
|
|
@@ -2047,587 +2172,53 @@ var gallery_default = /*#__PURE__*/__webpack_require__.n(gallery_);
|
|
|
2047
2172
|
//
|
|
2048
2173
|
|
|
2049
2174
|
/* eslint-disable no-alert, no-console */
|
|
2050
|
-
var baseName = function baseName(str) {
|
|
2051
|
-
return str.split("\\").pop().split("/").pop();
|
|
2052
|
-
};
|
|
2053
2175
|
|
|
2054
|
-
|
|
2176
|
+
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
locale_default.a.use(en_default.a);
|
|
2182
|
+
external_vue_default.a.use(button_default.a);
|
|
2183
|
+
external_vue_default.a.use(icon_default.a);
|
|
2184
|
+
|
|
2185
|
+
var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string) {
|
|
2055
2186
|
return string.replace(/\b\w/g, function (v) {
|
|
2056
2187
|
return v.toUpperCase();
|
|
2057
2188
|
});
|
|
2058
2189
|
};
|
|
2059
2190
|
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
/* harmony default export */ var ImageGalleryvue_type_script_lang_js_ = ({
|
|
2063
|
-
name: "ImageGallery",
|
|
2064
|
-
components: {
|
|
2065
|
-
Gallery: gallery_default.a
|
|
2066
|
-
},
|
|
2067
|
-
mixins: [GalleryHelpers_default.a],
|
|
2191
|
+
/* harmony default export */ var DatasetCardvue_type_script_lang_js_ = ({
|
|
2192
|
+
name: "DatasetCard",
|
|
2068
2193
|
props: {
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
},
|
|
2075
|
-
datasetBiolucida: {
|
|
2194
|
+
/**
|
|
2195
|
+
* Object containing information for
|
|
2196
|
+
* the required viewing.
|
|
2197
|
+
*/
|
|
2198
|
+
entry: {
|
|
2076
2199
|
type: Object,
|
|
2077
|
-
default: function _default() {
|
|
2078
|
-
return {};
|
|
2079
|
-
}
|
|
2200
|
+
default: function _default() {}
|
|
2080
2201
|
},
|
|
2081
2202
|
envVars: {
|
|
2082
2203
|
type: Object,
|
|
2083
2204
|
default: function _default() {}
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
data: function data() {
|
|
2208
|
+
return {
|
|
2209
|
+
thumbnail: __webpack_require__("9b53"),
|
|
2210
|
+
dataLocation: this.entry.doi,
|
|
2211
|
+
discoverId: undefined,
|
|
2212
|
+
cardOverflow: false,
|
|
2213
|
+
expanded: false,
|
|
2214
|
+
loading: false,
|
|
2215
|
+
lastDoi: undefined
|
|
2216
|
+
};
|
|
2217
|
+
},
|
|
2218
|
+
computed: {
|
|
2219
|
+
hasCSVFile: function hasCSVFile() {
|
|
2220
|
+
return this.entry.csvFiles && this.entry.csvFiles.length !== 0;
|
|
2084
2221
|
},
|
|
2085
|
-
label: {
|
|
2086
|
-
type: String,
|
|
2087
|
-
default: ""
|
|
2088
|
-
},
|
|
2089
|
-
images: {
|
|
2090
|
-
type: Array,
|
|
2091
|
-
default: function _default() {
|
|
2092
|
-
return [];
|
|
2093
|
-
}
|
|
2094
|
-
},
|
|
2095
|
-
plots: {
|
|
2096
|
-
type: Array,
|
|
2097
|
-
default: function _default() {
|
|
2098
|
-
return [];
|
|
2099
|
-
}
|
|
2100
|
-
},
|
|
2101
|
-
scaffolds: {
|
|
2102
|
-
type: Array,
|
|
2103
|
-
default: function _default() {
|
|
2104
|
-
return [];
|
|
2105
|
-
}
|
|
2106
|
-
},
|
|
2107
|
-
scaffoldViews: {
|
|
2108
|
-
type: Array,
|
|
2109
|
-
default: function _default() {
|
|
2110
|
-
return [];
|
|
2111
|
-
}
|
|
2112
|
-
},
|
|
2113
|
-
segmentations: {
|
|
2114
|
-
type: Array,
|
|
2115
|
-
default: function _default() {
|
|
2116
|
-
return [];
|
|
2117
|
-
}
|
|
2118
|
-
},
|
|
2119
|
-
additionalLinks: {
|
|
2120
|
-
type: Array,
|
|
2121
|
-
default: function _default() {
|
|
2122
|
-
return [];
|
|
2123
|
-
}
|
|
2124
|
-
},
|
|
2125
|
-
thumbnails: {
|
|
2126
|
-
type: Array,
|
|
2127
|
-
default: function _default() {
|
|
2128
|
-
return [];
|
|
2129
|
-
}
|
|
2130
|
-
},
|
|
2131
|
-
videos: {
|
|
2132
|
-
type: Array,
|
|
2133
|
-
default: function _default() {
|
|
2134
|
-
return [];
|
|
2135
|
-
}
|
|
2136
|
-
},
|
|
2137
|
-
datasetId: {
|
|
2138
|
-
type: Number,
|
|
2139
|
-
default: -1
|
|
2140
|
-
},
|
|
2141
|
-
datasetVersion: {
|
|
2142
|
-
type: Number,
|
|
2143
|
-
default: -1
|
|
2144
|
-
},
|
|
2145
|
-
datasetThumbnail: {
|
|
2146
|
-
type: String,
|
|
2147
|
-
default: ""
|
|
2148
|
-
},
|
|
2149
|
-
name: {
|
|
2150
|
-
type: String,
|
|
2151
|
-
default: ""
|
|
2152
|
-
},
|
|
2153
|
-
description: {
|
|
2154
|
-
type: String,
|
|
2155
|
-
default: ""
|
|
2156
|
-
}
|
|
2157
|
-
},
|
|
2158
|
-
data: function data() {
|
|
2159
|
-
return {
|
|
2160
|
-
currentIndex: 0,
|
|
2161
|
-
ro: null,
|
|
2162
|
-
maxWidth: 3,
|
|
2163
|
-
scicrunchItems: [],
|
|
2164
|
-
biolucidaItems: [],
|
|
2165
|
-
bodyStyle: {
|
|
2166
|
-
padding: '0px',
|
|
2167
|
-
background: '#ffffff'
|
|
2168
|
-
},
|
|
2169
|
-
imageContainerStyle: {
|
|
2170
|
-
width: '160px',
|
|
2171
|
-
height: '160px'
|
|
2172
|
-
},
|
|
2173
|
-
imageStyle: {
|
|
2174
|
-
maxWidth: '160px',
|
|
2175
|
-
maxHeight: '160px'
|
|
2176
|
-
},
|
|
2177
|
-
shadow: "never",
|
|
2178
|
-
bottomSpacer: {
|
|
2179
|
-
minHeight: '1.5rem'
|
|
2180
|
-
}
|
|
2181
|
-
};
|
|
2182
|
-
},
|
|
2183
|
-
methods: {
|
|
2184
|
-
cardClicked: function cardClicked(payload) {
|
|
2185
|
-
this.$emit('card-clicked', payload);
|
|
2186
|
-
},
|
|
2187
|
-
createSciCurnchItems: function createSciCurnchItems() {
|
|
2188
|
-
this.createDatasetItem();
|
|
2189
|
-
this.createScaffoldItems();
|
|
2190
|
-
this.createSimulationItems();
|
|
2191
|
-
this.createPlotItems();
|
|
2192
|
-
this.createSegmentationItems();
|
|
2193
|
-
this.createImageItems();
|
|
2194
|
-
this.createVideoItems();
|
|
2195
|
-
},
|
|
2196
|
-
createDatasetItem: function createDatasetItem() {
|
|
2197
|
-
var link = "".concat(this.envVars.ROOT_URL, "/datasets/").concat(this.datasetId, "?type=dataset");
|
|
2198
|
-
|
|
2199
|
-
if (this.datasetThumbnail) {
|
|
2200
|
-
this.scicrunchItems.push({
|
|
2201
|
-
id: -1,
|
|
2202
|
-
title: link,
|
|
2203
|
-
type: "Dataset ".concat(this.datasetId),
|
|
2204
|
-
thumbnail: this.datasetThumbnail,
|
|
2205
|
-
link: link
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
},
|
|
2209
|
-
createImageItems: function createImageItems() {
|
|
2210
|
-
var _this = this;
|
|
2211
|
-
|
|
2212
|
-
if (this.images) {
|
|
2213
|
-
this.images.forEach(function (image) {
|
|
2214
|
-
var filePath = image.dataset.path;
|
|
2215
|
-
var id = image.identifier;
|
|
2216
|
-
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);
|
|
2217
|
-
|
|
2218
|
-
_this.scicrunchItems.push({
|
|
2219
|
-
id: id,
|
|
2220
|
-
title: baseName(filePath),
|
|
2221
|
-
type: "Image",
|
|
2222
|
-
link: linkUrl
|
|
2223
|
-
});
|
|
2224
|
-
});
|
|
2225
|
-
}
|
|
2226
|
-
},
|
|
2227
|
-
createPlotItems: function createPlotItems() {
|
|
2228
|
-
var _this2 = this;
|
|
2229
|
-
|
|
2230
|
-
if (this.plots) {
|
|
2231
|
-
this.plots.forEach(function (plot) {
|
|
2232
|
-
var filePath = plot.dataset.path;
|
|
2233
|
-
var id = plot.identifier;
|
|
2234
|
-
|
|
2235
|
-
var thumbnail = _this2.getThumbnailForPlot(plot, _this2.thumbnails);
|
|
2236
|
-
|
|
2237
|
-
var thumbnailURL = undefined;
|
|
2238
|
-
var mimetype = '';
|
|
2239
|
-
|
|
2240
|
-
if (thumbnail) {
|
|
2241
|
-
thumbnailURL = _this2.getImageURLFromS3(_this2.envVars.API_LOCATION, {
|
|
2242
|
-
id: id,
|
|
2243
|
-
datasetId: _this2.datasetId,
|
|
2244
|
-
datasetVersion: _this2.datasetVersion,
|
|
2245
|
-
file_path: thumbnail.dataset.path
|
|
2246
|
-
});
|
|
2247
|
-
mimetype = thumbnail.mimetype.name;
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
var action = {
|
|
2251
|
-
label: ImageGalleryvue_type_script_lang_js_capitalise(_this2.label),
|
|
2252
|
-
resource: "".concat(_this2.envVars.API_LOCATION, "s3-resource/").concat(_this2.datasetId, "/").concat(_this2.datasetVersion, "/files/").concat(filePath),
|
|
2253
|
-
title: "View plot",
|
|
2254
|
-
type: "Plot",
|
|
2255
|
-
discoverId: _this2.discoverId,
|
|
2256
|
-
version: _this2.datasetVersion
|
|
2257
|
-
};
|
|
2258
|
-
|
|
2259
|
-
_this2.scicrunchItems.push({
|
|
2260
|
-
id: id,
|
|
2261
|
-
title: baseName(filePath),
|
|
2262
|
-
type: "Plot",
|
|
2263
|
-
thumbnail: thumbnailURL,
|
|
2264
|
-
userData: action,
|
|
2265
|
-
mimetype: mimetype
|
|
2266
|
-
});
|
|
2267
|
-
});
|
|
2268
|
-
}
|
|
2269
|
-
},
|
|
2270
|
-
createScaffoldItems: function createScaffoldItems() {
|
|
2271
|
-
var _this3 = this;
|
|
2272
|
-
|
|
2273
|
-
if (this.scaffolds) {
|
|
2274
|
-
var index = 0;
|
|
2275
|
-
this.scaffolds.forEach(function (scaffold) {
|
|
2276
|
-
var filePath = scaffold.dataset.path;
|
|
2277
|
-
var id = scaffold.identifier;
|
|
2278
|
-
|
|
2279
|
-
var thumbnail = _this3.getThumbnailForScaffold(scaffold, _this3.scaffoldViews, _this3.thumbnails, index);
|
|
2280
|
-
|
|
2281
|
-
var mimetype = '';
|
|
2282
|
-
var thumbnailURL = undefined;
|
|
2283
|
-
|
|
2284
|
-
if (thumbnail) {
|
|
2285
|
-
thumbnailURL = _this3.getImageURLFromS3(_this3.envVars.API_LOCATION, {
|
|
2286
|
-
id: id,
|
|
2287
|
-
datasetId: _this3.datasetId,
|
|
2288
|
-
datasetVersion: _this3.datasetVersion,
|
|
2289
|
-
file_path: thumbnail.dataset.path
|
|
2290
|
-
});
|
|
2291
|
-
mimetype = thumbnail.mimetype.name;
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
|
-
var action = {
|
|
2295
|
-
label: ImageGalleryvue_type_script_lang_js_capitalise(_this3.label),
|
|
2296
|
-
resource: "".concat(_this3.envVars.API_LOCATION, "s3-resource/").concat(_this3.datasetId, "/").concat(_this3.datasetVersion, "/files/").concat(filePath),
|
|
2297
|
-
title: "View 3D scaffold",
|
|
2298
|
-
type: "Scaffold",
|
|
2299
|
-
discoverId: _this3.datasetId,
|
|
2300
|
-
apiLocation: _this3.envVars.API_LOCATION,
|
|
2301
|
-
version: _this3.datasetVersion
|
|
2302
|
-
};
|
|
2303
|
-
|
|
2304
|
-
_this3.scicrunchItems.push({
|
|
2305
|
-
id: id,
|
|
2306
|
-
title: baseName(filePath),
|
|
2307
|
-
type: "Scaffold",
|
|
2308
|
-
thumbnail: thumbnailURL,
|
|
2309
|
-
userData: action,
|
|
2310
|
-
mimetype: mimetype
|
|
2311
|
-
});
|
|
2312
|
-
});
|
|
2313
|
-
}
|
|
2314
|
-
},
|
|
2315
|
-
createSegmentationItems: function createSegmentationItems() {
|
|
2316
|
-
var _this4 = this;
|
|
2317
|
-
|
|
2318
|
-
if (this.segmentations) {
|
|
2319
|
-
this.segmentations.forEach(function (segmentation) {
|
|
2320
|
-
var id = segmentation.id;
|
|
2321
|
-
var filePath = segmentation.dataset.path;
|
|
2322
|
-
filePath = filePath.replaceAll(" ", "_");
|
|
2323
|
-
filePath = filePath.replaceAll(",", "_");
|
|
2324
|
-
var prefix = _this4.envVars.NL_LINK_PREFIX;
|
|
2325
|
-
var resource = {
|
|
2326
|
-
share_link: "".concat(prefix, "/dataviewer?datasetId=").concat(_this4.datasetId, "&version=").concat(_this4.datasetVersion, "&path=").concat(filePath)
|
|
2327
|
-
};
|
|
2328
|
-
var action = {
|
|
2329
|
-
label: ImageGalleryvue_type_script_lang_js_capitalise(_this4.label),
|
|
2330
|
-
resource: resource,
|
|
2331
|
-
datasetId: _this4.datasetId,
|
|
2332
|
-
title: "View segmentation",
|
|
2333
|
-
type: "Segmentation"
|
|
2334
|
-
};
|
|
2335
|
-
|
|
2336
|
-
var thumbnailURL = _this4.getSegmentationThumbnailURL(_this4.envVars.API_LOCATION, {
|
|
2337
|
-
id: id,
|
|
2338
|
-
datasetId: _this4.datasetId,
|
|
2339
|
-
datasetVersion: _this4.datasetVersion,
|
|
2340
|
-
segmentationFilePath: filePath
|
|
2341
|
-
});
|
|
2342
|
-
|
|
2343
|
-
_this4.scicrunchItems.push({
|
|
2344
|
-
id: id,
|
|
2345
|
-
title: baseName(filePath),
|
|
2346
|
-
type: "Segmentation",
|
|
2347
|
-
thumbnail: thumbnailURL,
|
|
2348
|
-
userData: action,
|
|
2349
|
-
mimetype: 'image/png'
|
|
2350
|
-
});
|
|
2351
|
-
});
|
|
2352
|
-
}
|
|
2353
|
-
},
|
|
2354
|
-
createSimulationItems: function createSimulationItems() {
|
|
2355
|
-
var isSedmlResource = false;
|
|
2356
|
-
var resource = undefined;
|
|
2357
|
-
|
|
2358
|
-
if (this.additionalLinks) {
|
|
2359
|
-
this.additionalLinks.forEach(function (el) {
|
|
2360
|
-
if (el.description == "SED-ML file") {
|
|
2361
|
-
isSedmlResource = true;
|
|
2362
|
-
resource = el.uri;
|
|
2363
|
-
} else if (!isSedmlResource && el.description == "CellML file") {
|
|
2364
|
-
resource = el.uri;
|
|
2365
|
-
}
|
|
2366
|
-
});
|
|
2367
|
-
|
|
2368
|
-
if (resource) {
|
|
2369
|
-
var action = {
|
|
2370
|
-
label: undefined,
|
|
2371
|
-
resource: resource,
|
|
2372
|
-
apiLocation: this.envVars.API_LOCATION,
|
|
2373
|
-
version: this.datasetVersion,
|
|
2374
|
-
title: "View simulation",
|
|
2375
|
-
type: "Simulation",
|
|
2376
|
-
name: this.name,
|
|
2377
|
-
description: this.description,
|
|
2378
|
-
discoverId: this.datasetId,
|
|
2379
|
-
dataset: "".concat(this.envVars.ROOT_URL, "/datasets/").concat(this.datasetId, "?type=dataset")
|
|
2380
|
-
};
|
|
2381
|
-
this.scicrunchItems.push({
|
|
2382
|
-
id: "simulation",
|
|
2383
|
-
title: resource,
|
|
2384
|
-
type: "Simulation",
|
|
2385
|
-
userData: action
|
|
2386
|
-
});
|
|
2387
|
-
}
|
|
2388
|
-
}
|
|
2389
|
-
},
|
|
2390
|
-
createVideoItems: function createVideoItems() {
|
|
2391
|
-
var _this5 = this;
|
|
2392
|
-
|
|
2393
|
-
if (this.videos) {
|
|
2394
|
-
this.videos.forEach(function (video) {
|
|
2395
|
-
var filePath = _this5.getS3FilePath(_this5.datasetId, _this5.datasetVersion, video.dataset.path);
|
|
2396
|
-
|
|
2397
|
-
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);
|
|
2398
|
-
|
|
2399
|
-
_this5.scicrunchItems.push({
|
|
2400
|
-
title: video.name,
|
|
2401
|
-
type: "Video",
|
|
2402
|
-
thumbnail: _this5.defaultVideoImg,
|
|
2403
|
-
link: linkUrl
|
|
2404
|
-
});
|
|
2405
|
-
});
|
|
2406
|
-
}
|
|
2407
|
-
},
|
|
2408
|
-
onResize: function onResize() {
|
|
2409
|
-
this.maxWidth = this.$el.clientWidth; // this.$emit('resize', this.$el.clientWidth)
|
|
2410
|
-
}
|
|
2411
|
-
},
|
|
2412
|
-
computed: {
|
|
2413
|
-
galleryItems: function galleryItems() {
|
|
2414
|
-
return this.scicrunchItems.concat(this.biolucidaItems);
|
|
2415
|
-
}
|
|
2416
|
-
},
|
|
2417
|
-
created: function created() {
|
|
2418
|
-
this.createSciCurnchItems();
|
|
2419
|
-
},
|
|
2420
|
-
watch: {
|
|
2421
|
-
datasetBiolucida: {
|
|
2422
|
-
deep: true,
|
|
2423
|
-
immediate: true,
|
|
2424
|
-
handler: function handler(biolucidaData) {
|
|
2425
|
-
var _this6 = this;
|
|
2426
|
-
|
|
2427
|
-
var items = [];
|
|
2428
|
-
|
|
2429
|
-
if ("dataset_images" in biolucidaData) {
|
|
2430
|
-
items.push.apply(items, _toConsumableArray(Array.from(biolucidaData.dataset_images, function (dataset_image) {
|
|
2431
|
-
var thumbnailURL = _this6.getThumbnailURLFromBiolucida(_this6.envVars.API_LOCATION, {
|
|
2432
|
-
id: dataset_image.image_id
|
|
2433
|
-
});
|
|
2434
|
-
|
|
2435
|
-
var resource = {
|
|
2436
|
-
share_link: dataset_image.share_link,
|
|
2437
|
-
id: dataset_image.image_id,
|
|
2438
|
-
itemId: dataset_image.sourcepkg_id
|
|
2439
|
-
};
|
|
2440
|
-
var action = {
|
|
2441
|
-
label: ImageGalleryvue_type_script_lang_js_capitalise(_this6.label),
|
|
2442
|
-
resource: resource,
|
|
2443
|
-
datasetId: _this6.datasetId,
|
|
2444
|
-
title: "View image",
|
|
2445
|
-
name: ImageGalleryvue_type_script_lang_js_capitalise(_this6.label),
|
|
2446
|
-
type: "Biolucida"
|
|
2447
|
-
};
|
|
2448
|
-
return {
|
|
2449
|
-
id: dataset_image.image_id,
|
|
2450
|
-
title: "Biolucida Image",
|
|
2451
|
-
type: "Image",
|
|
2452
|
-
thumbnail: thumbnailURL,
|
|
2453
|
-
userData: action,
|
|
2454
|
-
mimetype: 'image/png'
|
|
2455
|
-
};
|
|
2456
|
-
})));
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
this.biolucidaItems = items;
|
|
2460
|
-
}
|
|
2461
|
-
}
|
|
2462
|
-
},
|
|
2463
|
-
mounted: function mounted() {
|
|
2464
|
-
this.ro = new ResizeObserver(this.onResize).observe(this.$el);
|
|
2465
|
-
},
|
|
2466
|
-
destroyed: function destroyed() {
|
|
2467
|
-
delete this.ro;
|
|
2468
|
-
}
|
|
2469
|
-
});
|
|
2470
|
-
// CONCATENATED MODULE: ./src/components/ImageGallery.vue?vue&type=script&lang=js&
|
|
2471
|
-
/* harmony default export */ var components_ImageGalleryvue_type_script_lang_js_ = (ImageGalleryvue_type_script_lang_js_);
|
|
2472
|
-
// EXTERNAL MODULE: ./src/components/ImageGallery.vue?vue&type=style&index=0&id=6e33602c&scoped=true&lang=css&
|
|
2473
|
-
var ImageGalleryvue_type_style_index_0_id_6e33602c_scoped_true_lang_css_ = __webpack_require__("84e7");
|
|
2474
|
-
|
|
2475
|
-
// CONCATENATED MODULE: ./src/components/ImageGallery.vue
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
/* normalize component */
|
|
2483
|
-
|
|
2484
|
-
var ImageGallery_component = normalizeComponent(
|
|
2485
|
-
components_ImageGalleryvue_type_script_lang_js_,
|
|
2486
|
-
ImageGalleryvue_type_template_id_6e33602c_scoped_true_render,
|
|
2487
|
-
ImageGalleryvue_type_template_id_6e33602c_scoped_true_staticRenderFns,
|
|
2488
|
-
false,
|
|
2489
|
-
null,
|
|
2490
|
-
"6e33602c",
|
|
2491
|
-
null
|
|
2492
|
-
|
|
2493
|
-
)
|
|
2494
|
-
|
|
2495
|
-
/* harmony default export */ var ImageGallery = (ImageGallery_component.exports);
|
|
2496
|
-
// 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&
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
//
|
|
2515
|
-
//
|
|
2516
|
-
//
|
|
2517
|
-
//
|
|
2518
|
-
//
|
|
2519
|
-
//
|
|
2520
|
-
//
|
|
2521
|
-
//
|
|
2522
|
-
//
|
|
2523
|
-
//
|
|
2524
|
-
//
|
|
2525
|
-
//
|
|
2526
|
-
//
|
|
2527
|
-
//
|
|
2528
|
-
//
|
|
2529
|
-
//
|
|
2530
|
-
//
|
|
2531
|
-
//
|
|
2532
|
-
//
|
|
2533
|
-
//
|
|
2534
|
-
//
|
|
2535
|
-
//
|
|
2536
|
-
//
|
|
2537
|
-
//
|
|
2538
|
-
//
|
|
2539
|
-
//
|
|
2540
|
-
//
|
|
2541
|
-
//
|
|
2542
|
-
//
|
|
2543
|
-
//
|
|
2544
|
-
//
|
|
2545
|
-
//
|
|
2546
|
-
//
|
|
2547
|
-
//
|
|
2548
|
-
//
|
|
2549
|
-
//
|
|
2550
|
-
//
|
|
2551
|
-
//
|
|
2552
|
-
//
|
|
2553
|
-
//
|
|
2554
|
-
//
|
|
2555
|
-
//
|
|
2556
|
-
//
|
|
2557
|
-
//
|
|
2558
|
-
//
|
|
2559
|
-
//
|
|
2560
|
-
//
|
|
2561
|
-
//
|
|
2562
|
-
//
|
|
2563
|
-
//
|
|
2564
|
-
//
|
|
2565
|
-
//
|
|
2566
|
-
//
|
|
2567
|
-
//
|
|
2568
|
-
//
|
|
2569
|
-
//
|
|
2570
|
-
//
|
|
2571
|
-
//
|
|
2572
|
-
//
|
|
2573
|
-
//
|
|
2574
|
-
//
|
|
2575
|
-
//
|
|
2576
|
-
//
|
|
2577
|
-
//
|
|
2578
|
-
//
|
|
2579
|
-
//
|
|
2580
|
-
//
|
|
2581
|
-
//
|
|
2582
|
-
//
|
|
2583
|
-
//
|
|
2584
|
-
//
|
|
2585
|
-
|
|
2586
|
-
/* eslint-disable no-alert, no-console */
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
locale_default.a.use(en_default.a);
|
|
2594
|
-
external_vue_default.a.use(button_default.a);
|
|
2595
|
-
external_vue_default.a.use(icon_default.a);
|
|
2596
|
-
|
|
2597
|
-
var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string) {
|
|
2598
|
-
return string.replace(/\b\w/g, function (v) {
|
|
2599
|
-
return v.toUpperCase();
|
|
2600
|
-
});
|
|
2601
|
-
};
|
|
2602
|
-
|
|
2603
|
-
/* harmony default export */ var DatasetCardvue_type_script_lang_js_ = ({
|
|
2604
|
-
name: "DatasetCard",
|
|
2605
|
-
components: {
|
|
2606
|
-
ImageGallery: ImageGallery
|
|
2607
|
-
},
|
|
2608
|
-
props: {
|
|
2609
|
-
/**
|
|
2610
|
-
* Object containing information for
|
|
2611
|
-
* the required viewing.
|
|
2612
|
-
*/
|
|
2613
|
-
entry: Object,
|
|
2614
|
-
envVars: {
|
|
2615
|
-
type: Object,
|
|
2616
|
-
default: function _default() {}
|
|
2617
|
-
}
|
|
2618
|
-
},
|
|
2619
|
-
data: function data() {
|
|
2620
|
-
return {
|
|
2621
|
-
dataIsReady: false,
|
|
2622
|
-
thumbnail: __webpack_require__("9b53"),
|
|
2623
|
-
dataLocation: this.entry.doi,
|
|
2624
|
-
discoverId: undefined,
|
|
2625
|
-
cardOverflow: false,
|
|
2626
|
-
expanded: false,
|
|
2627
|
-
biolucidaData: undefined
|
|
2628
|
-
};
|
|
2629
|
-
},
|
|
2630
|
-
computed: {
|
|
2631
2222
|
contributors: function contributors() {
|
|
2632
2223
|
var text = "";
|
|
2633
2224
|
|
|
@@ -2674,13 +2265,6 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2674
2265
|
|
|
2675
2266
|
return text;
|
|
2676
2267
|
},
|
|
2677
|
-
simulationLinks: function simulationLinks() {
|
|
2678
|
-
if (this.entry.additionalLinks) {
|
|
2679
|
-
if (typeof this.entry.additionalLinks != "boolean") return this.entry.additionalLinks;
|
|
2680
|
-
}
|
|
2681
|
-
|
|
2682
|
-
return [];
|
|
2683
|
-
},
|
|
2684
2268
|
label: function label() {
|
|
2685
2269
|
return this.entry.organs ? this.entry.organs[0] : this.entry.name;
|
|
2686
2270
|
},
|
|
@@ -2690,10 +2274,11 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2690
2274
|
},
|
|
2691
2275
|
methods: {
|
|
2692
2276
|
cardClicked: function cardClicked() {
|
|
2693
|
-
this.
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2277
|
+
if (this.entry.scaffolds) {
|
|
2278
|
+
this.openScaffold();
|
|
2279
|
+
} else {
|
|
2280
|
+
this.openDataset();
|
|
2281
|
+
}
|
|
2697
2282
|
},
|
|
2698
2283
|
openScaffold: function openScaffold() {
|
|
2699
2284
|
var action = {
|
|
@@ -2707,6 +2292,11 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2707
2292
|
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
|
|
2708
2293
|
banner: this.thumbnail
|
|
2709
2294
|
};
|
|
2295
|
+
|
|
2296
|
+
if (hardcoded_context_info[this.discoverId]) {
|
|
2297
|
+
action.contextCardUrl = true;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2710
2300
|
this.propogateCardAction(action);
|
|
2711
2301
|
},
|
|
2712
2302
|
openPlot: function openPlot() {
|
|
@@ -2770,9 +2360,10 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2770
2360
|
var action = {
|
|
2771
2361
|
label: undefined,
|
|
2772
2362
|
resource: resource,
|
|
2773
|
-
|
|
2363
|
+
dataset: this.dataLocation,
|
|
2774
2364
|
apiLocation: this.envVars.API_LOCATION,
|
|
2775
2365
|
version: this.version,
|
|
2366
|
+
discoverId: this.discoverId,
|
|
2776
2367
|
contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
|
|
2777
2368
|
banner: this.thumbnail,
|
|
2778
2369
|
title: "View simulation",
|
|
@@ -2780,62 +2371,11 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2780
2371
|
description: this.entry.description,
|
|
2781
2372
|
type: "Simulation"
|
|
2782
2373
|
};
|
|
2783
|
-
|
|
2784
|
-
},
|
|
2785
|
-
openSegmentation: function openSegmentation() {
|
|
2786
|
-
if (this.entry.segmentation && this.entry.segmentation[0]) {
|
|
2787
|
-
var segmentation = this.entry.segmentation[0];
|
|
2788
|
-
var filePath = segmentation.dataset.path;
|
|
2789
|
-
var datasetId = this.discoverId;
|
|
2790
|
-
var datasetVersion = this.version;
|
|
2791
|
-
var prefix = this.envVars.NL_LINK_PREFIX;
|
|
2792
|
-
var resource = {
|
|
2793
|
-
share_link: "".concat(prefix, "/dataviewer?datasetId=").concat(datasetId, "&version=").concat(datasetVersion, "&path=files/").concat(filePath)
|
|
2794
|
-
};
|
|
2795
|
-
var action = {
|
|
2796
|
-
label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
|
|
2797
|
-
resource: resource,
|
|
2798
|
-
dataset: this.dataLocation,
|
|
2799
|
-
datasetId: this.discoverId,
|
|
2800
|
-
title: "View segmentation",
|
|
2801
|
-
name: this.entry.name,
|
|
2802
|
-
description: this.entry.description,
|
|
2803
|
-
type: "Segmentation"
|
|
2804
|
-
};
|
|
2805
|
-
components_EventBus.$emit("PopoverActionClick", action);
|
|
2806
|
-
}
|
|
2807
|
-
},
|
|
2808
|
-
openImage: function openImage() {
|
|
2809
|
-
if (this.biolucidaData) {
|
|
2810
|
-
var biolucidaData = this.biolucidaData;
|
|
2811
|
-
|
|
2812
|
-
if ('dataset_images' in biolucidaData) {
|
|
2813
|
-
var image = biolucidaData['dataset_images'][0];
|
|
2814
|
-
var resource = {
|
|
2815
|
-
share_link: image.share_link,
|
|
2816
|
-
id: image.image_id,
|
|
2817
|
-
itemId: image.sourcepkg_id
|
|
2818
|
-
};
|
|
2819
|
-
var action = {
|
|
2820
|
-
label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
|
|
2821
|
-
resource: resource,
|
|
2822
|
-
dataset: this.dataLocation,
|
|
2823
|
-
datasetId: this.discoverId,
|
|
2824
|
-
title: "View image",
|
|
2825
|
-
name: this.entry.name,
|
|
2826
|
-
description: this.entry.description,
|
|
2827
|
-
type: "Biolucida"
|
|
2828
|
-
};
|
|
2829
|
-
components_EventBus.$emit("PopoverActionClick", action);
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2374
|
+
this.propogateCardAction(action);
|
|
2832
2375
|
},
|
|
2833
2376
|
propogateCardAction: function propogateCardAction(action) {
|
|
2834
2377
|
components_EventBus.$emit("PopoverActionClick", action);
|
|
2835
|
-
|
|
2836
|
-
if (action.contextCardUrl) {
|
|
2837
|
-
this.$emit('contextUpdate', action);
|
|
2838
|
-
}
|
|
2378
|
+
this.$emit('contextUpdate', action);
|
|
2839
2379
|
},
|
|
2840
2380
|
getScaffoldPath: function getScaffoldPath(discoverId, version, scaffoldPath) {
|
|
2841
2381
|
var id = discoverId;
|
|
@@ -2857,55 +2397,54 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
|
|
|
2857
2397
|
getBanner: function getBanner() {
|
|
2858
2398
|
var _this = this;
|
|
2859
2399
|
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2400
|
+
// Only load banner if card has changed
|
|
2401
|
+
if (this.lastDoi !== this.entry.doi) {
|
|
2402
|
+
this.lastDoi = this.entry.doi;
|
|
2403
|
+
this.loading = true;
|
|
2404
|
+
var doi = this.splitDOI(this.entry.doi);
|
|
2405
|
+
fetch("https://api.pennsieve.io/discover/datasets/doi/".concat(doi[0], "/").concat(doi[1])).then(function (response) {
|
|
2406
|
+
if (!response.ok) {
|
|
2407
|
+
throw Error(response.statusText);
|
|
2408
|
+
} else {
|
|
2409
|
+
return response.json();
|
|
2410
|
+
}
|
|
2411
|
+
}).then(function (data) {
|
|
2412
|
+
_this.thumbnail = data.banner;
|
|
2413
|
+
_this.discoverId = data.id;
|
|
2414
|
+
_this.version = data.version;
|
|
2415
|
+
_this.dataLocation = "https://sparc.science/datasets/".concat(data.id, "?type=dataset");
|
|
2416
|
+
_this.loading = false;
|
|
2417
|
+
}).catch(function () {
|
|
2418
|
+
//set defaults if we hit an error
|
|
2419
|
+
_this.thumbnail = __webpack_require__("9b53");
|
|
2420
|
+
_this.discoverId = undefined;
|
|
2421
|
+
_this.loading = false;
|
|
2422
|
+
});
|
|
2423
|
+
}
|
|
2881
2424
|
},
|
|
2882
2425
|
lastName: function lastName(fullName) {
|
|
2883
2426
|
return fullName.split(',')[0];
|
|
2884
|
-
},
|
|
2885
|
-
getBiolucidaInfo: function getBiolucidaInfo(id) {
|
|
2886
|
-
var _this2 = this;
|
|
2887
|
-
|
|
2888
|
-
var apiLocation = this.envVars.API_LOCATION;
|
|
2889
|
-
var endpoint = apiLocation + "image_search/" + id; // Add parameters if we are sent them
|
|
2890
|
-
|
|
2891
|
-
fetch(endpoint).then(function (response) {
|
|
2892
|
-
return response.json();
|
|
2893
|
-
}).then(function (data) {
|
|
2894
|
-
if (data.status == "success") _this2.biolucidaData = data;
|
|
2895
|
-
});
|
|
2896
2427
|
}
|
|
2897
2428
|
},
|
|
2898
|
-
created: function created() {
|
|
2899
|
-
this.getBanner();
|
|
2900
|
-
},
|
|
2901
2429
|
mounted: function mounted() {
|
|
2430
|
+
this.getBanner();
|
|
2902
2431
|
this.cardOverflow = this.isOverflown(this.$refs.card);
|
|
2432
|
+
},
|
|
2433
|
+
updated: function updated() {},
|
|
2434
|
+
watch: {
|
|
2435
|
+
// currently not using card overflow
|
|
2436
|
+
'entry.description': function entryDescription() {
|
|
2437
|
+
// watch it
|
|
2438
|
+
this.cardOverflow = false;
|
|
2439
|
+
this.expanded = false;
|
|
2440
|
+
this.cardOverflow = this.isOverflown(this.$refs.card);
|
|
2441
|
+
}
|
|
2903
2442
|
}
|
|
2904
2443
|
});
|
|
2905
2444
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=script&lang=js&
|
|
2906
2445
|
/* harmony default export */ var components_DatasetCardvue_type_script_lang_js_ = (DatasetCardvue_type_script_lang_js_);
|
|
2907
|
-
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=
|
|
2908
|
-
var
|
|
2446
|
+
// EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=75e03782&scoped=true&lang=css&
|
|
2447
|
+
var DatasetCardvue_type_style_index_0_id_75e03782_scoped_true_lang_css_ = __webpack_require__("26e6");
|
|
2909
2448
|
|
|
2910
2449
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue
|
|
2911
2450
|
|
|
@@ -2918,22 +2457,22 @@ var DatasetCardvue_type_style_index_0_id_66c0a49d_scoped_true_lang_css_ = __webp
|
|
|
2918
2457
|
|
|
2919
2458
|
var DatasetCard_component = normalizeComponent(
|
|
2920
2459
|
components_DatasetCardvue_type_script_lang_js_,
|
|
2921
|
-
|
|
2922
|
-
|
|
2460
|
+
DatasetCardvue_type_template_id_75e03782_scoped_true_render,
|
|
2461
|
+
DatasetCardvue_type_template_id_75e03782_scoped_true_staticRenderFns,
|
|
2923
2462
|
false,
|
|
2924
2463
|
null,
|
|
2925
|
-
"
|
|
2464
|
+
"75e03782",
|
|
2926
2465
|
null
|
|
2927
2466
|
|
|
2928
2467
|
)
|
|
2929
2468
|
|
|
2930
2469
|
/* harmony default export */ var DatasetCard = (DatasetCard_component.exports);
|
|
2931
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2932
|
-
var
|
|
2933
|
-
var
|
|
2470
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4bc52cf4-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=41eb07ec&scoped=true&
|
|
2471
|
+
var ContextCardvue_type_template_id_41eb07ec_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)?_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)])}
|
|
2472
|
+
var ContextCardvue_type_template_id_41eb07ec_scoped_true_staticRenderFns = []
|
|
2934
2473
|
|
|
2935
2474
|
|
|
2936
|
-
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=
|
|
2475
|
+
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=41eb07ec&scoped=true&
|
|
2937
2476
|
|
|
2938
2477
|
// EXTERNAL MODULE: external "element-ui/lib/theme-chalk/link.css"
|
|
2939
2478
|
var link_css_ = __webpack_require__("230a");
|
|
@@ -2969,6 +2508,30 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
2969
2508
|
|
|
2970
2509
|
|
|
2971
2510
|
|
|
2511
|
+
//
|
|
2512
|
+
//
|
|
2513
|
+
//
|
|
2514
|
+
//
|
|
2515
|
+
//
|
|
2516
|
+
//
|
|
2517
|
+
//
|
|
2518
|
+
//
|
|
2519
|
+
//
|
|
2520
|
+
//
|
|
2521
|
+
//
|
|
2522
|
+
//
|
|
2523
|
+
//
|
|
2524
|
+
//
|
|
2525
|
+
//
|
|
2526
|
+
//
|
|
2527
|
+
//
|
|
2528
|
+
//
|
|
2529
|
+
//
|
|
2530
|
+
//
|
|
2531
|
+
//
|
|
2532
|
+
//
|
|
2533
|
+
//
|
|
2534
|
+
//
|
|
2972
2535
|
//
|
|
2973
2536
|
//
|
|
2974
2537
|
//
|
|
@@ -2996,6 +2559,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
2996
2559
|
|
|
2997
2560
|
|
|
2998
2561
|
|
|
2562
|
+
|
|
2999
2563
|
locale_default.a.use(en_default.a);
|
|
3000
2564
|
external_vue_default.a.use(link_default.a);
|
|
3001
2565
|
external_vue_default.a.use(icon_default.a);
|
|
@@ -3006,9 +2570,9 @@ external_vue_default.a.use(input_default.a);
|
|
|
3006
2570
|
/* harmony default export */ var ContextCardvue_type_script_lang_js_ = ({
|
|
3007
2571
|
name: "contextCard",
|
|
3008
2572
|
props: {
|
|
3009
|
-
/**
|
|
3010
|
-
* Object containing information for
|
|
3011
|
-
* the required viewing.
|
|
2573
|
+
/**
|
|
2574
|
+
* Object containing information for
|
|
2575
|
+
* the required viewing.
|
|
3012
2576
|
*/
|
|
3013
2577
|
entry: Object
|
|
3014
2578
|
},
|
|
@@ -3016,15 +2580,22 @@ external_vue_default.a.use(input_default.a);
|
|
|
3016
2580
|
return {
|
|
3017
2581
|
contextData: {},
|
|
3018
2582
|
showDetails: true,
|
|
3019
|
-
showContextCard: true
|
|
2583
|
+
showContextCard: true,
|
|
2584
|
+
sampleDetails: {},
|
|
2585
|
+
loading: false
|
|
3020
2586
|
};
|
|
3021
2587
|
},
|
|
3022
2588
|
watch: {
|
|
3023
2589
|
'entry.contextCardUrl': {
|
|
3024
2590
|
handler: function handler(val) {
|
|
3025
2591
|
if (val) {
|
|
3026
|
-
|
|
3027
|
-
|
|
2592
|
+
// used for hardcoding data
|
|
2593
|
+
if (val === true) {
|
|
2594
|
+
this.contextData = hardcoded_context_info[this.entry.discoverId];
|
|
2595
|
+
} else {
|
|
2596
|
+
this.getContextFile(val);
|
|
2597
|
+
this.showContextCard = true;
|
|
2598
|
+
}
|
|
3028
2599
|
} else {
|
|
3029
2600
|
this.showContextCard = false;
|
|
3030
2601
|
}
|
|
@@ -3036,6 +2607,7 @@ external_vue_default.a.use(input_default.a);
|
|
|
3036
2607
|
getContextFile: function getContextFile(contextFileUrl) {
|
|
3037
2608
|
var _this = this;
|
|
3038
2609
|
|
|
2610
|
+
this.loading = true;
|
|
3039
2611
|
fetch(contextFileUrl).then(function (response) {
|
|
3040
2612
|
if (!response.ok) {
|
|
3041
2613
|
throw Error(response.statusText);
|
|
@@ -3044,23 +2616,41 @@ external_vue_default.a.use(input_default.a);
|
|
|
3044
2616
|
}
|
|
3045
2617
|
}).then(function (data) {
|
|
3046
2618
|
_this.contextData = data;
|
|
2619
|
+
console.log(data);
|
|
2620
|
+
_this.loading = false;
|
|
3047
2621
|
}).catch(function () {
|
|
3048
2622
|
//set defaults if we hit an error
|
|
3049
2623
|
_this.thumbnail = __webpack_require__("9b53");
|
|
3050
2624
|
_this.discoverId = undefined;
|
|
2625
|
+
_this.loading = false;
|
|
3051
2626
|
});
|
|
3052
2627
|
},
|
|
3053
2628
|
removeDoubleFilesPath: function removeDoubleFilesPath(path) {
|
|
3054
|
-
if (path.includes('files/
|
|
3055
|
-
return path.replace('files/
|
|
2629
|
+
if (path.includes('files/')) {
|
|
2630
|
+
return path.replace('files/', '');
|
|
3056
2631
|
} else {
|
|
3057
2632
|
return path;
|
|
3058
2633
|
}
|
|
3059
2634
|
},
|
|
2635
|
+
toggleSampleDetails: function toggleSampleDetails(i) {
|
|
2636
|
+
if (this.sampleDetails[i] === undefined) {
|
|
2637
|
+
external_vue_default.a.set(this.sampleDetails, i, true);
|
|
2638
|
+
} else {
|
|
2639
|
+
external_vue_default.a.set(this.sampleDetails, i, !this.sampleDetails[i]);
|
|
2640
|
+
}
|
|
2641
|
+
},
|
|
3060
2642
|
getFileFromPath: function getFileFromPath(path) {
|
|
2643
|
+
// for hardcoded data
|
|
2644
|
+
if (this.entry.contextCardUrl === true) {
|
|
2645
|
+
return path;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
3061
2648
|
path = this.removeDoubleFilesPath(path);
|
|
3062
2649
|
return "".concat(this.entry.apiLocation, "s3-resource/").concat(this.entry.discoverId, "/").concat(this.entry.version, "/files/").concat(path);
|
|
3063
2650
|
},
|
|
2651
|
+
generateFileLink: function generateFileLink(path) {
|
|
2652
|
+
return "https://sparc.science/file/".concat(this.entry.discoverId, "/").concat(this.entry.version, "?path=").concat(encodeURI(path));
|
|
2653
|
+
},
|
|
3064
2654
|
openViewFile: function openViewFile(view) {
|
|
3065
2655
|
// note that we assume that the view file is in the same directory as the scaffold (viewUrls take relative paths)
|
|
3066
2656
|
this.entry.viewUrl = view.path.split('/')[view.path.split('/').length - 1];
|
|
@@ -3071,8 +2661,8 @@ external_vue_default.a.use(input_default.a);
|
|
|
3071
2661
|
});
|
|
3072
2662
|
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=script&lang=js&
|
|
3073
2663
|
/* harmony default export */ var components_ContextCardvue_type_script_lang_js_ = (ContextCardvue_type_script_lang_js_);
|
|
3074
|
-
// EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=
|
|
3075
|
-
var
|
|
2664
|
+
// EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=41eb07ec&scoped=true&lang=css&
|
|
2665
|
+
var ContextCardvue_type_style_index_0_id_41eb07ec_scoped_true_lang_css_ = __webpack_require__("718b");
|
|
3076
2666
|
|
|
3077
2667
|
// CONCATENATED MODULE: ./src/components/ContextCard.vue
|
|
3078
2668
|
|
|
@@ -3085,11 +2675,11 @@ var ContextCardvue_type_style_index_0_id_5de93eb9_scoped_true_lang_css_ = __webp
|
|
|
3085
2675
|
|
|
3086
2676
|
var ContextCard_component = normalizeComponent(
|
|
3087
2677
|
components_ContextCardvue_type_script_lang_js_,
|
|
3088
|
-
|
|
3089
|
-
|
|
2678
|
+
ContextCardvue_type_template_id_41eb07ec_scoped_true_render,
|
|
2679
|
+
ContextCardvue_type_template_id_41eb07ec_scoped_true_staticRenderFns,
|
|
3090
2680
|
false,
|
|
3091
2681
|
null,
|
|
3092
|
-
"
|
|
2682
|
+
"41eb07ec",
|
|
3093
2683
|
null
|
|
3094
2684
|
|
|
3095
2685
|
)
|
|
@@ -3141,6 +2731,8 @@ var ContextCard_component = normalizeComponent(
|
|
|
3141
2731
|
|
|
3142
2732
|
|
|
3143
2733
|
|
|
2734
|
+
|
|
2735
|
+
|
|
3144
2736
|
|
|
3145
2737
|
|
|
3146
2738
|
|
|
@@ -3195,6 +2787,7 @@ function SidebarContentvue_type_script_lang_js_objectSpread(target) { for (var i
|
|
|
3195
2787
|
//
|
|
3196
2788
|
//
|
|
3197
2789
|
//
|
|
2790
|
+
//
|
|
3198
2791
|
|
|
3199
2792
|
/* eslint-disable no-alert, no-console */
|
|
3200
2793
|
|
|
@@ -3277,7 +2870,8 @@ var initial_state = {
|
|
|
3277
2870
|
hasSearched: false,
|
|
3278
2871
|
sciCrunchError: false,
|
|
3279
2872
|
contextCardEntry: undefined,
|
|
3280
|
-
contextCardEnabled:
|
|
2873
|
+
contextCardEnabled: true,
|
|
2874
|
+
loadingScicrunch: false
|
|
3281
2875
|
};
|
|
3282
2876
|
/* harmony default export */ var SidebarContentvue_type_script_lang_js_ = ({
|
|
3283
2877
|
components: {
|
|
@@ -3383,6 +2977,7 @@ var initial_state = {
|
|
|
3383
2977
|
_this.discoverIds = searchData.discoverIds;
|
|
3384
2978
|
_this.dois = searchData.dois;
|
|
3385
2979
|
_this.results = searchData.items;
|
|
2980
|
+
_this.loadingCards = false;
|
|
3386
2981
|
|
|
3387
2982
|
_this.searchSciCrunch({
|
|
3388
2983
|
'dois': _this.dois
|
|
@@ -3404,9 +2999,8 @@ var initial_state = {
|
|
|
3404
2999
|
searchSciCrunch: function searchSciCrunch(params) {
|
|
3405
3000
|
var _this2 = this;
|
|
3406
3001
|
|
|
3407
|
-
this.
|
|
3408
|
-
this.
|
|
3409
|
-
this.disableCards();
|
|
3002
|
+
this.loadingScicrunch = true;
|
|
3003
|
+
this.scrollToTop();
|
|
3410
3004
|
this.$emit("search-changed", {
|
|
3411
3005
|
value: this.searchInput,
|
|
3412
3006
|
type: "query-update"
|
|
@@ -3420,20 +3014,21 @@ var initial_state = {
|
|
|
3420
3014
|
|
|
3421
3015
|
_this2.$refs.content.style["overflow-y"] = "scroll";
|
|
3422
3016
|
_this2.loadingCards = false;
|
|
3017
|
+
_this2.loadingScicrunch = false;
|
|
3423
3018
|
}).catch(function (result) {
|
|
3424
3019
|
if (result.name !== 'AbortError') {
|
|
3425
3020
|
_this2.loadingCards = false;
|
|
3021
|
+
_this2.loadingScicrunch = false;
|
|
3426
3022
|
_this2.sciCrunchError = result.message;
|
|
3427
3023
|
}
|
|
3428
3024
|
});
|
|
3429
3025
|
},
|
|
3430
|
-
|
|
3026
|
+
scrollToTop: function scrollToTop() {
|
|
3431
3027
|
if (this.$refs.content) {
|
|
3432
3028
|
this.$refs.content.scroll({
|
|
3433
3029
|
top: 0,
|
|
3434
3030
|
behavior: "smooth"
|
|
3435
3031
|
});
|
|
3436
|
-
this.$refs.content.style["overflow-y"] = "hidden";
|
|
3437
3032
|
}
|
|
3438
3033
|
},
|
|
3439
3034
|
resetPageNavigation: function resetPageNavigation() {
|
|
@@ -3444,25 +3039,27 @@ var initial_state = {
|
|
|
3444
3039
|
var _this3 = this;
|
|
3445
3040
|
|
|
3446
3041
|
this.lastSearch = this.searchInput;
|
|
3447
|
-
|
|
3042
|
+
var id = 0;
|
|
3448
3043
|
|
|
3449
3044
|
if (data.results.length === 0) {
|
|
3450
3045
|
return;
|
|
3451
3046
|
}
|
|
3452
3047
|
|
|
3453
3048
|
data.results.forEach(function (element) {
|
|
3454
|
-
//
|
|
3455
|
-
var
|
|
3456
|
-
name
|
|
3457
|
-
|
|
3458
|
-
|
|
3049
|
+
// match the scicrunch result with algolia result
|
|
3050
|
+
var i = _this3.results.findIndex(function (res) {
|
|
3051
|
+
return res.name === element.name;
|
|
3052
|
+
}); // Assign scicrunch results to the object
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
Object.assign(_this3.results[i], element); // Assign the attributes that need some processing
|
|
3056
|
+
|
|
3057
|
+
Object.assign(_this3.results[i], {
|
|
3459
3058
|
numberSamples: element.sampleSize ? parseInt(element.sampleSize) : 0,
|
|
3460
3059
|
numberSubjects: element.subjectSize ? parseInt(element.subjectSize) : 0,
|
|
3461
3060
|
updated: element.updated[0].timestamp.split("T")[0],
|
|
3462
3061
|
url: element.uri[0],
|
|
3463
|
-
datasetId: element.
|
|
3464
|
-
datasetRevision: element.dataset_revision,
|
|
3465
|
-
datasetVersion: element.dataset_version,
|
|
3062
|
+
datasetId: element.identifier,
|
|
3466
3063
|
organs: element.organs && element.organs.length > 0 ? _toConsumableArray(new Set(element.organs.map(function (v) {
|
|
3467
3064
|
return v.name;
|
|
3468
3065
|
}))) : undefined,
|
|
@@ -3470,22 +3067,13 @@ var initial_state = {
|
|
|
3470
3067
|
return v.species ? v.species.name : null;
|
|
3471
3068
|
}))) : undefined : undefined,
|
|
3472
3069
|
// This processing only includes each gender once into 'sexes'
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
scaffolds: element['abi-scaffold-metadata-file'],
|
|
3476
|
-
thumbnails: element['abi-thumbnail'] ? element['abi-thumbnail'] : element['abi-scaffold-thumbnail'],
|
|
3477
|
-
scaffoldViews: element['abi-scaffold-view-file'],
|
|
3478
|
-
videos: element.video,
|
|
3479
|
-
plots: element.plot,
|
|
3480
|
-
images: element['common-images'],
|
|
3070
|
+
id: id,
|
|
3071
|
+
scaffolds: element['abi-scaffold-metadata-file'] ? element['abi-scaffold-metadata-file'] : undefined,
|
|
3481
3072
|
contextualInformation: element['abi-contextual-information'].length > 0 ? element['abi-contextual-information'] : undefined,
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
};
|
|
3487
|
-
|
|
3488
|
-
_this3.results.push(datasetInfo);
|
|
3073
|
+
simulation: element.additionalLinks ? element.additionalLinks[0].description == 'Repository' : false
|
|
3074
|
+
});
|
|
3075
|
+
id++;
|
|
3076
|
+
external_vue_default.a.set(_this3.results, i, _this3.results[i]);
|
|
3489
3077
|
});
|
|
3490
3078
|
},
|
|
3491
3079
|
createfilterParams: function createfilterParams(params) {
|
|
@@ -3551,8 +3139,8 @@ var initial_state = {
|
|
|
3551
3139
|
});
|
|
3552
3140
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=script&lang=js&
|
|
3553
3141
|
/* harmony default export */ var components_SidebarContentvue_type_script_lang_js_ = (SidebarContentvue_type_script_lang_js_);
|
|
3554
|
-
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=
|
|
3555
|
-
var
|
|
3142
|
+
// EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=53d83468&scoped=true&lang=css&
|
|
3143
|
+
var SidebarContentvue_type_style_index_0_id_53d83468_scoped_true_lang_css_ = __webpack_require__("c426");
|
|
3556
3144
|
|
|
3557
3145
|
// CONCATENATED MODULE: ./src/components/SidebarContent.vue
|
|
3558
3146
|
|
|
@@ -3565,22 +3153,22 @@ var SidebarContentvue_type_style_index_0_id_3d1731ba_scoped_true_lang_css_ = __w
|
|
|
3565
3153
|
|
|
3566
3154
|
var SidebarContent_component = normalizeComponent(
|
|
3567
3155
|
components_SidebarContentvue_type_script_lang_js_,
|
|
3568
|
-
|
|
3569
|
-
|
|
3156
|
+
SidebarContentvue_type_template_id_53d83468_scoped_true_render,
|
|
3157
|
+
SidebarContentvue_type_template_id_53d83468_scoped_true_staticRenderFns,
|
|
3570
3158
|
false,
|
|
3571
3159
|
null,
|
|
3572
|
-
"
|
|
3160
|
+
"53d83468",
|
|
3573
3161
|
null
|
|
3574
3162
|
|
|
3575
3163
|
)
|
|
3576
3164
|
|
|
3577
3165
|
/* harmony default export */ var SidebarContent = (SidebarContent_component.exports);
|
|
3578
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3579
|
-
var
|
|
3580
|
-
var
|
|
3166
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4bc52cf4-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=d68260c4&scoped=true&
|
|
3167
|
+
var Tabsvue_type_template_id_d68260c4_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)}
|
|
3168
|
+
var Tabsvue_type_template_id_d68260c4_scoped_true_staticRenderFns = []
|
|
3581
3169
|
|
|
3582
3170
|
|
|
3583
|
-
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=template&id=
|
|
3171
|
+
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=template&id=d68260c4&scoped=true&
|
|
3584
3172
|
|
|
3585
3173
|
// 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&
|
|
3586
3174
|
|
|
@@ -3620,8 +3208,8 @@ var Tabsvue_type_template_id_5d1b9484_scoped_true_staticRenderFns = []
|
|
|
3620
3208
|
});
|
|
3621
3209
|
// CONCATENATED MODULE: ./src/components/Tabs.vue?vue&type=script&lang=js&
|
|
3622
3210
|
/* harmony default export */ var components_Tabsvue_type_script_lang_js_ = (Tabsvue_type_script_lang_js_);
|
|
3623
|
-
// EXTERNAL MODULE: ./src/components/Tabs.vue?vue&type=style&index=0&id=
|
|
3624
|
-
var
|
|
3211
|
+
// EXTERNAL MODULE: ./src/components/Tabs.vue?vue&type=style&index=0&id=d68260c4&scoped=true&lang=css&
|
|
3212
|
+
var Tabsvue_type_style_index_0_id_d68260c4_scoped_true_lang_css_ = __webpack_require__("44cc");
|
|
3625
3213
|
|
|
3626
3214
|
// CONCATENATED MODULE: ./src/components/Tabs.vue
|
|
3627
3215
|
|
|
@@ -3634,11 +3222,11 @@ var Tabsvue_type_style_index_0_id_5d1b9484_scoped_true_lang_css_ = __webpack_req
|
|
|
3634
3222
|
|
|
3635
3223
|
var Tabs_component = normalizeComponent(
|
|
3636
3224
|
components_Tabsvue_type_script_lang_js_,
|
|
3637
|
-
|
|
3638
|
-
|
|
3225
|
+
Tabsvue_type_template_id_d68260c4_scoped_true_render,
|
|
3226
|
+
Tabsvue_type_template_id_d68260c4_scoped_true_staticRenderFns,
|
|
3639
3227
|
false,
|
|
3640
3228
|
null,
|
|
3641
|
-
"
|
|
3229
|
+
"d68260c4",
|
|
3642
3230
|
null
|
|
3643
3231
|
|
|
3644
3232
|
)
|
|
@@ -3830,8 +3418,8 @@ var SideBarvue_type_script_lang_js_initial_state = {
|
|
|
3830
3418
|
});
|
|
3831
3419
|
// CONCATENATED MODULE: ./src/components/SideBar.vue?vue&type=script&lang=js&
|
|
3832
3420
|
/* harmony default export */ var components_SideBarvue_type_script_lang_js_ = (SideBarvue_type_script_lang_js_);
|
|
3833
|
-
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=
|
|
3834
|
-
var
|
|
3421
|
+
// EXTERNAL MODULE: ./src/components/SideBar.vue?vue&type=style&index=0&id=3f7eb1a5&scoped=true&lang=css&
|
|
3422
|
+
var SideBarvue_type_style_index_0_id_3f7eb1a5_scoped_true_lang_css_ = __webpack_require__("a3fe");
|
|
3835
3423
|
|
|
3836
3424
|
// CONCATENATED MODULE: ./src/components/SideBar.vue
|
|
3837
3425
|
|
|
@@ -3848,7 +3436,7 @@ var SideBar_component = normalizeComponent(
|
|
|
3848
3436
|
staticRenderFns,
|
|
3849
3437
|
false,
|
|
3850
3438
|
null,
|
|
3851
|
-
"
|
|
3439
|
+
"3f7eb1a5",
|
|
3852
3440
|
null
|
|
3853
3441
|
|
|
3854
3442
|
)
|