@papaemmelab/isabl-web 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/isabl-web.common.js +490 -407
- package/dist/isabl-web.umd.js +490 -407
- package/dist/isabl-web.umd.min.js +2 -2
- package/package.json +1 -1
package/dist/isabl-web.umd.js
CHANGED
|
@@ -91407,7 +91407,7 @@ module.exports = overArg;
|
|
|
91407
91407
|
/***/ "9224":
|
|
91408
91408
|
/***/ (function(module) {
|
|
91409
91409
|
|
|
91410
|
-
module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.
|
|
91410
|
+
module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.22\",\"scripts\":{\"serve\":\"vue-cli-service serve\",\"lint\":\"vue-cli-service lint\",\"build-lib\":\"vue-cli-service build --target lib --name isabl-web ./src/main.js\",\"build-wc\":\"vue-cli-service build --target wc --name isabl-web ./src/components/*.vue\",\"build-wc-async\":\"vue-cli-service build --target wc-async --name isabl-web ./src/components/*.vue\",\"publish-app\":\"yarn version --patch && yarn build-lib && yarn publish --access public\",\"dev\":\"yarn build-lib --watch\",\"test:unit\":\"vue-cli-service test:unit\",\"test:e2e\":\"vue-cli-service test:e2e\",\"test:travis\":\"yarn test:e2e --headless\",\"test:submissions\":\"node tests/utils/create_test_submission.js\",\"test:report-coverage\":\"nyc report --reporter=text-lcov > coverage.lcov && codecov -t $CODECOV_TOKEN\",\"demo\":\"nodemon demo/demo-app.js\"},\"dependencies\":{\"@mdi/font\":\"^7.0.96\",\"ansi_up\":\"^5\",\"axios\":\"^0.21.1\",\"crossfilter\":\"^1.3.12\",\"crossfilter2\":\"^1.4.7\",\"d3-tip\":\"^0.9.1\",\"dc\":\"3.1.2\",\"detect-csv\":\"^1.1.0\",\"js-md5\":\"^0.7.3\",\"minify-css-string\":\"^1.0.0\",\"moment\":\"^2.22.2\",\"register-service-worker\":\"^1.5.2\",\"v-hotkey\":\"^0.6.0\",\"vue\":\"^2.5.16\",\"vue-clipboard2\":\"^0.2.1\",\"vue-gallery\":\"^1.4.0\",\"vue-highlightjs\":\"^1.3.3\",\"vue-json-excel\":\"^0.2.5\",\"vue-observe-visibility\":\"^0.4.6\",\"vue-router\":\"^3.0.1\",\"vue-upload-component\":\"^2.8.11\",\"vuetify\":\"2.6.10\",\"vuex\":\"^3.0.1\",\"vuex-router-sync\":\"^5.0.0\"},\"devDependencies\":{\"@cypress/code-coverage\":\"^1.10.1\",\"@vue/cli-plugin-babel\":\"^3.3.0\",\"@vue/cli-plugin-e2e-cypress\":\"^3.3.0\",\"@vue/cli-plugin-eslint\":\"^3.3.0\",\"@vue/cli-plugin-pwa\":\"^3.3.0\",\"@vue/cli-plugin-unit-jest\":\"^3.3.0\",\"@vue/cli-service\":\"^3.3.0\",\"@vue/eslint-config-prettier\":\"^3.0.5\",\"@vue/test-utils\":\"^1.0.0-beta.20\",\"axios-mock-adapter\":\"^1.15.0\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^23.0.1\",\"babel-plugin-istanbul\":\"^5.2.0\",\"codecov\":\"^3.6.1\",\"eslint-plugin-vuetify\":\"^1.1.0\",\"express\":\"^4.16.3\",\"html-webpack-plugin\":\"^3.2.0\",\"istanbul-lib-coverage\":\"^2.0.5\",\"mini-css-extract-plugin\":\"^0.4.2\",\"nyc\":\"^14.1.1\",\"sass\":\"^1.55.0\",\"sass-loader\":\"^7.0.1\",\"vue-template-compiler\":\"^2.5.16\",\"xlsx-populate\":\"^1.19.1\"},\"browserslist\":[\"> 1%\",\"last 2 versions\",\"not ie <= 8\"],\"main\":\"./dist/isabl-web.umd.min.js\",\"license\":\"MIT\",\"files\":[\"dist/isabl-web*.js\"],\"author\":\"Juan S. Medina - Juan E. Arango\",\"description\":\"Isabl Frontend of the MSK Academic License.\",\"bugs\":{\"url\":\"https://github.com/papaemmelab/isabl_web/issues\"},\"homepage\":\"https://github.com/papaemmelab/isabl_web#readme\"}");
|
|
91411
91411
|
|
|
91412
91412
|
/***/ }),
|
|
91413
91413
|
|
|
@@ -207404,7 +207404,7 @@ var uniq_default = /*#__PURE__*/__webpack_require__.n(uniq);
|
|
|
207404
207404
|
// CONCATENATED MODULE: ./src/utils/tableColumns.js
|
|
207405
207405
|
var cov_2ayhkohved = function () {
|
|
207406
207406
|
var path = "/Users/arangooj/papaemme/isabl_web/src/utils/tableColumns.js";
|
|
207407
|
-
var hash = "
|
|
207407
|
+
var hash = "143b737214c27d4a402dbdc710367ab5de024387";
|
|
207408
207408
|
var global = new Function("return this")();
|
|
207409
207409
|
var gcv = "__coverage__";
|
|
207410
207410
|
var coverageData = {
|
|
@@ -207942,11 +207942,11 @@ var cov_2ayhkohved = function () {
|
|
|
207942
207942
|
},
|
|
207943
207943
|
"53": {
|
|
207944
207944
|
start: {
|
|
207945
|
-
line:
|
|
207945
|
+
line: 341,
|
|
207946
207946
|
column: 8
|
|
207947
207947
|
},
|
|
207948
207948
|
end: {
|
|
207949
|
-
line:
|
|
207949
|
+
line: 341,
|
|
207950
207950
|
column: 72
|
|
207951
207951
|
}
|
|
207952
207952
|
},
|
|
@@ -208478,25 +208478,25 @@ var cov_2ayhkohved = function () {
|
|
|
208478
208478
|
name: "(anonymous_18)",
|
|
208479
208479
|
decl: {
|
|
208480
208480
|
start: {
|
|
208481
|
-
line:
|
|
208481
|
+
line: 340,
|
|
208482
208482
|
column: 16
|
|
208483
208483
|
},
|
|
208484
208484
|
end: {
|
|
208485
|
-
line:
|
|
208485
|
+
line: 340,
|
|
208486
208486
|
column: 17
|
|
208487
208487
|
}
|
|
208488
208488
|
},
|
|
208489
208489
|
loc: {
|
|
208490
208490
|
start: {
|
|
208491
|
-
line:
|
|
208491
|
+
line: 341,
|
|
208492
208492
|
column: 8
|
|
208493
208493
|
},
|
|
208494
208494
|
end: {
|
|
208495
|
-
line:
|
|
208495
|
+
line: 341,
|
|
208496
208496
|
column: 72
|
|
208497
208497
|
}
|
|
208498
208498
|
},
|
|
208499
|
-
line:
|
|
208499
|
+
line: 341
|
|
208500
208500
|
},
|
|
208501
208501
|
"19": {
|
|
208502
208502
|
name: "(anonymous_19)",
|
|
@@ -209025,68 +209025,68 @@ var cov_2ayhkohved = function () {
|
|
|
209025
209025
|
"10": {
|
|
209026
209026
|
loc: {
|
|
209027
209027
|
start: {
|
|
209028
|
-
line:
|
|
209028
|
+
line: 341,
|
|
209029
209029
|
column: 8
|
|
209030
209030
|
},
|
|
209031
209031
|
end: {
|
|
209032
|
-
line:
|
|
209032
|
+
line: 341,
|
|
209033
209033
|
column: 72
|
|
209034
209034
|
}
|
|
209035
209035
|
},
|
|
209036
209036
|
type: "cond-expr",
|
|
209037
209037
|
locations: [{
|
|
209038
209038
|
start: {
|
|
209039
|
-
line:
|
|
209039
|
+
line: 341,
|
|
209040
209040
|
column: 52
|
|
209041
209041
|
},
|
|
209042
209042
|
end: {
|
|
209043
|
-
line:
|
|
209043
|
+
line: 341,
|
|
209044
209044
|
column: 60
|
|
209045
209045
|
}
|
|
209046
209046
|
}, {
|
|
209047
209047
|
start: {
|
|
209048
|
-
line:
|
|
209048
|
+
line: 341,
|
|
209049
209049
|
column: 63
|
|
209050
209050
|
},
|
|
209051
209051
|
end: {
|
|
209052
|
-
line:
|
|
209052
|
+
line: 341,
|
|
209053
209053
|
column: 72
|
|
209054
209054
|
}
|
|
209055
209055
|
}],
|
|
209056
|
-
line:
|
|
209056
|
+
line: 341
|
|
209057
209057
|
},
|
|
209058
209058
|
"11": {
|
|
209059
209059
|
loc: {
|
|
209060
209060
|
start: {
|
|
209061
|
-
line:
|
|
209061
|
+
line: 341,
|
|
209062
209062
|
column: 8
|
|
209063
209063
|
},
|
|
209064
209064
|
end: {
|
|
209065
|
-
line:
|
|
209065
|
+
line: 341,
|
|
209066
209066
|
column: 49
|
|
209067
209067
|
}
|
|
209068
209068
|
},
|
|
209069
209069
|
type: "binary-expr",
|
|
209070
209070
|
locations: [{
|
|
209071
209071
|
start: {
|
|
209072
|
-
line:
|
|
209072
|
+
line: 341,
|
|
209073
209073
|
column: 8
|
|
209074
209074
|
},
|
|
209075
209075
|
end: {
|
|
209076
|
-
line:
|
|
209076
|
+
line: 341,
|
|
209077
209077
|
column: 22
|
|
209078
209078
|
}
|
|
209079
209079
|
}, {
|
|
209080
209080
|
start: {
|
|
209081
|
-
line:
|
|
209081
|
+
line: 341,
|
|
209082
209082
|
column: 26
|
|
209083
209083
|
},
|
|
209084
209084
|
end: {
|
|
209085
|
-
line:
|
|
209085
|
+
line: 341,
|
|
209086
209086
|
column: 49
|
|
209087
209087
|
}
|
|
209088
209088
|
}],
|
|
209089
|
-
line:
|
|
209089
|
+
line: 341
|
|
209090
209090
|
},
|
|
209091
209091
|
"12": {
|
|
209092
209092
|
loc: {
|
|
@@ -209334,7 +209334,7 @@ var cov_2ayhkohved = function () {
|
|
|
209334
209334
|
"15": [0, 0]
|
|
209335
209335
|
},
|
|
209336
209336
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
209337
|
-
hash: "
|
|
209337
|
+
hash: "143b737214c27d4a402dbdc710367ab5de024387"
|
|
209338
209338
|
};
|
|
209339
209339
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
209340
209340
|
|
|
@@ -209702,6 +209702,14 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
|
|
|
209702
209702
|
}, {
|
|
209703
209703
|
verboseName: 'Title',
|
|
209704
209704
|
field: 'title'
|
|
209705
|
+
}, {
|
|
209706
|
+
verboseName: 'Access',
|
|
209707
|
+
field: 'sharing.is_public',
|
|
209708
|
+
accessor: function accessor(value) {
|
|
209709
|
+
cov_2ayhkohved.f[18]++;
|
|
209710
|
+
cov_2ayhkohved.s[53]++;
|
|
209711
|
+
return (cov_2ayhkohved.b[11][0]++, !value.sharing) || (cov_2ayhkohved.b[11][1]++, value.sharing.is_public) ? (cov_2ayhkohved.b[10][0]++, 'Public') : (cov_2ayhkohved.b[10][1]++, 'Private');
|
|
209712
|
+
}
|
|
209705
209713
|
}, {
|
|
209706
209714
|
verboseName: 'Group',
|
|
209707
209715
|
field: 'group.acronym'
|
|
@@ -209733,14 +209741,6 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
|
|
|
209733
209741
|
{
|
|
209734
209742
|
verboseName: 'Description',
|
|
209735
209743
|
field: 'description'
|
|
209736
|
-
}, {
|
|
209737
|
-
verboseName: 'Access',
|
|
209738
|
-
field: 'sharing.is_public',
|
|
209739
|
-
accessor: function accessor(value) {
|
|
209740
|
-
cov_2ayhkohved.f[18]++;
|
|
209741
|
-
cov_2ayhkohved.s[53]++;
|
|
209742
|
-
return (cov_2ayhkohved.b[11][0]++, !value.sharing) || (cov_2ayhkohved.b[11][1]++, value.sharing.is_public) ? (cov_2ayhkohved.b[10][0]++, 'Public') : (cov_2ayhkohved.b[10][1]++, 'Private');
|
|
209743
|
-
}
|
|
209744
209744
|
}].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[12][0]++, tableColumns_settings.customFields.projectFields) || (cov_2ayhkohved.b[12][1]++, {})))),
|
|
209745
209745
|
analyses: [{
|
|
209746
209746
|
verboseName: 'Key',
|
|
@@ -223044,12 +223044,12 @@ var EditProfileModal_component = normalizeComponent(
|
|
|
223044
223044
|
)
|
|
223045
223045
|
|
|
223046
223046
|
/* harmony default export */ var EditProfileModal = (EditProfileModal_component.exports);
|
|
223047
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-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/projects/NewProjectModal.vue?vue&type=template&id=
|
|
223048
|
-
var
|
|
223049
|
-
var
|
|
223047
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-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/projects/NewProjectModal.vue?vue&type=template&id=35e14c2e&
|
|
223048
|
+
var NewProjectModalvue_type_template_id_35e14c2e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-modal',{attrs:{"show-modal":_vm.showModal,"max-width":"800px"},on:{"close-modal":_vm.closeModal},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("Create Project")]},proxy:true},{key:"content",fn:function(){return [_c('v-container',{staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"title",staticClass:"pt-6",attrs:{"v-show":_vm.showModal,"rules":[_vm.rules.required],"error-messages":_vm.errorMessages.title,"label":"Project Title","data-test":"new-project-title-input"},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.submit.apply(null, arguments)}},model:{value:(_vm.project.title),callback:function ($$v) {_vm.$set(_vm.project, "title", $$v)},expression:"project.title"}})],1)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showOptionalFields),expression:"showOptionalFields"}],staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"shortTitle",attrs:{"rules":[_vm.rules.unicode, _vm.rules.min10],"error-messages":_vm.errorMessages.short_title,"label":"Project Short Title","data-test":"new-project-short-input","counter":"","dense":"","maxlength":"30","hint":"Think of the objective of the project."},model:{value:(_vm.project.shortTitle),callback:function ($$v) {_vm.$set(_vm.project, "shortTitle", $$v)},expression:"project.shortTitle"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-select',{ref:"group",attrs:{"items":_vm.groups,"return-object":"","item-text":"slug","label":"Group","dense":"","data-test":"new-project-groups-input"},model:{value:(_vm.project.group),callback:function ($$v) {_vm.$set(_vm.project, "group", $$v)},expression:"project.group"}})],1)],1),_c('div',{staticClass:"text-h6 primary--text pt-8"},[_vm._v("\n Participants\n ")]),_c('v-row',[_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"principalInvestigator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.principal_investigator,"field":"principalInvestigator","label":"Principal Investigator","data-test":"new-project-pi-input","hint":"Laboratory head or principal investigator","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"owner",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.owner,"field":"owner","label":"Project Owner","data-test":"new-project-owner-input","hint":"Who deals with the nitty-gritty of the project","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"coordinator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.coordinator,"field":"coordinator","label":"Coordinator","data-test":"new-project-coord-input","hint":"Project manager or coordinator","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"analyst",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.analyst,"field":"analyst","label":"Data Analyst","data-test":"new-project-analyst-input","hint":"Person responsible for the data analysis"},on:{"update-value":_vm.updateValue}})],1)],1),_c('sharing-settings',{ref:"sharing",staticClass:"pt-8",attrs:{"sharing":_vm.sharing,"error-messages":_vm.errorMessages.sharing},on:{"update-sharing":_vm.updateSharing}})],1)],1)]},proxy:true},{key:"footer-actions",fn:function(){return [_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-optional-btn","text":""},on:{"click":_vm.toggleOptionalFields}},[_vm._v("Optional Fields")]),_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-create-btn","text":""},on:{"click":_vm.submit}},[_vm._v("Create")])]},proxy:true}])})}
|
|
223049
|
+
var NewProjectModalvue_type_template_id_35e14c2e_staticRenderFns = []
|
|
223050
223050
|
|
|
223051
223051
|
|
|
223052
|
-
// CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=
|
|
223052
|
+
// CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=35e14c2e&
|
|
223053
223053
|
|
|
223054
223054
|
// EXTERNAL MODULE: ./node_modules/lodash/has.js
|
|
223055
223055
|
var has = __webpack_require__("3852");
|
|
@@ -226221,7 +226221,7 @@ var SharingSettings_component = normalizeComponent(
|
|
|
226221
226221
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/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/projects/NewProjectModal.vue?vue&type=script&lang=js&
|
|
226222
226222
|
var cov_2q2n13agp2 = function () {
|
|
226223
226223
|
var path = "/Users/arangooj/papaemme/isabl_web/src/components/projects/NewProjectModal.vue";
|
|
226224
|
-
var hash = "
|
|
226224
|
+
var hash = "0895a72217b0e4748c38c745006ed03a3932d37e";
|
|
226225
226225
|
var global = new Function("return this")();
|
|
226226
226226
|
var gcv = "__coverage__";
|
|
226227
226227
|
var coverageData = {
|
|
@@ -227504,10 +227504,10 @@ var cov_2q2n13agp2 = function () {
|
|
|
227504
227504
|
mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiKA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
|
|
227505
227505
|
file: "NewProjectModal.vue",
|
|
227506
227506
|
sourceRoot: "src/components/projects",
|
|
227507
|
-
sourcesContent: ["<template>\n <base-modal\n :show-modal=\"showModal\"\n max-width=\"800px\"\n @close-modal=\"closeModal\"\n >\n <template v-slot:title>Create Project</template>\n\n <template v-slot:content>\n <v-container\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"title\"\n v-model=\"project.title\"\n :v-show=\"showModal\"\n :rules=\"[rules.required]\"\n :error-messages=\"errorMessages.title\"\n label=\"Project Title\"\n data-test=\"new-project-title-input\"\n class=\"pt-6\"\n @keyup.enter=\"submit\"\n />\n </v-col>\n </v-row>\n\n <div\n v-show=\"showOptionalFields\"\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"shortTitle\"\n v-model=\"project.shortTitle\"\n :rules=\"[rules.unicode, rules.min10]\"\n :error-messages=\"errorMessages.short_title\"\n label=\"Project Short Title\"\n data-test=\"new-project-short-input\"\n counter\n dense\n maxlength=\"30\"\n hint=\"Think of the objective of the project.\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <v-select\n ref=\"group\"\n v-model=\"project.group\"\n :items=\"groups\"\n return-object\n item-text=\"slug\"\n label=\"Group\"\n dense\n data-test=\"new-project-groups-input\"\n />\n </v-col>\n </v-row>\n\n <div class=\"text-h6 primary--text pt-8\">\n Participants\n </div>\n\n <v-row>\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"principalInvestigator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.principal_investigator\"\n field=\"principalInvestigator\"\n label=\"Principal Investigator\"\n data-test=\"new-project-pi-input\"\n hint=\"Laboratory head or principal investigator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"owner\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.owner\"\n field=\"owner\"\n label=\"Project Owner\"\n data-test=\"new-project-owner-input\"\n hint=\"Who deals with the nitty-gritty of the project\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"coordinator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.coordinator\"\n field=\"coordinator\"\n label=\"Coordinator\"\n data-test=\"new-project-coord-input\"\n hint=\"Project manager or coordinator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"analyst\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.analyst\"\n field=\"analyst\"\n label=\"Data Analyst\"\n data-test=\"new-project-analyst-input\"\n hint=\"Person responsible for the data analysis\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <sharing-settings\n ref=\"sharing\"\n :sharing=\"sharing\"\n :error-messages=\"errorMessages.sharing\"\n class=\"pt-8\"\n @update-sharing=\"updateSharing\"\n />\n\n </div>\n\n </v-container>\n </template>\n\n <template v-slot:footer-actions>\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-optional-btn\"\n text\n @click=\"toggleOptionalFields\"\n >Optional Fields</v-btn>\n\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-create-btn\"\n text\n @click=\"submit\"\n >Create</v-btn>\n </template>\n </base-modal>\n</template>\n\n<script>\nimport has from 'lodash/has'\n\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport GroupSearchInput from '@/components/projects/GroupSearchInput'\nimport UserSearchInput from '@/components/projects/UserSearchInput'\nimport SharingSettings from '@/components/projects/SharingSettings'\nimport rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\nimport { snakifyKeys, camelifyKeys } from '@/utils/helpers'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput,\n SharingSettings\n },\n props: {\n showModal: {\n type: Boolean,\n default: false,\n required: true\n },\n projects: {\n type: Array,\n default: () => []\n }\n },\n data() {\n const sharing = { isPublic: true, canRead: [], canShare: []}\n const project = { sharing: snakifyKeys(sharing), }\n return {\n isLoading: false,\n errorMessages: {},\n formHasErrors: false,\n fieldsToValidate: [\n 'title',\n 'shortTitle',\n 'group',\n 'principalInvestigator',\n 'owner',\n 'coordinator',\n 'analyst',\n 'sharing'\n ],\n groups: [],\n project,\n sharing,\n refs: {},\n rules,\n showOptionalFields:
|
|
227507
|
+
sourcesContent: ["<template>\n <base-modal\n :show-modal=\"showModal\"\n max-width=\"800px\"\n @close-modal=\"closeModal\"\n >\n <template v-slot:title>Create Project</template>\n\n <template v-slot:content>\n <v-container\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"title\"\n v-model=\"project.title\"\n :v-show=\"showModal\"\n :rules=\"[rules.required]\"\n :error-messages=\"errorMessages.title\"\n label=\"Project Title\"\n data-test=\"new-project-title-input\"\n class=\"pt-6\"\n @keyup.enter=\"submit\"\n />\n </v-col>\n </v-row>\n\n <div\n v-show=\"showOptionalFields\"\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"shortTitle\"\n v-model=\"project.shortTitle\"\n :rules=\"[rules.unicode, rules.min10]\"\n :error-messages=\"errorMessages.short_title\"\n label=\"Project Short Title\"\n data-test=\"new-project-short-input\"\n counter\n dense\n maxlength=\"30\"\n hint=\"Think of the objective of the project.\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <v-select\n ref=\"group\"\n v-model=\"project.group\"\n :items=\"groups\"\n return-object\n item-text=\"slug\"\n label=\"Group\"\n dense\n data-test=\"new-project-groups-input\"\n />\n </v-col>\n </v-row>\n\n <div class=\"text-h6 primary--text pt-8\">\n Participants\n </div>\n\n <v-row>\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"principalInvestigator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.principal_investigator\"\n field=\"principalInvestigator\"\n label=\"Principal Investigator\"\n data-test=\"new-project-pi-input\"\n hint=\"Laboratory head or principal investigator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"owner\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.owner\"\n field=\"owner\"\n label=\"Project Owner\"\n data-test=\"new-project-owner-input\"\n hint=\"Who deals with the nitty-gritty of the project\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"coordinator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.coordinator\"\n field=\"coordinator\"\n label=\"Coordinator\"\n data-test=\"new-project-coord-input\"\n hint=\"Project manager or coordinator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"analyst\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.analyst\"\n field=\"analyst\"\n label=\"Data Analyst\"\n data-test=\"new-project-analyst-input\"\n hint=\"Person responsible for the data analysis\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <sharing-settings\n ref=\"sharing\"\n :sharing=\"sharing\"\n :error-messages=\"errorMessages.sharing\"\n class=\"pt-8\"\n @update-sharing=\"updateSharing\"\n />\n\n </div>\n\n </v-container>\n </template>\n\n <template v-slot:footer-actions>\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-optional-btn\"\n text\n @click=\"toggleOptionalFields\"\n >Optional Fields</v-btn>\n\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-create-btn\"\n text\n @click=\"submit\"\n >Create</v-btn>\n </template>\n </base-modal>\n</template>\n\n<script>\nimport has from 'lodash/has'\n\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport GroupSearchInput from '@/components/projects/GroupSearchInput'\nimport UserSearchInput from '@/components/projects/UserSearchInput'\nimport SharingSettings from '@/components/projects/SharingSettings'\nimport rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\nimport { snakifyKeys, camelifyKeys } from '@/utils/helpers'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput,\n SharingSettings\n },\n props: {\n showModal: {\n type: Boolean,\n default: false,\n required: true\n },\n projects: {\n type: Array,\n default: () => []\n }\n },\n data() {\n const sharing = { isPublic: true, canRead: [], canShare: []}\n const project = { sharing: snakifyKeys(sharing), }\n return {\n isLoading: false,\n errorMessages: {},\n formHasErrors: false,\n fieldsToValidate: [\n 'title',\n 'shortTitle',\n 'group',\n 'principalInvestigator',\n 'owner',\n 'coordinator',\n 'analyst',\n 'sharing'\n ],\n groups: [],\n project,\n sharing,\n refs: {},\n rules,\n showOptionalFields: false,\n users: [],\n usersQuery: '',\n camelifyKeys,\n }\n },\n watch: {\n showModal(value) {\n if (value) {\n this.fetchGroups()\n // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587\n if (this.$refs.title) {\n this.$nextTick(this.$refs.title.focus)\n this.resetForm()\n }\n }\n }\n },\n updated() {\n this.attachFieldRefs()\n },\n methods: {\n attachFieldRefs() {\n // Map all local and nested inputs to local 'refs' object\n this.fieldsToValidate.forEach(field => {\n if (has(this.$refs[field], 'reset')) {\n this.refs[field] = this.$refs[field]\n } else if (has(this.$refs[field], '$refs.userSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.userSearchInput\n } else if (has(this.$refs[field], '$refs.groupSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.groupSearchInput\n } else if (has(this.$refs, `${field}.$refs.canRead.$refs.userSearchInput.reset`)) {\n this.refs['sharing.isPublic'] = this.$refs[field].$refs.isPublic\n this.refs['sharing.canRead'] = this.$refs[field].$refs.canRead.$refs.userSearchInput\n this.refs['sharing.isShare'] = this.$refs[field].$refs.canShare.$refs.userSearchInput\n }\n })\n },\n async fetchGroups() {\n if (!this.groups.length) {\n const response = await fetchListRecords('groups')\n this.groups = response.results\n }\n },\n toggleOptionalFields() {\n this.showOptionalFields = !this.showOptionalFields\n this.$nextTick(this.$refs.title.focus)\n this.$nextTick(this.$refs.title.resetValidation)\n },\n resetForm() {\n this.formHasErrors = false\n Object.values(this.refs).forEach(ref => ref.reset())\n },\n closeModal() {\n this.resetForm()\n this.$emit('close-modal')\n },\n updateValue(data) {\n this.project = {\n ...this.project,\n ...data\n }\n },\n updateSharing(data) {\n this.sharing = {\n ...this.sharing,\n ...data\n }\n this.project = {\n ...this.project,\n sharing: snakifyKeys(this.sharing),\n }\n },\n async submit() {\n this.formHasErrors = false\n this.attachFieldRefs()\n Object.values(this.refs).forEach(ref => ref.validate(true))\n\n if (!this.formHasErrors) {\n createRecord('projects', this.project)\n .then(response => {\n const projectId = this.$get(response, 'pk', '')\n this.$store.dispatch(SHOW_ALERT, {\n message: `Project ${projectId} was succesfully created.`\n })\n\n this.$store.dispatch(SHOW_PANEL, {\n project: projectId\n })\n this.closeModal()\n })\n .catch(error => {\n if (error.response) {\n this.errorMessages = error.response.data\n this.$store.dispatch(SHOW_ALERT, {\n error: 'The project could not be created. Please try again.'\n })\n }\n })\n }\n },\n }\n}\n</script>\n\n<style lang=\"scss\">\n.v-expansion-panel__header {\n padding: 5px !important;\n}\n</style>\n"]
|
|
227508
227508
|
},
|
|
227509
227509
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
227510
|
-
hash: "
|
|
227510
|
+
hash: "0895a72217b0e4748c38c745006ed03a3932d37e"
|
|
227511
227511
|
};
|
|
227512
227512
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
227513
227513
|
|
|
@@ -227744,7 +227744,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
|
|
|
227744
227744
|
sharing: sharing,
|
|
227745
227745
|
refs: {},
|
|
227746
227746
|
rules: rules,
|
|
227747
|
-
showOptionalFields:
|
|
227747
|
+
showOptionalFields: false,
|
|
227748
227748
|
users: [],
|
|
227749
227749
|
usersQuery: '',
|
|
227750
227750
|
camelifyKeys: helpers["a" /* camelifyKeys */]
|
|
@@ -228012,8 +228012,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
|
|
|
228012
228012
|
|
|
228013
228013
|
var NewProjectModal_component = normalizeComponent(
|
|
228014
228014
|
projects_NewProjectModalvue_type_script_lang_js_,
|
|
228015
|
-
|
|
228016
|
-
|
|
228015
|
+
NewProjectModalvue_type_template_id_35e14c2e_render,
|
|
228016
|
+
NewProjectModalvue_type_template_id_35e14c2e_staticRenderFns,
|
|
228017
228017
|
false,
|
|
228018
228018
|
null,
|
|
228019
228019
|
null,
|
|
@@ -301046,18 +301046,18 @@ var BioModelPanelvue_type_template_id_b52cff22_staticRenderFns = []
|
|
|
301046
301046
|
|
|
301047
301047
|
// CONCATENATED MODULE: ./src/components/bioModels/BioModelPanel.vue?vue&type=template&id=b52cff22&
|
|
301048
301048
|
|
|
301049
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-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/bioModels/BioModelTree.vue?vue&type=template&id=
|
|
301050
|
-
var
|
|
301049
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-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/bioModels/BioModelTree.vue?vue&type=template&id=50c9e1d2&
|
|
301050
|
+
var BioModelTreevue_type_template_id_50c9e1d2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{staticClass:"isabl-base-card",attrs:{"flat":"","data-test":"biomodel-tree"}},[_c('base-section-title',{attrs:{"show-more":_vm.showTree},on:{"toggle-show-more":function($event){_vm.showTree = !_vm.showTree}},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("Samples Tree")]},proxy:true},{key:"actions",fn:function(){return [_c('div',[(_vm.isBigTree)?_c('v-btn',{staticClass:"table-action-btn pull-right ma-0",attrs:{"fab":"","outlined":"","color":"primary"},on:{"click":function($event){_vm.showFullHeight = !_vm.showFullHeight
|
|
301051
301051
|
_vm.scrollToCurrentNode()}}},[_c('v-icon',{attrs:{"color":"primary"}},[_vm._v(_vm._s(_vm.showFullHeight ? 'expand_less' : 'expand_more'))])],1):_vm._e()],1)]},proxy:true}])}),_c('v-row',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTree),expression:"showTree"}],staticClass:"individual-tree-div ma-0",style:(_vm.showFullHeight ? '' : 'max-height: 300px;'),attrs:{"id":"tree-div"}},[_c('v-col',{staticClass:"individual-tree text-center pa-0 ma-0"})],1)],1)}
|
|
301052
|
-
var
|
|
301052
|
+
var BioModelTreevue_type_template_id_50c9e1d2_staticRenderFns = []
|
|
301053
301053
|
|
|
301054
301054
|
|
|
301055
|
-
// CONCATENATED MODULE: ./src/components/bioModels/BioModelTree.vue?vue&type=template&id=
|
|
301055
|
+
// CONCATENATED MODULE: ./src/components/bioModels/BioModelTree.vue?vue&type=template&id=50c9e1d2&
|
|
301056
301056
|
|
|
301057
301057
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/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/bioModels/BioModelTree.vue?vue&type=script&lang=js&
|
|
301058
301058
|
var cov_2f0u9tmiep = function () {
|
|
301059
301059
|
var path = "/Users/arangooj/papaemme/isabl_web/src/components/bioModels/BioModelTree.vue";
|
|
301060
|
-
var hash = "
|
|
301060
|
+
var hash = "35800f777c9e06999d7627afedbe72c07beb2e2a";
|
|
301061
301061
|
var global = new Function("return this")();
|
|
301062
301062
|
var gcv = "__coverage__";
|
|
301063
301063
|
var coverageData = {
|
|
@@ -303099,7 +303099,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
303099
303099
|
column: 6
|
|
303100
303100
|
},
|
|
303101
303101
|
end: {
|
|
303102
|
-
line:
|
|
303102
|
+
line: 581,
|
|
303103
303103
|
column: 7
|
|
303104
303104
|
}
|
|
303105
303105
|
},
|
|
@@ -303129,87 +303129,97 @@ var cov_2f0u9tmiep = function () {
|
|
|
303129
303129
|
column: 8
|
|
303130
303130
|
},
|
|
303131
303131
|
end: {
|
|
303132
|
+
line: 576,
|
|
303133
|
+
column: 50
|
|
303134
|
+
}
|
|
303135
|
+
},
|
|
303136
|
+
"207": {
|
|
303137
|
+
start: {
|
|
303132
303138
|
line: 578,
|
|
303139
|
+
column: 8
|
|
303140
|
+
},
|
|
303141
|
+
end: {
|
|
303142
|
+
line: 580,
|
|
303133
303143
|
column: 10
|
|
303134
303144
|
}
|
|
303135
303145
|
},
|
|
303136
|
-
"
|
|
303146
|
+
"208": {
|
|
303137
303147
|
start: {
|
|
303138
|
-
line:
|
|
303148
|
+
line: 584,
|
|
303139
303149
|
column: 6
|
|
303140
303150
|
},
|
|
303141
303151
|
end: {
|
|
303142
|
-
line:
|
|
303152
|
+
line: 590,
|
|
303143
303153
|
column: 8
|
|
303144
303154
|
}
|
|
303145
303155
|
},
|
|
303146
|
-
"
|
|
303156
|
+
"209": {
|
|
303147
303157
|
start: {
|
|
303148
|
-
line:
|
|
303158
|
+
line: 585,
|
|
303149
303159
|
column: 8
|
|
303150
303160
|
},
|
|
303151
303161
|
end: {
|
|
303152
|
-
line:
|
|
303162
|
+
line: 589,
|
|
303153
303163
|
column: 17
|
|
303154
303164
|
}
|
|
303155
303165
|
},
|
|
303156
|
-
"
|
|
303166
|
+
"210": {
|
|
303157
303167
|
start: {
|
|
303158
|
-
line:
|
|
303168
|
+
line: 586,
|
|
303159
303169
|
column: 10
|
|
303160
303170
|
},
|
|
303161
303171
|
end: {
|
|
303162
|
-
line:
|
|
303172
|
+
line: 589,
|
|
303163
303173
|
column: 17
|
|
303164
303174
|
}
|
|
303165
303175
|
},
|
|
303166
|
-
"
|
|
303176
|
+
"211": {
|
|
303167
303177
|
start: {
|
|
303168
|
-
line:
|
|
303178
|
+
line: 587,
|
|
303169
303179
|
column: 12
|
|
303170
303180
|
},
|
|
303171
303181
|
end: {
|
|
303172
|
-
line:
|
|
303182
|
+
line: 588,
|
|
303173
303183
|
column: 39
|
|
303174
303184
|
}
|
|
303175
303185
|
},
|
|
303176
|
-
"
|
|
303186
|
+
"212": {
|
|
303177
303187
|
start: {
|
|
303178
|
-
line:
|
|
303188
|
+
line: 593,
|
|
303179
303189
|
column: 23
|
|
303180
303190
|
},
|
|
303181
303191
|
end: {
|
|
303182
|
-
line:
|
|
303192
|
+
line: 603,
|
|
303183
303193
|
column: 7
|
|
303184
303194
|
}
|
|
303185
303195
|
},
|
|
303186
|
-
"
|
|
303196
|
+
"213": {
|
|
303187
303197
|
start: {
|
|
303188
|
-
line:
|
|
303198
|
+
line: 594,
|
|
303189
303199
|
column: 20
|
|
303190
303200
|
},
|
|
303191
303201
|
end: {
|
|
303192
|
-
line:
|
|
303202
|
+
line: 594,
|
|
303193
303203
|
column: 48
|
|
303194
303204
|
}
|
|
303195
303205
|
},
|
|
303196
|
-
"
|
|
303206
|
+
"214": {
|
|
303197
303207
|
start: {
|
|
303198
|
-
line:
|
|
303208
|
+
line: 595,
|
|
303199
303209
|
column: 8
|
|
303200
303210
|
},
|
|
303201
303211
|
end: {
|
|
303202
|
-
line:
|
|
303212
|
+
line: 602,
|
|
303203
303213
|
column: 11
|
|
303204
303214
|
}
|
|
303205
303215
|
},
|
|
303206
|
-
"
|
|
303216
|
+
"215": {
|
|
303207
303217
|
start: {
|
|
303208
|
-
line:
|
|
303218
|
+
line: 604,
|
|
303209
303219
|
column: 6
|
|
303210
303220
|
},
|
|
303211
303221
|
end: {
|
|
303212
|
-
line:
|
|
303222
|
+
line: 617,
|
|
303213
303223
|
column: 7
|
|
303214
303224
|
}
|
|
303215
303225
|
}
|
|
@@ -304313,7 +304323,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
304313
304323
|
column: 19
|
|
304314
304324
|
},
|
|
304315
304325
|
end: {
|
|
304316
|
-
line:
|
|
304326
|
+
line: 582,
|
|
304317
304327
|
column: 5
|
|
304318
304328
|
}
|
|
304319
304329
|
},
|
|
@@ -304323,121 +304333,121 @@ var cov_2f0u9tmiep = function () {
|
|
|
304323
304333
|
name: "(anonymous_46)",
|
|
304324
304334
|
decl: {
|
|
304325
304335
|
start: {
|
|
304326
|
-
line:
|
|
304336
|
+
line: 583,
|
|
304327
304337
|
column: 4
|
|
304328
304338
|
},
|
|
304329
304339
|
end: {
|
|
304330
|
-
line:
|
|
304340
|
+
line: 583,
|
|
304331
304341
|
column: 5
|
|
304332
304342
|
}
|
|
304333
304343
|
},
|
|
304334
304344
|
loc: {
|
|
304335
304345
|
start: {
|
|
304336
|
-
line:
|
|
304346
|
+
line: 583,
|
|
304337
304347
|
column: 26
|
|
304338
304348
|
},
|
|
304339
304349
|
end: {
|
|
304340
|
-
line:
|
|
304350
|
+
line: 591,
|
|
304341
304351
|
column: 5
|
|
304342
304352
|
}
|
|
304343
304353
|
},
|
|
304344
|
-
line:
|
|
304354
|
+
line: 583
|
|
304345
304355
|
},
|
|
304346
304356
|
"47": {
|
|
304347
304357
|
name: "(anonymous_47)",
|
|
304348
304358
|
decl: {
|
|
304349
304359
|
start: {
|
|
304350
|
-
line:
|
|
304360
|
+
line: 584,
|
|
304351
304361
|
column: 21
|
|
304352
304362
|
},
|
|
304353
304363
|
end: {
|
|
304354
|
-
line:
|
|
304364
|
+
line: 584,
|
|
304355
304365
|
column: 22
|
|
304356
304366
|
}
|
|
304357
304367
|
},
|
|
304358
304368
|
loc: {
|
|
304359
304369
|
start: {
|
|
304360
|
-
line:
|
|
304370
|
+
line: 584,
|
|
304361
304371
|
column: 27
|
|
304362
304372
|
},
|
|
304363
304373
|
end: {
|
|
304364
|
-
line:
|
|
304374
|
+
line: 590,
|
|
304365
304375
|
column: 7
|
|
304366
304376
|
}
|
|
304367
304377
|
},
|
|
304368
|
-
line:
|
|
304378
|
+
line: 584
|
|
304369
304379
|
},
|
|
304370
304380
|
"48": {
|
|
304371
304381
|
name: "(anonymous_48)",
|
|
304372
304382
|
decl: {
|
|
304373
304383
|
start: {
|
|
304374
|
-
line:
|
|
304384
|
+
line: 586,
|
|
304375
304385
|
column: 21
|
|
304376
304386
|
},
|
|
304377
304387
|
end: {
|
|
304378
|
-
line:
|
|
304388
|
+
line: 586,
|
|
304379
304389
|
column: 22
|
|
304380
304390
|
}
|
|
304381
304391
|
},
|
|
304382
304392
|
loc: {
|
|
304383
304393
|
start: {
|
|
304384
|
-
line:
|
|
304394
|
+
line: 586,
|
|
304385
304395
|
column: 27
|
|
304386
304396
|
},
|
|
304387
304397
|
end: {
|
|
304388
|
-
line:
|
|
304398
|
+
line: 589,
|
|
304389
304399
|
column: 11
|
|
304390
304400
|
}
|
|
304391
304401
|
},
|
|
304392
|
-
line:
|
|
304402
|
+
line: 586
|
|
304393
304403
|
},
|
|
304394
304404
|
"49": {
|
|
304395
304405
|
name: "(anonymous_49)",
|
|
304396
304406
|
decl: {
|
|
304397
304407
|
start: {
|
|
304398
|
-
line:
|
|
304408
|
+
line: 592,
|
|
304399
304409
|
column: 4
|
|
304400
304410
|
},
|
|
304401
304411
|
end: {
|
|
304402
|
-
line:
|
|
304412
|
+
line: 592,
|
|
304403
304413
|
column: 5
|
|
304404
304414
|
}
|
|
304405
304415
|
},
|
|
304406
304416
|
loc: {
|
|
304407
304417
|
start: {
|
|
304408
|
-
line:
|
|
304418
|
+
line: 592,
|
|
304409
304419
|
column: 18
|
|
304410
304420
|
},
|
|
304411
304421
|
end: {
|
|
304412
|
-
line:
|
|
304422
|
+
line: 618,
|
|
304413
304423
|
column: 5
|
|
304414
304424
|
}
|
|
304415
304425
|
},
|
|
304416
|
-
line:
|
|
304426
|
+
line: 592
|
|
304417
304427
|
},
|
|
304418
304428
|
"50": {
|
|
304419
304429
|
name: "(anonymous_50)",
|
|
304420
304430
|
decl: {
|
|
304421
304431
|
start: {
|
|
304422
|
-
line:
|
|
304432
|
+
line: 593,
|
|
304423
304433
|
column: 23
|
|
304424
304434
|
},
|
|
304425
304435
|
end: {
|
|
304426
|
-
line:
|
|
304436
|
+
line: 593,
|
|
304427
304437
|
column: 24
|
|
304428
304438
|
}
|
|
304429
304439
|
},
|
|
304430
304440
|
loc: {
|
|
304431
304441
|
start: {
|
|
304432
|
-
line:
|
|
304442
|
+
line: 593,
|
|
304433
304443
|
column: 45
|
|
304434
304444
|
},
|
|
304435
304445
|
end: {
|
|
304436
|
-
line:
|
|
304446
|
+
line: 603,
|
|
304437
304447
|
column: 7
|
|
304438
304448
|
}
|
|
304439
304449
|
},
|
|
304440
|
-
line:
|
|
304450
|
+
line: 593
|
|
304441
304451
|
}
|
|
304442
304452
|
},
|
|
304443
304453
|
branchMap: {
|
|
@@ -306140,7 +306150,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
306140
306150
|
column: 6
|
|
306141
306151
|
},
|
|
306142
306152
|
end: {
|
|
306143
|
-
line:
|
|
306153
|
+
line: 581,
|
|
306144
306154
|
column: 7
|
|
306145
306155
|
}
|
|
306146
306156
|
},
|
|
@@ -306151,7 +306161,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
306151
306161
|
column: 6
|
|
306152
306162
|
},
|
|
306153
306163
|
end: {
|
|
306154
|
-
line:
|
|
306164
|
+
line: 581,
|
|
306155
306165
|
column: 7
|
|
306156
306166
|
}
|
|
306157
306167
|
}, {
|
|
@@ -306160,7 +306170,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
306160
306170
|
column: 6
|
|
306161
306171
|
},
|
|
306162
306172
|
end: {
|
|
306163
|
-
line:
|
|
306173
|
+
line: 581,
|
|
306164
306174
|
column: 7
|
|
306165
306175
|
}
|
|
306166
306176
|
}],
|
|
@@ -306169,68 +306179,68 @@ var cov_2f0u9tmiep = function () {
|
|
|
306169
306179
|
"52": {
|
|
306170
306180
|
loc: {
|
|
306171
306181
|
start: {
|
|
306172
|
-
line:
|
|
306182
|
+
line: 585,
|
|
306173
306183
|
column: 8
|
|
306174
306184
|
},
|
|
306175
306185
|
end: {
|
|
306176
|
-
line:
|
|
306186
|
+
line: 589,
|
|
306177
306187
|
column: 17
|
|
306178
306188
|
}
|
|
306179
306189
|
},
|
|
306180
306190
|
type: "if",
|
|
306181
306191
|
locations: [{
|
|
306182
306192
|
start: {
|
|
306183
|
-
line:
|
|
306193
|
+
line: 585,
|
|
306184
306194
|
column: 8
|
|
306185
306195
|
},
|
|
306186
306196
|
end: {
|
|
306187
|
-
line:
|
|
306197
|
+
line: 589,
|
|
306188
306198
|
column: 17
|
|
306189
306199
|
}
|
|
306190
306200
|
}, {
|
|
306191
306201
|
start: {
|
|
306192
|
-
line:
|
|
306202
|
+
line: 585,
|
|
306193
306203
|
column: 8
|
|
306194
306204
|
},
|
|
306195
306205
|
end: {
|
|
306196
|
-
line:
|
|
306206
|
+
line: 589,
|
|
306197
306207
|
column: 17
|
|
306198
306208
|
}
|
|
306199
306209
|
}],
|
|
306200
|
-
line:
|
|
306210
|
+
line: 585
|
|
306201
306211
|
},
|
|
306202
306212
|
"53": {
|
|
306203
306213
|
loc: {
|
|
306204
306214
|
start: {
|
|
306205
|
-
line:
|
|
306215
|
+
line: 595,
|
|
306206
306216
|
column: 15
|
|
306207
306217
|
},
|
|
306208
306218
|
end: {
|
|
306209
|
-
line:
|
|
306219
|
+
line: 602,
|
|
306210
306220
|
column: 11
|
|
306211
306221
|
}
|
|
306212
306222
|
},
|
|
306213
306223
|
type: "cond-expr",
|
|
306214
306224
|
locations: [{
|
|
306215
306225
|
start: {
|
|
306216
|
-
line:
|
|
306226
|
+
line: 596,
|
|
306217
306227
|
column: 12
|
|
306218
306228
|
},
|
|
306219
306229
|
end: {
|
|
306220
|
-
line:
|
|
306230
|
+
line: 596,
|
|
306221
306231
|
column: 14
|
|
306222
306232
|
}
|
|
306223
306233
|
}, {
|
|
306224
306234
|
start: {
|
|
306225
|
-
line:
|
|
306235
|
+
line: 597,
|
|
306226
306236
|
column: 12
|
|
306227
306237
|
},
|
|
306228
306238
|
end: {
|
|
306229
|
-
line:
|
|
306239
|
+
line: 602,
|
|
306230
306240
|
column: 11
|
|
306231
306241
|
}
|
|
306232
306242
|
}],
|
|
306233
|
-
line:
|
|
306243
|
+
line: 595
|
|
306234
306244
|
}
|
|
306235
306245
|
},
|
|
306236
306246
|
s: {
|
|
@@ -306448,7 +306458,8 @@ var cov_2f0u9tmiep = function () {
|
|
|
306448
306458
|
"211": 0,
|
|
306449
306459
|
"212": 0,
|
|
306450
306460
|
"213": 0,
|
|
306451
|
-
"214": 0
|
|
306461
|
+
"214": 0,
|
|
306462
|
+
"215": 0
|
|
306452
306463
|
},
|
|
306453
306464
|
f: {
|
|
306454
306465
|
"0": 0,
|
|
@@ -306563,13 +306574,13 @@ var cov_2f0u9tmiep = function () {
|
|
|
306563
306574
|
version: 3,
|
|
306564
306575
|
sources: ["BioModelTree.vue"],
|
|
306565
306576
|
names: [],
|
|
306566
|
-
mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
|
|
306577
|
+
mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
|
|
306567
306578
|
file: "BioModelTree.vue",
|
|
306568
306579
|
sourceRoot: "src/components/bioModels",
|
|
306569
|
-
sourcesContent: ["<template>\n <v-card\n flat\n class=\"isabl-base-card\"\n data-test=\"biomodel-tree\"\n >\n <base-section-title\n :show-more=\"showTree\"\n @toggle-show-more=\"showTree = !showTree\"\n >\n <template v-slot:title>Samples Tree</template>\n <template v-slot:actions>\n <div>\n <v-btn\n v-if=\"isBigTree\"\n class=\"table-action-btn pull-right ma-0\"\n fab\n outlined\n color=\"primary\"\n @click=\"\n showFullHeight = !showFullHeight\n scrollToCurrentNode()\n \"\n >\n <v-icon color=\"primary\">{{ showFullHeight ? 'expand_less' : 'expand_more' }}</v-icon>\n </v-btn>\n </div>\n </template>\n </base-section-title>\n\n <!-- Graph -->\n <v-row\n v-show=\"showTree\"\n id=\"tree-div\"\n :style=\"showFullHeight ? '' : 'max-height: 300px;'\"\n class=\"individual-tree-div ma-0\"\n >\n <v-col class=\"individual-tree text-center pa-0 ma-0\" />\n </v-row>\n\n </v-card>\n</template>\n\n<script>\n/*\n Vue implementation of D3 Tree from:\n https://beta.observablehq.com/@asktree/interactive-tree-diagram-d3v4-v5\n*/\n\nimport { fetchIndividualTree } from '@/utils/api'\nimport { mapGetters } from 'vuex'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\nimport BasePanel from '@/components/base/BasePanel.vue'\nimport BaseSectionTitle from '@/components/base/BaseSectionTitle'\nimport {\n tree as d3Tree,\n event as d3Event,\n select as d3Select,\n hierarchy as d3Hierarchy,\n linkHorizontal as d3linkHorizontal\n} from 'd3'\n\nexport default {\n name: 'BioModelTree',\n components: {\n BasePanel,\n BaseSectionTitle\n },\n data() {\n const { treeIcons } = this.$settings\n return {\n loading: false,\n duration: 0,\n data: null,\n root: null,\n tree: null,\n graph: null,\n species: null,\n dataNodes: null,\n showTree: true,\n isBigTree: false,\n showFullHeight: true,\n skipToScrollNode: false,\n currentNode: null,\n nodeSize: Object.keys(treeIcons).length ? 15 : 5,\n margin: { top: 20, bottom: 20, right: 0, left: 105 },\n diagonal: d3linkHorizontal()\n .x(d => d.y)\n .y(d => d.x),\n treeIcons\n }\n },\n computed: {\n ...mapGetters({\n currentModel: 'bioModelId',\n individual: 'individualId'\n })\n },\n watch: {\n individual(value, oldValue) {\n if (value !== oldValue) {\n this.fetchData()\n }\n },\n currentModel() {\n this.data && this.update(this.data)\n }\n },\n mounted() {\n this.fetchData()\n },\n methods: {\n buildTree() {\n let dx = Object.keys(this.treeIcons).length ? this.nodeSize + 4 : 18\n let dy = 0\n let iconSize = this.nodeSize\n\n // set width\n this.width = 540 - this.margin.right - this.margin.left\n this.tree = d3Tree()\n .nodeSize([dx, dy])\n .separation((a, b) => (a.parent == b.parent ? 1.75 : 2.5))\n\n // clear div\n let div = d3Select(this.$el).select('.individual-tree')\n div.selectAll('svg').remove()\n\n // create svg\n this.svg = div\n .append('svg')\n .attr('width', this.width)\n .attr('height', dx)\n .attr('viewBox', [-this.margin.left, -this.margin.top, this.width, dx])\n .style('font', '10px sans-serif')\n .style('user-select', 'none')\n\n // create filters\n this.svg\n .append('svg:filter')\n .attr('id', 'invertColor')\n .append('feColorMatrix')\n .attr('in', 'SourceGraphic')\n .attr('type', 'matrix')\n .attr('values', '-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0')\n\n // create image definitions\n const defs = this.svg.append('svg:defs')\n Object.keys(this.treeIcons).forEach(model => {\n const pattern = defs\n .append('svg:pattern')\n .attr('id', `icon-${model}`)\n .attr('width', iconSize)\n .attr('height', iconSize)\n .attr('patternUnits', 'objectBoundingBox')\n\n pattern\n .append('rect')\n .attr('width', '100%')\n .attr('height', '100%')\n .attr('fill', 'var(--v-primary-base)')\n\n pattern\n .append('svg:image')\n .attr('xlink:href', this.treeIcons[model])\n .attr('width', iconSize)\n .attr('height', iconSize)\n .attr('x', iconSize / 2)\n .attr('y', iconSize / 2)\n .attr('filter', 'url(#invertColor)')\n })\n\n // create links\n this.gLink = this.svg\n .append('g')\n .attr('fill', 'none')\n .attr('stroke', '#555')\n .attr('stroke-opacity', 0.4)\n .attr('stroke-width', 1.5)\n\n // create tooltip\n this.tooltip = d3Select('body')\n .append('div')\n .style('position', 'absolute')\n .style('z-index', '9999')\n .style('visibility', 'hidden')\n\n // create nodes\n this.gNode = this.svg.append('g')\n\n // build root\n this.root = d3Hierarchy(this.data, d => d.children)\n this.root.x0 = dy\n this.root.y0 = 0\n this.root.descendants().forEach((d, i) => {\n d.id = i\n d.collapsed = false\n d._children = d.children\n\n // collapse samples with too many experiments\n if (d.depth !== 0 && d.children ? d.children.length > 10 : false) {\n d.children = null\n d.collapsed = true\n }\n\n // by default hide tree if too many samples\n if (d.depth === 0 && d.children && d.children.length > 10) {\n this.showFullHeight = false\n this.isBigTree = true\n }\n })\n\n this.update(this.root)\n },\n async fetchData() {\n if (this.individual) {\n this.loading = true\n let individual = await fetchIndividualTree(this.individual)\n this.species = individual.species\n\n // Format Individual Tree\n let individualNode = {}\n individualNode.id = individual.system_id\n individualNode.uuid = individual.uuid\n individualNode.name = individual.system_id\n individualNode.parent = null\n individualNode.individual = individual\n individualNode.class = 'individual'\n if (individual.species === 'MOUSE') {\n individualNode.img = 'mouse'\n } else if (individual.species === 'HUMAN') {\n if (individual.gender === 'FEMALE') {\n individualNode.img = 'female'\n } else {\n individualNode.img = 'male'\n }\n } else {\n individualNode.img = 'alien'\n }\n individualNode.children = individual.sample_set.map(sample => {\n // Samples Children\n let sampleNode = {}\n sampleNode.id = sample.system_id\n sampleNode.uuid = sample.uuid\n sampleNode.name = sample.system_id.split('_')\n sampleNode.name = sampleNode.name[sampleNode.name.length - 1]\n sampleNode.parent = individual.system_id\n sampleNode.sample = sample\n sampleNode.individual = individual\n sampleNode.class = 'sample'\n\n if (sample.category === 'TUMOR') {\n sampleNode.img = 'tumor'\n } else {\n sampleNode.img = 'normal'\n }\n\n let aliquots_ids = [\n ...new Set(sample.experiment_set.map(e => e.aliquot_id))\n ]\n\n sampleNode.children = aliquots_ids\n .map(aliquot_id => {\n // Aliquot children\n let aliquotNode = {}\n aliquotNode.aliquot_id = aliquot_id\n aliquotNode.name = ''\n aliquotNode.parent = sample.system_id\n aliquotNode.sample = sample\n aliquotNode.sampleNode = sampleNode\n aliquotNode.individual = individual\n aliquotNode.class = 'aliquot'\n aliquotNode.img = 'aliquot'\n aliquotNode.children = []\n\n sample.experiment_set.map(experiment => {\n // Experiment Children\n if (experiment.aliquot_id === aliquot_id) {\n let experimentNode = {}\n experimentNode.parent = sample.system_id\n experimentNode.sample = sample\n experimentNode.individual = individual\n experimentNode.aliquot_id = experiment.aliquot_id\n experimentNode.id = experiment.system_id\n experimentNode.uuid = experiment.uuid\n experimentNode.class = 'experiment'\n experimentNode.experiment = experiment\n\n let name = experiment.system_id.split('_')\n experimentNode.name = name[name.length - 1]\n\n if (experiment.custom_fields.is_pdx) {\n experimentNode.img = 'mouse'\n } else {\n if (experiment.technique.category === 'IMG') {\n experimentNode.img = 'image'\n } else if (experiment.technique.category === 'TISSUE') {\n experimentNode.img = 'tissue'\n if (experiment.technique.method === 'CG') {\n experimentNode.img = 'chromosome'\n }\n if (experiment.technique.method === 'HP') {\n experimentNode.img = 'tissue'\n }\n if (experiment.technique.method === 'FC') {\n experimentNode.img = 'cells'\n }\n } else if (experiment.technique.category === 'RNA') {\n experimentNode.img = 'rna'\n } else if (experiment.technique.category === 'DNA') {\n experimentNode.img = 'dna'\n } else {\n experimentNode.img = 'dna'\n }\n }\n\n // legacy leukgen ID\n if (experiment.system_id.split('-').length === 7) {\n aliquotNode.name = experiment.system_id.split('-')[4]\n experimentNode.name = experiment.system_id\n .split('-')\n .slice(5, 7)\n .join('-')\n } else {\n aliquotNode.name = experiment.system_id.split('_')\n aliquotNode.name = parseInt(\n aliquotNode.name[aliquotNode.name.length - 2]\n )\n }\n aliquotNode.children.push(experimentNode)\n }\n })\n return aliquotNode\n })\n .sort((a, b) => a.name - b.name)\n return sampleNode\n })\n\n this.data = individualNode\n this.dataNodes = individualNode.children.reduce(\n (totalNodes, nodeInChildren) => {\n return totalNodes + nodeInChildren.children.length\n },\n 0\n )\n\n this.buildTree()\n this.loading = false\n }\n },\n update(source) {\n const duration = d3Event && d3Event.altKey ? 2500 : 250\n const nodes = this.root.descendants().reverse()\n const links = this.root.links()\n\n // Compute the new tree layout.\n this.tree(this.root)\n\n let left = this.root\n let right = this.root\n this.root.eachBefore(node => {\n if (node.x < left.x) left = node\n if (node.x > right.x) right = node\n })\n\n const height = right.x - left.x + this.margin.top + this.margin.bottom\n\n this.svg\n .transition()\n .duration(duration)\n .attr('height', height)\n .attr('viewBox', [\n -this.margin.left,\n left.x - this.margin.top,\n this.width,\n height\n ])\n .tween(\n 'resize',\n window.ResizeObserver ? null : () => () => this.svg.dispatch('toggle')\n )\n\n // Normalize for fixed-depth.\n nodes.forEach(d => {\n d.y = {\n individual: 0,\n sample: 150,\n aliquot: 225,\n experiment: 300\n }[d.data.class]\n })\n\n // ****************** Nodes section ***************************\n\n // Update the nodes...\n let node = this.gNode.selectAll('g').data(nodes, d => d.id)\n\n // Enter any new modes at the parent's previous position.\n let nodeEnter = node\n .enter()\n .append('g')\n .attr('class', d => `node ${d.data.class}`)\n .attr('transform', () => `translate(${source.y0},${source.x0})`)\n\n const circles = nodeEnter\n .append('circle')\n .attr('cursor', d => (d.data.class !== 'aliquot' ? 'pointer' : null))\n .attr('class', 'node shades--text')\n\n circles.style('fill', d =>\n this.treeIcons[d.data.img] ? `url(#icon-${d.data.img})` : ''\n )\n\n nodeEnter\n .on('click', this.changeModel)\n // tooltip, see https://stackoverflow.com/questions/10805184\n .on('mouseover', d => {\n if (d.data.class === 'aliquot' && d.parent.children.length < 2) return\n\n let leftPaddings = { experiment: 300, individual: 120, sample: 200 }\n this.tooltip\n .html(this.getTooltip(d))\n .style('visibility', 'visible')\n .attr('transform', `translate(${d.y},${d.x})`)\n .style('top', `${d3Event.pageY + 20}px`)\n .style('left', `${d3Event.pageX - leftPaddings[d.data.class]}px`)\n })\n .on('mouseout', () => this.tooltip.style('visibility', 'hidden'))\n\n // Add labels for the nodes\n nodeEnter\n .append('text')\n .on('click', this.onTextClick)\n .attr('dy', '.35em')\n .attr('x', -13)\n .attr('text-anchor', d => (d.children || d._children ? 'end' : 'end'))\n .text(d =>\n d.data.class === 'aliquot' && d.parent.children.length < 2\n ? ''\n : d.data.name\n )\n\n // Add collapse text to indicate node can be opened\n nodeEnter\n .append('text')\n .attr('dy', 0)\n .attr('x', 26)\n .text('...')\n .attr('class', 'collapse-text')\n\n // UPDATE\n let nodeUpdate = nodeEnter.merge(node)\n\n // Transition to the proper position for the node\n nodeUpdate\n .transition()\n .duration(this.duration)\n .attr('transform', d => `translate(${d.y},${d.x})`)\n\n // Update the node attributes and style\n nodeUpdate\n .select('.node')\n .attr('r', d => (d.data.class !== 'aliquot' ? this.nodeSize : 5))\n .attr('cx', this.nodeSize / 2)\n .attr('cy', 0)\n .attr('data-intercom-target', d => `tree-node-circle-${d.data.id}`)\n .attr('fill', d =>\n d._children && !d.children ? 'gray' : 'var(--v-primary-base)'\n )\n .attr('opacity', d =>\n d.data.class === 'aliquot' && d.parent.children.length < 2 ? 0 : 1\n )\n .style('stroke', d => {\n if (\n d.data.id === this.currentModel ||\n d.data.uuid === this.currentModel\n ) {\n this.currentNode = d\n if (!this.skipToScrollNode) {\n this.scrollToCurrentNode()\n }\n this.skipToScrollNode = false\n return 'var(--v-secondary-base)'\n }\n return 'transparent'\n })\n\n // Only show dots for collapsed and collapsible nodes\n nodeUpdate\n .select('text.collapse-text')\n .attr('visibility', d =>\n d.collapsed && d._children ? 'visible' : 'hidden'\n )\n\n // Remove any exiting nodes\n let nodeExit = node\n .exit()\n .transition()\n .duration(this.duration)\n .attr('transform', `translate(${source.y},${source.x})`)\n .remove()\n\n // On exit reduce the node circles size to 0\n nodeExit.select('.node').attr('r', 1e-6)\n\n // On exit reduce the opacity of text labels\n nodeExit.select('text').style('fill-opacity', 1e-6)\n\n // ================ links section ================\n\n // Update the links\n let link = this.gLink.selectAll('path.link').data(links, d => d.id)\n\n // Enter any new links at the parent's previous position.\n let linkEnter = link\n .enter()\n .insert('path', 'g')\n .attr('class', 'link')\n\n // UPDATE\n let linkUpdate = linkEnter.merge(link)\n\n // Transition back to the parent element position\n linkUpdate\n .transition()\n .duration(this.duration)\n .attr('d', this.diagonal)\n\n // Remove any exiting links\n link\n .exit()\n .transition()\n .duration(this.duration)\n .remove()\n\n // Store the old positions for transition.\n nodes.forEach(d => {\n d.x0 = d.x\n d.y0 = d.y\n })\n\n this.$emit('update-size')\n },\n onTextClick(d) {\n this.collapseBranch(d)\n if (!d._children && d.data.id) {\n this.$copyText(d.data.id).then(\n () => {\n this.$store.dispatch(SHOW_ALERT, {\n message: 'Copied System ID to clipboard!'\n })\n },\n () => {\n this.$store.dispatch(SHOW_ALERT, {\n error: 'System ID could not be copied to clipboard'\n })\n }\n )\n }\n },\n collapseBranch(d) {\n d.children = d.children ? null : d._children\n d.collapsed = !d.collapsed\n this.update(d)\n },\n changeModel(d) {\n if (d.data.id) {\n this.skipToScrollNode = true // don't scroll to node when click\n\n // Track individual tree usage\n window.analytics.track('Browsed Individual Tree', {\n model: d.data.class,\n record: d.data.id\n })\n\n this.$store.dispatch(SHOW_PANEL, {\n bioModel: d.data.id\n })\n }\n },\n scrollToCurrentNode() {\n this.$nextTick(() => {\n if (!this.showFullHeight)\n setTimeout(() => {\n document.getElementById('tree-div').scrollTop =\n this.currentNode.x0 + 395 // 395 is a function of the max height\n }, 100) // this delay was determined kind of experimentally\n })\n },\n getTooltip(d) {\n const keyValue = (key, verboseName) => {\n let value = this.$get(d.data, key, null)\n return value === null\n ? ''\n : `\n <div class=\"layout row ma-3\" style=\"max-width: 100%\"\">\n <div class=\"flex xs5\" style=\"width: 100%\">${verboseName}</div>\n <div class=\"flex xs7\" style=\"width: 100%\"><b>${value}</b></div>\n </div>\n `\n }\n return `\n <div class=\"v-tooltip__content tree-tooltip\" style=\"min-width: 350px;\">\n ${keyValue('experiment.system_id', 'System ID')}\n ${keyValue('experiment.identifier', 'Experiment ID')}\n ${keyValue('aliquot_id', 'Aliquot ID')}\n ${keyValue('sample.identifier', 'Sample ID')}\n ${keyValue('individual.identifier', 'Individual ID')}\n ${keyValue('experiment.technique.method', 'Method')}\n ${keyValue('experiment.technique.name', 'Technique Name')}\n ${keyValue('sample.disease.acronym', 'Disease')}\n ${keyValue('individual.species', 'Species')}\n ${keyValue('individual.center.acronym', 'Center')}\n </div>\n `\n }\n }\n}\n</script>\n\n<style lang=\"scss\">\n.tree-tooltip.v-tooltip__content {\n color: white;\n padding: 20px;\n opacity: 1;\n font-size: 12px;\n overflow: hidden;\n}\n.node-tooltip {\n background: rgba($color: #000000, $alpha: 0.8);\n}\n.individual-tree-div {\n overflow-x: scroll;\n margin: auto;\n .node {\n stroke-width: 3px;\n text {\n font-size: 14px;\n font-weight: 300;\n fill: black !important;\n cursor: pointer;\n &.collapse-text {\n font-size: 20px;\n font-weight: 200;\n cursor: default;\n }\n }\n &.experiment text {\n cursor: default;\n }\n }\n .link {\n fill: none;\n stroke-width: 1.5px;\n stroke: #aaa;\n }\n}\n</style>\n"]
|
|
306580
|
+
sourcesContent: ["<template>\n <v-card\n flat\n class=\"isabl-base-card\"\n data-test=\"biomodel-tree\"\n >\n <base-section-title\n :show-more=\"showTree\"\n @toggle-show-more=\"showTree = !showTree\"\n >\n <template v-slot:title>Samples Tree</template>\n <template v-slot:actions>\n <div>\n <v-btn\n v-if=\"isBigTree\"\n class=\"table-action-btn pull-right ma-0\"\n fab\n outlined\n color=\"primary\"\n @click=\"\n showFullHeight = !showFullHeight\n scrollToCurrentNode()\n \"\n >\n <v-icon color=\"primary\">{{ showFullHeight ? 'expand_less' : 'expand_more' }}</v-icon>\n </v-btn>\n </div>\n </template>\n </base-section-title>\n\n <!-- Graph -->\n <v-row\n v-show=\"showTree\"\n id=\"tree-div\"\n :style=\"showFullHeight ? '' : 'max-height: 300px;'\"\n class=\"individual-tree-div ma-0\"\n >\n <v-col class=\"individual-tree text-center pa-0 ma-0\" />\n </v-row>\n\n </v-card>\n</template>\n\n<script>\n/*\n Vue implementation of D3 Tree from:\n https://beta.observablehq.com/@asktree/interactive-tree-diagram-d3v4-v5\n*/\n\nimport { fetchIndividualTree } from '@/utils/api'\nimport { mapGetters } from 'vuex'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\nimport BasePanel from '@/components/base/BasePanel.vue'\nimport BaseSectionTitle from '@/components/base/BaseSectionTitle'\nimport {\n tree as d3Tree,\n event as d3Event,\n select as d3Select,\n hierarchy as d3Hierarchy,\n linkHorizontal as d3linkHorizontal\n} from 'd3'\n\nexport default {\n name: 'BioModelTree',\n components: {\n BasePanel,\n BaseSectionTitle\n },\n data() {\n const { treeIcons } = this.$settings\n return {\n loading: false,\n duration: 0,\n data: null,\n root: null,\n tree: null,\n graph: null,\n species: null,\n dataNodes: null,\n showTree: true,\n isBigTree: false,\n showFullHeight: true,\n skipToScrollNode: false,\n currentNode: null,\n nodeSize: Object.keys(treeIcons).length ? 15 : 5,\n margin: { top: 20, bottom: 20, right: 0, left: 105 },\n diagonal: d3linkHorizontal()\n .x(d => d.y)\n .y(d => d.x),\n treeIcons\n }\n },\n computed: {\n ...mapGetters({\n currentModel: 'bioModelId',\n individual: 'individualId'\n })\n },\n watch: {\n individual(value, oldValue) {\n if (value !== oldValue) {\n this.fetchData()\n }\n },\n currentModel() {\n this.data && this.update(this.data)\n }\n },\n mounted() {\n this.fetchData()\n },\n methods: {\n buildTree() {\n let dx = Object.keys(this.treeIcons).length ? this.nodeSize + 4 : 18\n let dy = 0\n let iconSize = this.nodeSize\n\n // set width\n this.width = 540 - this.margin.right - this.margin.left\n this.tree = d3Tree()\n .nodeSize([dx, dy])\n .separation((a, b) => (a.parent == b.parent ? 1.75 : 2.5))\n\n // clear div\n let div = d3Select(this.$el).select('.individual-tree')\n div.selectAll('svg').remove()\n\n // create svg\n this.svg = div\n .append('svg')\n .attr('width', this.width)\n .attr('height', dx)\n .attr('viewBox', [-this.margin.left, -this.margin.top, this.width, dx])\n .style('font', '10px sans-serif')\n .style('user-select', 'none')\n\n // create filters\n this.svg\n .append('svg:filter')\n .attr('id', 'invertColor')\n .append('feColorMatrix')\n .attr('in', 'SourceGraphic')\n .attr('type', 'matrix')\n .attr('values', '-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0')\n\n // create image definitions\n const defs = this.svg.append('svg:defs')\n Object.keys(this.treeIcons).forEach(model => {\n const pattern = defs\n .append('svg:pattern')\n .attr('id', `icon-${model}`)\n .attr('width', iconSize)\n .attr('height', iconSize)\n .attr('patternUnits', 'objectBoundingBox')\n\n pattern\n .append('rect')\n .attr('width', '100%')\n .attr('height', '100%')\n .attr('fill', 'var(--v-primary-base)')\n\n pattern\n .append('svg:image')\n .attr('xlink:href', this.treeIcons[model])\n .attr('width', iconSize)\n .attr('height', iconSize)\n .attr('x', iconSize / 2)\n .attr('y', iconSize / 2)\n .attr('filter', 'url(#invertColor)')\n })\n\n // create links\n this.gLink = this.svg\n .append('g')\n .attr('fill', 'none')\n .attr('stroke', '#555')\n .attr('stroke-opacity', 0.4)\n .attr('stroke-width', 1.5)\n\n // create tooltip\n this.tooltip = d3Select('body')\n .append('div')\n .style('position', 'absolute')\n .style('z-index', '9999')\n .style('visibility', 'hidden')\n\n // create nodes\n this.gNode = this.svg.append('g')\n\n // build root\n this.root = d3Hierarchy(this.data, d => d.children)\n this.root.x0 = dy\n this.root.y0 = 0\n this.root.descendants().forEach((d, i) => {\n d.id = i\n d.collapsed = false\n d._children = d.children\n\n // collapse samples with too many experiments\n if (d.depth !== 0 && d.children ? d.children.length > 10 : false) {\n d.children = null\n d.collapsed = true\n }\n\n // by default hide tree if too many samples\n if (d.depth === 0 && d.children && d.children.length > 10) {\n this.showFullHeight = false\n this.isBigTree = true\n }\n })\n\n this.update(this.root)\n },\n async fetchData() {\n if (this.individual) {\n this.loading = true\n let individual = await fetchIndividualTree(this.individual)\n this.species = individual.species\n\n // Format Individual Tree\n let individualNode = {}\n individualNode.id = individual.system_id\n individualNode.uuid = individual.uuid\n individualNode.name = individual.system_id\n individualNode.parent = null\n individualNode.individual = individual\n individualNode.class = 'individual'\n if (individual.species === 'MOUSE') {\n individualNode.img = 'mouse'\n } else if (individual.species === 'HUMAN') {\n if (individual.gender === 'FEMALE') {\n individualNode.img = 'female'\n } else {\n individualNode.img = 'male'\n }\n } else {\n individualNode.img = 'alien'\n }\n individualNode.children = individual.sample_set.map(sample => {\n // Samples Children\n let sampleNode = {}\n sampleNode.id = sample.system_id\n sampleNode.uuid = sample.uuid\n sampleNode.name = sample.system_id.split('_')\n sampleNode.name = sampleNode.name[sampleNode.name.length - 1]\n sampleNode.parent = individual.system_id\n sampleNode.sample = sample\n sampleNode.individual = individual\n sampleNode.class = 'sample'\n\n if (sample.category === 'TUMOR') {\n sampleNode.img = 'tumor'\n } else {\n sampleNode.img = 'normal'\n }\n\n let aliquots_ids = [\n ...new Set(sample.experiment_set.map(e => e.aliquot_id))\n ]\n\n sampleNode.children = aliquots_ids\n .map(aliquot_id => {\n // Aliquot children\n let aliquotNode = {}\n aliquotNode.aliquot_id = aliquot_id\n aliquotNode.name = ''\n aliquotNode.parent = sample.system_id\n aliquotNode.sample = sample\n aliquotNode.sampleNode = sampleNode\n aliquotNode.individual = individual\n aliquotNode.class = 'aliquot'\n aliquotNode.img = 'aliquot'\n aliquotNode.children = []\n\n sample.experiment_set.map(experiment => {\n // Experiment Children\n if (experiment.aliquot_id === aliquot_id) {\n let experimentNode = {}\n experimentNode.parent = sample.system_id\n experimentNode.sample = sample\n experimentNode.individual = individual\n experimentNode.aliquot_id = experiment.aliquot_id\n experimentNode.id = experiment.system_id\n experimentNode.uuid = experiment.uuid\n experimentNode.class = 'experiment'\n experimentNode.experiment = experiment\n\n let name = experiment.system_id.split('_')\n experimentNode.name = name[name.length - 1]\n\n if (experiment.custom_fields.is_pdx) {\n experimentNode.img = 'mouse'\n } else {\n if (experiment.technique.category === 'IMG') {\n experimentNode.img = 'image'\n } else if (experiment.technique.category === 'TISSUE') {\n experimentNode.img = 'tissue'\n if (experiment.technique.method === 'CG') {\n experimentNode.img = 'chromosome'\n }\n if (experiment.technique.method === 'HP') {\n experimentNode.img = 'tissue'\n }\n if (experiment.technique.method === 'FC') {\n experimentNode.img = 'cells'\n }\n } else if (experiment.technique.category === 'RNA') {\n experimentNode.img = 'rna'\n } else if (experiment.technique.category === 'DNA') {\n experimentNode.img = 'dna'\n } else {\n experimentNode.img = 'dna'\n }\n }\n\n // legacy leukgen ID\n if (experiment.system_id.split('-').length === 7) {\n aliquotNode.name = experiment.system_id.split('-')[4]\n experimentNode.name = experiment.system_id\n .split('-')\n .slice(5, 7)\n .join('-')\n } else {\n aliquotNode.name = experiment.system_id.split('_')\n aliquotNode.name = parseInt(\n aliquotNode.name[aliquotNode.name.length - 2]\n )\n }\n aliquotNode.children.push(experimentNode)\n }\n })\n return aliquotNode\n })\n .sort((a, b) => a.name - b.name)\n return sampleNode\n })\n\n this.data = individualNode\n this.dataNodes = individualNode.children.reduce(\n (totalNodes, nodeInChildren) => {\n return totalNodes + nodeInChildren.children.length\n },\n 0\n )\n\n this.buildTree()\n this.loading = false\n }\n },\n update(source) {\n const duration = d3Event && d3Event.altKey ? 2500 : 250\n const nodes = this.root.descendants().reverse()\n const links = this.root.links()\n\n // Compute the new tree layout.\n this.tree(this.root)\n\n let left = this.root\n let right = this.root\n this.root.eachBefore(node => {\n if (node.x < left.x) left = node\n if (node.x > right.x) right = node\n })\n\n const height = right.x - left.x + this.margin.top + this.margin.bottom\n\n this.svg\n .transition()\n .duration(duration)\n .attr('height', height)\n .attr('viewBox', [\n -this.margin.left,\n left.x - this.margin.top,\n this.width,\n height\n ])\n .tween(\n 'resize',\n window.ResizeObserver ? null : () => () => this.svg.dispatch('toggle')\n )\n\n // Normalize for fixed-depth.\n nodes.forEach(d => {\n d.y = {\n individual: 0,\n sample: 150,\n aliquot: 225,\n experiment: 300\n }[d.data.class]\n })\n\n // ****************** Nodes section ***************************\n\n // Update the nodes...\n let node = this.gNode.selectAll('g').data(nodes, d => d.id)\n\n // Enter any new modes at the parent's previous position.\n let nodeEnter = node\n .enter()\n .append('g')\n .attr('class', d => `node ${d.data.class}`)\n .attr('transform', () => `translate(${source.y0},${source.x0})`)\n\n const circles = nodeEnter\n .append('circle')\n .attr('cursor', d => (d.data.class !== 'aliquot' ? 'pointer' : null))\n .attr('class', 'node shades--text')\n\n circles.style('fill', d =>\n this.treeIcons[d.data.img] ? `url(#icon-${d.data.img})` : ''\n )\n\n nodeEnter\n .on('click', this.changeModel)\n // tooltip, see https://stackoverflow.com/questions/10805184\n .on('mouseover', d => {\n if (d.data.class === 'aliquot' && d.parent.children.length < 2) return\n\n let leftPaddings = { experiment: 300, individual: 120, sample: 200 }\n this.tooltip\n .html(this.getTooltip(d))\n .style('visibility', 'visible')\n .attr('transform', `translate(${d.y},${d.x})`)\n .style('top', `${d3Event.pageY + 20}px`)\n .style('left', `${d3Event.pageX - leftPaddings[d.data.class]}px`)\n })\n .on('mouseout', () => this.tooltip.style('visibility', 'hidden'))\n\n // Add labels for the nodes\n nodeEnter\n .append('text')\n .on('click', this.onTextClick)\n .attr('dy', '.35em')\n .attr('x', -13)\n .attr('text-anchor', d => (d.children || d._children ? 'end' : 'end'))\n .text(d =>\n d.data.class === 'aliquot' && d.parent.children.length < 2\n ? ''\n : d.data.name\n )\n\n // Add collapse text to indicate node can be opened\n nodeEnter\n .append('text')\n .attr('dy', 0)\n .attr('x', 26)\n .text('...')\n .attr('class', 'collapse-text')\n\n // UPDATE\n let nodeUpdate = nodeEnter.merge(node)\n\n // Transition to the proper position for the node\n nodeUpdate\n .transition()\n .duration(this.duration)\n .attr('transform', d => `translate(${d.y},${d.x})`)\n\n // Update the node attributes and style\n nodeUpdate\n .select('.node')\n .attr('r', d => (d.data.class !== 'aliquot' ? this.nodeSize : 5))\n .attr('cx', this.nodeSize / 2)\n .attr('cy', 0)\n .attr('data-intercom-target', d => `tree-node-circle-${d.data.id}`)\n .attr('fill', d =>\n d._children && !d.children ? 'gray' : 'var(--v-primary-base)'\n )\n .attr('opacity', d =>\n d.data.class === 'aliquot' && d.parent.children.length < 2 ? 0 : 1\n )\n .style('stroke', d => {\n if (\n d.data.id === this.currentModel ||\n d.data.uuid === this.currentModel\n ) {\n this.currentNode = d\n if (!this.skipToScrollNode) {\n this.scrollToCurrentNode()\n }\n this.skipToScrollNode = false\n return 'var(--v-secondary-base)'\n }\n return 'transparent'\n })\n\n // Only show dots for collapsed and collapsible nodes\n nodeUpdate\n .select('text.collapse-text')\n .attr('visibility', d =>\n d.collapsed && d._children ? 'visible' : 'hidden'\n )\n\n // Remove any exiting nodes\n let nodeExit = node\n .exit()\n .transition()\n .duration(this.duration)\n .attr('transform', `translate(${source.y},${source.x})`)\n .remove()\n\n // On exit reduce the node circles size to 0\n nodeExit.select('.node').attr('r', 1e-6)\n\n // On exit reduce the opacity of text labels\n nodeExit.select('text').style('fill-opacity', 1e-6)\n\n // ================ links section ================\n\n // Update the links\n let link = this.gLink.selectAll('path.link').data(links, d => d.id)\n\n // Enter any new links at the parent's previous position.\n let linkEnter = link\n .enter()\n .insert('path', 'g')\n .attr('class', 'link')\n\n // UPDATE\n let linkUpdate = linkEnter.merge(link)\n\n // Transition back to the parent element position\n linkUpdate\n .transition()\n .duration(this.duration)\n .attr('d', this.diagonal)\n\n // Remove any exiting links\n link\n .exit()\n .transition()\n .duration(this.duration)\n .remove()\n\n // Store the old positions for transition.\n nodes.forEach(d => {\n d.x0 = d.x\n d.y0 = d.y\n })\n\n this.$emit('update-size')\n },\n onTextClick(d) {\n this.collapseBranch(d)\n if (!d._children && d.data.id) {\n this.$copyText(d.data.id).then(\n () => {\n this.$store.dispatch(SHOW_ALERT, {\n message: 'Copied System ID to clipboard!'\n })\n },\n () => {\n this.$store.dispatch(SHOW_ALERT, {\n error: 'System ID could not be copied to clipboard'\n })\n }\n )\n }\n },\n collapseBranch(d) {\n d.children = d.children ? null : d._children\n d.collapsed = !d.collapsed\n this.update(d)\n },\n changeModel(d) {\n if (d.data.id) {\n this.skipToScrollNode = true // don't scroll to node when click\n\n // Track individual tree usage\n window.analytics.track('Browsed Individual Tree', {\n model: d.data.class,\n record: d.data.id\n })\n\n this.tooltip.style('visibility', 'hidden')\n\n this.$store.dispatch(SHOW_PANEL, {\n bioModel: d.data.id\n })\n }\n },\n scrollToCurrentNode() {\n this.$nextTick(() => {\n if (!this.showFullHeight)\n setTimeout(() => {\n document.getElementById('tree-div').scrollTop =\n this.currentNode.x0 + 395 // 395 is a function of the max height\n }, 100) // this delay was determined kind of experimentally\n })\n },\n getTooltip(d) {\n const keyValue = (key, verboseName) => {\n let value = this.$get(d.data, key, null)\n return value === null\n ? ''\n : `\n <div class=\"layout row ma-3\" style=\"max-width: 100%\"\">\n <div class=\"flex xs5\" style=\"width: 100%\">${verboseName}</div>\n <div class=\"flex xs7\" style=\"width: 100%\"><b>${value}</b></div>\n </div>\n `\n }\n return `\n <div class=\"v-tooltip__content tree-tooltip\" style=\"min-width: 350px;\">\n ${keyValue('experiment.system_id', 'System ID')}\n ${keyValue('experiment.identifier', 'Experiment ID')}\n ${keyValue('aliquot_id', 'Aliquot ID')}\n ${keyValue('sample.identifier', 'Sample ID')}\n ${keyValue('individual.identifier', 'Individual ID')}\n ${keyValue('experiment.technique.method', 'Method')}\n ${keyValue('experiment.technique.name', 'Technique Name')}\n ${keyValue('sample.disease.acronym', 'Disease')}\n ${keyValue('individual.species', 'Species')}\n ${keyValue('individual.center.acronym', 'Center')}\n </div>\n `\n }\n }\n}\n</script>\n\n<style lang=\"scss\">\n.tree-tooltip.v-tooltip__content {\n color: white;\n padding: 20px;\n opacity: 1;\n font-size: 12px;\n overflow: hidden;\n}\n.node-tooltip {\n background: rgba($color: #000000, $alpha: 0.8);\n}\n.individual-tree-div {\n overflow-x: scroll;\n margin: auto;\n .node {\n stroke-width: 3px;\n text {\n font-size: 14px;\n font-weight: 300;\n fill: black !important;\n cursor: pointer;\n &.collapse-text {\n font-size: 20px;\n font-weight: 200;\n cursor: default;\n }\n }\n &.experiment text {\n cursor: default;\n }\n }\n .link {\n fill: none;\n stroke-width: 1.5px;\n stroke: #aaa;\n }\n}\n</style>\n"]
|
|
306570
306581
|
},
|
|
306571
306582
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
306572
|
-
hash: "
|
|
306583
|
+
hash: "35800f777c9e06999d7627afedbe72c07beb2e2a"
|
|
306573
306584
|
};
|
|
306574
306585
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
306575
306586
|
|
|
@@ -307413,6 +307424,8 @@ function BioModelTreevue_type_script_lang_js_defineProperty(obj, key, value) { i
|
|
|
307413
307424
|
record: d.data.id
|
|
307414
307425
|
});
|
|
307415
307426
|
cov_2f0u9tmiep.s[206]++;
|
|
307427
|
+
this.tooltip.style('visibility', 'hidden');
|
|
307428
|
+
cov_2f0u9tmiep.s[207]++;
|
|
307416
307429
|
this.$store.dispatch(SHOW_PANEL, {
|
|
307417
307430
|
bioModel: d.data.id
|
|
307418
307431
|
});
|
|
@@ -307424,17 +307437,17 @@ function BioModelTreevue_type_script_lang_js_defineProperty(obj, key, value) { i
|
|
|
307424
307437
|
var _this4 = this;
|
|
307425
307438
|
|
|
307426
307439
|
cov_2f0u9tmiep.f[46]++;
|
|
307427
|
-
cov_2f0u9tmiep.s[
|
|
307440
|
+
cov_2f0u9tmiep.s[208]++;
|
|
307428
307441
|
this.$nextTick(function () {
|
|
307429
307442
|
cov_2f0u9tmiep.f[47]++;
|
|
307430
|
-
cov_2f0u9tmiep.s[
|
|
307443
|
+
cov_2f0u9tmiep.s[209]++;
|
|
307431
307444
|
|
|
307432
307445
|
if (!_this4.showFullHeight) {
|
|
307433
307446
|
cov_2f0u9tmiep.b[52][0]++;
|
|
307434
|
-
cov_2f0u9tmiep.s[
|
|
307447
|
+
cov_2f0u9tmiep.s[210]++;
|
|
307435
307448
|
setTimeout(function () {
|
|
307436
307449
|
cov_2f0u9tmiep.f[48]++;
|
|
307437
|
-
cov_2f0u9tmiep.s[
|
|
307450
|
+
cov_2f0u9tmiep.s[211]++;
|
|
307438
307451
|
document.getElementById('tree-div').scrollTop = _this4.currentNode.x0 + 395; // 395 is a function of the max height
|
|
307439
307452
|
}, 100);
|
|
307440
307453
|
} else {
|
|
@@ -307447,16 +307460,16 @@ function BioModelTreevue_type_script_lang_js_defineProperty(obj, key, value) { i
|
|
|
307447
307460
|
var _this5 = this;
|
|
307448
307461
|
|
|
307449
307462
|
cov_2f0u9tmiep.f[49]++;
|
|
307450
|
-
cov_2f0u9tmiep.s[
|
|
307463
|
+
cov_2f0u9tmiep.s[212]++;
|
|
307451
307464
|
|
|
307452
307465
|
var keyValue = function keyValue(key, verboseName) {
|
|
307453
307466
|
cov_2f0u9tmiep.f[50]++;
|
|
307454
|
-
var value = (cov_2f0u9tmiep.s[
|
|
307455
|
-
cov_2f0u9tmiep.s[
|
|
307467
|
+
var value = (cov_2f0u9tmiep.s[213]++, _this5.$get(d.data, key, null));
|
|
307468
|
+
cov_2f0u9tmiep.s[214]++;
|
|
307456
307469
|
return value === null ? (cov_2f0u9tmiep.b[53][0]++, '') : (cov_2f0u9tmiep.b[53][1]++, "\n <div class=\"layout row ma-3\" style=\"max-width: 100%\"\">\n <div class=\"flex xs5\" style=\"width: 100%\">".concat(verboseName, "</div>\n <div class=\"flex xs7\" style=\"width: 100%\"><b>").concat(value, "</b></div>\n </div>\n "));
|
|
307457
307470
|
};
|
|
307458
307471
|
|
|
307459
|
-
cov_2f0u9tmiep.s[
|
|
307472
|
+
cov_2f0u9tmiep.s[215]++;
|
|
307460
307473
|
return "\n <div class=\"v-tooltip__content tree-tooltip\" style=\"min-width: 350px;\">\n ".concat(keyValue('experiment.system_id', 'System ID'), "\n ").concat(keyValue('experiment.identifier', 'Experiment ID'), "\n ").concat(keyValue('aliquot_id', 'Aliquot ID'), "\n ").concat(keyValue('sample.identifier', 'Sample ID'), "\n ").concat(keyValue('individual.identifier', 'Individual ID'), "\n ").concat(keyValue('experiment.technique.method', 'Method'), "\n ").concat(keyValue('experiment.technique.name', 'Technique Name'), "\n ").concat(keyValue('sample.disease.acronym', 'Disease'), "\n ").concat(keyValue('individual.species', 'Species'), "\n ").concat(keyValue('individual.center.acronym', 'Center'), "\n </div>\n ");
|
|
307461
307474
|
}
|
|
307462
307475
|
}
|
|
@@ -307477,8 +307490,8 @@ var BioModelTreevue_type_style_index_0_lang_scss_ = __webpack_require__("34ec");
|
|
|
307477
307490
|
|
|
307478
307491
|
var BioModelTree_component = normalizeComponent(
|
|
307479
307492
|
bioModels_BioModelTreevue_type_script_lang_js_,
|
|
307480
|
-
|
|
307481
|
-
|
|
307493
|
+
BioModelTreevue_type_template_id_50c9e1d2_render,
|
|
307494
|
+
BioModelTreevue_type_template_id_50c9e1d2_staticRenderFns,
|
|
307482
307495
|
false,
|
|
307483
307496
|
null,
|
|
307484
307497
|
null,
|
|
@@ -316749,17 +316762,17 @@ var Signup_component = normalizeComponent(
|
|
|
316749
316762
|
)
|
|
316750
316763
|
|
|
316751
316764
|
/* harmony default export */ var Signup = (Signup_component.exports);
|
|
316752
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-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/views/VerifyEmail.vue?vue&type=template&id=
|
|
316753
|
-
var
|
|
316754
|
-
var
|
|
316765
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-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/views/VerifyEmail.vue?vue&type=template&id=0460ddf2&
|
|
316766
|
+
var VerifyEmailvue_type_template_id_0460ddf2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-row',{staticClass:"auth-form text-center",attrs:{"justify":"center"}},[(_vm.loading)?_c('v-col',{attrs:{"cols":"6","sm":"9","md":"6","lg":"4","xl":"2"}},[_c('v-progress-circular',{attrs:{"indeterminate":"","color":"primary"}}),_c('div',{staticClass:"text-h3 primary--text font-weight-thin mt-12 mb-4"},[_vm._v("Verifying ...")]),_c('div',{staticClass:"text-h6 font-weight-thin"},[_vm._v("We're verifying your account... Please wait")])],1):(!_vm.loading && _vm.verified)?_c('v-col',{attrs:{"cols":"6","sm":"9","md":"6","lg":"4","xl":"2"}},[_c('div',{staticClass:"text-h3 primary--text font-weight-thin mb-4"},[_vm._v("Account Verified")]),_c('div',{staticClass:"text-h6 font-weight-thin"},[_vm._v("\n "+_vm._s(_vm.message)+"\n "),_c('br'),_c('br'),_vm._v("Go to\n "),_c('span',{staticClass:"active-link text-h6 font-weight-thin primary--text",on:{"click":_vm.goToLogin}},[_vm._v("Login.")])])]):(!_vm.loading && !_vm.verified)?_c('v-col',{attrs:{"cols":"6","sm":"9","md":"6","lg":"4","xl":"2"}},[_c('div',{staticClass:"text-h1 primary--text font-weight-thin mb-4"},[_vm._v("Incorrect key")]),_c('div',{staticClass:"text-h6 font-weight-thin"},[_vm._v("Your email couldn't be confirmed.")])]):_vm._e()],1)}
|
|
316767
|
+
var VerifyEmailvue_type_template_id_0460ddf2_staticRenderFns = []
|
|
316755
316768
|
|
|
316756
316769
|
|
|
316757
|
-
// CONCATENATED MODULE: ./src/views/VerifyEmail.vue?vue&type=template&id=
|
|
316770
|
+
// CONCATENATED MODULE: ./src/views/VerifyEmail.vue?vue&type=template&id=0460ddf2&
|
|
316758
316771
|
|
|
316759
316772
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/VerifyEmail.vue?vue&type=script&lang=js&
|
|
316760
316773
|
var cov_50fq9mw5q = function () {
|
|
316761
316774
|
var path = "/Users/arangooj/papaemme/isabl_web/src/views/VerifyEmail.vue";
|
|
316762
|
-
var hash = "
|
|
316775
|
+
var hash = "4cd889dd459869433cea1267c94c71c149b8c801";
|
|
316763
316776
|
var global = new Function("return this")();
|
|
316764
316777
|
var gcv = "__coverage__";
|
|
316765
316778
|
var coverageData = {
|
|
@@ -316767,121 +316780,121 @@ var cov_50fq9mw5q = function () {
|
|
|
316767
316780
|
statementMap: {
|
|
316768
316781
|
"0": {
|
|
316769
316782
|
start: {
|
|
316770
|
-
line:
|
|
316783
|
+
line: 60,
|
|
316771
316784
|
column: 4
|
|
316772
316785
|
},
|
|
316773
316786
|
end: {
|
|
316774
|
-
line:
|
|
316787
|
+
line: 64,
|
|
316775
316788
|
column: 5
|
|
316776
316789
|
}
|
|
316777
316790
|
},
|
|
316778
316791
|
"1": {
|
|
316779
316792
|
start: {
|
|
316780
|
-
line:
|
|
316793
|
+
line: 67,
|
|
316781
316794
|
column: 4
|
|
316782
316795
|
},
|
|
316783
316796
|
end: {
|
|
316784
|
-
line:
|
|
316797
|
+
line: 67,
|
|
316785
316798
|
column: 22
|
|
316786
316799
|
}
|
|
316787
316800
|
},
|
|
316788
316801
|
"2": {
|
|
316789
316802
|
start: {
|
|
316790
|
-
line:
|
|
316803
|
+
line: 71,
|
|
316791
316804
|
column: 6
|
|
316792
316805
|
},
|
|
316793
316806
|
end: {
|
|
316794
|
-
line:
|
|
316807
|
+
line: 71,
|
|
316795
316808
|
column: 25
|
|
316796
316809
|
}
|
|
316797
316810
|
},
|
|
316798
316811
|
"3": {
|
|
316799
316812
|
start: {
|
|
316800
|
-
line:
|
|
316813
|
+
line: 72,
|
|
316801
316814
|
column: 22
|
|
316802
316815
|
},
|
|
316803
316816
|
end: {
|
|
316804
|
-
line:
|
|
316817
|
+
line: 72,
|
|
316805
316818
|
column: 39
|
|
316806
316819
|
}
|
|
316807
316820
|
},
|
|
316808
316821
|
"4": {
|
|
316809
316822
|
start: {
|
|
316810
|
-
line:
|
|
316823
|
+
line: 73,
|
|
316811
316824
|
column: 6
|
|
316812
316825
|
},
|
|
316813
316826
|
end: {
|
|
316814
|
-
line:
|
|
316827
|
+
line: 87,
|
|
316815
316828
|
column: 7
|
|
316816
316829
|
}
|
|
316817
316830
|
},
|
|
316818
316831
|
"5": {
|
|
316819
316832
|
start: {
|
|
316820
|
-
line:
|
|
316833
|
+
line: 74,
|
|
316821
316834
|
column: 8
|
|
316822
316835
|
},
|
|
316823
316836
|
end: {
|
|
316824
|
-
line:
|
|
316837
|
+
line: 84,
|
|
316825
316838
|
column: 12
|
|
316826
316839
|
}
|
|
316827
316840
|
},
|
|
316828
316841
|
"6": {
|
|
316829
316842
|
start: {
|
|
316830
|
-
line:
|
|
316843
|
+
line: 76,
|
|
316831
316844
|
column: 12
|
|
316832
316845
|
},
|
|
316833
316846
|
end: {
|
|
316834
|
-
line:
|
|
316847
|
+
line: 76,
|
|
316835
316848
|
column: 32
|
|
316836
316849
|
}
|
|
316837
316850
|
},
|
|
316838
316851
|
"7": {
|
|
316839
316852
|
start: {
|
|
316840
|
-
line:
|
|
316853
|
+
line: 77,
|
|
316841
316854
|
column: 12
|
|
316842
316855
|
},
|
|
316843
316856
|
end: {
|
|
316844
|
-
line:
|
|
316857
|
+
line: 77,
|
|
316845
316858
|
column: 42
|
|
316846
316859
|
}
|
|
316847
316860
|
},
|
|
316848
316861
|
"8": {
|
|
316849
316862
|
start: {
|
|
316850
|
-
line:
|
|
316863
|
+
line: 80,
|
|
316851
316864
|
column: 12
|
|
316852
316865
|
},
|
|
316853
316866
|
end: {
|
|
316854
|
-
line:
|
|
316867
|
+
line: 80,
|
|
316855
316868
|
column: 33
|
|
316856
316869
|
}
|
|
316857
316870
|
},
|
|
316858
316871
|
"9": {
|
|
316859
316872
|
start: {
|
|
316860
|
-
line:
|
|
316873
|
+
line: 83,
|
|
316861
316874
|
column: 12
|
|
316862
316875
|
},
|
|
316863
316876
|
end: {
|
|
316864
|
-
line:
|
|
316877
|
+
line: 83,
|
|
316865
316878
|
column: 32
|
|
316866
316879
|
}
|
|
316867
316880
|
},
|
|
316868
316881
|
"10": {
|
|
316869
316882
|
start: {
|
|
316870
|
-
line:
|
|
316883
|
+
line: 86,
|
|
316871
316884
|
column: 8
|
|
316872
316885
|
},
|
|
316873
316886
|
end: {
|
|
316874
|
-
line:
|
|
316887
|
+
line: 86,
|
|
316875
316888
|
column: 28
|
|
316876
316889
|
}
|
|
316877
316890
|
},
|
|
316878
316891
|
"11": {
|
|
316879
316892
|
start: {
|
|
316880
|
-
line:
|
|
316893
|
+
line: 90,
|
|
316881
316894
|
column: 6
|
|
316882
316895
|
},
|
|
316883
316896
|
end: {
|
|
316884
|
-
line:
|
|
316897
|
+
line: 90,
|
|
316885
316898
|
column: 42
|
|
316886
316899
|
}
|
|
316887
316900
|
}
|
|
@@ -316891,204 +316904,204 @@ var cov_50fq9mw5q = function () {
|
|
|
316891
316904
|
name: "(anonymous_0)",
|
|
316892
316905
|
decl: {
|
|
316893
316906
|
start: {
|
|
316894
|
-
line:
|
|
316907
|
+
line: 59,
|
|
316895
316908
|
column: 2
|
|
316896
316909
|
},
|
|
316897
316910
|
end: {
|
|
316898
|
-
line:
|
|
316911
|
+
line: 59,
|
|
316899
316912
|
column: 3
|
|
316900
316913
|
}
|
|
316901
316914
|
},
|
|
316902
316915
|
loc: {
|
|
316903
316916
|
start: {
|
|
316904
|
-
line:
|
|
316917
|
+
line: 59,
|
|
316905
316918
|
column: 9
|
|
316906
316919
|
},
|
|
316907
316920
|
end: {
|
|
316908
|
-
line:
|
|
316921
|
+
line: 65,
|
|
316909
316922
|
column: 3
|
|
316910
316923
|
}
|
|
316911
316924
|
},
|
|
316912
|
-
line:
|
|
316925
|
+
line: 59
|
|
316913
316926
|
},
|
|
316914
316927
|
"1": {
|
|
316915
316928
|
name: "(anonymous_1)",
|
|
316916
316929
|
decl: {
|
|
316917
316930
|
start: {
|
|
316918
|
-
line:
|
|
316931
|
+
line: 66,
|
|
316919
316932
|
column: 2
|
|
316920
316933
|
},
|
|
316921
316934
|
end: {
|
|
316922
|
-
line:
|
|
316935
|
+
line: 66,
|
|
316923
316936
|
column: 3
|
|
316924
316937
|
}
|
|
316925
316938
|
},
|
|
316926
316939
|
loc: {
|
|
316927
316940
|
start: {
|
|
316928
|
-
line:
|
|
316941
|
+
line: 66,
|
|
316929
316942
|
column: 12
|
|
316930
316943
|
},
|
|
316931
316944
|
end: {
|
|
316932
|
-
line:
|
|
316945
|
+
line: 68,
|
|
316933
316946
|
column: 3
|
|
316934
316947
|
}
|
|
316935
316948
|
},
|
|
316936
|
-
line:
|
|
316949
|
+
line: 66
|
|
316937
316950
|
},
|
|
316938
316951
|
"2": {
|
|
316939
316952
|
name: "(anonymous_2)",
|
|
316940
316953
|
decl: {
|
|
316941
316954
|
start: {
|
|
316942
|
-
line:
|
|
316955
|
+
line: 70,
|
|
316943
316956
|
column: 4
|
|
316944
316957
|
},
|
|
316945
316958
|
end: {
|
|
316946
|
-
line:
|
|
316959
|
+
line: 70,
|
|
316947
316960
|
column: 5
|
|
316948
316961
|
}
|
|
316949
316962
|
},
|
|
316950
316963
|
loc: {
|
|
316951
316964
|
start: {
|
|
316952
|
-
line:
|
|
316965
|
+
line: 70,
|
|
316953
316966
|
column: 18
|
|
316954
316967
|
},
|
|
316955
316968
|
end: {
|
|
316956
|
-
line:
|
|
316969
|
+
line: 88,
|
|
316957
316970
|
column: 5
|
|
316958
316971
|
}
|
|
316959
316972
|
},
|
|
316960
|
-
line:
|
|
316973
|
+
line: 70
|
|
316961
316974
|
},
|
|
316962
316975
|
"3": {
|
|
316963
316976
|
name: "(anonymous_3)",
|
|
316964
316977
|
decl: {
|
|
316965
316978
|
start: {
|
|
316966
|
-
line:
|
|
316979
|
+
line: 75,
|
|
316967
316980
|
column: 16
|
|
316968
316981
|
},
|
|
316969
316982
|
end: {
|
|
316970
|
-
line:
|
|
316983
|
+
line: 75,
|
|
316971
316984
|
column: 17
|
|
316972
316985
|
}
|
|
316973
316986
|
},
|
|
316974
316987
|
loc: {
|
|
316975
316988
|
start: {
|
|
316976
|
-
line:
|
|
316989
|
+
line: 75,
|
|
316977
316990
|
column: 28
|
|
316978
316991
|
},
|
|
316979
316992
|
end: {
|
|
316980
|
-
line:
|
|
316993
|
+
line: 78,
|
|
316981
316994
|
column: 11
|
|
316982
316995
|
}
|
|
316983
316996
|
},
|
|
316984
|
-
line:
|
|
316997
|
+
line: 75
|
|
316985
316998
|
},
|
|
316986
316999
|
"4": {
|
|
316987
317000
|
name: "(anonymous_4)",
|
|
316988
317001
|
decl: {
|
|
316989
317002
|
start: {
|
|
316990
|
-
line:
|
|
317003
|
+
line: 79,
|
|
316991
317004
|
column: 17
|
|
316992
317005
|
},
|
|
316993
317006
|
end: {
|
|
316994
|
-
line:
|
|
317007
|
+
line: 79,
|
|
316995
317008
|
column: 18
|
|
316996
317009
|
}
|
|
316997
317010
|
},
|
|
316998
317011
|
loc: {
|
|
316999
317012
|
start: {
|
|
317000
|
-
line:
|
|
317013
|
+
line: 79,
|
|
317001
317014
|
column: 26
|
|
317002
317015
|
},
|
|
317003
317016
|
end: {
|
|
317004
|
-
line:
|
|
317017
|
+
line: 81,
|
|
317005
317018
|
column: 11
|
|
317006
317019
|
}
|
|
317007
317020
|
},
|
|
317008
|
-
line:
|
|
317021
|
+
line: 79
|
|
317009
317022
|
},
|
|
317010
317023
|
"5": {
|
|
317011
317024
|
name: "(anonymous_5)",
|
|
317012
317025
|
decl: {
|
|
317013
317026
|
start: {
|
|
317014
|
-
line:
|
|
317027
|
+
line: 82,
|
|
317015
317028
|
column: 19
|
|
317016
317029
|
},
|
|
317017
317030
|
end: {
|
|
317018
|
-
line:
|
|
317031
|
+
line: 82,
|
|
317019
317032
|
column: 20
|
|
317020
317033
|
}
|
|
317021
317034
|
},
|
|
317022
317035
|
loc: {
|
|
317023
317036
|
start: {
|
|
317024
|
-
line:
|
|
317037
|
+
line: 82,
|
|
317025
317038
|
column: 25
|
|
317026
317039
|
},
|
|
317027
317040
|
end: {
|
|
317028
|
-
line:
|
|
317041
|
+
line: 84,
|
|
317029
317042
|
column: 11
|
|
317030
317043
|
}
|
|
317031
317044
|
},
|
|
317032
|
-
line:
|
|
317045
|
+
line: 82
|
|
317033
317046
|
},
|
|
317034
317047
|
"6": {
|
|
317035
317048
|
name: "(anonymous_6)",
|
|
317036
317049
|
decl: {
|
|
317037
317050
|
start: {
|
|
317038
|
-
line:
|
|
317051
|
+
line: 89,
|
|
317039
317052
|
column: 4
|
|
317040
317053
|
},
|
|
317041
317054
|
end: {
|
|
317042
|
-
line:
|
|
317055
|
+
line: 89,
|
|
317043
317056
|
column: 5
|
|
317044
317057
|
}
|
|
317045
317058
|
},
|
|
317046
317059
|
loc: {
|
|
317047
317060
|
start: {
|
|
317048
|
-
line:
|
|
317061
|
+
line: 89,
|
|
317049
317062
|
column: 16
|
|
317050
317063
|
},
|
|
317051
317064
|
end: {
|
|
317052
|
-
line:
|
|
317065
|
+
line: 91,
|
|
317053
317066
|
column: 5
|
|
317054
317067
|
}
|
|
317055
317068
|
},
|
|
317056
|
-
line:
|
|
317069
|
+
line: 89
|
|
317057
317070
|
}
|
|
317058
317071
|
},
|
|
317059
317072
|
branchMap: {
|
|
317060
317073
|
"0": {
|
|
317061
317074
|
loc: {
|
|
317062
317075
|
start: {
|
|
317063
|
-
line:
|
|
317076
|
+
line: 73,
|
|
317064
317077
|
column: 6
|
|
317065
317078
|
},
|
|
317066
317079
|
end: {
|
|
317067
|
-
line:
|
|
317080
|
+
line: 87,
|
|
317068
317081
|
column: 7
|
|
317069
317082
|
}
|
|
317070
317083
|
},
|
|
317071
317084
|
type: "if",
|
|
317072
317085
|
locations: [{
|
|
317073
317086
|
start: {
|
|
317074
|
-
line:
|
|
317087
|
+
line: 73,
|
|
317075
317088
|
column: 6
|
|
317076
317089
|
},
|
|
317077
317090
|
end: {
|
|
317078
|
-
line:
|
|
317091
|
+
line: 87,
|
|
317079
317092
|
column: 7
|
|
317080
317093
|
}
|
|
317081
317094
|
}, {
|
|
317082
317095
|
start: {
|
|
317083
|
-
line:
|
|
317096
|
+
line: 73,
|
|
317084
317097
|
column: 6
|
|
317085
317098
|
},
|
|
317086
317099
|
end: {
|
|
317087
|
-
line:
|
|
317100
|
+
line: 87,
|
|
317088
317101
|
column: 7
|
|
317089
317102
|
}
|
|
317090
317103
|
}],
|
|
317091
|
-
line:
|
|
317104
|
+
line: 73
|
|
317092
317105
|
}
|
|
317093
317106
|
},
|
|
317094
317107
|
s: {
|
|
@@ -317121,13 +317134,13 @@ var cov_50fq9mw5q = function () {
|
|
|
317121
317134
|
version: 3,
|
|
317122
317135
|
sources: ["VerifyEmail.vue"],
|
|
317123
317136
|
names: [],
|
|
317124
|
-
mappings: "
|
|
317137
|
+
mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
|
|
317125
317138
|
file: "VerifyEmail.vue",
|
|
317126
317139
|
sourceRoot: "src/views",
|
|
317127
|
-
sourcesContent: ["<template>\n <v-
|
|
317140
|
+
sourcesContent: ["<template>\n <v-row\n justify=\"center\"\n class=\"auth-form text-center\"\n >\n <v-col\n v-if=\"loading\"\n cols=\"6\"\n sm=\"9\"\n md=\"6\"\n lg=\"4\"\n xl=\"2\"\n >\n <v-progress-circular\n indeterminate\n color=\"primary\"\n />\n <div class=\"text-h3 primary--text font-weight-thin mt-12 mb-4\">Verifying ...</div>\n <div class=\"text-h6 font-weight-thin\">We're verifying your account... Please wait</div>\n </v-col>\n <v-col\n v-else-if=\"!loading && verified\"\n cols=\"6\"\n sm=\"9\"\n md=\"6\"\n lg=\"4\"\n xl=\"2\"\n >\n <div class=\"text-h3 primary--text font-weight-thin mb-4\">Account Verified</div>\n <div class=\"text-h6 font-weight-thin\">\n {{ message }}\n <br>\n <br>Go to\n <span\n class=\"active-link text-h6 font-weight-thin primary--text\"\n @click=\"goToLogin\"\n >Login.</span>\n </div>\n </v-col>\n <v-col\n v-else-if=\"!loading && !verified\"\n cols=\"6\"\n sm=\"9\"\n md=\"6\"\n lg=\"4\"\n xl=\"2\"\n >\n <div class=\"text-h1 primary--text font-weight-thin mb-4\">Incorrect key</div>\n <div class=\"text-h6 font-weight-thin\">Your email couldn't be confirmed.</div>\n </v-col>\n </v-row>\n</template>\n\n<script>\nimport { verifyEmail } from '@/utils/api'\n\nexport default {\n name: 'VerifyEmail',\n data() {\n return {\n loading: false,\n verified: false,\n message: ''\n }\n },\n created() {\n this.verifyEmail()\n },\n methods: {\n verifyEmail() {\n this.loading = true\n const { key } = this.$route.query\n if (key) {\n verifyEmail(key)\n .then(response => {\n this.verified = true\n this.message = response.detail\n })\n .catch(error => {\n this.verified = false\n })\n .finally(() => {\n this.loading = false\n })\n } else {\n this.loading = false\n }\n },\n goToLogin() {\n this.$router.push({ name: 'login' })\n }\n }\n}\n</script>\n"]
|
|
317128
317141
|
},
|
|
317129
317142
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
317130
|
-
hash: "
|
|
317143
|
+
hash: "4cd889dd459869433cea1267c94c71c149b8c801"
|
|
317131
317144
|
};
|
|
317132
317145
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
317133
317146
|
|
|
@@ -317187,6 +317200,10 @@ var cov_50fq9mw5q = function () {
|
|
|
317187
317200
|
//
|
|
317188
317201
|
//
|
|
317189
317202
|
//
|
|
317203
|
+
//
|
|
317204
|
+
//
|
|
317205
|
+
//
|
|
317206
|
+
//
|
|
317190
317207
|
|
|
317191
317208
|
/* harmony default export */ var VerifyEmailvue_type_script_lang_js_ = ({
|
|
317192
317209
|
name: 'VerifyEmail',
|
|
@@ -317263,8 +317280,8 @@ var cov_50fq9mw5q = function () {
|
|
|
317263
317280
|
|
|
317264
317281
|
var VerifyEmail_component = normalizeComponent(
|
|
317265
317282
|
views_VerifyEmailvue_type_script_lang_js_,
|
|
317266
|
-
|
|
317267
|
-
|
|
317283
|
+
VerifyEmailvue_type_template_id_0460ddf2_render,
|
|
317284
|
+
VerifyEmailvue_type_template_id_0460ddf2_staticRenderFns,
|
|
317268
317285
|
false,
|
|
317269
317286
|
null,
|
|
317270
317287
|
null,
|
|
@@ -317882,7 +317899,7 @@ function mixins_auth_defineProperty(obj, key, value) { if (key in obj) { Object.
|
|
|
317882
317899
|
// CONCATENATED MODULE: ./src/mixins/fields.js
|
|
317883
317900
|
var cov_5ht757v2k = function () {
|
|
317884
317901
|
var path = "/Users/arangooj/papaemme/isabl_web/src/mixins/fields.js";
|
|
317885
|
-
var hash = "
|
|
317902
|
+
var hash = "b643f788f77d4fcd68b71d31977c281f17784e26";
|
|
317886
317903
|
var global = new Function("return this")();
|
|
317887
317904
|
var gcv = "__coverage__";
|
|
317888
317905
|
var coverageData = {
|
|
@@ -318014,207 +318031,227 @@ var cov_5ht757v2k = function () {
|
|
|
318014
318031
|
column: 6
|
|
318015
318032
|
},
|
|
318016
318033
|
end: {
|
|
318017
|
-
line:
|
|
318018
|
-
column:
|
|
318034
|
+
line: 46,
|
|
318035
|
+
column: 7
|
|
318019
318036
|
}
|
|
318020
318037
|
},
|
|
318021
318038
|
"13": {
|
|
318022
318039
|
start: {
|
|
318023
318040
|
line: 45,
|
|
318024
|
-
column:
|
|
318041
|
+
column: 8
|
|
318025
318042
|
},
|
|
318026
318043
|
end: {
|
|
318027
318044
|
line: 45,
|
|
318028
|
-
column:
|
|
318045
|
+
column: 76
|
|
318029
318046
|
}
|
|
318030
318047
|
},
|
|
318031
318048
|
"14": {
|
|
318032
318049
|
start: {
|
|
318033
|
-
line:
|
|
318050
|
+
line: 48,
|
|
318034
318051
|
column: 6
|
|
318035
318052
|
},
|
|
318036
318053
|
end: {
|
|
318037
|
-
line:
|
|
318038
|
-
column:
|
|
318054
|
+
line: 48,
|
|
318055
|
+
column: 63
|
|
318039
318056
|
}
|
|
318040
318057
|
},
|
|
318041
318058
|
"15": {
|
|
318042
318059
|
start: {
|
|
318043
|
-
line:
|
|
318060
|
+
line: 49,
|
|
318044
318061
|
column: 6
|
|
318045
318062
|
},
|
|
318046
318063
|
end: {
|
|
318047
|
-
line:
|
|
318048
|
-
column:
|
|
318064
|
+
line: 49,
|
|
318065
|
+
column: 49
|
|
318049
318066
|
}
|
|
318050
318067
|
},
|
|
318051
318068
|
"16": {
|
|
318052
318069
|
start: {
|
|
318053
|
-
line:
|
|
318070
|
+
line: 54,
|
|
318071
|
+
column: 6
|
|
318072
|
+
},
|
|
318073
|
+
end: {
|
|
318074
|
+
line: 54,
|
|
318075
|
+
column: 49
|
|
318076
|
+
}
|
|
318077
|
+
},
|
|
318078
|
+
"17": {
|
|
318079
|
+
start: {
|
|
318080
|
+
line: 55,
|
|
318081
|
+
column: 6
|
|
318082
|
+
},
|
|
318083
|
+
end: {
|
|
318084
|
+
line: 64,
|
|
318085
|
+
column: 7
|
|
318086
|
+
}
|
|
318087
|
+
},
|
|
318088
|
+
"18": {
|
|
318089
|
+
start: {
|
|
318090
|
+
line: 56,
|
|
318054
318091
|
column: 8
|
|
318055
318092
|
},
|
|
318056
318093
|
end: {
|
|
318057
|
-
line:
|
|
318094
|
+
line: 56,
|
|
318058
318095
|
column: 32
|
|
318059
318096
|
}
|
|
318060
318097
|
},
|
|
318061
|
-
"
|
|
318098
|
+
"19": {
|
|
318062
318099
|
start: {
|
|
318063
|
-
line:
|
|
318100
|
+
line: 57,
|
|
318064
318101
|
column: 8
|
|
318065
318102
|
},
|
|
318066
318103
|
end: {
|
|
318067
|
-
line:
|
|
318104
|
+
line: 63,
|
|
318068
318105
|
column: 53
|
|
318069
318106
|
}
|
|
318070
318107
|
},
|
|
318071
|
-
"
|
|
318108
|
+
"20": {
|
|
318072
318109
|
start: {
|
|
318073
|
-
line:
|
|
318110
|
+
line: 59,
|
|
318074
318111
|
column: 12
|
|
318075
318112
|
},
|
|
318076
318113
|
end: {
|
|
318077
|
-
line:
|
|
318114
|
+
line: 59,
|
|
318078
318115
|
column: 36
|
|
318079
318116
|
}
|
|
318080
318117
|
},
|
|
318081
|
-
"
|
|
318118
|
+
"21": {
|
|
318082
318119
|
start: {
|
|
318083
|
-
line:
|
|
318120
|
+
line: 60,
|
|
318084
318121
|
column: 12
|
|
318085
318122
|
},
|
|
318086
318123
|
end: {
|
|
318087
|
-
line:
|
|
318124
|
+
line: 60,
|
|
318088
318125
|
column: 38
|
|
318089
318126
|
}
|
|
318090
318127
|
},
|
|
318091
|
-
"
|
|
318128
|
+
"22": {
|
|
318092
318129
|
start: {
|
|
318093
|
-
line:
|
|
318130
|
+
line: 62,
|
|
318094
318131
|
column: 26
|
|
318095
318132
|
},
|
|
318096
318133
|
end: {
|
|
318097
|
-
line:
|
|
318134
|
+
line: 62,
|
|
318098
318135
|
column: 56
|
|
318099
318136
|
}
|
|
318100
318137
|
},
|
|
318101
|
-
"
|
|
318138
|
+
"23": {
|
|
318102
318139
|
start: {
|
|
318103
|
-
line:
|
|
318140
|
+
line: 63,
|
|
318104
318141
|
column: 26
|
|
318105
318142
|
},
|
|
318106
318143
|
end: {
|
|
318107
|
-
line:
|
|
318144
|
+
line: 63,
|
|
318108
318145
|
column: 51
|
|
318109
318146
|
}
|
|
318110
318147
|
},
|
|
318111
|
-
"
|
|
318148
|
+
"24": {
|
|
318112
318149
|
start: {
|
|
318113
|
-
line:
|
|
318150
|
+
line: 67,
|
|
318114
318151
|
column: 6
|
|
318115
318152
|
},
|
|
318116
318153
|
end: {
|
|
318117
|
-
line:
|
|
318154
|
+
line: 78,
|
|
318118
318155
|
column: 7
|
|
318119
318156
|
}
|
|
318120
318157
|
},
|
|
318121
|
-
"
|
|
318158
|
+
"25": {
|
|
318122
318159
|
start: {
|
|
318123
|
-
line:
|
|
318160
|
+
line: 68,
|
|
318124
318161
|
column: 24
|
|
318125
318162
|
},
|
|
318126
318163
|
end: {
|
|
318127
|
-
line:
|
|
318164
|
+
line: 68,
|
|
318128
318165
|
column: 64
|
|
318129
318166
|
}
|
|
318130
318167
|
},
|
|
318131
|
-
"
|
|
318168
|
+
"26": {
|
|
318132
318169
|
start: {
|
|
318133
|
-
line:
|
|
318170
|
+
line: 69,
|
|
318134
318171
|
column: 8
|
|
318135
318172
|
},
|
|
318136
318173
|
end: {
|
|
318137
|
-
line:
|
|
318174
|
+
line: 77,
|
|
318138
318175
|
column: 10
|
|
318139
318176
|
}
|
|
318140
318177
|
},
|
|
318141
|
-
"
|
|
318178
|
+
"27": {
|
|
318142
318179
|
start: {
|
|
318143
|
-
line:
|
|
318180
|
+
line: 70,
|
|
318144
318181
|
column: 10
|
|
318145
318182
|
},
|
|
318146
318183
|
end: {
|
|
318147
|
-
line:
|
|
318184
|
+
line: 76,
|
|
318148
318185
|
column: 12
|
|
318149
318186
|
}
|
|
318150
318187
|
},
|
|
318151
|
-
"
|
|
318188
|
+
"28": {
|
|
318152
318189
|
start: {
|
|
318153
|
-
line:
|
|
318190
|
+
line: 71,
|
|
318154
318191
|
column: 12
|
|
318155
318192
|
},
|
|
318156
318193
|
end: {
|
|
318157
|
-
line:
|
|
318194
|
+
line: 75,
|
|
318158
318195
|
column: 14
|
|
318159
318196
|
}
|
|
318160
318197
|
},
|
|
318161
|
-
"
|
|
318198
|
+
"29": {
|
|
318162
318199
|
start: {
|
|
318163
|
-
line:
|
|
318200
|
+
line: 72,
|
|
318164
318201
|
column: 14
|
|
318165
318202
|
},
|
|
318166
318203
|
end: {
|
|
318167
|
-
line:
|
|
318204
|
+
line: 74,
|
|
318168
318205
|
column: 15
|
|
318169
318206
|
}
|
|
318170
318207
|
},
|
|
318171
|
-
"
|
|
318208
|
+
"30": {
|
|
318172
318209
|
start: {
|
|
318173
|
-
line:
|
|
318210
|
+
line: 73,
|
|
318174
318211
|
column: 16
|
|
318175
318212
|
},
|
|
318176
318213
|
end: {
|
|
318177
|
-
line:
|
|
318214
|
+
line: 73,
|
|
318178
318215
|
column: 50
|
|
318179
318216
|
}
|
|
318180
318217
|
},
|
|
318181
|
-
"
|
|
318218
|
+
"31": {
|
|
318182
318219
|
start: {
|
|
318183
|
-
line:
|
|
318220
|
+
line: 81,
|
|
318184
318221
|
column: 6
|
|
318185
318222
|
},
|
|
318186
318223
|
end: {
|
|
318187
|
-
line:
|
|
318224
|
+
line: 87,
|
|
318188
318225
|
column: 8
|
|
318189
318226
|
}
|
|
318190
318227
|
},
|
|
318191
|
-
"
|
|
318228
|
+
"32": {
|
|
318192
318229
|
start: {
|
|
318193
|
-
line:
|
|
318230
|
+
line: 82,
|
|
318194
318231
|
column: 8
|
|
318195
318232
|
},
|
|
318196
318233
|
end: {
|
|
318197
|
-
line:
|
|
318234
|
+
line: 86,
|
|
318198
318235
|
column: 10
|
|
318199
318236
|
}
|
|
318200
318237
|
},
|
|
318201
|
-
"
|
|
318238
|
+
"33": {
|
|
318202
318239
|
start: {
|
|
318203
|
-
line:
|
|
318240
|
+
line: 83,
|
|
318204
318241
|
column: 10
|
|
318205
318242
|
},
|
|
318206
318243
|
end: {
|
|
318207
|
-
line:
|
|
318244
|
+
line: 85,
|
|
318208
318245
|
column: 11
|
|
318209
318246
|
}
|
|
318210
318247
|
},
|
|
318211
|
-
"
|
|
318248
|
+
"34": {
|
|
318212
318249
|
start: {
|
|
318213
|
-
line:
|
|
318250
|
+
line: 84,
|
|
318214
318251
|
column: 12
|
|
318215
318252
|
},
|
|
318216
318253
|
end: {
|
|
318217
|
-
line:
|
|
318254
|
+
line: 84,
|
|
318218
318255
|
column: 48
|
|
318219
318256
|
}
|
|
318220
318257
|
}
|
|
@@ -318334,7 +318371,7 @@ var cov_5ht757v2k = function () {
|
|
|
318334
318371
|
column: 46
|
|
318335
318372
|
},
|
|
318336
318373
|
end: {
|
|
318337
|
-
line:
|
|
318374
|
+
line: 50,
|
|
318338
318375
|
column: 5
|
|
318339
318376
|
}
|
|
318340
318377
|
},
|
|
@@ -318344,265 +318381,265 @@ var cov_5ht757v2k = function () {
|
|
|
318344
318381
|
name: "(anonymous_5)",
|
|
318345
318382
|
decl: {
|
|
318346
318383
|
start: {
|
|
318347
|
-
line:
|
|
318384
|
+
line: 53,
|
|
318348
318385
|
column: 4
|
|
318349
318386
|
},
|
|
318350
318387
|
end: {
|
|
318351
|
-
line:
|
|
318388
|
+
line: 53,
|
|
318352
318389
|
column: 5
|
|
318353
318390
|
}
|
|
318354
318391
|
},
|
|
318355
318392
|
loc: {
|
|
318356
318393
|
start: {
|
|
318357
|
-
line:
|
|
318394
|
+
line: 53,
|
|
318358
318395
|
column: 49
|
|
318359
318396
|
},
|
|
318360
318397
|
end: {
|
|
318361
|
-
line:
|
|
318398
|
+
line: 65,
|
|
318362
318399
|
column: 5
|
|
318363
318400
|
}
|
|
318364
318401
|
},
|
|
318365
|
-
line:
|
|
318402
|
+
line: 53
|
|
318366
318403
|
},
|
|
318367
318404
|
"6": {
|
|
318368
318405
|
name: "(anonymous_6)",
|
|
318369
318406
|
decl: {
|
|
318370
318407
|
start: {
|
|
318371
|
-
line:
|
|
318408
|
+
line: 58,
|
|
318372
318409
|
column: 16
|
|
318373
318410
|
},
|
|
318374
318411
|
end: {
|
|
318375
|
-
line:
|
|
318412
|
+
line: 58,
|
|
318376
318413
|
column: 17
|
|
318377
318414
|
}
|
|
318378
318415
|
},
|
|
318379
318416
|
loc: {
|
|
318380
318417
|
start: {
|
|
318381
|
-
line:
|
|
318418
|
+
line: 58,
|
|
318382
318419
|
column: 28
|
|
318383
318420
|
},
|
|
318384
318421
|
end: {
|
|
318385
|
-
line:
|
|
318422
|
+
line: 61,
|
|
318386
318423
|
column: 11
|
|
318387
318424
|
}
|
|
318388
318425
|
},
|
|
318389
|
-
line:
|
|
318426
|
+
line: 58
|
|
318390
318427
|
},
|
|
318391
318428
|
"7": {
|
|
318392
318429
|
name: "(anonymous_7)",
|
|
318393
318430
|
decl: {
|
|
318394
318431
|
start: {
|
|
318395
|
-
line:
|
|
318432
|
+
line: 62,
|
|
318396
318433
|
column: 17
|
|
318397
318434
|
},
|
|
318398
318435
|
end: {
|
|
318399
|
-
line:
|
|
318436
|
+
line: 62,
|
|
318400
318437
|
column: 18
|
|
318401
318438
|
}
|
|
318402
318439
|
},
|
|
318403
318440
|
loc: {
|
|
318404
318441
|
start: {
|
|
318405
|
-
line:
|
|
318442
|
+
line: 62,
|
|
318406
318443
|
column: 26
|
|
318407
318444
|
},
|
|
318408
318445
|
end: {
|
|
318409
|
-
line:
|
|
318446
|
+
line: 62,
|
|
318410
318447
|
column: 56
|
|
318411
318448
|
}
|
|
318412
318449
|
},
|
|
318413
|
-
line:
|
|
318450
|
+
line: 62
|
|
318414
318451
|
},
|
|
318415
318452
|
"8": {
|
|
318416
318453
|
name: "(anonymous_8)",
|
|
318417
318454
|
decl: {
|
|
318418
318455
|
start: {
|
|
318419
|
-
line:
|
|
318456
|
+
line: 63,
|
|
318420
318457
|
column: 19
|
|
318421
318458
|
},
|
|
318422
318459
|
end: {
|
|
318423
|
-
line:
|
|
318460
|
+
line: 63,
|
|
318424
318461
|
column: 20
|
|
318425
318462
|
}
|
|
318426
318463
|
},
|
|
318427
318464
|
loc: {
|
|
318428
318465
|
start: {
|
|
318429
|
-
line:
|
|
318466
|
+
line: 63,
|
|
318430
318467
|
column: 26
|
|
318431
318468
|
},
|
|
318432
318469
|
end: {
|
|
318433
|
-
line:
|
|
318470
|
+
line: 63,
|
|
318434
318471
|
column: 51
|
|
318435
318472
|
}
|
|
318436
318473
|
},
|
|
318437
|
-
line:
|
|
318474
|
+
line: 63
|
|
318438
318475
|
},
|
|
318439
318476
|
"9": {
|
|
318440
318477
|
name: "(anonymous_9)",
|
|
318441
318478
|
decl: {
|
|
318442
318479
|
start: {
|
|
318443
|
-
line:
|
|
318480
|
+
line: 66,
|
|
318444
318481
|
column: 4
|
|
318445
318482
|
},
|
|
318446
318483
|
end: {
|
|
318447
|
-
line:
|
|
318484
|
+
line: 66,
|
|
318448
318485
|
column: 5
|
|
318449
318486
|
}
|
|
318450
318487
|
},
|
|
318451
318488
|
loc: {
|
|
318452
318489
|
start: {
|
|
318453
|
-
line:
|
|
318490
|
+
line: 66,
|
|
318454
318491
|
column: 30
|
|
318455
318492
|
},
|
|
318456
318493
|
end: {
|
|
318457
|
-
line:
|
|
318494
|
+
line: 79,
|
|
318458
318495
|
column: 5
|
|
318459
318496
|
}
|
|
318460
318497
|
},
|
|
318461
|
-
line:
|
|
318498
|
+
line: 66
|
|
318462
318499
|
},
|
|
318463
318500
|
"10": {
|
|
318464
318501
|
name: "(anonymous_10)",
|
|
318465
318502
|
decl: {
|
|
318466
318503
|
start: {
|
|
318467
|
-
line:
|
|
318504
|
+
line: 69,
|
|
318468
318505
|
column: 42
|
|
318469
318506
|
},
|
|
318470
318507
|
end: {
|
|
318471
|
-
line:
|
|
318508
|
+
line: 69,
|
|
318472
318509
|
column: 43
|
|
318473
318510
|
}
|
|
318474
318511
|
},
|
|
318475
318512
|
loc: {
|
|
318476
318513
|
start: {
|
|
318477
|
-
line:
|
|
318514
|
+
line: 69,
|
|
318478
318515
|
column: 74
|
|
318479
318516
|
},
|
|
318480
318517
|
end: {
|
|
318481
|
-
line:
|
|
318518
|
+
line: 77,
|
|
318482
318519
|
column: 9
|
|
318483
318520
|
}
|
|
318484
318521
|
},
|
|
318485
|
-
line:
|
|
318522
|
+
line: 69
|
|
318486
318523
|
},
|
|
318487
318524
|
"11": {
|
|
318488
318525
|
name: "(anonymous_11)",
|
|
318489
318526
|
decl: {
|
|
318490
318527
|
start: {
|
|
318491
|
-
line:
|
|
318528
|
+
line: 70,
|
|
318492
318529
|
column: 30
|
|
318493
318530
|
},
|
|
318494
318531
|
end: {
|
|
318495
|
-
line:
|
|
318532
|
+
line: 70,
|
|
318496
318533
|
column: 31
|
|
318497
318534
|
}
|
|
318498
318535
|
},
|
|
318499
318536
|
loc: {
|
|
318500
318537
|
start: {
|
|
318501
|
-
line:
|
|
318538
|
+
line: 70,
|
|
318502
318539
|
column: 44
|
|
318503
318540
|
},
|
|
318504
318541
|
end: {
|
|
318505
|
-
line:
|
|
318542
|
+
line: 76,
|
|
318506
318543
|
column: 11
|
|
318507
318544
|
}
|
|
318508
318545
|
},
|
|
318509
|
-
line:
|
|
318546
|
+
line: 70
|
|
318510
318547
|
},
|
|
318511
318548
|
"12": {
|
|
318512
318549
|
name: "(anonymous_12)",
|
|
318513
318550
|
decl: {
|
|
318514
318551
|
start: {
|
|
318515
|
-
line:
|
|
318552
|
+
line: 71,
|
|
318516
318553
|
column: 46
|
|
318517
318554
|
},
|
|
318518
318555
|
end: {
|
|
318519
|
-
line:
|
|
318556
|
+
line: 71,
|
|
318520
318557
|
column: 47
|
|
318521
318558
|
}
|
|
318522
318559
|
},
|
|
318523
318560
|
loc: {
|
|
318524
318561
|
start: {
|
|
318525
|
-
line:
|
|
318562
|
+
line: 71,
|
|
318526
318563
|
column: 55
|
|
318527
318564
|
},
|
|
318528
318565
|
end: {
|
|
318529
|
-
line:
|
|
318566
|
+
line: 75,
|
|
318530
318567
|
column: 13
|
|
318531
318568
|
}
|
|
318532
318569
|
},
|
|
318533
|
-
line:
|
|
318570
|
+
line: 71
|
|
318534
318571
|
},
|
|
318535
318572
|
"13": {
|
|
318536
318573
|
name: "(anonymous_13)",
|
|
318537
318574
|
decl: {
|
|
318538
318575
|
start: {
|
|
318539
|
-
line:
|
|
318576
|
+
line: 80,
|
|
318540
318577
|
column: 4
|
|
318541
318578
|
},
|
|
318542
318579
|
end: {
|
|
318543
|
-
line:
|
|
318580
|
+
line: 80,
|
|
318544
318581
|
column: 5
|
|
318545
318582
|
}
|
|
318546
318583
|
},
|
|
318547
318584
|
loc: {
|
|
318548
318585
|
start: {
|
|
318549
|
-
line:
|
|
318586
|
+
line: 80,
|
|
318550
318587
|
column: 24
|
|
318551
318588
|
},
|
|
318552
318589
|
end: {
|
|
318553
|
-
line:
|
|
318590
|
+
line: 88,
|
|
318554
318591
|
column: 5
|
|
318555
318592
|
}
|
|
318556
318593
|
},
|
|
318557
|
-
line:
|
|
318594
|
+
line: 80
|
|
318558
318595
|
},
|
|
318559
318596
|
"14": {
|
|
318560
318597
|
name: "(anonymous_14)",
|
|
318561
318598
|
decl: {
|
|
318562
318599
|
start: {
|
|
318563
|
-
line:
|
|
318600
|
+
line: 81,
|
|
318564
318601
|
column: 26
|
|
318565
318602
|
},
|
|
318566
318603
|
end: {
|
|
318567
|
-
line:
|
|
318604
|
+
line: 81,
|
|
318568
318605
|
column: 27
|
|
318569
318606
|
}
|
|
318570
318607
|
},
|
|
318571
318608
|
loc: {
|
|
318572
318609
|
start: {
|
|
318573
|
-
line:
|
|
318610
|
+
line: 81,
|
|
318574
318611
|
column: 40
|
|
318575
318612
|
},
|
|
318576
318613
|
end: {
|
|
318577
|
-
line:
|
|
318614
|
+
line: 87,
|
|
318578
318615
|
column: 7
|
|
318579
318616
|
}
|
|
318580
318617
|
},
|
|
318581
|
-
line:
|
|
318618
|
+
line: 81
|
|
318582
318619
|
},
|
|
318583
318620
|
"15": {
|
|
318584
318621
|
name: "(anonymous_15)",
|
|
318585
318622
|
decl: {
|
|
318586
318623
|
start: {
|
|
318587
|
-
line:
|
|
318624
|
+
line: 82,
|
|
318588
318625
|
column: 40
|
|
318589
318626
|
},
|
|
318590
318627
|
end: {
|
|
318591
|
-
line:
|
|
318628
|
+
line: 82,
|
|
318592
318629
|
column: 41
|
|
318593
318630
|
}
|
|
318594
318631
|
},
|
|
318595
318632
|
loc: {
|
|
318596
318633
|
start: {
|
|
318597
|
-
line:
|
|
318634
|
+
line: 82,
|
|
318598
318635
|
column: 49
|
|
318599
318636
|
},
|
|
318600
318637
|
end: {
|
|
318601
|
-
line:
|
|
318638
|
+
line: 86,
|
|
318602
318639
|
column: 9
|
|
318603
318640
|
}
|
|
318604
318641
|
},
|
|
318605
|
-
line:
|
|
318642
|
+
line: 82
|
|
318606
318643
|
}
|
|
318607
318644
|
},
|
|
318608
318645
|
branchMap: {
|
|
@@ -318741,209 +318778,242 @@ var cov_5ht757v2k = function () {
|
|
|
318741
318778
|
"4": {
|
|
318742
318779
|
loc: {
|
|
318743
318780
|
start: {
|
|
318744
|
-
line:
|
|
318781
|
+
line: 44,
|
|
318782
|
+
column: 6
|
|
318783
|
+
},
|
|
318784
|
+
end: {
|
|
318785
|
+
line: 46,
|
|
318786
|
+
column: 7
|
|
318787
|
+
}
|
|
318788
|
+
},
|
|
318789
|
+
type: "if",
|
|
318790
|
+
locations: [{
|
|
318791
|
+
start: {
|
|
318792
|
+
line: 44,
|
|
318793
|
+
column: 6
|
|
318794
|
+
},
|
|
318795
|
+
end: {
|
|
318796
|
+
line: 46,
|
|
318797
|
+
column: 7
|
|
318798
|
+
}
|
|
318799
|
+
}, {
|
|
318800
|
+
start: {
|
|
318801
|
+
line: 44,
|
|
318802
|
+
column: 6
|
|
318803
|
+
},
|
|
318804
|
+
end: {
|
|
318805
|
+
line: 46,
|
|
318806
|
+
column: 7
|
|
318807
|
+
}
|
|
318808
|
+
}],
|
|
318809
|
+
line: 44
|
|
318810
|
+
},
|
|
318811
|
+
"5": {
|
|
318812
|
+
loc: {
|
|
318813
|
+
start: {
|
|
318814
|
+
line: 54,
|
|
318745
318815
|
column: 16
|
|
318746
318816
|
},
|
|
318747
318817
|
end: {
|
|
318748
|
-
line:
|
|
318818
|
+
line: 54,
|
|
318749
318819
|
column: 49
|
|
318750
318820
|
}
|
|
318751
318821
|
},
|
|
318752
318822
|
type: "binary-expr",
|
|
318753
318823
|
locations: [{
|
|
318754
318824
|
start: {
|
|
318755
|
-
line:
|
|
318825
|
+
line: 54,
|
|
318756
318826
|
column: 16
|
|
318757
318827
|
},
|
|
318758
318828
|
end: {
|
|
318759
|
-
line:
|
|
318829
|
+
line: 54,
|
|
318760
318830
|
column: 23
|
|
318761
318831
|
}
|
|
318762
318832
|
}, {
|
|
318763
318833
|
start: {
|
|
318764
|
-
line:
|
|
318834
|
+
line: 54,
|
|
318765
318835
|
column: 27
|
|
318766
318836
|
},
|
|
318767
318837
|
end: {
|
|
318768
|
-
line:
|
|
318838
|
+
line: 54,
|
|
318769
318839
|
column: 49
|
|
318770
318840
|
}
|
|
318771
318841
|
}],
|
|
318772
|
-
line:
|
|
318842
|
+
line: 54
|
|
318773
318843
|
},
|
|
318774
|
-
"
|
|
318844
|
+
"6": {
|
|
318775
318845
|
loc: {
|
|
318776
318846
|
start: {
|
|
318777
|
-
line:
|
|
318847
|
+
line: 55,
|
|
318778
318848
|
column: 6
|
|
318779
318849
|
},
|
|
318780
318850
|
end: {
|
|
318781
|
-
line:
|
|
318851
|
+
line: 64,
|
|
318782
318852
|
column: 7
|
|
318783
318853
|
}
|
|
318784
318854
|
},
|
|
318785
318855
|
type: "if",
|
|
318786
318856
|
locations: [{
|
|
318787
318857
|
start: {
|
|
318788
|
-
line:
|
|
318858
|
+
line: 55,
|
|
318789
318859
|
column: 6
|
|
318790
318860
|
},
|
|
318791
318861
|
end: {
|
|
318792
|
-
line:
|
|
318862
|
+
line: 64,
|
|
318793
318863
|
column: 7
|
|
318794
318864
|
}
|
|
318795
318865
|
}, {
|
|
318796
318866
|
start: {
|
|
318797
|
-
line:
|
|
318867
|
+
line: 55,
|
|
318798
318868
|
column: 6
|
|
318799
318869
|
},
|
|
318800
318870
|
end: {
|
|
318801
|
-
line:
|
|
318871
|
+
line: 64,
|
|
318802
318872
|
column: 7
|
|
318803
318873
|
}
|
|
318804
318874
|
}],
|
|
318805
|
-
line:
|
|
318875
|
+
line: 55
|
|
318806
318876
|
},
|
|
318807
|
-
"
|
|
318877
|
+
"7": {
|
|
318808
318878
|
loc: {
|
|
318809
318879
|
start: {
|
|
318810
|
-
line:
|
|
318880
|
+
line: 55,
|
|
318811
318881
|
column: 10
|
|
318812
318882
|
},
|
|
318813
318883
|
end: {
|
|
318814
|
-
line:
|
|
318884
|
+
line: 55,
|
|
318815
318885
|
column: 53
|
|
318816
318886
|
}
|
|
318817
318887
|
},
|
|
318818
318888
|
type: "binary-expr",
|
|
318819
318889
|
locations: [{
|
|
318820
318890
|
start: {
|
|
318821
|
-
line:
|
|
318891
|
+
line: 55,
|
|
318822
318892
|
column: 10
|
|
318823
318893
|
},
|
|
318824
318894
|
end: {
|
|
318825
|
-
line:
|
|
318895
|
+
line: 55,
|
|
318826
318896
|
column: 17
|
|
318827
318897
|
}
|
|
318828
318898
|
}, {
|
|
318829
318899
|
start: {
|
|
318830
|
-
line:
|
|
318900
|
+
line: 55,
|
|
318831
318901
|
column: 21
|
|
318832
318902
|
},
|
|
318833
318903
|
end: {
|
|
318834
|
-
line:
|
|
318904
|
+
line: 55,
|
|
318835
318905
|
column: 25
|
|
318836
318906
|
}
|
|
318837
318907
|
}, {
|
|
318838
318908
|
start: {
|
|
318839
|
-
line:
|
|
318909
|
+
line: 55,
|
|
318840
318910
|
column: 29
|
|
318841
318911
|
},
|
|
318842
318912
|
end: {
|
|
318843
|
-
line:
|
|
318913
|
+
line: 55,
|
|
318844
318914
|
column: 53
|
|
318845
318915
|
}
|
|
318846
318916
|
}],
|
|
318847
|
-
line:
|
|
318917
|
+
line: 55
|
|
318848
318918
|
},
|
|
318849
|
-
"
|
|
318919
|
+
"8": {
|
|
318850
318920
|
loc: {
|
|
318851
318921
|
start: {
|
|
318852
|
-
line:
|
|
318922
|
+
line: 67,
|
|
318853
318923
|
column: 6
|
|
318854
318924
|
},
|
|
318855
318925
|
end: {
|
|
318856
|
-
line:
|
|
318926
|
+
line: 78,
|
|
318857
318927
|
column: 7
|
|
318858
318928
|
}
|
|
318859
318929
|
},
|
|
318860
318930
|
type: "if",
|
|
318861
318931
|
locations: [{
|
|
318862
318932
|
start: {
|
|
318863
|
-
line:
|
|
318933
|
+
line: 67,
|
|
318864
318934
|
column: 6
|
|
318865
318935
|
},
|
|
318866
318936
|
end: {
|
|
318867
|
-
line:
|
|
318937
|
+
line: 78,
|
|
318868
318938
|
column: 7
|
|
318869
318939
|
}
|
|
318870
318940
|
}, {
|
|
318871
318941
|
start: {
|
|
318872
|
-
line:
|
|
318942
|
+
line: 67,
|
|
318873
318943
|
column: 6
|
|
318874
318944
|
},
|
|
318875
318945
|
end: {
|
|
318876
|
-
line:
|
|
318946
|
+
line: 78,
|
|
318877
318947
|
column: 7
|
|
318878
318948
|
}
|
|
318879
318949
|
}],
|
|
318880
|
-
line:
|
|
318950
|
+
line: 67
|
|
318881
318951
|
},
|
|
318882
|
-
"
|
|
318952
|
+
"9": {
|
|
318883
318953
|
loc: {
|
|
318884
318954
|
start: {
|
|
318885
|
-
line:
|
|
318955
|
+
line: 72,
|
|
318886
318956
|
column: 14
|
|
318887
318957
|
},
|
|
318888
318958
|
end: {
|
|
318889
|
-
line:
|
|
318959
|
+
line: 74,
|
|
318890
318960
|
column: 15
|
|
318891
318961
|
}
|
|
318892
318962
|
},
|
|
318893
318963
|
type: "if",
|
|
318894
318964
|
locations: [{
|
|
318895
318965
|
start: {
|
|
318896
|
-
line:
|
|
318966
|
+
line: 72,
|
|
318897
318967
|
column: 14
|
|
318898
318968
|
},
|
|
318899
318969
|
end: {
|
|
318900
|
-
line:
|
|
318970
|
+
line: 74,
|
|
318901
318971
|
column: 15
|
|
318902
318972
|
}
|
|
318903
318973
|
}, {
|
|
318904
318974
|
start: {
|
|
318905
|
-
line:
|
|
318975
|
+
line: 72,
|
|
318906
318976
|
column: 14
|
|
318907
318977
|
},
|
|
318908
318978
|
end: {
|
|
318909
|
-
line:
|
|
318979
|
+
line: 74,
|
|
318910
318980
|
column: 15
|
|
318911
318981
|
}
|
|
318912
318982
|
}],
|
|
318913
|
-
line:
|
|
318983
|
+
line: 72
|
|
318914
318984
|
},
|
|
318915
|
-
"
|
|
318985
|
+
"10": {
|
|
318916
318986
|
loc: {
|
|
318917
318987
|
start: {
|
|
318918
|
-
line:
|
|
318988
|
+
line: 83,
|
|
318919
318989
|
column: 10
|
|
318920
318990
|
},
|
|
318921
318991
|
end: {
|
|
318922
|
-
line:
|
|
318992
|
+
line: 85,
|
|
318923
318993
|
column: 11
|
|
318924
318994
|
}
|
|
318925
318995
|
},
|
|
318926
318996
|
type: "if",
|
|
318927
318997
|
locations: [{
|
|
318928
318998
|
start: {
|
|
318929
|
-
line:
|
|
318999
|
+
line: 83,
|
|
318930
319000
|
column: 10
|
|
318931
319001
|
},
|
|
318932
319002
|
end: {
|
|
318933
|
-
line:
|
|
319003
|
+
line: 85,
|
|
318934
319004
|
column: 11
|
|
318935
319005
|
}
|
|
318936
319006
|
}, {
|
|
318937
319007
|
start: {
|
|
318938
|
-
line:
|
|
319008
|
+
line: 83,
|
|
318939
319009
|
column: 10
|
|
318940
319010
|
},
|
|
318941
319011
|
end: {
|
|
318942
|
-
line:
|
|
319012
|
+
line: 85,
|
|
318943
319013
|
column: 11
|
|
318944
319014
|
}
|
|
318945
319015
|
}],
|
|
318946
|
-
line:
|
|
319016
|
+
line: 83
|
|
318947
319017
|
}
|
|
318948
319018
|
},
|
|
318949
319019
|
s: {
|
|
@@ -318979,7 +319049,9 @@ var cov_5ht757v2k = function () {
|
|
|
318979
319049
|
"29": 0,
|
|
318980
319050
|
"30": 0,
|
|
318981
319051
|
"31": 0,
|
|
318982
|
-
"32": 0
|
|
319052
|
+
"32": 0,
|
|
319053
|
+
"33": 0,
|
|
319054
|
+
"34": 0
|
|
318983
319055
|
},
|
|
318984
319056
|
f: {
|
|
318985
319057
|
"0": 0,
|
|
@@ -319006,13 +319078,14 @@ var cov_5ht757v2k = function () {
|
|
|
319006
319078
|
"3": [0, 0],
|
|
319007
319079
|
"4": [0, 0],
|
|
319008
319080
|
"5": [0, 0],
|
|
319009
|
-
"6": [0, 0
|
|
319010
|
-
"7": [0, 0],
|
|
319081
|
+
"6": [0, 0],
|
|
319082
|
+
"7": [0, 0, 0],
|
|
319011
319083
|
"8": [0, 0],
|
|
319012
|
-
"9": [0, 0]
|
|
319084
|
+
"9": [0, 0],
|
|
319085
|
+
"10": [0, 0]
|
|
319013
319086
|
},
|
|
319014
319087
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
319015
|
-
hash: "
|
|
319088
|
+
hash: "b643f788f77d4fcd68b71d31977c281f17784e26"
|
|
319016
319089
|
};
|
|
319017
319090
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
319018
319091
|
|
|
@@ -319135,13 +319208,23 @@ var pluralizedModels = (cov_5ht757v2k.s[0]++, {
|
|
|
319135
319208
|
}
|
|
319136
319209
|
|
|
319137
319210
|
cov_5ht757v2k.s[12]++;
|
|
319211
|
+
|
|
319212
|
+
if (errorMessage == 'Failed to fetch bioModel: Object not found try a different ID') {
|
|
319213
|
+
cov_5ht757v2k.b[4][0]++;
|
|
319214
|
+
cov_5ht757v2k.s[13]++;
|
|
319215
|
+
errorMessage = 'Sample not found: It might be private or not exist.';
|
|
319216
|
+
} else {
|
|
319217
|
+
cov_5ht757v2k.b[4][1]++;
|
|
319218
|
+
}
|
|
319219
|
+
|
|
319220
|
+
cov_5ht757v2k.s[14]++;
|
|
319138
319221
|
this.$store.dispatch(SHOW_ALERT, {
|
|
319139
319222
|
error: errorMessage
|
|
319140
319223
|
});
|
|
319141
|
-
cov_5ht757v2k.s[
|
|
319224
|
+
cov_5ht757v2k.s[15]++;
|
|
319142
319225
|
this.$store.dispatch(HIDE_PANEL, modelName);
|
|
319143
319226
|
|
|
319144
|
-
case
|
|
319227
|
+
case 10:
|
|
319145
319228
|
case "end":
|
|
319146
319229
|
return _context2.stop();
|
|
319147
319230
|
}
|
|
@@ -319165,34 +319248,34 @@ var pluralizedModels = (cov_5ht757v2k.s[0]++, {
|
|
|
319165
319248
|
switch (_context3.prev = _context3.next) {
|
|
319166
319249
|
case 0:
|
|
319167
319250
|
cov_5ht757v2k.f[5]++;
|
|
319168
|
-
cov_5ht757v2k.s[
|
|
319169
|
-
modelId = (cov_5ht757v2k.b[
|
|
319170
|
-
cov_5ht757v2k.s[
|
|
319251
|
+
cov_5ht757v2k.s[16]++;
|
|
319252
|
+
modelId = (cov_5ht757v2k.b[5][0]++, modelId) || (cov_5ht757v2k.b[5][1]++, this["".concat(modelName, "Id")]);
|
|
319253
|
+
cov_5ht757v2k.s[17]++;
|
|
319171
319254
|
|
|
319172
|
-
if ((cov_5ht757v2k.b[
|
|
319173
|
-
cov_5ht757v2k.b[
|
|
319174
|
-
cov_5ht757v2k.s[
|
|
319255
|
+
if ((cov_5ht757v2k.b[7][0]++, modelId) && (cov_5ht757v2k.b[7][1]++, data) && (cov_5ht757v2k.b[7][2]++, Object.keys(data).length)) {
|
|
319256
|
+
cov_5ht757v2k.b[6][0]++;
|
|
319257
|
+
cov_5ht757v2k.s[18]++;
|
|
319175
319258
|
this.fieldLoading = true;
|
|
319176
|
-
cov_5ht757v2k.s[
|
|
319259
|
+
cov_5ht757v2k.s[19]++;
|
|
319177
319260
|
updateRecord(pluralizedModels[modelName], modelId, data).then(function (response) {
|
|
319178
319261
|
cov_5ht757v2k.f[6]++;
|
|
319179
|
-
cov_5ht757v2k.s[
|
|
319262
|
+
cov_5ht757v2k.s[20]++;
|
|
319180
319263
|
|
|
319181
319264
|
_this2.$cleanFieldErrors();
|
|
319182
319265
|
|
|
319183
|
-
cov_5ht757v2k.s[
|
|
319266
|
+
cov_5ht757v2k.s[21]++;
|
|
319184
319267
|
_this2[modelName] = response;
|
|
319185
319268
|
}).catch(function (error) {
|
|
319186
319269
|
cov_5ht757v2k.f[7]++;
|
|
319187
|
-
cov_5ht757v2k.s[
|
|
319270
|
+
cov_5ht757v2k.s[22]++;
|
|
319188
319271
|
return _this2.$handleFieldErrors(error);
|
|
319189
319272
|
}).finally(function () {
|
|
319190
319273
|
cov_5ht757v2k.f[8]++;
|
|
319191
|
-
cov_5ht757v2k.s[
|
|
319274
|
+
cov_5ht757v2k.s[23]++;
|
|
319192
319275
|
return _this2.fieldLoading = false;
|
|
319193
319276
|
});
|
|
319194
319277
|
} else {
|
|
319195
|
-
cov_5ht757v2k.b[
|
|
319278
|
+
cov_5ht757v2k.b[6][1]++;
|
|
319196
319279
|
}
|
|
319197
319280
|
|
|
319198
319281
|
case 5:
|
|
@@ -319213,57 +319296,57 @@ var pluralizedModels = (cov_5ht757v2k.s[0]++, {
|
|
|
319213
319296
|
var _this3 = this;
|
|
319214
319297
|
|
|
319215
319298
|
cov_5ht757v2k.f[9]++;
|
|
319216
|
-
cov_5ht757v2k.s[
|
|
319299
|
+
cov_5ht757v2k.s[24]++;
|
|
319217
319300
|
|
|
319218
319301
|
if (error.response) {
|
|
319219
|
-
cov_5ht757v2k.b[
|
|
319220
|
-
var flatError = (cov_5ht757v2k.s[
|
|
319221
|
-
cov_5ht757v2k.s[
|
|
319302
|
+
cov_5ht757v2k.b[8][0]++;
|
|
319303
|
+
var flatError = (cov_5ht757v2k.s[25]++, Object(helpers["e" /* flattenObject */])(error.response.data, true));
|
|
319304
|
+
cov_5ht757v2k.s[26]++;
|
|
319222
319305
|
Object.entries(flatError).forEach(function (_ref) {
|
|
319223
319306
|
var _ref2 = fields_slicedToArray(_ref, 2),
|
|
319224
319307
|
errorField = _ref2[0],
|
|
319225
319308
|
errorMessage = _ref2[1];
|
|
319226
319309
|
|
|
319227
319310
|
cov_5ht757v2k.f[10]++;
|
|
319228
|
-
cov_5ht757v2k.s[
|
|
319311
|
+
cov_5ht757v2k.s[27]++;
|
|
319229
319312
|
|
|
319230
319313
|
_this3.fields.forEach(function (fieldGroup) {
|
|
319231
319314
|
cov_5ht757v2k.f[11]++;
|
|
319232
|
-
cov_5ht757v2k.s[
|
|
319315
|
+
cov_5ht757v2k.s[28]++;
|
|
319233
319316
|
Object.values(fieldGroup).forEach(function (field) {
|
|
319234
319317
|
cov_5ht757v2k.f[12]++;
|
|
319235
|
-
cov_5ht757v2k.s[
|
|
319318
|
+
cov_5ht757v2k.s[29]++;
|
|
319236
319319
|
|
|
319237
319320
|
if (field.field === errorField) {
|
|
319238
|
-
cov_5ht757v2k.b[
|
|
319239
|
-
cov_5ht757v2k.s[
|
|
319321
|
+
cov_5ht757v2k.b[9][0]++;
|
|
319322
|
+
cov_5ht757v2k.s[30]++;
|
|
319240
319323
|
field.errorMessages = errorMessage;
|
|
319241
319324
|
} else {
|
|
319242
|
-
cov_5ht757v2k.b[
|
|
319325
|
+
cov_5ht757v2k.b[9][1]++;
|
|
319243
319326
|
}
|
|
319244
319327
|
});
|
|
319245
319328
|
});
|
|
319246
319329
|
});
|
|
319247
319330
|
} else {
|
|
319248
|
-
cov_5ht757v2k.b[
|
|
319331
|
+
cov_5ht757v2k.b[8][1]++;
|
|
319249
319332
|
}
|
|
319250
319333
|
},
|
|
319251
319334
|
$cleanFieldErrors: function $cleanFieldErrors() {
|
|
319252
319335
|
cov_5ht757v2k.f[13]++;
|
|
319253
|
-
cov_5ht757v2k.s[
|
|
319336
|
+
cov_5ht757v2k.s[31]++;
|
|
319254
319337
|
this.fields.forEach(function (fieldGroup) {
|
|
319255
319338
|
cov_5ht757v2k.f[14]++;
|
|
319256
|
-
cov_5ht757v2k.s[
|
|
319339
|
+
cov_5ht757v2k.s[32]++;
|
|
319257
319340
|
Object.keys(fieldGroup).forEach(function (field) {
|
|
319258
319341
|
cov_5ht757v2k.f[15]++;
|
|
319259
|
-
cov_5ht757v2k.s[
|
|
319342
|
+
cov_5ht757v2k.s[33]++;
|
|
319260
319343
|
|
|
319261
319344
|
if ('errorMessages' in fieldGroup[field]) {
|
|
319262
|
-
cov_5ht757v2k.b[
|
|
319263
|
-
cov_5ht757v2k.s[
|
|
319345
|
+
cov_5ht757v2k.b[10][0]++;
|
|
319346
|
+
cov_5ht757v2k.s[34]++;
|
|
319264
319347
|
fieldGroup[field].errorMessages = [];
|
|
319265
319348
|
} else {
|
|
319266
|
-
cov_5ht757v2k.b[
|
|
319349
|
+
cov_5ht757v2k.b[10][1]++;
|
|
319267
319350
|
}
|
|
319268
319351
|
});
|
|
319269
319352
|
});
|