@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.common.js
CHANGED
|
@@ -91398,7 +91398,7 @@ module.exports = overArg;
|
|
|
91398
91398
|
/***/ "9224":
|
|
91399
91399
|
/***/ (function(module) {
|
|
91400
91400
|
|
|
91401
|
-
module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.
|
|
91401
|
+
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\"}");
|
|
91402
91402
|
|
|
91403
91403
|
/***/ }),
|
|
91404
91404
|
|
|
@@ -207395,7 +207395,7 @@ var uniq_default = /*#__PURE__*/__webpack_require__.n(uniq);
|
|
|
207395
207395
|
// CONCATENATED MODULE: ./src/utils/tableColumns.js
|
|
207396
207396
|
var cov_2ayhkohved = function () {
|
|
207397
207397
|
var path = "/Users/arangooj/papaemme/isabl_web/src/utils/tableColumns.js";
|
|
207398
|
-
var hash = "
|
|
207398
|
+
var hash = "143b737214c27d4a402dbdc710367ab5de024387";
|
|
207399
207399
|
var global = new Function("return this")();
|
|
207400
207400
|
var gcv = "__coverage__";
|
|
207401
207401
|
var coverageData = {
|
|
@@ -207933,11 +207933,11 @@ var cov_2ayhkohved = function () {
|
|
|
207933
207933
|
},
|
|
207934
207934
|
"53": {
|
|
207935
207935
|
start: {
|
|
207936
|
-
line:
|
|
207936
|
+
line: 341,
|
|
207937
207937
|
column: 8
|
|
207938
207938
|
},
|
|
207939
207939
|
end: {
|
|
207940
|
-
line:
|
|
207940
|
+
line: 341,
|
|
207941
207941
|
column: 72
|
|
207942
207942
|
}
|
|
207943
207943
|
},
|
|
@@ -208469,25 +208469,25 @@ var cov_2ayhkohved = function () {
|
|
|
208469
208469
|
name: "(anonymous_18)",
|
|
208470
208470
|
decl: {
|
|
208471
208471
|
start: {
|
|
208472
|
-
line:
|
|
208472
|
+
line: 340,
|
|
208473
208473
|
column: 16
|
|
208474
208474
|
},
|
|
208475
208475
|
end: {
|
|
208476
|
-
line:
|
|
208476
|
+
line: 340,
|
|
208477
208477
|
column: 17
|
|
208478
208478
|
}
|
|
208479
208479
|
},
|
|
208480
208480
|
loc: {
|
|
208481
208481
|
start: {
|
|
208482
|
-
line:
|
|
208482
|
+
line: 341,
|
|
208483
208483
|
column: 8
|
|
208484
208484
|
},
|
|
208485
208485
|
end: {
|
|
208486
|
-
line:
|
|
208486
|
+
line: 341,
|
|
208487
208487
|
column: 72
|
|
208488
208488
|
}
|
|
208489
208489
|
},
|
|
208490
|
-
line:
|
|
208490
|
+
line: 341
|
|
208491
208491
|
},
|
|
208492
208492
|
"19": {
|
|
208493
208493
|
name: "(anonymous_19)",
|
|
@@ -209016,68 +209016,68 @@ var cov_2ayhkohved = function () {
|
|
|
209016
209016
|
"10": {
|
|
209017
209017
|
loc: {
|
|
209018
209018
|
start: {
|
|
209019
|
-
line:
|
|
209019
|
+
line: 341,
|
|
209020
209020
|
column: 8
|
|
209021
209021
|
},
|
|
209022
209022
|
end: {
|
|
209023
|
-
line:
|
|
209023
|
+
line: 341,
|
|
209024
209024
|
column: 72
|
|
209025
209025
|
}
|
|
209026
209026
|
},
|
|
209027
209027
|
type: "cond-expr",
|
|
209028
209028
|
locations: [{
|
|
209029
209029
|
start: {
|
|
209030
|
-
line:
|
|
209030
|
+
line: 341,
|
|
209031
209031
|
column: 52
|
|
209032
209032
|
},
|
|
209033
209033
|
end: {
|
|
209034
|
-
line:
|
|
209034
|
+
line: 341,
|
|
209035
209035
|
column: 60
|
|
209036
209036
|
}
|
|
209037
209037
|
}, {
|
|
209038
209038
|
start: {
|
|
209039
|
-
line:
|
|
209039
|
+
line: 341,
|
|
209040
209040
|
column: 63
|
|
209041
209041
|
},
|
|
209042
209042
|
end: {
|
|
209043
|
-
line:
|
|
209043
|
+
line: 341,
|
|
209044
209044
|
column: 72
|
|
209045
209045
|
}
|
|
209046
209046
|
}],
|
|
209047
|
-
line:
|
|
209047
|
+
line: 341
|
|
209048
209048
|
},
|
|
209049
209049
|
"11": {
|
|
209050
209050
|
loc: {
|
|
209051
209051
|
start: {
|
|
209052
|
-
line:
|
|
209052
|
+
line: 341,
|
|
209053
209053
|
column: 8
|
|
209054
209054
|
},
|
|
209055
209055
|
end: {
|
|
209056
|
-
line:
|
|
209056
|
+
line: 341,
|
|
209057
209057
|
column: 49
|
|
209058
209058
|
}
|
|
209059
209059
|
},
|
|
209060
209060
|
type: "binary-expr",
|
|
209061
209061
|
locations: [{
|
|
209062
209062
|
start: {
|
|
209063
|
-
line:
|
|
209063
|
+
line: 341,
|
|
209064
209064
|
column: 8
|
|
209065
209065
|
},
|
|
209066
209066
|
end: {
|
|
209067
|
-
line:
|
|
209067
|
+
line: 341,
|
|
209068
209068
|
column: 22
|
|
209069
209069
|
}
|
|
209070
209070
|
}, {
|
|
209071
209071
|
start: {
|
|
209072
|
-
line:
|
|
209072
|
+
line: 341,
|
|
209073
209073
|
column: 26
|
|
209074
209074
|
},
|
|
209075
209075
|
end: {
|
|
209076
|
-
line:
|
|
209076
|
+
line: 341,
|
|
209077
209077
|
column: 49
|
|
209078
209078
|
}
|
|
209079
209079
|
}],
|
|
209080
|
-
line:
|
|
209080
|
+
line: 341
|
|
209081
209081
|
},
|
|
209082
209082
|
"12": {
|
|
209083
209083
|
loc: {
|
|
@@ -209325,7 +209325,7 @@ var cov_2ayhkohved = function () {
|
|
|
209325
209325
|
"15": [0, 0]
|
|
209326
209326
|
},
|
|
209327
209327
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
209328
|
-
hash: "
|
|
209328
|
+
hash: "143b737214c27d4a402dbdc710367ab5de024387"
|
|
209329
209329
|
};
|
|
209330
209330
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
209331
209331
|
|
|
@@ -209693,6 +209693,14 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
|
|
|
209693
209693
|
}, {
|
|
209694
209694
|
verboseName: 'Title',
|
|
209695
209695
|
field: 'title'
|
|
209696
|
+
}, {
|
|
209697
|
+
verboseName: 'Access',
|
|
209698
|
+
field: 'sharing.is_public',
|
|
209699
|
+
accessor: function accessor(value) {
|
|
209700
|
+
cov_2ayhkohved.f[18]++;
|
|
209701
|
+
cov_2ayhkohved.s[53]++;
|
|
209702
|
+
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');
|
|
209703
|
+
}
|
|
209696
209704
|
}, {
|
|
209697
209705
|
verboseName: 'Group',
|
|
209698
209706
|
field: 'group.acronym'
|
|
@@ -209724,14 +209732,6 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
|
|
|
209724
209732
|
{
|
|
209725
209733
|
verboseName: 'Description',
|
|
209726
209734
|
field: 'description'
|
|
209727
|
-
}, {
|
|
209728
|
-
verboseName: 'Access',
|
|
209729
|
-
field: 'sharing.is_public',
|
|
209730
|
-
accessor: function accessor(value) {
|
|
209731
|
-
cov_2ayhkohved.f[18]++;
|
|
209732
|
-
cov_2ayhkohved.s[53]++;
|
|
209733
|
-
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');
|
|
209734
|
-
}
|
|
209735
209735
|
}].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[12][0]++, tableColumns_settings.customFields.projectFields) || (cov_2ayhkohved.b[12][1]++, {})))),
|
|
209736
209736
|
analyses: [{
|
|
209737
209737
|
verboseName: 'Key',
|
|
@@ -223035,12 +223035,12 @@ var EditProfileModal_component = normalizeComponent(
|
|
|
223035
223035
|
)
|
|
223036
223036
|
|
|
223037
223037
|
/* harmony default export */ var EditProfileModal = (EditProfileModal_component.exports);
|
|
223038
|
-
// 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=
|
|
223039
|
-
var
|
|
223040
|
-
var
|
|
223038
|
+
// 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&
|
|
223039
|
+
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}])})}
|
|
223040
|
+
var NewProjectModalvue_type_template_id_35e14c2e_staticRenderFns = []
|
|
223041
223041
|
|
|
223042
223042
|
|
|
223043
|
-
// CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=
|
|
223043
|
+
// CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=35e14c2e&
|
|
223044
223044
|
|
|
223045
223045
|
// EXTERNAL MODULE: ./node_modules/lodash/has.js
|
|
223046
223046
|
var has = __webpack_require__("3852");
|
|
@@ -226212,7 +226212,7 @@ var SharingSettings_component = normalizeComponent(
|
|
|
226212
226212
|
// 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&
|
|
226213
226213
|
var cov_2q2n13agp2 = function () {
|
|
226214
226214
|
var path = "/Users/arangooj/papaemme/isabl_web/src/components/projects/NewProjectModal.vue";
|
|
226215
|
-
var hash = "
|
|
226215
|
+
var hash = "0895a72217b0e4748c38c745006ed03a3932d37e";
|
|
226216
226216
|
var global = new Function("return this")();
|
|
226217
226217
|
var gcv = "__coverage__";
|
|
226218
226218
|
var coverageData = {
|
|
@@ -227495,10 +227495,10 @@ var cov_2q2n13agp2 = function () {
|
|
|
227495
227495
|
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",
|
|
227496
227496
|
file: "NewProjectModal.vue",
|
|
227497
227497
|
sourceRoot: "src/components/projects",
|
|
227498
|
-
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:
|
|
227498
|
+
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"]
|
|
227499
227499
|
},
|
|
227500
227500
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
227501
|
-
hash: "
|
|
227501
|
+
hash: "0895a72217b0e4748c38c745006ed03a3932d37e"
|
|
227502
227502
|
};
|
|
227503
227503
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
227504
227504
|
|
|
@@ -227735,7 +227735,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
|
|
|
227735
227735
|
sharing: sharing,
|
|
227736
227736
|
refs: {},
|
|
227737
227737
|
rules: rules,
|
|
227738
|
-
showOptionalFields:
|
|
227738
|
+
showOptionalFields: false,
|
|
227739
227739
|
users: [],
|
|
227740
227740
|
usersQuery: '',
|
|
227741
227741
|
camelifyKeys: helpers["a" /* camelifyKeys */]
|
|
@@ -228003,8 +228003,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
|
|
|
228003
228003
|
|
|
228004
228004
|
var NewProjectModal_component = normalizeComponent(
|
|
228005
228005
|
projects_NewProjectModalvue_type_script_lang_js_,
|
|
228006
|
-
|
|
228007
|
-
|
|
228006
|
+
NewProjectModalvue_type_template_id_35e14c2e_render,
|
|
228007
|
+
NewProjectModalvue_type_template_id_35e14c2e_staticRenderFns,
|
|
228008
228008
|
false,
|
|
228009
228009
|
null,
|
|
228010
228010
|
null,
|
|
@@ -301037,18 +301037,18 @@ var BioModelPanelvue_type_template_id_b52cff22_staticRenderFns = []
|
|
|
301037
301037
|
|
|
301038
301038
|
// CONCATENATED MODULE: ./src/components/bioModels/BioModelPanel.vue?vue&type=template&id=b52cff22&
|
|
301039
301039
|
|
|
301040
|
-
// 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=
|
|
301041
|
-
var
|
|
301040
|
+
// 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&
|
|
301041
|
+
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
|
|
301042
301042
|
_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)}
|
|
301043
|
-
var
|
|
301043
|
+
var BioModelTreevue_type_template_id_50c9e1d2_staticRenderFns = []
|
|
301044
301044
|
|
|
301045
301045
|
|
|
301046
|
-
// CONCATENATED MODULE: ./src/components/bioModels/BioModelTree.vue?vue&type=template&id=
|
|
301046
|
+
// CONCATENATED MODULE: ./src/components/bioModels/BioModelTree.vue?vue&type=template&id=50c9e1d2&
|
|
301047
301047
|
|
|
301048
301048
|
// 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&
|
|
301049
301049
|
var cov_2f0u9tmiep = function () {
|
|
301050
301050
|
var path = "/Users/arangooj/papaemme/isabl_web/src/components/bioModels/BioModelTree.vue";
|
|
301051
|
-
var hash = "
|
|
301051
|
+
var hash = "35800f777c9e06999d7627afedbe72c07beb2e2a";
|
|
301052
301052
|
var global = new Function("return this")();
|
|
301053
301053
|
var gcv = "__coverage__";
|
|
301054
301054
|
var coverageData = {
|
|
@@ -303090,7 +303090,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
303090
303090
|
column: 6
|
|
303091
303091
|
},
|
|
303092
303092
|
end: {
|
|
303093
|
-
line:
|
|
303093
|
+
line: 581,
|
|
303094
303094
|
column: 7
|
|
303095
303095
|
}
|
|
303096
303096
|
},
|
|
@@ -303120,87 +303120,97 @@ var cov_2f0u9tmiep = function () {
|
|
|
303120
303120
|
column: 8
|
|
303121
303121
|
},
|
|
303122
303122
|
end: {
|
|
303123
|
+
line: 576,
|
|
303124
|
+
column: 50
|
|
303125
|
+
}
|
|
303126
|
+
},
|
|
303127
|
+
"207": {
|
|
303128
|
+
start: {
|
|
303123
303129
|
line: 578,
|
|
303130
|
+
column: 8
|
|
303131
|
+
},
|
|
303132
|
+
end: {
|
|
303133
|
+
line: 580,
|
|
303124
303134
|
column: 10
|
|
303125
303135
|
}
|
|
303126
303136
|
},
|
|
303127
|
-
"
|
|
303137
|
+
"208": {
|
|
303128
303138
|
start: {
|
|
303129
|
-
line:
|
|
303139
|
+
line: 584,
|
|
303130
303140
|
column: 6
|
|
303131
303141
|
},
|
|
303132
303142
|
end: {
|
|
303133
|
-
line:
|
|
303143
|
+
line: 590,
|
|
303134
303144
|
column: 8
|
|
303135
303145
|
}
|
|
303136
303146
|
},
|
|
303137
|
-
"
|
|
303147
|
+
"209": {
|
|
303138
303148
|
start: {
|
|
303139
|
-
line:
|
|
303149
|
+
line: 585,
|
|
303140
303150
|
column: 8
|
|
303141
303151
|
},
|
|
303142
303152
|
end: {
|
|
303143
|
-
line:
|
|
303153
|
+
line: 589,
|
|
303144
303154
|
column: 17
|
|
303145
303155
|
}
|
|
303146
303156
|
},
|
|
303147
|
-
"
|
|
303157
|
+
"210": {
|
|
303148
303158
|
start: {
|
|
303149
|
-
line:
|
|
303159
|
+
line: 586,
|
|
303150
303160
|
column: 10
|
|
303151
303161
|
},
|
|
303152
303162
|
end: {
|
|
303153
|
-
line:
|
|
303163
|
+
line: 589,
|
|
303154
303164
|
column: 17
|
|
303155
303165
|
}
|
|
303156
303166
|
},
|
|
303157
|
-
"
|
|
303167
|
+
"211": {
|
|
303158
303168
|
start: {
|
|
303159
|
-
line:
|
|
303169
|
+
line: 587,
|
|
303160
303170
|
column: 12
|
|
303161
303171
|
},
|
|
303162
303172
|
end: {
|
|
303163
|
-
line:
|
|
303173
|
+
line: 588,
|
|
303164
303174
|
column: 39
|
|
303165
303175
|
}
|
|
303166
303176
|
},
|
|
303167
|
-
"
|
|
303177
|
+
"212": {
|
|
303168
303178
|
start: {
|
|
303169
|
-
line:
|
|
303179
|
+
line: 593,
|
|
303170
303180
|
column: 23
|
|
303171
303181
|
},
|
|
303172
303182
|
end: {
|
|
303173
|
-
line:
|
|
303183
|
+
line: 603,
|
|
303174
303184
|
column: 7
|
|
303175
303185
|
}
|
|
303176
303186
|
},
|
|
303177
|
-
"
|
|
303187
|
+
"213": {
|
|
303178
303188
|
start: {
|
|
303179
|
-
line:
|
|
303189
|
+
line: 594,
|
|
303180
303190
|
column: 20
|
|
303181
303191
|
},
|
|
303182
303192
|
end: {
|
|
303183
|
-
line:
|
|
303193
|
+
line: 594,
|
|
303184
303194
|
column: 48
|
|
303185
303195
|
}
|
|
303186
303196
|
},
|
|
303187
|
-
"
|
|
303197
|
+
"214": {
|
|
303188
303198
|
start: {
|
|
303189
|
-
line:
|
|
303199
|
+
line: 595,
|
|
303190
303200
|
column: 8
|
|
303191
303201
|
},
|
|
303192
303202
|
end: {
|
|
303193
|
-
line:
|
|
303203
|
+
line: 602,
|
|
303194
303204
|
column: 11
|
|
303195
303205
|
}
|
|
303196
303206
|
},
|
|
303197
|
-
"
|
|
303207
|
+
"215": {
|
|
303198
303208
|
start: {
|
|
303199
|
-
line:
|
|
303209
|
+
line: 604,
|
|
303200
303210
|
column: 6
|
|
303201
303211
|
},
|
|
303202
303212
|
end: {
|
|
303203
|
-
line:
|
|
303213
|
+
line: 617,
|
|
303204
303214
|
column: 7
|
|
303205
303215
|
}
|
|
303206
303216
|
}
|
|
@@ -304304,7 +304314,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
304304
304314
|
column: 19
|
|
304305
304315
|
},
|
|
304306
304316
|
end: {
|
|
304307
|
-
line:
|
|
304317
|
+
line: 582,
|
|
304308
304318
|
column: 5
|
|
304309
304319
|
}
|
|
304310
304320
|
},
|
|
@@ -304314,121 +304324,121 @@ var cov_2f0u9tmiep = function () {
|
|
|
304314
304324
|
name: "(anonymous_46)",
|
|
304315
304325
|
decl: {
|
|
304316
304326
|
start: {
|
|
304317
|
-
line:
|
|
304327
|
+
line: 583,
|
|
304318
304328
|
column: 4
|
|
304319
304329
|
},
|
|
304320
304330
|
end: {
|
|
304321
|
-
line:
|
|
304331
|
+
line: 583,
|
|
304322
304332
|
column: 5
|
|
304323
304333
|
}
|
|
304324
304334
|
},
|
|
304325
304335
|
loc: {
|
|
304326
304336
|
start: {
|
|
304327
|
-
line:
|
|
304337
|
+
line: 583,
|
|
304328
304338
|
column: 26
|
|
304329
304339
|
},
|
|
304330
304340
|
end: {
|
|
304331
|
-
line:
|
|
304341
|
+
line: 591,
|
|
304332
304342
|
column: 5
|
|
304333
304343
|
}
|
|
304334
304344
|
},
|
|
304335
|
-
line:
|
|
304345
|
+
line: 583
|
|
304336
304346
|
},
|
|
304337
304347
|
"47": {
|
|
304338
304348
|
name: "(anonymous_47)",
|
|
304339
304349
|
decl: {
|
|
304340
304350
|
start: {
|
|
304341
|
-
line:
|
|
304351
|
+
line: 584,
|
|
304342
304352
|
column: 21
|
|
304343
304353
|
},
|
|
304344
304354
|
end: {
|
|
304345
|
-
line:
|
|
304355
|
+
line: 584,
|
|
304346
304356
|
column: 22
|
|
304347
304357
|
}
|
|
304348
304358
|
},
|
|
304349
304359
|
loc: {
|
|
304350
304360
|
start: {
|
|
304351
|
-
line:
|
|
304361
|
+
line: 584,
|
|
304352
304362
|
column: 27
|
|
304353
304363
|
},
|
|
304354
304364
|
end: {
|
|
304355
|
-
line:
|
|
304365
|
+
line: 590,
|
|
304356
304366
|
column: 7
|
|
304357
304367
|
}
|
|
304358
304368
|
},
|
|
304359
|
-
line:
|
|
304369
|
+
line: 584
|
|
304360
304370
|
},
|
|
304361
304371
|
"48": {
|
|
304362
304372
|
name: "(anonymous_48)",
|
|
304363
304373
|
decl: {
|
|
304364
304374
|
start: {
|
|
304365
|
-
line:
|
|
304375
|
+
line: 586,
|
|
304366
304376
|
column: 21
|
|
304367
304377
|
},
|
|
304368
304378
|
end: {
|
|
304369
|
-
line:
|
|
304379
|
+
line: 586,
|
|
304370
304380
|
column: 22
|
|
304371
304381
|
}
|
|
304372
304382
|
},
|
|
304373
304383
|
loc: {
|
|
304374
304384
|
start: {
|
|
304375
|
-
line:
|
|
304385
|
+
line: 586,
|
|
304376
304386
|
column: 27
|
|
304377
304387
|
},
|
|
304378
304388
|
end: {
|
|
304379
|
-
line:
|
|
304389
|
+
line: 589,
|
|
304380
304390
|
column: 11
|
|
304381
304391
|
}
|
|
304382
304392
|
},
|
|
304383
|
-
line:
|
|
304393
|
+
line: 586
|
|
304384
304394
|
},
|
|
304385
304395
|
"49": {
|
|
304386
304396
|
name: "(anonymous_49)",
|
|
304387
304397
|
decl: {
|
|
304388
304398
|
start: {
|
|
304389
|
-
line:
|
|
304399
|
+
line: 592,
|
|
304390
304400
|
column: 4
|
|
304391
304401
|
},
|
|
304392
304402
|
end: {
|
|
304393
|
-
line:
|
|
304403
|
+
line: 592,
|
|
304394
304404
|
column: 5
|
|
304395
304405
|
}
|
|
304396
304406
|
},
|
|
304397
304407
|
loc: {
|
|
304398
304408
|
start: {
|
|
304399
|
-
line:
|
|
304409
|
+
line: 592,
|
|
304400
304410
|
column: 18
|
|
304401
304411
|
},
|
|
304402
304412
|
end: {
|
|
304403
|
-
line:
|
|
304413
|
+
line: 618,
|
|
304404
304414
|
column: 5
|
|
304405
304415
|
}
|
|
304406
304416
|
},
|
|
304407
|
-
line:
|
|
304417
|
+
line: 592
|
|
304408
304418
|
},
|
|
304409
304419
|
"50": {
|
|
304410
304420
|
name: "(anonymous_50)",
|
|
304411
304421
|
decl: {
|
|
304412
304422
|
start: {
|
|
304413
|
-
line:
|
|
304423
|
+
line: 593,
|
|
304414
304424
|
column: 23
|
|
304415
304425
|
},
|
|
304416
304426
|
end: {
|
|
304417
|
-
line:
|
|
304427
|
+
line: 593,
|
|
304418
304428
|
column: 24
|
|
304419
304429
|
}
|
|
304420
304430
|
},
|
|
304421
304431
|
loc: {
|
|
304422
304432
|
start: {
|
|
304423
|
-
line:
|
|
304433
|
+
line: 593,
|
|
304424
304434
|
column: 45
|
|
304425
304435
|
},
|
|
304426
304436
|
end: {
|
|
304427
|
-
line:
|
|
304437
|
+
line: 603,
|
|
304428
304438
|
column: 7
|
|
304429
304439
|
}
|
|
304430
304440
|
},
|
|
304431
|
-
line:
|
|
304441
|
+
line: 593
|
|
304432
304442
|
}
|
|
304433
304443
|
},
|
|
304434
304444
|
branchMap: {
|
|
@@ -306131,7 +306141,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
306131
306141
|
column: 6
|
|
306132
306142
|
},
|
|
306133
306143
|
end: {
|
|
306134
|
-
line:
|
|
306144
|
+
line: 581,
|
|
306135
306145
|
column: 7
|
|
306136
306146
|
}
|
|
306137
306147
|
},
|
|
@@ -306142,7 +306152,7 @@ var cov_2f0u9tmiep = function () {
|
|
|
306142
306152
|
column: 6
|
|
306143
306153
|
},
|
|
306144
306154
|
end: {
|
|
306145
|
-
line:
|
|
306155
|
+
line: 581,
|
|
306146
306156
|
column: 7
|
|
306147
306157
|
}
|
|
306148
306158
|
}, {
|
|
@@ -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,68 +306170,68 @@ var cov_2f0u9tmiep = function () {
|
|
|
306160
306170
|
"52": {
|
|
306161
306171
|
loc: {
|
|
306162
306172
|
start: {
|
|
306163
|
-
line:
|
|
306173
|
+
line: 585,
|
|
306164
306174
|
column: 8
|
|
306165
306175
|
},
|
|
306166
306176
|
end: {
|
|
306167
|
-
line:
|
|
306177
|
+
line: 589,
|
|
306168
306178
|
column: 17
|
|
306169
306179
|
}
|
|
306170
306180
|
},
|
|
306171
306181
|
type: "if",
|
|
306172
306182
|
locations: [{
|
|
306173
306183
|
start: {
|
|
306174
|
-
line:
|
|
306184
|
+
line: 585,
|
|
306175
306185
|
column: 8
|
|
306176
306186
|
},
|
|
306177
306187
|
end: {
|
|
306178
|
-
line:
|
|
306188
|
+
line: 589,
|
|
306179
306189
|
column: 17
|
|
306180
306190
|
}
|
|
306181
306191
|
}, {
|
|
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
|
-
line:
|
|
306201
|
+
line: 585
|
|
306192
306202
|
},
|
|
306193
306203
|
"53": {
|
|
306194
306204
|
loc: {
|
|
306195
306205
|
start: {
|
|
306196
|
-
line:
|
|
306206
|
+
line: 595,
|
|
306197
306207
|
column: 15
|
|
306198
306208
|
},
|
|
306199
306209
|
end: {
|
|
306200
|
-
line:
|
|
306210
|
+
line: 602,
|
|
306201
306211
|
column: 11
|
|
306202
306212
|
}
|
|
306203
306213
|
},
|
|
306204
306214
|
type: "cond-expr",
|
|
306205
306215
|
locations: [{
|
|
306206
306216
|
start: {
|
|
306207
|
-
line:
|
|
306217
|
+
line: 596,
|
|
306208
306218
|
column: 12
|
|
306209
306219
|
},
|
|
306210
306220
|
end: {
|
|
306211
|
-
line:
|
|
306221
|
+
line: 596,
|
|
306212
306222
|
column: 14
|
|
306213
306223
|
}
|
|
306214
306224
|
}, {
|
|
306215
306225
|
start: {
|
|
306216
|
-
line:
|
|
306226
|
+
line: 597,
|
|
306217
306227
|
column: 12
|
|
306218
306228
|
},
|
|
306219
306229
|
end: {
|
|
306220
|
-
line:
|
|
306230
|
+
line: 602,
|
|
306221
306231
|
column: 11
|
|
306222
306232
|
}
|
|
306223
306233
|
}],
|
|
306224
|
-
line:
|
|
306234
|
+
line: 595
|
|
306225
306235
|
}
|
|
306226
306236
|
},
|
|
306227
306237
|
s: {
|
|
@@ -306439,7 +306449,8 @@ var cov_2f0u9tmiep = function () {
|
|
|
306439
306449
|
"211": 0,
|
|
306440
306450
|
"212": 0,
|
|
306441
306451
|
"213": 0,
|
|
306442
|
-
"214": 0
|
|
306452
|
+
"214": 0,
|
|
306453
|
+
"215": 0
|
|
306443
306454
|
},
|
|
306444
306455
|
f: {
|
|
306445
306456
|
"0": 0,
|
|
@@ -306554,13 +306565,13 @@ var cov_2f0u9tmiep = function () {
|
|
|
306554
306565
|
version: 3,
|
|
306555
306566
|
sources: ["BioModelTree.vue"],
|
|
306556
306567
|
names: [],
|
|
306557
|
-
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",
|
|
306568
|
+
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",
|
|
306558
306569
|
file: "BioModelTree.vue",
|
|
306559
306570
|
sourceRoot: "src/components/bioModels",
|
|
306560
|
-
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"]
|
|
306571
|
+
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"]
|
|
306561
306572
|
},
|
|
306562
306573
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
306563
|
-
hash: "
|
|
306574
|
+
hash: "35800f777c9e06999d7627afedbe72c07beb2e2a"
|
|
306564
306575
|
};
|
|
306565
306576
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
306566
306577
|
|
|
@@ -307404,6 +307415,8 @@ function BioModelTreevue_type_script_lang_js_defineProperty(obj, key, value) { i
|
|
|
307404
307415
|
record: d.data.id
|
|
307405
307416
|
});
|
|
307406
307417
|
cov_2f0u9tmiep.s[206]++;
|
|
307418
|
+
this.tooltip.style('visibility', 'hidden');
|
|
307419
|
+
cov_2f0u9tmiep.s[207]++;
|
|
307407
307420
|
this.$store.dispatch(SHOW_PANEL, {
|
|
307408
307421
|
bioModel: d.data.id
|
|
307409
307422
|
});
|
|
@@ -307415,17 +307428,17 @@ function BioModelTreevue_type_script_lang_js_defineProperty(obj, key, value) { i
|
|
|
307415
307428
|
var _this4 = this;
|
|
307416
307429
|
|
|
307417
307430
|
cov_2f0u9tmiep.f[46]++;
|
|
307418
|
-
cov_2f0u9tmiep.s[
|
|
307431
|
+
cov_2f0u9tmiep.s[208]++;
|
|
307419
307432
|
this.$nextTick(function () {
|
|
307420
307433
|
cov_2f0u9tmiep.f[47]++;
|
|
307421
|
-
cov_2f0u9tmiep.s[
|
|
307434
|
+
cov_2f0u9tmiep.s[209]++;
|
|
307422
307435
|
|
|
307423
307436
|
if (!_this4.showFullHeight) {
|
|
307424
307437
|
cov_2f0u9tmiep.b[52][0]++;
|
|
307425
|
-
cov_2f0u9tmiep.s[
|
|
307438
|
+
cov_2f0u9tmiep.s[210]++;
|
|
307426
307439
|
setTimeout(function () {
|
|
307427
307440
|
cov_2f0u9tmiep.f[48]++;
|
|
307428
|
-
cov_2f0u9tmiep.s[
|
|
307441
|
+
cov_2f0u9tmiep.s[211]++;
|
|
307429
307442
|
document.getElementById('tree-div').scrollTop = _this4.currentNode.x0 + 395; // 395 is a function of the max height
|
|
307430
307443
|
}, 100);
|
|
307431
307444
|
} else {
|
|
@@ -307438,16 +307451,16 @@ function BioModelTreevue_type_script_lang_js_defineProperty(obj, key, value) { i
|
|
|
307438
307451
|
var _this5 = this;
|
|
307439
307452
|
|
|
307440
307453
|
cov_2f0u9tmiep.f[49]++;
|
|
307441
|
-
cov_2f0u9tmiep.s[
|
|
307454
|
+
cov_2f0u9tmiep.s[212]++;
|
|
307442
307455
|
|
|
307443
307456
|
var keyValue = function keyValue(key, verboseName) {
|
|
307444
307457
|
cov_2f0u9tmiep.f[50]++;
|
|
307445
|
-
var value = (cov_2f0u9tmiep.s[
|
|
307446
|
-
cov_2f0u9tmiep.s[
|
|
307458
|
+
var value = (cov_2f0u9tmiep.s[213]++, _this5.$get(d.data, key, null));
|
|
307459
|
+
cov_2f0u9tmiep.s[214]++;
|
|
307447
307460
|
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 "));
|
|
307448
307461
|
};
|
|
307449
307462
|
|
|
307450
|
-
cov_2f0u9tmiep.s[
|
|
307463
|
+
cov_2f0u9tmiep.s[215]++;
|
|
307451
307464
|
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 ");
|
|
307452
307465
|
}
|
|
307453
307466
|
}
|
|
@@ -307468,8 +307481,8 @@ var BioModelTreevue_type_style_index_0_lang_scss_ = __webpack_require__("34ec");
|
|
|
307468
307481
|
|
|
307469
307482
|
var BioModelTree_component = normalizeComponent(
|
|
307470
307483
|
bioModels_BioModelTreevue_type_script_lang_js_,
|
|
307471
|
-
|
|
307472
|
-
|
|
307484
|
+
BioModelTreevue_type_template_id_50c9e1d2_render,
|
|
307485
|
+
BioModelTreevue_type_template_id_50c9e1d2_staticRenderFns,
|
|
307473
307486
|
false,
|
|
307474
307487
|
null,
|
|
307475
307488
|
null,
|
|
@@ -316740,17 +316753,17 @@ var Signup_component = normalizeComponent(
|
|
|
316740
316753
|
)
|
|
316741
316754
|
|
|
316742
316755
|
/* harmony default export */ var Signup = (Signup_component.exports);
|
|
316743
|
-
// 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=
|
|
316744
|
-
var
|
|
316745
|
-
var
|
|
316756
|
+
// 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&
|
|
316757
|
+
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)}
|
|
316758
|
+
var VerifyEmailvue_type_template_id_0460ddf2_staticRenderFns = []
|
|
316746
316759
|
|
|
316747
316760
|
|
|
316748
|
-
// CONCATENATED MODULE: ./src/views/VerifyEmail.vue?vue&type=template&id=
|
|
316761
|
+
// CONCATENATED MODULE: ./src/views/VerifyEmail.vue?vue&type=template&id=0460ddf2&
|
|
316749
316762
|
|
|
316750
316763
|
// 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&
|
|
316751
316764
|
var cov_50fq9mw5q = function () {
|
|
316752
316765
|
var path = "/Users/arangooj/papaemme/isabl_web/src/views/VerifyEmail.vue";
|
|
316753
|
-
var hash = "
|
|
316766
|
+
var hash = "4cd889dd459869433cea1267c94c71c149b8c801";
|
|
316754
316767
|
var global = new Function("return this")();
|
|
316755
316768
|
var gcv = "__coverage__";
|
|
316756
316769
|
var coverageData = {
|
|
@@ -316758,121 +316771,121 @@ var cov_50fq9mw5q = function () {
|
|
|
316758
316771
|
statementMap: {
|
|
316759
316772
|
"0": {
|
|
316760
316773
|
start: {
|
|
316761
|
-
line:
|
|
316774
|
+
line: 60,
|
|
316762
316775
|
column: 4
|
|
316763
316776
|
},
|
|
316764
316777
|
end: {
|
|
316765
|
-
line:
|
|
316778
|
+
line: 64,
|
|
316766
316779
|
column: 5
|
|
316767
316780
|
}
|
|
316768
316781
|
},
|
|
316769
316782
|
"1": {
|
|
316770
316783
|
start: {
|
|
316771
|
-
line:
|
|
316784
|
+
line: 67,
|
|
316772
316785
|
column: 4
|
|
316773
316786
|
},
|
|
316774
316787
|
end: {
|
|
316775
|
-
line:
|
|
316788
|
+
line: 67,
|
|
316776
316789
|
column: 22
|
|
316777
316790
|
}
|
|
316778
316791
|
},
|
|
316779
316792
|
"2": {
|
|
316780
316793
|
start: {
|
|
316781
|
-
line:
|
|
316794
|
+
line: 71,
|
|
316782
316795
|
column: 6
|
|
316783
316796
|
},
|
|
316784
316797
|
end: {
|
|
316785
|
-
line:
|
|
316798
|
+
line: 71,
|
|
316786
316799
|
column: 25
|
|
316787
316800
|
}
|
|
316788
316801
|
},
|
|
316789
316802
|
"3": {
|
|
316790
316803
|
start: {
|
|
316791
|
-
line:
|
|
316804
|
+
line: 72,
|
|
316792
316805
|
column: 22
|
|
316793
316806
|
},
|
|
316794
316807
|
end: {
|
|
316795
|
-
line:
|
|
316808
|
+
line: 72,
|
|
316796
316809
|
column: 39
|
|
316797
316810
|
}
|
|
316798
316811
|
},
|
|
316799
316812
|
"4": {
|
|
316800
316813
|
start: {
|
|
316801
|
-
line:
|
|
316814
|
+
line: 73,
|
|
316802
316815
|
column: 6
|
|
316803
316816
|
},
|
|
316804
316817
|
end: {
|
|
316805
|
-
line:
|
|
316818
|
+
line: 87,
|
|
316806
316819
|
column: 7
|
|
316807
316820
|
}
|
|
316808
316821
|
},
|
|
316809
316822
|
"5": {
|
|
316810
316823
|
start: {
|
|
316811
|
-
line:
|
|
316824
|
+
line: 74,
|
|
316812
316825
|
column: 8
|
|
316813
316826
|
},
|
|
316814
316827
|
end: {
|
|
316815
|
-
line:
|
|
316828
|
+
line: 84,
|
|
316816
316829
|
column: 12
|
|
316817
316830
|
}
|
|
316818
316831
|
},
|
|
316819
316832
|
"6": {
|
|
316820
316833
|
start: {
|
|
316821
|
-
line:
|
|
316834
|
+
line: 76,
|
|
316822
316835
|
column: 12
|
|
316823
316836
|
},
|
|
316824
316837
|
end: {
|
|
316825
|
-
line:
|
|
316838
|
+
line: 76,
|
|
316826
316839
|
column: 32
|
|
316827
316840
|
}
|
|
316828
316841
|
},
|
|
316829
316842
|
"7": {
|
|
316830
316843
|
start: {
|
|
316831
|
-
line:
|
|
316844
|
+
line: 77,
|
|
316832
316845
|
column: 12
|
|
316833
316846
|
},
|
|
316834
316847
|
end: {
|
|
316835
|
-
line:
|
|
316848
|
+
line: 77,
|
|
316836
316849
|
column: 42
|
|
316837
316850
|
}
|
|
316838
316851
|
},
|
|
316839
316852
|
"8": {
|
|
316840
316853
|
start: {
|
|
316841
|
-
line:
|
|
316854
|
+
line: 80,
|
|
316842
316855
|
column: 12
|
|
316843
316856
|
},
|
|
316844
316857
|
end: {
|
|
316845
|
-
line:
|
|
316858
|
+
line: 80,
|
|
316846
316859
|
column: 33
|
|
316847
316860
|
}
|
|
316848
316861
|
},
|
|
316849
316862
|
"9": {
|
|
316850
316863
|
start: {
|
|
316851
|
-
line:
|
|
316864
|
+
line: 83,
|
|
316852
316865
|
column: 12
|
|
316853
316866
|
},
|
|
316854
316867
|
end: {
|
|
316855
|
-
line:
|
|
316868
|
+
line: 83,
|
|
316856
316869
|
column: 32
|
|
316857
316870
|
}
|
|
316858
316871
|
},
|
|
316859
316872
|
"10": {
|
|
316860
316873
|
start: {
|
|
316861
|
-
line:
|
|
316874
|
+
line: 86,
|
|
316862
316875
|
column: 8
|
|
316863
316876
|
},
|
|
316864
316877
|
end: {
|
|
316865
|
-
line:
|
|
316878
|
+
line: 86,
|
|
316866
316879
|
column: 28
|
|
316867
316880
|
}
|
|
316868
316881
|
},
|
|
316869
316882
|
"11": {
|
|
316870
316883
|
start: {
|
|
316871
|
-
line:
|
|
316884
|
+
line: 90,
|
|
316872
316885
|
column: 6
|
|
316873
316886
|
},
|
|
316874
316887
|
end: {
|
|
316875
|
-
line:
|
|
316888
|
+
line: 90,
|
|
316876
316889
|
column: 42
|
|
316877
316890
|
}
|
|
316878
316891
|
}
|
|
@@ -316882,204 +316895,204 @@ var cov_50fq9mw5q = function () {
|
|
|
316882
316895
|
name: "(anonymous_0)",
|
|
316883
316896
|
decl: {
|
|
316884
316897
|
start: {
|
|
316885
|
-
line:
|
|
316898
|
+
line: 59,
|
|
316886
316899
|
column: 2
|
|
316887
316900
|
},
|
|
316888
316901
|
end: {
|
|
316889
|
-
line:
|
|
316902
|
+
line: 59,
|
|
316890
316903
|
column: 3
|
|
316891
316904
|
}
|
|
316892
316905
|
},
|
|
316893
316906
|
loc: {
|
|
316894
316907
|
start: {
|
|
316895
|
-
line:
|
|
316908
|
+
line: 59,
|
|
316896
316909
|
column: 9
|
|
316897
316910
|
},
|
|
316898
316911
|
end: {
|
|
316899
|
-
line:
|
|
316912
|
+
line: 65,
|
|
316900
316913
|
column: 3
|
|
316901
316914
|
}
|
|
316902
316915
|
},
|
|
316903
|
-
line:
|
|
316916
|
+
line: 59
|
|
316904
316917
|
},
|
|
316905
316918
|
"1": {
|
|
316906
316919
|
name: "(anonymous_1)",
|
|
316907
316920
|
decl: {
|
|
316908
316921
|
start: {
|
|
316909
|
-
line:
|
|
316922
|
+
line: 66,
|
|
316910
316923
|
column: 2
|
|
316911
316924
|
},
|
|
316912
316925
|
end: {
|
|
316913
|
-
line:
|
|
316926
|
+
line: 66,
|
|
316914
316927
|
column: 3
|
|
316915
316928
|
}
|
|
316916
316929
|
},
|
|
316917
316930
|
loc: {
|
|
316918
316931
|
start: {
|
|
316919
|
-
line:
|
|
316932
|
+
line: 66,
|
|
316920
316933
|
column: 12
|
|
316921
316934
|
},
|
|
316922
316935
|
end: {
|
|
316923
|
-
line:
|
|
316936
|
+
line: 68,
|
|
316924
316937
|
column: 3
|
|
316925
316938
|
}
|
|
316926
316939
|
},
|
|
316927
|
-
line:
|
|
316940
|
+
line: 66
|
|
316928
316941
|
},
|
|
316929
316942
|
"2": {
|
|
316930
316943
|
name: "(anonymous_2)",
|
|
316931
316944
|
decl: {
|
|
316932
316945
|
start: {
|
|
316933
|
-
line:
|
|
316946
|
+
line: 70,
|
|
316934
316947
|
column: 4
|
|
316935
316948
|
},
|
|
316936
316949
|
end: {
|
|
316937
|
-
line:
|
|
316950
|
+
line: 70,
|
|
316938
316951
|
column: 5
|
|
316939
316952
|
}
|
|
316940
316953
|
},
|
|
316941
316954
|
loc: {
|
|
316942
316955
|
start: {
|
|
316943
|
-
line:
|
|
316956
|
+
line: 70,
|
|
316944
316957
|
column: 18
|
|
316945
316958
|
},
|
|
316946
316959
|
end: {
|
|
316947
|
-
line:
|
|
316960
|
+
line: 88,
|
|
316948
316961
|
column: 5
|
|
316949
316962
|
}
|
|
316950
316963
|
},
|
|
316951
|
-
line:
|
|
316964
|
+
line: 70
|
|
316952
316965
|
},
|
|
316953
316966
|
"3": {
|
|
316954
316967
|
name: "(anonymous_3)",
|
|
316955
316968
|
decl: {
|
|
316956
316969
|
start: {
|
|
316957
|
-
line:
|
|
316970
|
+
line: 75,
|
|
316958
316971
|
column: 16
|
|
316959
316972
|
},
|
|
316960
316973
|
end: {
|
|
316961
|
-
line:
|
|
316974
|
+
line: 75,
|
|
316962
316975
|
column: 17
|
|
316963
316976
|
}
|
|
316964
316977
|
},
|
|
316965
316978
|
loc: {
|
|
316966
316979
|
start: {
|
|
316967
|
-
line:
|
|
316980
|
+
line: 75,
|
|
316968
316981
|
column: 28
|
|
316969
316982
|
},
|
|
316970
316983
|
end: {
|
|
316971
|
-
line:
|
|
316984
|
+
line: 78,
|
|
316972
316985
|
column: 11
|
|
316973
316986
|
}
|
|
316974
316987
|
},
|
|
316975
|
-
line:
|
|
316988
|
+
line: 75
|
|
316976
316989
|
},
|
|
316977
316990
|
"4": {
|
|
316978
316991
|
name: "(anonymous_4)",
|
|
316979
316992
|
decl: {
|
|
316980
316993
|
start: {
|
|
316981
|
-
line:
|
|
316994
|
+
line: 79,
|
|
316982
316995
|
column: 17
|
|
316983
316996
|
},
|
|
316984
316997
|
end: {
|
|
316985
|
-
line:
|
|
316998
|
+
line: 79,
|
|
316986
316999
|
column: 18
|
|
316987
317000
|
}
|
|
316988
317001
|
},
|
|
316989
317002
|
loc: {
|
|
316990
317003
|
start: {
|
|
316991
|
-
line:
|
|
317004
|
+
line: 79,
|
|
316992
317005
|
column: 26
|
|
316993
317006
|
},
|
|
316994
317007
|
end: {
|
|
316995
|
-
line:
|
|
317008
|
+
line: 81,
|
|
316996
317009
|
column: 11
|
|
316997
317010
|
}
|
|
316998
317011
|
},
|
|
316999
|
-
line:
|
|
317012
|
+
line: 79
|
|
317000
317013
|
},
|
|
317001
317014
|
"5": {
|
|
317002
317015
|
name: "(anonymous_5)",
|
|
317003
317016
|
decl: {
|
|
317004
317017
|
start: {
|
|
317005
|
-
line:
|
|
317018
|
+
line: 82,
|
|
317006
317019
|
column: 19
|
|
317007
317020
|
},
|
|
317008
317021
|
end: {
|
|
317009
|
-
line:
|
|
317022
|
+
line: 82,
|
|
317010
317023
|
column: 20
|
|
317011
317024
|
}
|
|
317012
317025
|
},
|
|
317013
317026
|
loc: {
|
|
317014
317027
|
start: {
|
|
317015
|
-
line:
|
|
317028
|
+
line: 82,
|
|
317016
317029
|
column: 25
|
|
317017
317030
|
},
|
|
317018
317031
|
end: {
|
|
317019
|
-
line:
|
|
317032
|
+
line: 84,
|
|
317020
317033
|
column: 11
|
|
317021
317034
|
}
|
|
317022
317035
|
},
|
|
317023
|
-
line:
|
|
317036
|
+
line: 82
|
|
317024
317037
|
},
|
|
317025
317038
|
"6": {
|
|
317026
317039
|
name: "(anonymous_6)",
|
|
317027
317040
|
decl: {
|
|
317028
317041
|
start: {
|
|
317029
|
-
line:
|
|
317042
|
+
line: 89,
|
|
317030
317043
|
column: 4
|
|
317031
317044
|
},
|
|
317032
317045
|
end: {
|
|
317033
|
-
line:
|
|
317046
|
+
line: 89,
|
|
317034
317047
|
column: 5
|
|
317035
317048
|
}
|
|
317036
317049
|
},
|
|
317037
317050
|
loc: {
|
|
317038
317051
|
start: {
|
|
317039
|
-
line:
|
|
317052
|
+
line: 89,
|
|
317040
317053
|
column: 16
|
|
317041
317054
|
},
|
|
317042
317055
|
end: {
|
|
317043
|
-
line:
|
|
317056
|
+
line: 91,
|
|
317044
317057
|
column: 5
|
|
317045
317058
|
}
|
|
317046
317059
|
},
|
|
317047
|
-
line:
|
|
317060
|
+
line: 89
|
|
317048
317061
|
}
|
|
317049
317062
|
},
|
|
317050
317063
|
branchMap: {
|
|
317051
317064
|
"0": {
|
|
317052
317065
|
loc: {
|
|
317053
317066
|
start: {
|
|
317054
|
-
line:
|
|
317067
|
+
line: 73,
|
|
317055
317068
|
column: 6
|
|
317056
317069
|
},
|
|
317057
317070
|
end: {
|
|
317058
|
-
line:
|
|
317071
|
+
line: 87,
|
|
317059
317072
|
column: 7
|
|
317060
317073
|
}
|
|
317061
317074
|
},
|
|
317062
317075
|
type: "if",
|
|
317063
317076
|
locations: [{
|
|
317064
317077
|
start: {
|
|
317065
|
-
line:
|
|
317078
|
+
line: 73,
|
|
317066
317079
|
column: 6
|
|
317067
317080
|
},
|
|
317068
317081
|
end: {
|
|
317069
|
-
line:
|
|
317082
|
+
line: 87,
|
|
317070
317083
|
column: 7
|
|
317071
317084
|
}
|
|
317072
317085
|
}, {
|
|
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
|
-
line:
|
|
317095
|
+
line: 73
|
|
317083
317096
|
}
|
|
317084
317097
|
},
|
|
317085
317098
|
s: {
|
|
@@ -317112,13 +317125,13 @@ var cov_50fq9mw5q = function () {
|
|
|
317112
317125
|
version: 3,
|
|
317113
317126
|
sources: ["VerifyEmail.vue"],
|
|
317114
317127
|
names: [],
|
|
317115
|
-
mappings: "
|
|
317128
|
+
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",
|
|
317116
317129
|
file: "VerifyEmail.vue",
|
|
317117
317130
|
sourceRoot: "src/views",
|
|
317118
|
-
sourcesContent: ["<template>\n <v-
|
|
317131
|
+
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"]
|
|
317119
317132
|
},
|
|
317120
317133
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
317121
|
-
hash: "
|
|
317134
|
+
hash: "4cd889dd459869433cea1267c94c71c149b8c801"
|
|
317122
317135
|
};
|
|
317123
317136
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
317124
317137
|
|
|
@@ -317178,6 +317191,10 @@ var cov_50fq9mw5q = function () {
|
|
|
317178
317191
|
//
|
|
317179
317192
|
//
|
|
317180
317193
|
//
|
|
317194
|
+
//
|
|
317195
|
+
//
|
|
317196
|
+
//
|
|
317197
|
+
//
|
|
317181
317198
|
|
|
317182
317199
|
/* harmony default export */ var VerifyEmailvue_type_script_lang_js_ = ({
|
|
317183
317200
|
name: 'VerifyEmail',
|
|
@@ -317254,8 +317271,8 @@ var cov_50fq9mw5q = function () {
|
|
|
317254
317271
|
|
|
317255
317272
|
var VerifyEmail_component = normalizeComponent(
|
|
317256
317273
|
views_VerifyEmailvue_type_script_lang_js_,
|
|
317257
|
-
|
|
317258
|
-
|
|
317274
|
+
VerifyEmailvue_type_template_id_0460ddf2_render,
|
|
317275
|
+
VerifyEmailvue_type_template_id_0460ddf2_staticRenderFns,
|
|
317259
317276
|
false,
|
|
317260
317277
|
null,
|
|
317261
317278
|
null,
|
|
@@ -317873,7 +317890,7 @@ function mixins_auth_defineProperty(obj, key, value) { if (key in obj) { Object.
|
|
|
317873
317890
|
// CONCATENATED MODULE: ./src/mixins/fields.js
|
|
317874
317891
|
var cov_5ht757v2k = function () {
|
|
317875
317892
|
var path = "/Users/arangooj/papaemme/isabl_web/src/mixins/fields.js";
|
|
317876
|
-
var hash = "
|
|
317893
|
+
var hash = "b643f788f77d4fcd68b71d31977c281f17784e26";
|
|
317877
317894
|
var global = new Function("return this")();
|
|
317878
317895
|
var gcv = "__coverage__";
|
|
317879
317896
|
var coverageData = {
|
|
@@ -318005,207 +318022,227 @@ var cov_5ht757v2k = function () {
|
|
|
318005
318022
|
column: 6
|
|
318006
318023
|
},
|
|
318007
318024
|
end: {
|
|
318008
|
-
line:
|
|
318009
|
-
column:
|
|
318025
|
+
line: 46,
|
|
318026
|
+
column: 7
|
|
318010
318027
|
}
|
|
318011
318028
|
},
|
|
318012
318029
|
"13": {
|
|
318013
318030
|
start: {
|
|
318014
318031
|
line: 45,
|
|
318015
|
-
column:
|
|
318032
|
+
column: 8
|
|
318016
318033
|
},
|
|
318017
318034
|
end: {
|
|
318018
318035
|
line: 45,
|
|
318019
|
-
column:
|
|
318036
|
+
column: 76
|
|
318020
318037
|
}
|
|
318021
318038
|
},
|
|
318022
318039
|
"14": {
|
|
318023
318040
|
start: {
|
|
318024
|
-
line:
|
|
318041
|
+
line: 48,
|
|
318025
318042
|
column: 6
|
|
318026
318043
|
},
|
|
318027
318044
|
end: {
|
|
318028
|
-
line:
|
|
318029
|
-
column:
|
|
318045
|
+
line: 48,
|
|
318046
|
+
column: 63
|
|
318030
318047
|
}
|
|
318031
318048
|
},
|
|
318032
318049
|
"15": {
|
|
318033
318050
|
start: {
|
|
318034
|
-
line:
|
|
318051
|
+
line: 49,
|
|
318035
318052
|
column: 6
|
|
318036
318053
|
},
|
|
318037
318054
|
end: {
|
|
318038
|
-
line:
|
|
318039
|
-
column:
|
|
318055
|
+
line: 49,
|
|
318056
|
+
column: 49
|
|
318040
318057
|
}
|
|
318041
318058
|
},
|
|
318042
318059
|
"16": {
|
|
318043
318060
|
start: {
|
|
318044
|
-
line:
|
|
318061
|
+
line: 54,
|
|
318062
|
+
column: 6
|
|
318063
|
+
},
|
|
318064
|
+
end: {
|
|
318065
|
+
line: 54,
|
|
318066
|
+
column: 49
|
|
318067
|
+
}
|
|
318068
|
+
},
|
|
318069
|
+
"17": {
|
|
318070
|
+
start: {
|
|
318071
|
+
line: 55,
|
|
318072
|
+
column: 6
|
|
318073
|
+
},
|
|
318074
|
+
end: {
|
|
318075
|
+
line: 64,
|
|
318076
|
+
column: 7
|
|
318077
|
+
}
|
|
318078
|
+
},
|
|
318079
|
+
"18": {
|
|
318080
|
+
start: {
|
|
318081
|
+
line: 56,
|
|
318045
318082
|
column: 8
|
|
318046
318083
|
},
|
|
318047
318084
|
end: {
|
|
318048
|
-
line:
|
|
318085
|
+
line: 56,
|
|
318049
318086
|
column: 32
|
|
318050
318087
|
}
|
|
318051
318088
|
},
|
|
318052
|
-
"
|
|
318089
|
+
"19": {
|
|
318053
318090
|
start: {
|
|
318054
|
-
line:
|
|
318091
|
+
line: 57,
|
|
318055
318092
|
column: 8
|
|
318056
318093
|
},
|
|
318057
318094
|
end: {
|
|
318058
|
-
line:
|
|
318095
|
+
line: 63,
|
|
318059
318096
|
column: 53
|
|
318060
318097
|
}
|
|
318061
318098
|
},
|
|
318062
|
-
"
|
|
318099
|
+
"20": {
|
|
318063
318100
|
start: {
|
|
318064
|
-
line:
|
|
318101
|
+
line: 59,
|
|
318065
318102
|
column: 12
|
|
318066
318103
|
},
|
|
318067
318104
|
end: {
|
|
318068
|
-
line:
|
|
318105
|
+
line: 59,
|
|
318069
318106
|
column: 36
|
|
318070
318107
|
}
|
|
318071
318108
|
},
|
|
318072
|
-
"
|
|
318109
|
+
"21": {
|
|
318073
318110
|
start: {
|
|
318074
|
-
line:
|
|
318111
|
+
line: 60,
|
|
318075
318112
|
column: 12
|
|
318076
318113
|
},
|
|
318077
318114
|
end: {
|
|
318078
|
-
line:
|
|
318115
|
+
line: 60,
|
|
318079
318116
|
column: 38
|
|
318080
318117
|
}
|
|
318081
318118
|
},
|
|
318082
|
-
"
|
|
318119
|
+
"22": {
|
|
318083
318120
|
start: {
|
|
318084
|
-
line:
|
|
318121
|
+
line: 62,
|
|
318085
318122
|
column: 26
|
|
318086
318123
|
},
|
|
318087
318124
|
end: {
|
|
318088
|
-
line:
|
|
318125
|
+
line: 62,
|
|
318089
318126
|
column: 56
|
|
318090
318127
|
}
|
|
318091
318128
|
},
|
|
318092
|
-
"
|
|
318129
|
+
"23": {
|
|
318093
318130
|
start: {
|
|
318094
|
-
line:
|
|
318131
|
+
line: 63,
|
|
318095
318132
|
column: 26
|
|
318096
318133
|
},
|
|
318097
318134
|
end: {
|
|
318098
|
-
line:
|
|
318135
|
+
line: 63,
|
|
318099
318136
|
column: 51
|
|
318100
318137
|
}
|
|
318101
318138
|
},
|
|
318102
|
-
"
|
|
318139
|
+
"24": {
|
|
318103
318140
|
start: {
|
|
318104
|
-
line:
|
|
318141
|
+
line: 67,
|
|
318105
318142
|
column: 6
|
|
318106
318143
|
},
|
|
318107
318144
|
end: {
|
|
318108
|
-
line:
|
|
318145
|
+
line: 78,
|
|
318109
318146
|
column: 7
|
|
318110
318147
|
}
|
|
318111
318148
|
},
|
|
318112
|
-
"
|
|
318149
|
+
"25": {
|
|
318113
318150
|
start: {
|
|
318114
|
-
line:
|
|
318151
|
+
line: 68,
|
|
318115
318152
|
column: 24
|
|
318116
318153
|
},
|
|
318117
318154
|
end: {
|
|
318118
|
-
line:
|
|
318155
|
+
line: 68,
|
|
318119
318156
|
column: 64
|
|
318120
318157
|
}
|
|
318121
318158
|
},
|
|
318122
|
-
"
|
|
318159
|
+
"26": {
|
|
318123
318160
|
start: {
|
|
318124
|
-
line:
|
|
318161
|
+
line: 69,
|
|
318125
318162
|
column: 8
|
|
318126
318163
|
},
|
|
318127
318164
|
end: {
|
|
318128
|
-
line:
|
|
318165
|
+
line: 77,
|
|
318129
318166
|
column: 10
|
|
318130
318167
|
}
|
|
318131
318168
|
},
|
|
318132
|
-
"
|
|
318169
|
+
"27": {
|
|
318133
318170
|
start: {
|
|
318134
|
-
line:
|
|
318171
|
+
line: 70,
|
|
318135
318172
|
column: 10
|
|
318136
318173
|
},
|
|
318137
318174
|
end: {
|
|
318138
|
-
line:
|
|
318175
|
+
line: 76,
|
|
318139
318176
|
column: 12
|
|
318140
318177
|
}
|
|
318141
318178
|
},
|
|
318142
|
-
"
|
|
318179
|
+
"28": {
|
|
318143
318180
|
start: {
|
|
318144
|
-
line:
|
|
318181
|
+
line: 71,
|
|
318145
318182
|
column: 12
|
|
318146
318183
|
},
|
|
318147
318184
|
end: {
|
|
318148
|
-
line:
|
|
318185
|
+
line: 75,
|
|
318149
318186
|
column: 14
|
|
318150
318187
|
}
|
|
318151
318188
|
},
|
|
318152
|
-
"
|
|
318189
|
+
"29": {
|
|
318153
318190
|
start: {
|
|
318154
|
-
line:
|
|
318191
|
+
line: 72,
|
|
318155
318192
|
column: 14
|
|
318156
318193
|
},
|
|
318157
318194
|
end: {
|
|
318158
|
-
line:
|
|
318195
|
+
line: 74,
|
|
318159
318196
|
column: 15
|
|
318160
318197
|
}
|
|
318161
318198
|
},
|
|
318162
|
-
"
|
|
318199
|
+
"30": {
|
|
318163
318200
|
start: {
|
|
318164
|
-
line:
|
|
318201
|
+
line: 73,
|
|
318165
318202
|
column: 16
|
|
318166
318203
|
},
|
|
318167
318204
|
end: {
|
|
318168
|
-
line:
|
|
318205
|
+
line: 73,
|
|
318169
318206
|
column: 50
|
|
318170
318207
|
}
|
|
318171
318208
|
},
|
|
318172
|
-
"
|
|
318209
|
+
"31": {
|
|
318173
318210
|
start: {
|
|
318174
|
-
line:
|
|
318211
|
+
line: 81,
|
|
318175
318212
|
column: 6
|
|
318176
318213
|
},
|
|
318177
318214
|
end: {
|
|
318178
|
-
line:
|
|
318215
|
+
line: 87,
|
|
318179
318216
|
column: 8
|
|
318180
318217
|
}
|
|
318181
318218
|
},
|
|
318182
|
-
"
|
|
318219
|
+
"32": {
|
|
318183
318220
|
start: {
|
|
318184
|
-
line:
|
|
318221
|
+
line: 82,
|
|
318185
318222
|
column: 8
|
|
318186
318223
|
},
|
|
318187
318224
|
end: {
|
|
318188
|
-
line:
|
|
318225
|
+
line: 86,
|
|
318189
318226
|
column: 10
|
|
318190
318227
|
}
|
|
318191
318228
|
},
|
|
318192
|
-
"
|
|
318229
|
+
"33": {
|
|
318193
318230
|
start: {
|
|
318194
|
-
line:
|
|
318231
|
+
line: 83,
|
|
318195
318232
|
column: 10
|
|
318196
318233
|
},
|
|
318197
318234
|
end: {
|
|
318198
|
-
line:
|
|
318235
|
+
line: 85,
|
|
318199
318236
|
column: 11
|
|
318200
318237
|
}
|
|
318201
318238
|
},
|
|
318202
|
-
"
|
|
318239
|
+
"34": {
|
|
318203
318240
|
start: {
|
|
318204
|
-
line:
|
|
318241
|
+
line: 84,
|
|
318205
318242
|
column: 12
|
|
318206
318243
|
},
|
|
318207
318244
|
end: {
|
|
318208
|
-
line:
|
|
318245
|
+
line: 84,
|
|
318209
318246
|
column: 48
|
|
318210
318247
|
}
|
|
318211
318248
|
}
|
|
@@ -318325,7 +318362,7 @@ var cov_5ht757v2k = function () {
|
|
|
318325
318362
|
column: 46
|
|
318326
318363
|
},
|
|
318327
318364
|
end: {
|
|
318328
|
-
line:
|
|
318365
|
+
line: 50,
|
|
318329
318366
|
column: 5
|
|
318330
318367
|
}
|
|
318331
318368
|
},
|
|
@@ -318335,265 +318372,265 @@ var cov_5ht757v2k = function () {
|
|
|
318335
318372
|
name: "(anonymous_5)",
|
|
318336
318373
|
decl: {
|
|
318337
318374
|
start: {
|
|
318338
|
-
line:
|
|
318375
|
+
line: 53,
|
|
318339
318376
|
column: 4
|
|
318340
318377
|
},
|
|
318341
318378
|
end: {
|
|
318342
|
-
line:
|
|
318379
|
+
line: 53,
|
|
318343
318380
|
column: 5
|
|
318344
318381
|
}
|
|
318345
318382
|
},
|
|
318346
318383
|
loc: {
|
|
318347
318384
|
start: {
|
|
318348
|
-
line:
|
|
318385
|
+
line: 53,
|
|
318349
318386
|
column: 49
|
|
318350
318387
|
},
|
|
318351
318388
|
end: {
|
|
318352
|
-
line:
|
|
318389
|
+
line: 65,
|
|
318353
318390
|
column: 5
|
|
318354
318391
|
}
|
|
318355
318392
|
},
|
|
318356
|
-
line:
|
|
318393
|
+
line: 53
|
|
318357
318394
|
},
|
|
318358
318395
|
"6": {
|
|
318359
318396
|
name: "(anonymous_6)",
|
|
318360
318397
|
decl: {
|
|
318361
318398
|
start: {
|
|
318362
|
-
line:
|
|
318399
|
+
line: 58,
|
|
318363
318400
|
column: 16
|
|
318364
318401
|
},
|
|
318365
318402
|
end: {
|
|
318366
|
-
line:
|
|
318403
|
+
line: 58,
|
|
318367
318404
|
column: 17
|
|
318368
318405
|
}
|
|
318369
318406
|
},
|
|
318370
318407
|
loc: {
|
|
318371
318408
|
start: {
|
|
318372
|
-
line:
|
|
318409
|
+
line: 58,
|
|
318373
318410
|
column: 28
|
|
318374
318411
|
},
|
|
318375
318412
|
end: {
|
|
318376
|
-
line:
|
|
318413
|
+
line: 61,
|
|
318377
318414
|
column: 11
|
|
318378
318415
|
}
|
|
318379
318416
|
},
|
|
318380
|
-
line:
|
|
318417
|
+
line: 58
|
|
318381
318418
|
},
|
|
318382
318419
|
"7": {
|
|
318383
318420
|
name: "(anonymous_7)",
|
|
318384
318421
|
decl: {
|
|
318385
318422
|
start: {
|
|
318386
|
-
line:
|
|
318423
|
+
line: 62,
|
|
318387
318424
|
column: 17
|
|
318388
318425
|
},
|
|
318389
318426
|
end: {
|
|
318390
|
-
line:
|
|
318427
|
+
line: 62,
|
|
318391
318428
|
column: 18
|
|
318392
318429
|
}
|
|
318393
318430
|
},
|
|
318394
318431
|
loc: {
|
|
318395
318432
|
start: {
|
|
318396
|
-
line:
|
|
318433
|
+
line: 62,
|
|
318397
318434
|
column: 26
|
|
318398
318435
|
},
|
|
318399
318436
|
end: {
|
|
318400
|
-
line:
|
|
318437
|
+
line: 62,
|
|
318401
318438
|
column: 56
|
|
318402
318439
|
}
|
|
318403
318440
|
},
|
|
318404
|
-
line:
|
|
318441
|
+
line: 62
|
|
318405
318442
|
},
|
|
318406
318443
|
"8": {
|
|
318407
318444
|
name: "(anonymous_8)",
|
|
318408
318445
|
decl: {
|
|
318409
318446
|
start: {
|
|
318410
|
-
line:
|
|
318447
|
+
line: 63,
|
|
318411
318448
|
column: 19
|
|
318412
318449
|
},
|
|
318413
318450
|
end: {
|
|
318414
|
-
line:
|
|
318451
|
+
line: 63,
|
|
318415
318452
|
column: 20
|
|
318416
318453
|
}
|
|
318417
318454
|
},
|
|
318418
318455
|
loc: {
|
|
318419
318456
|
start: {
|
|
318420
|
-
line:
|
|
318457
|
+
line: 63,
|
|
318421
318458
|
column: 26
|
|
318422
318459
|
},
|
|
318423
318460
|
end: {
|
|
318424
|
-
line:
|
|
318461
|
+
line: 63,
|
|
318425
318462
|
column: 51
|
|
318426
318463
|
}
|
|
318427
318464
|
},
|
|
318428
|
-
line:
|
|
318465
|
+
line: 63
|
|
318429
318466
|
},
|
|
318430
318467
|
"9": {
|
|
318431
318468
|
name: "(anonymous_9)",
|
|
318432
318469
|
decl: {
|
|
318433
318470
|
start: {
|
|
318434
|
-
line:
|
|
318471
|
+
line: 66,
|
|
318435
318472
|
column: 4
|
|
318436
318473
|
},
|
|
318437
318474
|
end: {
|
|
318438
|
-
line:
|
|
318475
|
+
line: 66,
|
|
318439
318476
|
column: 5
|
|
318440
318477
|
}
|
|
318441
318478
|
},
|
|
318442
318479
|
loc: {
|
|
318443
318480
|
start: {
|
|
318444
|
-
line:
|
|
318481
|
+
line: 66,
|
|
318445
318482
|
column: 30
|
|
318446
318483
|
},
|
|
318447
318484
|
end: {
|
|
318448
|
-
line:
|
|
318485
|
+
line: 79,
|
|
318449
318486
|
column: 5
|
|
318450
318487
|
}
|
|
318451
318488
|
},
|
|
318452
|
-
line:
|
|
318489
|
+
line: 66
|
|
318453
318490
|
},
|
|
318454
318491
|
"10": {
|
|
318455
318492
|
name: "(anonymous_10)",
|
|
318456
318493
|
decl: {
|
|
318457
318494
|
start: {
|
|
318458
|
-
line:
|
|
318495
|
+
line: 69,
|
|
318459
318496
|
column: 42
|
|
318460
318497
|
},
|
|
318461
318498
|
end: {
|
|
318462
|
-
line:
|
|
318499
|
+
line: 69,
|
|
318463
318500
|
column: 43
|
|
318464
318501
|
}
|
|
318465
318502
|
},
|
|
318466
318503
|
loc: {
|
|
318467
318504
|
start: {
|
|
318468
|
-
line:
|
|
318505
|
+
line: 69,
|
|
318469
318506
|
column: 74
|
|
318470
318507
|
},
|
|
318471
318508
|
end: {
|
|
318472
|
-
line:
|
|
318509
|
+
line: 77,
|
|
318473
318510
|
column: 9
|
|
318474
318511
|
}
|
|
318475
318512
|
},
|
|
318476
|
-
line:
|
|
318513
|
+
line: 69
|
|
318477
318514
|
},
|
|
318478
318515
|
"11": {
|
|
318479
318516
|
name: "(anonymous_11)",
|
|
318480
318517
|
decl: {
|
|
318481
318518
|
start: {
|
|
318482
|
-
line:
|
|
318519
|
+
line: 70,
|
|
318483
318520
|
column: 30
|
|
318484
318521
|
},
|
|
318485
318522
|
end: {
|
|
318486
|
-
line:
|
|
318523
|
+
line: 70,
|
|
318487
318524
|
column: 31
|
|
318488
318525
|
}
|
|
318489
318526
|
},
|
|
318490
318527
|
loc: {
|
|
318491
318528
|
start: {
|
|
318492
|
-
line:
|
|
318529
|
+
line: 70,
|
|
318493
318530
|
column: 44
|
|
318494
318531
|
},
|
|
318495
318532
|
end: {
|
|
318496
|
-
line:
|
|
318533
|
+
line: 76,
|
|
318497
318534
|
column: 11
|
|
318498
318535
|
}
|
|
318499
318536
|
},
|
|
318500
|
-
line:
|
|
318537
|
+
line: 70
|
|
318501
318538
|
},
|
|
318502
318539
|
"12": {
|
|
318503
318540
|
name: "(anonymous_12)",
|
|
318504
318541
|
decl: {
|
|
318505
318542
|
start: {
|
|
318506
|
-
line:
|
|
318543
|
+
line: 71,
|
|
318507
318544
|
column: 46
|
|
318508
318545
|
},
|
|
318509
318546
|
end: {
|
|
318510
|
-
line:
|
|
318547
|
+
line: 71,
|
|
318511
318548
|
column: 47
|
|
318512
318549
|
}
|
|
318513
318550
|
},
|
|
318514
318551
|
loc: {
|
|
318515
318552
|
start: {
|
|
318516
|
-
line:
|
|
318553
|
+
line: 71,
|
|
318517
318554
|
column: 55
|
|
318518
318555
|
},
|
|
318519
318556
|
end: {
|
|
318520
|
-
line:
|
|
318557
|
+
line: 75,
|
|
318521
318558
|
column: 13
|
|
318522
318559
|
}
|
|
318523
318560
|
},
|
|
318524
|
-
line:
|
|
318561
|
+
line: 71
|
|
318525
318562
|
},
|
|
318526
318563
|
"13": {
|
|
318527
318564
|
name: "(anonymous_13)",
|
|
318528
318565
|
decl: {
|
|
318529
318566
|
start: {
|
|
318530
|
-
line:
|
|
318567
|
+
line: 80,
|
|
318531
318568
|
column: 4
|
|
318532
318569
|
},
|
|
318533
318570
|
end: {
|
|
318534
|
-
line:
|
|
318571
|
+
line: 80,
|
|
318535
318572
|
column: 5
|
|
318536
318573
|
}
|
|
318537
318574
|
},
|
|
318538
318575
|
loc: {
|
|
318539
318576
|
start: {
|
|
318540
|
-
line:
|
|
318577
|
+
line: 80,
|
|
318541
318578
|
column: 24
|
|
318542
318579
|
},
|
|
318543
318580
|
end: {
|
|
318544
|
-
line:
|
|
318581
|
+
line: 88,
|
|
318545
318582
|
column: 5
|
|
318546
318583
|
}
|
|
318547
318584
|
},
|
|
318548
|
-
line:
|
|
318585
|
+
line: 80
|
|
318549
318586
|
},
|
|
318550
318587
|
"14": {
|
|
318551
318588
|
name: "(anonymous_14)",
|
|
318552
318589
|
decl: {
|
|
318553
318590
|
start: {
|
|
318554
|
-
line:
|
|
318591
|
+
line: 81,
|
|
318555
318592
|
column: 26
|
|
318556
318593
|
},
|
|
318557
318594
|
end: {
|
|
318558
|
-
line:
|
|
318595
|
+
line: 81,
|
|
318559
318596
|
column: 27
|
|
318560
318597
|
}
|
|
318561
318598
|
},
|
|
318562
318599
|
loc: {
|
|
318563
318600
|
start: {
|
|
318564
|
-
line:
|
|
318601
|
+
line: 81,
|
|
318565
318602
|
column: 40
|
|
318566
318603
|
},
|
|
318567
318604
|
end: {
|
|
318568
|
-
line:
|
|
318605
|
+
line: 87,
|
|
318569
318606
|
column: 7
|
|
318570
318607
|
}
|
|
318571
318608
|
},
|
|
318572
|
-
line:
|
|
318609
|
+
line: 81
|
|
318573
318610
|
},
|
|
318574
318611
|
"15": {
|
|
318575
318612
|
name: "(anonymous_15)",
|
|
318576
318613
|
decl: {
|
|
318577
318614
|
start: {
|
|
318578
|
-
line:
|
|
318615
|
+
line: 82,
|
|
318579
318616
|
column: 40
|
|
318580
318617
|
},
|
|
318581
318618
|
end: {
|
|
318582
|
-
line:
|
|
318619
|
+
line: 82,
|
|
318583
318620
|
column: 41
|
|
318584
318621
|
}
|
|
318585
318622
|
},
|
|
318586
318623
|
loc: {
|
|
318587
318624
|
start: {
|
|
318588
|
-
line:
|
|
318625
|
+
line: 82,
|
|
318589
318626
|
column: 49
|
|
318590
318627
|
},
|
|
318591
318628
|
end: {
|
|
318592
|
-
line:
|
|
318629
|
+
line: 86,
|
|
318593
318630
|
column: 9
|
|
318594
318631
|
}
|
|
318595
318632
|
},
|
|
318596
|
-
line:
|
|
318633
|
+
line: 82
|
|
318597
318634
|
}
|
|
318598
318635
|
},
|
|
318599
318636
|
branchMap: {
|
|
@@ -318732,209 +318769,242 @@ var cov_5ht757v2k = function () {
|
|
|
318732
318769
|
"4": {
|
|
318733
318770
|
loc: {
|
|
318734
318771
|
start: {
|
|
318735
|
-
line:
|
|
318772
|
+
line: 44,
|
|
318773
|
+
column: 6
|
|
318774
|
+
},
|
|
318775
|
+
end: {
|
|
318776
|
+
line: 46,
|
|
318777
|
+
column: 7
|
|
318778
|
+
}
|
|
318779
|
+
},
|
|
318780
|
+
type: "if",
|
|
318781
|
+
locations: [{
|
|
318782
|
+
start: {
|
|
318783
|
+
line: 44,
|
|
318784
|
+
column: 6
|
|
318785
|
+
},
|
|
318786
|
+
end: {
|
|
318787
|
+
line: 46,
|
|
318788
|
+
column: 7
|
|
318789
|
+
}
|
|
318790
|
+
}, {
|
|
318791
|
+
start: {
|
|
318792
|
+
line: 44,
|
|
318793
|
+
column: 6
|
|
318794
|
+
},
|
|
318795
|
+
end: {
|
|
318796
|
+
line: 46,
|
|
318797
|
+
column: 7
|
|
318798
|
+
}
|
|
318799
|
+
}],
|
|
318800
|
+
line: 44
|
|
318801
|
+
},
|
|
318802
|
+
"5": {
|
|
318803
|
+
loc: {
|
|
318804
|
+
start: {
|
|
318805
|
+
line: 54,
|
|
318736
318806
|
column: 16
|
|
318737
318807
|
},
|
|
318738
318808
|
end: {
|
|
318739
|
-
line:
|
|
318809
|
+
line: 54,
|
|
318740
318810
|
column: 49
|
|
318741
318811
|
}
|
|
318742
318812
|
},
|
|
318743
318813
|
type: "binary-expr",
|
|
318744
318814
|
locations: [{
|
|
318745
318815
|
start: {
|
|
318746
|
-
line:
|
|
318816
|
+
line: 54,
|
|
318747
318817
|
column: 16
|
|
318748
318818
|
},
|
|
318749
318819
|
end: {
|
|
318750
|
-
line:
|
|
318820
|
+
line: 54,
|
|
318751
318821
|
column: 23
|
|
318752
318822
|
}
|
|
318753
318823
|
}, {
|
|
318754
318824
|
start: {
|
|
318755
|
-
line:
|
|
318825
|
+
line: 54,
|
|
318756
318826
|
column: 27
|
|
318757
318827
|
},
|
|
318758
318828
|
end: {
|
|
318759
|
-
line:
|
|
318829
|
+
line: 54,
|
|
318760
318830
|
column: 49
|
|
318761
318831
|
}
|
|
318762
318832
|
}],
|
|
318763
|
-
line:
|
|
318833
|
+
line: 54
|
|
318764
318834
|
},
|
|
318765
|
-
"
|
|
318835
|
+
"6": {
|
|
318766
318836
|
loc: {
|
|
318767
318837
|
start: {
|
|
318768
|
-
line:
|
|
318838
|
+
line: 55,
|
|
318769
318839
|
column: 6
|
|
318770
318840
|
},
|
|
318771
318841
|
end: {
|
|
318772
|
-
line:
|
|
318842
|
+
line: 64,
|
|
318773
318843
|
column: 7
|
|
318774
318844
|
}
|
|
318775
318845
|
},
|
|
318776
318846
|
type: "if",
|
|
318777
318847
|
locations: [{
|
|
318778
318848
|
start: {
|
|
318779
|
-
line:
|
|
318849
|
+
line: 55,
|
|
318780
318850
|
column: 6
|
|
318781
318851
|
},
|
|
318782
318852
|
end: {
|
|
318783
|
-
line:
|
|
318853
|
+
line: 64,
|
|
318784
318854
|
column: 7
|
|
318785
318855
|
}
|
|
318786
318856
|
}, {
|
|
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
|
-
line:
|
|
318866
|
+
line: 55
|
|
318797
318867
|
},
|
|
318798
|
-
"
|
|
318868
|
+
"7": {
|
|
318799
318869
|
loc: {
|
|
318800
318870
|
start: {
|
|
318801
|
-
line:
|
|
318871
|
+
line: 55,
|
|
318802
318872
|
column: 10
|
|
318803
318873
|
},
|
|
318804
318874
|
end: {
|
|
318805
|
-
line:
|
|
318875
|
+
line: 55,
|
|
318806
318876
|
column: 53
|
|
318807
318877
|
}
|
|
318808
318878
|
},
|
|
318809
318879
|
type: "binary-expr",
|
|
318810
318880
|
locations: [{
|
|
318811
318881
|
start: {
|
|
318812
|
-
line:
|
|
318882
|
+
line: 55,
|
|
318813
318883
|
column: 10
|
|
318814
318884
|
},
|
|
318815
318885
|
end: {
|
|
318816
|
-
line:
|
|
318886
|
+
line: 55,
|
|
318817
318887
|
column: 17
|
|
318818
318888
|
}
|
|
318819
318889
|
}, {
|
|
318820
318890
|
start: {
|
|
318821
|
-
line:
|
|
318891
|
+
line: 55,
|
|
318822
318892
|
column: 21
|
|
318823
318893
|
},
|
|
318824
318894
|
end: {
|
|
318825
|
-
line:
|
|
318895
|
+
line: 55,
|
|
318826
318896
|
column: 25
|
|
318827
318897
|
}
|
|
318828
318898
|
}, {
|
|
318829
318899
|
start: {
|
|
318830
|
-
line:
|
|
318900
|
+
line: 55,
|
|
318831
318901
|
column: 29
|
|
318832
318902
|
},
|
|
318833
318903
|
end: {
|
|
318834
|
-
line:
|
|
318904
|
+
line: 55,
|
|
318835
318905
|
column: 53
|
|
318836
318906
|
}
|
|
318837
318907
|
}],
|
|
318838
|
-
line:
|
|
318908
|
+
line: 55
|
|
318839
318909
|
},
|
|
318840
|
-
"
|
|
318910
|
+
"8": {
|
|
318841
318911
|
loc: {
|
|
318842
318912
|
start: {
|
|
318843
|
-
line:
|
|
318913
|
+
line: 67,
|
|
318844
318914
|
column: 6
|
|
318845
318915
|
},
|
|
318846
318916
|
end: {
|
|
318847
|
-
line:
|
|
318917
|
+
line: 78,
|
|
318848
318918
|
column: 7
|
|
318849
318919
|
}
|
|
318850
318920
|
},
|
|
318851
318921
|
type: "if",
|
|
318852
318922
|
locations: [{
|
|
318853
318923
|
start: {
|
|
318854
|
-
line:
|
|
318924
|
+
line: 67,
|
|
318855
318925
|
column: 6
|
|
318856
318926
|
},
|
|
318857
318927
|
end: {
|
|
318858
|
-
line:
|
|
318928
|
+
line: 78,
|
|
318859
318929
|
column: 7
|
|
318860
318930
|
}
|
|
318861
318931
|
}, {
|
|
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
|
-
line:
|
|
318941
|
+
line: 67
|
|
318872
318942
|
},
|
|
318873
|
-
"
|
|
318943
|
+
"9": {
|
|
318874
318944
|
loc: {
|
|
318875
318945
|
start: {
|
|
318876
|
-
line:
|
|
318946
|
+
line: 72,
|
|
318877
318947
|
column: 14
|
|
318878
318948
|
},
|
|
318879
318949
|
end: {
|
|
318880
|
-
line:
|
|
318950
|
+
line: 74,
|
|
318881
318951
|
column: 15
|
|
318882
318952
|
}
|
|
318883
318953
|
},
|
|
318884
318954
|
type: "if",
|
|
318885
318955
|
locations: [{
|
|
318886
318956
|
start: {
|
|
318887
|
-
line:
|
|
318957
|
+
line: 72,
|
|
318888
318958
|
column: 14
|
|
318889
318959
|
},
|
|
318890
318960
|
end: {
|
|
318891
|
-
line:
|
|
318961
|
+
line: 74,
|
|
318892
318962
|
column: 15
|
|
318893
318963
|
}
|
|
318894
318964
|
}, {
|
|
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
|
-
line:
|
|
318974
|
+
line: 72
|
|
318905
318975
|
},
|
|
318906
|
-
"
|
|
318976
|
+
"10": {
|
|
318907
318977
|
loc: {
|
|
318908
318978
|
start: {
|
|
318909
|
-
line:
|
|
318979
|
+
line: 83,
|
|
318910
318980
|
column: 10
|
|
318911
318981
|
},
|
|
318912
318982
|
end: {
|
|
318913
|
-
line:
|
|
318983
|
+
line: 85,
|
|
318914
318984
|
column: 11
|
|
318915
318985
|
}
|
|
318916
318986
|
},
|
|
318917
318987
|
type: "if",
|
|
318918
318988
|
locations: [{
|
|
318919
318989
|
start: {
|
|
318920
|
-
line:
|
|
318990
|
+
line: 83,
|
|
318921
318991
|
column: 10
|
|
318922
318992
|
},
|
|
318923
318993
|
end: {
|
|
318924
|
-
line:
|
|
318994
|
+
line: 85,
|
|
318925
318995
|
column: 11
|
|
318926
318996
|
}
|
|
318927
318997
|
}, {
|
|
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
|
-
line:
|
|
319007
|
+
line: 83
|
|
318938
319008
|
}
|
|
318939
319009
|
},
|
|
318940
319010
|
s: {
|
|
@@ -318970,7 +319040,9 @@ var cov_5ht757v2k = function () {
|
|
|
318970
319040
|
"29": 0,
|
|
318971
319041
|
"30": 0,
|
|
318972
319042
|
"31": 0,
|
|
318973
|
-
"32": 0
|
|
319043
|
+
"32": 0,
|
|
319044
|
+
"33": 0,
|
|
319045
|
+
"34": 0
|
|
318974
319046
|
},
|
|
318975
319047
|
f: {
|
|
318976
319048
|
"0": 0,
|
|
@@ -318997,13 +319069,14 @@ var cov_5ht757v2k = function () {
|
|
|
318997
319069
|
"3": [0, 0],
|
|
318998
319070
|
"4": [0, 0],
|
|
318999
319071
|
"5": [0, 0],
|
|
319000
|
-
"6": [0, 0
|
|
319001
|
-
"7": [0, 0],
|
|
319072
|
+
"6": [0, 0],
|
|
319073
|
+
"7": [0, 0, 0],
|
|
319002
319074
|
"8": [0, 0],
|
|
319003
|
-
"9": [0, 0]
|
|
319075
|
+
"9": [0, 0],
|
|
319076
|
+
"10": [0, 0]
|
|
319004
319077
|
},
|
|
319005
319078
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
319006
|
-
hash: "
|
|
319079
|
+
hash: "b643f788f77d4fcd68b71d31977c281f17784e26"
|
|
319007
319080
|
};
|
|
319008
319081
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
319009
319082
|
|
|
@@ -319126,13 +319199,23 @@ var pluralizedModels = (cov_5ht757v2k.s[0]++, {
|
|
|
319126
319199
|
}
|
|
319127
319200
|
|
|
319128
319201
|
cov_5ht757v2k.s[12]++;
|
|
319202
|
+
|
|
319203
|
+
if (errorMessage == 'Failed to fetch bioModel: Object not found try a different ID') {
|
|
319204
|
+
cov_5ht757v2k.b[4][0]++;
|
|
319205
|
+
cov_5ht757v2k.s[13]++;
|
|
319206
|
+
errorMessage = 'Sample not found: It might be private or not exist.';
|
|
319207
|
+
} else {
|
|
319208
|
+
cov_5ht757v2k.b[4][1]++;
|
|
319209
|
+
}
|
|
319210
|
+
|
|
319211
|
+
cov_5ht757v2k.s[14]++;
|
|
319129
319212
|
this.$store.dispatch(SHOW_ALERT, {
|
|
319130
319213
|
error: errorMessage
|
|
319131
319214
|
});
|
|
319132
|
-
cov_5ht757v2k.s[
|
|
319215
|
+
cov_5ht757v2k.s[15]++;
|
|
319133
319216
|
this.$store.dispatch(HIDE_PANEL, modelName);
|
|
319134
319217
|
|
|
319135
|
-
case
|
|
319218
|
+
case 10:
|
|
319136
319219
|
case "end":
|
|
319137
319220
|
return _context2.stop();
|
|
319138
319221
|
}
|
|
@@ -319156,34 +319239,34 @@ var pluralizedModels = (cov_5ht757v2k.s[0]++, {
|
|
|
319156
319239
|
switch (_context3.prev = _context3.next) {
|
|
319157
319240
|
case 0:
|
|
319158
319241
|
cov_5ht757v2k.f[5]++;
|
|
319159
|
-
cov_5ht757v2k.s[
|
|
319160
|
-
modelId = (cov_5ht757v2k.b[
|
|
319161
|
-
cov_5ht757v2k.s[
|
|
319242
|
+
cov_5ht757v2k.s[16]++;
|
|
319243
|
+
modelId = (cov_5ht757v2k.b[5][0]++, modelId) || (cov_5ht757v2k.b[5][1]++, this["".concat(modelName, "Id")]);
|
|
319244
|
+
cov_5ht757v2k.s[17]++;
|
|
319162
319245
|
|
|
319163
|
-
if ((cov_5ht757v2k.b[
|
|
319164
|
-
cov_5ht757v2k.b[
|
|
319165
|
-
cov_5ht757v2k.s[
|
|
319246
|
+
if ((cov_5ht757v2k.b[7][0]++, modelId) && (cov_5ht757v2k.b[7][1]++, data) && (cov_5ht757v2k.b[7][2]++, Object.keys(data).length)) {
|
|
319247
|
+
cov_5ht757v2k.b[6][0]++;
|
|
319248
|
+
cov_5ht757v2k.s[18]++;
|
|
319166
319249
|
this.fieldLoading = true;
|
|
319167
|
-
cov_5ht757v2k.s[
|
|
319250
|
+
cov_5ht757v2k.s[19]++;
|
|
319168
319251
|
updateRecord(pluralizedModels[modelName], modelId, data).then(function (response) {
|
|
319169
319252
|
cov_5ht757v2k.f[6]++;
|
|
319170
|
-
cov_5ht757v2k.s[
|
|
319253
|
+
cov_5ht757v2k.s[20]++;
|
|
319171
319254
|
|
|
319172
319255
|
_this2.$cleanFieldErrors();
|
|
319173
319256
|
|
|
319174
|
-
cov_5ht757v2k.s[
|
|
319257
|
+
cov_5ht757v2k.s[21]++;
|
|
319175
319258
|
_this2[modelName] = response;
|
|
319176
319259
|
}).catch(function (error) {
|
|
319177
319260
|
cov_5ht757v2k.f[7]++;
|
|
319178
|
-
cov_5ht757v2k.s[
|
|
319261
|
+
cov_5ht757v2k.s[22]++;
|
|
319179
319262
|
return _this2.$handleFieldErrors(error);
|
|
319180
319263
|
}).finally(function () {
|
|
319181
319264
|
cov_5ht757v2k.f[8]++;
|
|
319182
|
-
cov_5ht757v2k.s[
|
|
319265
|
+
cov_5ht757v2k.s[23]++;
|
|
319183
319266
|
return _this2.fieldLoading = false;
|
|
319184
319267
|
});
|
|
319185
319268
|
} else {
|
|
319186
|
-
cov_5ht757v2k.b[
|
|
319269
|
+
cov_5ht757v2k.b[6][1]++;
|
|
319187
319270
|
}
|
|
319188
319271
|
|
|
319189
319272
|
case 5:
|
|
@@ -319204,57 +319287,57 @@ var pluralizedModels = (cov_5ht757v2k.s[0]++, {
|
|
|
319204
319287
|
var _this3 = this;
|
|
319205
319288
|
|
|
319206
319289
|
cov_5ht757v2k.f[9]++;
|
|
319207
|
-
cov_5ht757v2k.s[
|
|
319290
|
+
cov_5ht757v2k.s[24]++;
|
|
319208
319291
|
|
|
319209
319292
|
if (error.response) {
|
|
319210
|
-
cov_5ht757v2k.b[
|
|
319211
|
-
var flatError = (cov_5ht757v2k.s[
|
|
319212
|
-
cov_5ht757v2k.s[
|
|
319293
|
+
cov_5ht757v2k.b[8][0]++;
|
|
319294
|
+
var flatError = (cov_5ht757v2k.s[25]++, Object(helpers["e" /* flattenObject */])(error.response.data, true));
|
|
319295
|
+
cov_5ht757v2k.s[26]++;
|
|
319213
319296
|
Object.entries(flatError).forEach(function (_ref) {
|
|
319214
319297
|
var _ref2 = fields_slicedToArray(_ref, 2),
|
|
319215
319298
|
errorField = _ref2[0],
|
|
319216
319299
|
errorMessage = _ref2[1];
|
|
319217
319300
|
|
|
319218
319301
|
cov_5ht757v2k.f[10]++;
|
|
319219
|
-
cov_5ht757v2k.s[
|
|
319302
|
+
cov_5ht757v2k.s[27]++;
|
|
319220
319303
|
|
|
319221
319304
|
_this3.fields.forEach(function (fieldGroup) {
|
|
319222
319305
|
cov_5ht757v2k.f[11]++;
|
|
319223
|
-
cov_5ht757v2k.s[
|
|
319306
|
+
cov_5ht757v2k.s[28]++;
|
|
319224
319307
|
Object.values(fieldGroup).forEach(function (field) {
|
|
319225
319308
|
cov_5ht757v2k.f[12]++;
|
|
319226
|
-
cov_5ht757v2k.s[
|
|
319309
|
+
cov_5ht757v2k.s[29]++;
|
|
319227
319310
|
|
|
319228
319311
|
if (field.field === errorField) {
|
|
319229
|
-
cov_5ht757v2k.b[
|
|
319230
|
-
cov_5ht757v2k.s[
|
|
319312
|
+
cov_5ht757v2k.b[9][0]++;
|
|
319313
|
+
cov_5ht757v2k.s[30]++;
|
|
319231
319314
|
field.errorMessages = errorMessage;
|
|
319232
319315
|
} else {
|
|
319233
|
-
cov_5ht757v2k.b[
|
|
319316
|
+
cov_5ht757v2k.b[9][1]++;
|
|
319234
319317
|
}
|
|
319235
319318
|
});
|
|
319236
319319
|
});
|
|
319237
319320
|
});
|
|
319238
319321
|
} else {
|
|
319239
|
-
cov_5ht757v2k.b[
|
|
319322
|
+
cov_5ht757v2k.b[8][1]++;
|
|
319240
319323
|
}
|
|
319241
319324
|
},
|
|
319242
319325
|
$cleanFieldErrors: function $cleanFieldErrors() {
|
|
319243
319326
|
cov_5ht757v2k.f[13]++;
|
|
319244
|
-
cov_5ht757v2k.s[
|
|
319327
|
+
cov_5ht757v2k.s[31]++;
|
|
319245
319328
|
this.fields.forEach(function (fieldGroup) {
|
|
319246
319329
|
cov_5ht757v2k.f[14]++;
|
|
319247
|
-
cov_5ht757v2k.s[
|
|
319330
|
+
cov_5ht757v2k.s[32]++;
|
|
319248
319331
|
Object.keys(fieldGroup).forEach(function (field) {
|
|
319249
319332
|
cov_5ht757v2k.f[15]++;
|
|
319250
|
-
cov_5ht757v2k.s[
|
|
319333
|
+
cov_5ht757v2k.s[33]++;
|
|
319251
319334
|
|
|
319252
319335
|
if ('errorMessages' in fieldGroup[field]) {
|
|
319253
|
-
cov_5ht757v2k.b[
|
|
319254
|
-
cov_5ht757v2k.s[
|
|
319336
|
+
cov_5ht757v2k.b[10][0]++;
|
|
319337
|
+
cov_5ht757v2k.s[34]++;
|
|
319255
319338
|
fieldGroup[field].errorMessages = [];
|
|
319256
319339
|
} else {
|
|
319257
|
-
cov_5ht757v2k.b[
|
|
319340
|
+
cov_5ht757v2k.b[10][1]++;
|
|
319258
319341
|
}
|
|
319259
319342
|
});
|
|
319260
319343
|
});
|