@abi-software/map-side-bar 1.3.26-staging → 1.3.27-staging
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/README.md +93 -0
- package/dist/map-side-bar.common.js +72 -34
- 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 +72 -34
- 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 +346 -37
- package/package.json +3 -1
- package/src/components/ContextCard.vue +19 -2
package/README.md
CHANGED
|
@@ -51,3 +51,96 @@ envVars contains environment varibables like so:
|
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
actionClick event is called when an action button has benn clicked on.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## Sidebar Data formats
|
|
57
|
+
### Algolia
|
|
58
|
+
|
|
59
|
+
Data retrieved from Algolia can be found here:
|
|
60
|
+
https://github.com/ABI-Software/map-sidebar/blob/3310b165489b10901f50a21e5689ef046251dbd9/src/algolia/algolia.js#L136
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
[
|
|
64
|
+
'pennsieve.publishDate', // optional
|
|
65
|
+
'pennsieve.updatedAt', // optional
|
|
66
|
+
'Item.curie', //contains the DOI for the dataset (required)
|
|
67
|
+
'Item.name', // dataset title (required)
|
|
68
|
+
'Item.description', // dataset description (required)
|
|
69
|
+
'objectID', // Pennsieve discover ID (required)
|
|
70
|
+
],
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Scicrunch
|
|
74
|
+
|
|
75
|
+
Data retrieved from scicrunch can be found here:
|
|
76
|
+
https://github.com/nih-sparc/sparc-api/blob/f3444a32964f5340e0ee1f10a08a05839620d098/app/scicrunch_processing_common.py#L25
|
|
77
|
+
|
|
78
|
+
And mimetypes can be viewed here
|
|
79
|
+
https://github.com/nih-sparc/sparc-api/blob/f3444a32964f5340e0ee1f10a08a05839620d098/app/scicrunch_processing_common.py#L28
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
ADDITIONAL_LINKS = 'additionalLinks'
|
|
83
|
+
BIOLUCIDA_2D = 'biolucida-2d'
|
|
84
|
+
BIOLUCIDA_3D = 'biolucida-3d'
|
|
85
|
+
COMMON_IMAGES = 'common-images'
|
|
86
|
+
CONTEXT_FILE = 'abi-context-file'
|
|
87
|
+
CSV = 'csv'
|
|
88
|
+
NAME = 'name'
|
|
89
|
+
ORGANS = 'organs'
|
|
90
|
+
PLOT_FILE = 'abi-plot'
|
|
91
|
+
SEGMENTATION_FILES = 'mbf-segmentation'
|
|
92
|
+
SCAFFOLD_DIR = 'abi-scaffold-dir'
|
|
93
|
+
SCAFFOLD_FILE = 'abi-scaffold-metadata-file'
|
|
94
|
+
THUMBNAIL_IMAGE = 'abi-thumbnail'
|
|
95
|
+
SCAFFOLD_VIEW_FILE = 'abi-scaffold-view-file'
|
|
96
|
+
SIMULATION_FILE = 'abi-simulation-file'
|
|
97
|
+
VIDEO = 'video'
|
|
98
|
+
VERSION = 'version'
|
|
99
|
+
README = 'readme'
|
|
100
|
+
TITLE = 'title'
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Note: All are optional except for ‘name’
|
|
104
|
+
|
|
105
|
+
### Sidebar input processing
|
|
106
|
+
Sidebar input processing can be viewed here:
|
|
107
|
+
https://github.com/ABI-Software/map-sidebar/blob/3310b165489b10901f50a21e5689ef046251dbd9/src/components/SidebarContent.vue#L318
|
|
108
|
+
|
|
109
|
+
It is used to keep the code from attempting to access an object property that does not exist
|
|
110
|
+
|
|
111
|
+
### Context card data format
|
|
112
|
+
All fields are strings:
|
|
113
|
+
```
|
|
114
|
+
{
|
|
115
|
+
"description": required ,
|
|
116
|
+
"id": optional,
|
|
117
|
+
"samples": [ // array required here (can be empty)
|
|
118
|
+
{
|
|
119
|
+
"annotation": optional,
|
|
120
|
+
"description": required,
|
|
121
|
+
"doi": optional // Doi will be used to link sample to a separate dataset,
|
|
122
|
+
"heading": required,
|
|
123
|
+
"id": required,
|
|
124
|
+
"path": optional // path will be used to link to file location,
|
|
125
|
+
"view": optional // Will be used to link to “views[i].id”
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"version": // not currently used,
|
|
129
|
+
"views": [ // array required here (can be empty)
|
|
130
|
+
{
|
|
131
|
+
"annotation": optional,
|
|
132
|
+
"description": required,
|
|
133
|
+
"id": requried,
|
|
134
|
+
"path": required // relative path to the view file, eg "derivative\\Scaffolds\\scaffoldMap_tenial_view.json",
|
|
135
|
+
"sample": optional // used to link to views to samples
|
|
136
|
+
"thumbnail": optional // technically optional but it won’t look great
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
An example context card file can be viewed here:
|
|
143
|
+
https://drive.google.com/file/d/15NVRBny7WGltpMSRbsgMglXo0xOC3-Q9/view?usp=sharing
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
@@ -175,6 +175,13 @@ module.exports = require("core-js/modules/web.dom-collections.iterator");
|
|
|
175
175
|
|
|
176
176
|
/***/ }),
|
|
177
177
|
|
|
178
|
+
/***/ "1d61":
|
|
179
|
+
/***/ (function(module, exports) {
|
|
180
|
+
|
|
181
|
+
module.exports = require("marked");
|
|
182
|
+
|
|
183
|
+
/***/ }),
|
|
184
|
+
|
|
178
185
|
/***/ "2175":
|
|
179
186
|
/***/ (function(module, exports) {
|
|
180
187
|
|
|
@@ -189,6 +196,13 @@ module.exports = require("element-ui/lib/theme-chalk/link.css");
|
|
|
189
196
|
|
|
190
197
|
/***/ }),
|
|
191
198
|
|
|
199
|
+
/***/ "2624":
|
|
200
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
201
|
+
|
|
202
|
+
// extracted by mini-css-extract-plugin
|
|
203
|
+
|
|
204
|
+
/***/ }),
|
|
205
|
+
|
|
192
206
|
/***/ "26bc":
|
|
193
207
|
/***/ (function(module, exports) {
|
|
194
208
|
|
|
@@ -341,6 +355,24 @@ module.exports = require("@abi-software/gallery/dist/gallery.css");
|
|
|
341
355
|
|
|
342
356
|
/***/ }),
|
|
343
357
|
|
|
358
|
+
/***/ "5acf":
|
|
359
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
360
|
+
|
|
361
|
+
"use strict";
|
|
362
|
+
/* 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_ab0e1564_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2624");
|
|
363
|
+
/* 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_ab0e1564_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_ab0e1564_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
364
|
+
/* unused harmony reexport * */
|
|
365
|
+
/* 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_ab0e1564_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
366
|
+
|
|
367
|
+
/***/ }),
|
|
368
|
+
|
|
369
|
+
/***/ "5d17":
|
|
370
|
+
/***/ (function(module, exports) {
|
|
371
|
+
|
|
372
|
+
module.exports = require("isomorphic-dompurify");
|
|
373
|
+
|
|
374
|
+
/***/ }),
|
|
375
|
+
|
|
344
376
|
/***/ "5d8c":
|
|
345
377
|
/***/ (function(module, exports) {
|
|
346
378
|
|
|
@@ -425,17 +457,6 @@ module.exports = require("core-js/modules/es.number.constructor");
|
|
|
425
457
|
|
|
426
458
|
/***/ }),
|
|
427
459
|
|
|
428
|
-
/***/ "700e":
|
|
429
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
430
|
-
|
|
431
|
-
"use strict";
|
|
432
|
-
/* 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_4c11fb8b_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("832b");
|
|
433
|
-
/* 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_4c11fb8b_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_4c11fb8b_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
434
|
-
/* unused harmony reexport * */
|
|
435
|
-
/* 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_4c11fb8b_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
436
|
-
|
|
437
|
-
/***/ }),
|
|
438
|
-
|
|
439
460
|
/***/ "79d0":
|
|
440
461
|
/***/ (function(module, exports) {
|
|
441
462
|
|
|
@@ -471,13 +492,6 @@ module.exports = require("element-ui/lib/theme-chalk/option.css");
|
|
|
471
492
|
|
|
472
493
|
/***/ }),
|
|
473
494
|
|
|
474
|
-
/***/ "832b":
|
|
475
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
476
|
-
|
|
477
|
-
// extracted by mini-css-extract-plugin
|
|
478
|
-
|
|
479
|
-
/***/ }),
|
|
480
|
-
|
|
481
495
|
/***/ "8495":
|
|
482
496
|
/***/ (function(module, exports) {
|
|
483
497
|
|
|
@@ -797,7 +811,7 @@ if (typeof window !== 'undefined') {
|
|
|
797
811
|
// Indicate to webpack that this file can be concatenated
|
|
798
812
|
/* harmony default export */ var setPublicPath = (null);
|
|
799
813
|
|
|
800
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
814
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14083467-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=313390a9&scoped=true&
|
|
801
815
|
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)}
|
|
802
816
|
var staticRenderFns = []
|
|
803
817
|
|
|
@@ -872,7 +886,7 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en_);
|
|
|
872
886
|
var locale_ = __webpack_require__("7f9f");
|
|
873
887
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
874
888
|
|
|
875
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
889
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14083467-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=eca1cf88&scoped=true&
|
|
876
890
|
var SidebarContentvue_type_template_id_eca1cf88_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,"envVars":_vm.envVars}}):_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,"cascaderReady":_vm.cascaderReady}}),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loadingCards),expression:"loadingCards"}],ref:"content",staticClass:"content scrollbar"},[(_vm.results.length === 0 && !_vm.loadingCards)?_c('div',{staticClass:"error-feedback"},[_vm._v("No results found - Please change your search / filter criteria.")]):_vm._e(),_vm._l((_vm.results),function(result){return _c('div',{key:result.doi,staticClass:"step-item"},[_c('DatasetCard',{attrs:{"entry":result,"envVars":_vm.envVars},on:{"contextUpdate":_vm.contextCardUpdate}})],1)}),_c('el-pagination',{staticClass:"pagination",attrs:{"current-page":_vm.page,"hide-on-single-page":"","large":"","layout":"prev, pager, next","page-size":_vm.numberPerPage,"total":_vm.numberOfHits},on:{"update:currentPage":function($event){_vm.page=$event},"update:current-page":function($event){_vm.page=$event},"current-change":_vm.pageChange}})],2)],1)}
|
|
877
891
|
var SidebarContentvue_type_template_id_eca1cf88_scoped_true_staticRenderFns = []
|
|
878
892
|
|
|
@@ -1047,7 +1061,7 @@ var button_css_ = __webpack_require__("26bc");
|
|
|
1047
1061
|
var button_ = __webpack_require__("5d8c");
|
|
1048
1062
|
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
1049
1063
|
|
|
1050
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1064
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14083467-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=7f7ea160&scoped=true&
|
|
1051
1065
|
var SearchFiltersvue_type_template_id_7f7ea160_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)}
|
|
1052
1066
|
var SearchFiltersvue_type_template_id_7f7ea160_scoped_true_staticRenderFns = []
|
|
1053
1067
|
|
|
@@ -2265,14 +2279,14 @@ var SearchFilters_component = normalizeComponent(
|
|
|
2265
2279
|
)
|
|
2266
2280
|
|
|
2267
2281
|
/* harmony default export */ var SearchFilters = (SearchFilters_component.exports);
|
|
2268
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2282
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14083467-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=37eaa59d&scoped=true&
|
|
2269
2283
|
var DatasetCardvue_type_template_id_37eaa59d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"dataset-card-container"},[_c('div',{ref:"card",staticClass:"dataset-card"},[_c('div',{staticClass:"seperator-path"}),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"card"},[_c('span',{staticClass:"card-left"},[(!_vm.loading)?_c('image-gallery',{attrs:{"datasetId":String(_vm.discoverId),"datasetVersion":_vm.version,"entry":_vm.entry,"envVars":_vm.envVars,"label":_vm.label,"datasetThumbnail":_vm.thumbnail,"dataset-biolucida":_vm.biolucidaData,"category":_vm.currentCategory},on:{"card-clicked":_vm.galleryClicked}}):_vm._e()],1),_c('div',{staticClass:"card-right"},[_c('div',{staticClass:"title",on:{"click":_vm.cardClicked}},[_vm._v(_vm._s(_vm.entry.name))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.contributors)+" "+_vm._s(_vm.entry.publishDate ? ("(" + _vm.publishYear + ")") : ''))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.samples))]),(!_vm.entry.detailsReady)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(!_vm.entry.detailsReady),expression:"!entry.detailsReady"}],staticClass:"details loading-icon"}):_vm._e(),_c('div',[(_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openRepository}},[_vm._v("View repository")]):_vm._e()],1),_c('div',{staticClass:"badges-container"},[_c('badges-group',{attrs:{"entry":_vm.entry,"dataset-biolucida":_vm.biolucidaData},on:{"categoryChanged":_vm.categoryChanged}})],1)])])])])}
|
|
2270
2284
|
var DatasetCardvue_type_template_id_37eaa59d_scoped_true_staticRenderFns = []
|
|
2271
2285
|
|
|
2272
2286
|
|
|
2273
2287
|
// CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=37eaa59d&scoped=true&
|
|
2274
2288
|
|
|
2275
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2289
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14083467-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BadgesGroup.vue?vue&type=template&id=712c1be9&scoped=true&
|
|
2276
2290
|
var BadgesGroupvue_type_template_id_712c1be9_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.categories['All'].size > 1)?_c('div',{ref:"container",staticClass:"container"},[_c('div',[_vm._v(" View data types: ")]),_vm._l((_vm.categories),function(item,key){return [(item.size > 0)?_c('el-button',{key:key,class:[{ 'active': key == _vm.active},'tag-button'],attrs:{"size":"small"},on:{"click":function($event){return _vm.categoryClicked(key)}}},[_vm._v(_vm._s(key + " (" + item.size + ")")+" ")]):_vm._e()]})],2):_vm._e()}
|
|
2277
2291
|
var BadgesGroupvue_type_template_id_712c1be9_scoped_true_staticRenderFns = []
|
|
2278
2292
|
|
|
@@ -2422,7 +2436,7 @@ var BadgesGroup_component = normalizeComponent(
|
|
|
2422
2436
|
|
|
2423
2437
|
var EventBus = new external_vue_default.a();
|
|
2424
2438
|
/* harmony default export */ var components_EventBus = (EventBus);
|
|
2425
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2439
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14083467-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ImageGallery.vue?vue&type=template&id=5d1b779c&scoped=true&
|
|
2426
2440
|
var ImageGalleryvue_type_template_id_5d1b779c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"full-size"},[_c('gallery',{ref:"gallery",attrs:{"bottomSpacer":_vm.bottomSpacer,"cardWidth":10,"items":_vm.galleryItems,"max-width":_vm.maxWidth,"show-indicator-bar":false,"show-card-details":true,"highlight-active":false,"image-style":_vm.imageStyle,"image-container-style":_vm.imageContainerStyle,"body-style":_vm.bodyStyle,"shadow":_vm.shadow},on:{"card-clicked":_vm.cardClicked}})],1)}
|
|
2427
2441
|
var ImageGalleryvue_type_template_id_5d1b779c_scoped_true_staticRenderFns = []
|
|
2428
2442
|
|
|
@@ -3493,12 +3507,12 @@ var DatasetCard_component = normalizeComponent(
|
|
|
3493
3507
|
)
|
|
3494
3508
|
|
|
3495
3509
|
/* harmony default export */ var DatasetCard = (DatasetCard_component.exports);
|
|
3496
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3497
|
-
var
|
|
3498
|
-
var
|
|
3510
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14083467-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=ab0e1564&scoped=true&
|
|
3511
|
+
var ContextCardvue_type_template_id_ab0e1564_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"},[_c('div',{staticClass:"card-left"},[_c('img',{staticClass:"context-image",attrs:{"src":_vm.banner}})]),_c('div',{staticClass:"card-right scrollbar"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.contextData.heading))]),_c('div',{domProps:{"innerHTML":_vm._s(_vm.parseMarkdown(_vm.contextData.description))}}),_c('br'),(!_vm.samplesUnderViews)?[(_vm.contextData.views && _vm.contextData.views.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Scaffold Views")]):_vm._e(),_vm._l((_vm.contextData.views),function(view,i){return [_c('div',{key:i+'_1',staticClass:"context-card-view",on:{"click":function($event){return _vm.openViewFile(view)}}},[_c('img',{staticClass:"view-image",attrs:{"src":_vm.getFileFromPath(view.thumbnail)}}),_c('div',{staticClass:"view-description"},[_vm._v(_vm._s(view.description))])]),_c('div',{key:i,staticClass:"padding"})]}),_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 cursor-pointer",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',domProps:{"innerHTML":_vm._s(sample.description)}}):_vm._e(),(_vm.sampleDetails[i] && sample.path)?_c('a',{key:i+'_5',attrs:{"href":_vm.generateFileLink(sample),"target":"_blank"}},[_vm._v("View Source")]):_vm._e(),_c('div',{key:i+'_2',staticClass:"padding"})]})]:[(_vm.contextData.views && _vm.contextData.views.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Scaffold Views")]):_vm._e(),_vm._l((_vm.contextData.views),function(view,i){return [_c('span',{key:i+'_1',staticClass:"context-card-view",on:{"click":function($event){return _vm.viewClicked(view, i)}}},[_c('img',{staticClass:"view-image",attrs:{"src":_vm.getFileFromPath(view.thumbnail)}}),_c('div',{staticClass:"view-description"},[_vm._v(_vm._s(view.description)),_c('i',{staticClass:"el-icon-warning-outline info"})])]),(_vm.sampleDetails[i])?_c('div',{key:i+'_2',domProps:{"innerHTML":_vm._s(_vm.samplesMatching(view.id).description)}}):_vm._e(),(_vm.sampleDetails[i] && _vm.samplesMatching(view.id).path)?_c('a',{key:i+'_5',attrs:{"href":_vm.generateFileLink(_vm.samplesMatching(view.id)),"target":"_blank"}},[_vm._v("View Source")]):_vm._e(),_c('div',{key:i,staticClass:"padding"}),(_vm.sampleDetails[i])?_c('div',{key:i+'_6',staticClass:"padding"}):_vm._e()]})]],2)]):_vm._e()],1)])}
|
|
3512
|
+
var ContextCardvue_type_template_id_ab0e1564_scoped_true_staticRenderFns = []
|
|
3499
3513
|
|
|
3500
3514
|
|
|
3501
|
-
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=
|
|
3515
|
+
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=ab0e1564&scoped=true&
|
|
3502
3516
|
|
|
3503
3517
|
// EXTERNAL MODULE: external "element-ui/lib/theme-chalk/link.css"
|
|
3504
3518
|
var link_css_ = __webpack_require__("230a");
|
|
@@ -3585,6 +3599,13 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
3585
3599
|
// ]
|
|
3586
3600
|
// }
|
|
3587
3601
|
// }
|
|
3602
|
+
// EXTERNAL MODULE: external "marked"
|
|
3603
|
+
var external_marked_ = __webpack_require__("1d61");
|
|
3604
|
+
|
|
3605
|
+
// EXTERNAL MODULE: external "isomorphic-dompurify"
|
|
3606
|
+
var external_isomorphic_dompurify_ = __webpack_require__("5d17");
|
|
3607
|
+
var external_isomorphic_dompurify_default = /*#__PURE__*/__webpack_require__.n(external_isomorphic_dompurify_);
|
|
3608
|
+
|
|
3588
3609
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ContextCard.vue?vue&type=script&lang=js&
|
|
3589
3610
|
|
|
3590
3611
|
|
|
@@ -3687,6 +3708,8 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
3687
3708
|
|
|
3688
3709
|
|
|
3689
3710
|
|
|
3711
|
+
|
|
3712
|
+
|
|
3690
3713
|
locale_default.a.use(en_default.a);
|
|
3691
3714
|
external_vue_default.a.use(link_default.a);
|
|
3692
3715
|
external_vue_default.a.use(icon_default.a);
|
|
@@ -3779,6 +3802,18 @@ var convertBackslashToForwardSlash = function convertBackslashToForwardSlash(pat
|
|
|
3779
3802
|
return false;
|
|
3780
3803
|
}
|
|
3781
3804
|
} else return false;
|
|
3805
|
+
},
|
|
3806
|
+
banner: function banner() {
|
|
3807
|
+
if (this.contextData.banner) {
|
|
3808
|
+
console.log('found banner!');
|
|
3809
|
+
return this.getFileFromPath(this.contextData.banner);
|
|
3810
|
+
} else if (this.contextData && this.contextData.views && this.contextData.views.length > 0) {
|
|
3811
|
+
if (this.contextData.views[0].thumbnail) {
|
|
3812
|
+
return this.getFileFromPath(this.contextData.views[0].thumbnail);
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
return this.entry.banner;
|
|
3782
3817
|
}
|
|
3783
3818
|
},
|
|
3784
3819
|
methods: {
|
|
@@ -3870,6 +3905,9 @@ var convertBackslashToForwardSlash = function convertBackslashToForwardSlash(pat
|
|
|
3870
3905
|
generateFileLink: function generateFileLink(sample) {
|
|
3871
3906
|
return "".concat(this.envVars.ROOT_URL, "/file/").concat(sample.discoverId, "/").concat(sample.version, "?path=").concat(this.processPathForUrl(sample.path));
|
|
3872
3907
|
},
|
|
3908
|
+
parseMarkdown: function parseMarkdown(markdown) {
|
|
3909
|
+
return external_isomorphic_dompurify_default.a.sanitize(external_marked_["marked"].parse(markdown));
|
|
3910
|
+
},
|
|
3873
3911
|
openViewFile: function openViewFile(view) {
|
|
3874
3912
|
// note that we assume that the view file is in the same directory as the scaffold (viewUrls take relative paths)
|
|
3875
3913
|
this.entry.viewUrl = "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(this.entry.discoverId, "/").concat(this.entry.version, "/").concat(view.path);
|
|
@@ -3880,8 +3918,8 @@ var convertBackslashToForwardSlash = function convertBackslashToForwardSlash(pat
|
|
|
3880
3918
|
});
|
|
3881
3919
|
// CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=script&lang=js&
|
|
3882
3920
|
/* harmony default export */ var components_ContextCardvue_type_script_lang_js_ = (ContextCardvue_type_script_lang_js_);
|
|
3883
|
-
// EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=
|
|
3884
|
-
var
|
|
3921
|
+
// EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=ab0e1564&scoped=true&lang=css&
|
|
3922
|
+
var ContextCardvue_type_style_index_0_id_ab0e1564_scoped_true_lang_css_ = __webpack_require__("5acf");
|
|
3885
3923
|
|
|
3886
3924
|
// CONCATENATED MODULE: ./src/components/ContextCard.vue
|
|
3887
3925
|
|
|
@@ -3894,11 +3932,11 @@ var ContextCardvue_type_style_index_0_id_4c11fb8b_scoped_true_lang_css_ = __webp
|
|
|
3894
3932
|
|
|
3895
3933
|
var ContextCard_component = normalizeComponent(
|
|
3896
3934
|
components_ContextCardvue_type_script_lang_js_,
|
|
3897
|
-
|
|
3898
|
-
|
|
3935
|
+
ContextCardvue_type_template_id_ab0e1564_scoped_true_render,
|
|
3936
|
+
ContextCardvue_type_template_id_ab0e1564_scoped_true_staticRenderFns,
|
|
3899
3937
|
false,
|
|
3900
3938
|
null,
|
|
3901
|
-
"
|
|
3939
|
+
"ab0e1564",
|
|
3902
3940
|
null
|
|
3903
3941
|
|
|
3904
3942
|
)
|
|
@@ -4438,7 +4476,7 @@ var SidebarContent_component = normalizeComponent(
|
|
|
4438
4476
|
)
|
|
4439
4477
|
|
|
4440
4478
|
/* harmony default export */ var SidebarContent = (SidebarContent_component.exports);
|
|
4441
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4479
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"14083467-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&
|
|
4442
4480
|
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)}
|
|
4443
4481
|
var Tabsvue_type_template_id_d68260c4_scoped_true_staticRenderFns = []
|
|
4444
4482
|
|