@abi-software/simulationvuer 0.7.0-vue-3-alpha.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/README.md +93 -74
- package/dist/index.html +17 -17
- package/dist/simulationvuer.js +3648 -3634
- package/dist/simulationvuer.umd.cjs +13 -13
- package/dist/style.css +1 -1
- package/package.json +92 -81
- package/public/index.html +17 -17
- package/src/App.vue +101 -101
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +6 -7
- package/src/components/SimulationVuer.vue +622 -534
- package/src/components/SimulationVuerInput.vue +146 -140
- package/src/components/common.js +31 -31
- package/src/components/index.js +7 -7
- package/src/components/json.js +522 -522
- package/src/components/ui.js +85 -75
- package/src/main.js +19 -20
- package/vite.config.js +60 -73
- package/vuese-generator.js +66 -0
- package/package-lock.json +0 -6692
package/src/App.vue
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="app">
|
|
3
|
-
<div class="app">
|
|
4
|
-
<h1>SimulationVuer</h1>
|
|
5
|
-
<el-radio-group v-model="id" size="small">
|
|
6
|
-
<el-radio-button :class="className(dataset.id)" v-for="dataset in datasets" v-bind:key="dataset.id" :label="dataset.id" />
|
|
7
|
-
</el-radio-group>
|
|
8
|
-
</div>
|
|
9
|
-
<hr />
|
|
10
|
-
<div v-for="dataset in datasets" v-bind:key="dataset.id">
|
|
11
|
-
<div v-if="initialised(dataset.id)" v-show="dataset.id == id">
|
|
12
|
-
<span>
|
|
13
|
-
<strong>Dataset <a :href="datasetUrl(dataset.id)" target="_blank">{{ dataset.id }}</a>:</strong> {{ dataset.description }}
|
|
14
|
-
</span>
|
|
15
|
-
<hr />
|
|
16
|
-
<SimulationVuer :apiLocation="apiLocation" :id="dataset.id" />
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<hr />
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
import SimulationVuer from "./components/SimulationVuer.vue";
|
|
25
|
-
import { ElRadioButton, ElRadioGroup } from "element-plus";
|
|
26
|
-
|
|
27
|
-
export default {
|
|
28
|
-
name: "App",
|
|
29
|
-
components: {
|
|
30
|
-
SimulationVuer,
|
|
31
|
-
ElRadioButton,
|
|
32
|
-
ElRadioGroup,
|
|
33
|
-
},
|
|
34
|
-
data: function () {
|
|
35
|
-
return {
|
|
36
|
-
apiLocation: import.meta.env.VITE_API_LOCATION,
|
|
37
|
-
datasets: [
|
|
38
|
-
{ id: 0, description: "Non-simulation dataset", },
|
|
39
|
-
{ id:
|
|
40
|
-
{ id:
|
|
41
|
-
{ id:
|
|
42
|
-
{ id:
|
|
43
|
-
{ id:
|
|
44
|
-
],
|
|
45
|
-
id: 0,
|
|
46
|
-
ready: [],
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
methods: {
|
|
50
|
-
className(id) {
|
|
51
|
-
return (id == this.datasets[0].id)?"first-dataset":"";
|
|
52
|
-
},
|
|
53
|
-
datasetUrl(id) {
|
|
54
|
-
return `https://sparc.science/datasets/${id}?type=dataset`;
|
|
55
|
-
},
|
|
56
|
-
initialised(id) {
|
|
57
|
-
if (this.ready.includes(id)) {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (this.id == id) {
|
|
62
|
-
this.ready.push(id);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return this.ready.includes(id);
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
<style>
|
|
72
|
-
#app {
|
|
73
|
-
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
74
|
-
-webkit-font-smoothing: antialiased;
|
|
75
|
-
-moz-osx-font-smoothing: grayscale;
|
|
76
|
-
color: #2c3e50;
|
|
77
|
-
}
|
|
78
|
-
.el-radio-button__inner {
|
|
79
|
-
background-color: #f9f2fc;
|
|
80
|
-
border-color: #8300bf;
|
|
81
|
-
box-shadow: -1px 0 0 0 #8300bf !important;
|
|
82
|
-
color: #8300bf;
|
|
83
|
-
}
|
|
84
|
-
.first-dataset > .el-radio-button__inner {
|
|
85
|
-
border-left: 1px solid #8300bf !important;
|
|
86
|
-
}
|
|
87
|
-
.el-radio-
|
|
88
|
-
background-color: #8300bf;
|
|
89
|
-
border-color: #8300bf;
|
|
90
|
-
color: white;
|
|
91
|
-
}
|
|
92
|
-
.el-radio-button__inner:hover {
|
|
93
|
-
color: #8300bf;
|
|
94
|
-
}
|
|
95
|
-
a {
|
|
96
|
-
color: #2c3e50;
|
|
97
|
-
}
|
|
98
|
-
div.app {
|
|
99
|
-
text-align: center;
|
|
100
|
-
}
|
|
101
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<div class="app">
|
|
4
|
+
<h1>SimulationVuer</h1>
|
|
5
|
+
<el-radio-group v-model="id" size="small">
|
|
6
|
+
<el-radio-button :class="className(dataset.id)" v-for="dataset in datasets" v-bind:key="dataset.id" :label="dataset.id" />
|
|
7
|
+
</el-radio-group>
|
|
8
|
+
</div>
|
|
9
|
+
<hr />
|
|
10
|
+
<div v-for="dataset in datasets" v-bind:key="dataset.id">
|
|
11
|
+
<div v-if="initialised(dataset.id)" v-show="dataset.id == id">
|
|
12
|
+
<span>
|
|
13
|
+
<strong>Dataset <a :href="datasetUrl(dataset.id)" target="_blank">{{ dataset.id }}</a>:</strong> {{ dataset.description }}
|
|
14
|
+
</span>
|
|
15
|
+
<hr />
|
|
16
|
+
<SimulationVuer :apiLocation="apiLocation" :id="dataset.id" />
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<hr />
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
import SimulationVuer from "./components/SimulationVuer.vue";
|
|
25
|
+
import { ElRadioButton, ElRadioGroup } from "element-plus";
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
name: "App",
|
|
29
|
+
components: {
|
|
30
|
+
SimulationVuer,
|
|
31
|
+
ElRadioButton,
|
|
32
|
+
ElRadioGroup,
|
|
33
|
+
},
|
|
34
|
+
data: function () {
|
|
35
|
+
return {
|
|
36
|
+
apiLocation: import.meta.env.VITE_API_LOCATION,
|
|
37
|
+
datasets: [
|
|
38
|
+
{ id: 0, description: "Non-simulation dataset", },
|
|
39
|
+
{ id: 135, description: "Computational analysis of the human sinus node action potential - Model development and effects of mutations", },
|
|
40
|
+
{ id: 157, description: "Fabbri-based composite SAN model", },
|
|
41
|
+
{ id: 308, description: "Kember Cardiac Nerve Model", },
|
|
42
|
+
{ id: 318, description: "Multi-scale rabbit cardiac electrophysiology models", },
|
|
43
|
+
{ id: 320, description: "Multi-scale human cardiac electrophysiology models", },
|
|
44
|
+
],
|
|
45
|
+
id: 0,
|
|
46
|
+
ready: [],
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
className(id) {
|
|
51
|
+
return (id == this.datasets[0].id)?"first-dataset":"";
|
|
52
|
+
},
|
|
53
|
+
datasetUrl(id) {
|
|
54
|
+
return `https://sparc.science/datasets/${id}?type=dataset`;
|
|
55
|
+
},
|
|
56
|
+
initialised(id) {
|
|
57
|
+
if (this.ready.includes(id)) {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (this.id == id) {
|
|
62
|
+
this.ready.push(id);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return this.ready.includes(id);
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
</script>
|
|
70
|
+
|
|
71
|
+
<style>
|
|
72
|
+
#app {
|
|
73
|
+
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
74
|
+
-webkit-font-smoothing: antialiased;
|
|
75
|
+
-moz-osx-font-smoothing: grayscale;
|
|
76
|
+
color: #2c3e50;
|
|
77
|
+
}
|
|
78
|
+
.el-radio-button__inner {
|
|
79
|
+
background-color: #f9f2fc;
|
|
80
|
+
border-color: #8300bf;
|
|
81
|
+
box-shadow: -1px 0 0 0 #8300bf !important;
|
|
82
|
+
color: #8300bf;
|
|
83
|
+
}
|
|
84
|
+
.first-dataset > .el-radio-button__inner {
|
|
85
|
+
border-left: 1px solid #8300bf !important;
|
|
86
|
+
}
|
|
87
|
+
.el-radio-button__original-radio:checked+.el-radio-button__inner {
|
|
88
|
+
background-color: #8300bf;
|
|
89
|
+
border-color: #8300bf;
|
|
90
|
+
color: white;
|
|
91
|
+
}
|
|
92
|
+
.el-radio-button__inner:hover {
|
|
93
|
+
color: #8300bf;
|
|
94
|
+
}
|
|
95
|
+
a {
|
|
96
|
+
color: #2c3e50;
|
|
97
|
+
}
|
|
98
|
+
div.app {
|
|
99
|
+
text-align: center;
|
|
100
|
+
}
|
|
101
|
+
</style>
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
// Primary colors
|
|
2
|
-
$purple: #8300BF;
|
|
3
|
-
$darkBlue: #24245B;
|
|
4
|
-
$grey: #303133;
|
|
5
|
-
|
|
6
|
-
// Secondary colors
|
|
7
|
-
$lightPurple: #BC00FC;
|
|
8
|
-
$blue: #0026FF;
|
|
9
|
-
|
|
10
|
-
// Status colors
|
|
11
|
-
$success: #5e9f69;
|
|
12
|
-
$warning: #FF8400;
|
|
13
|
-
$danger: #b51d09;
|
|
14
|
-
|
|
15
|
-
// Text colors
|
|
16
|
-
$neutralGrey: #616161;
|
|
17
|
-
$mediumGrey: #606266;
|
|
18
|
-
$lightGrey: #909399;
|
|
19
|
-
|
|
20
|
-
// Line colors
|
|
21
|
-
$lineColor1: #DCDFE6;
|
|
22
|
-
$lineColor2: #E4E7ED;
|
|
23
|
-
|
|
24
|
-
// Background colors
|
|
25
|
-
$background: #F5F7FA;
|
|
26
|
-
$cochlear: #FFFFFF;
|
|
27
|
-
|
|
28
|
-
//Search box colors
|
|
29
|
-
$darkGrey: #606266;
|
|
30
|
-
|
|
31
|
-
$app-primary-color: $purple;
|
|
32
|
-
$app-secondary-color: $darkBlue;
|
|
33
|
-
$text-color: $grey;
|
|
34
|
-
$input-text: $grey;
|
|
35
|
-
|
|
36
|
-
$system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
|
|
37
|
-
$font-family: 'Asap', sans-serif;
|
|
38
|
-
|
|
39
|
-
// Viewport Sizes
|
|
40
|
-
$viewport-sm: 20rem;
|
|
41
|
-
$viewport-md: 47rem;
|
|
42
|
-
$viewport-lg: 64rem;
|
|
43
|
-
$viewport-xlg: 120rem;
|
|
1
|
+
// Primary colors
|
|
2
|
+
$purple: #8300BF;
|
|
3
|
+
$darkBlue: #24245B;
|
|
4
|
+
$grey: #303133;
|
|
5
|
+
|
|
6
|
+
// Secondary colors
|
|
7
|
+
$lightPurple: #BC00FC;
|
|
8
|
+
$blue: #0026FF;
|
|
9
|
+
|
|
10
|
+
// Status colors
|
|
11
|
+
$success: #5e9f69;
|
|
12
|
+
$warning: #FF8400;
|
|
13
|
+
$danger: #b51d09;
|
|
14
|
+
|
|
15
|
+
// Text colors
|
|
16
|
+
$neutralGrey: #616161;
|
|
17
|
+
$mediumGrey: #606266;
|
|
18
|
+
$lightGrey: #909399;
|
|
19
|
+
|
|
20
|
+
// Line colors
|
|
21
|
+
$lineColor1: #DCDFE6;
|
|
22
|
+
$lineColor2: #E4E7ED;
|
|
23
|
+
|
|
24
|
+
// Background colors
|
|
25
|
+
$background: #F5F7FA;
|
|
26
|
+
$cochlear: #FFFFFF;
|
|
27
|
+
|
|
28
|
+
//Search box colors
|
|
29
|
+
$darkGrey: #606266;
|
|
30
|
+
|
|
31
|
+
$app-primary-color: $purple;
|
|
32
|
+
$app-secondary-color: $darkBlue;
|
|
33
|
+
$text-color: $grey;
|
|
34
|
+
$input-text: $grey;
|
|
35
|
+
|
|
36
|
+
$system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
|
|
37
|
+
$font-family: 'Asap', sans-serif;
|
|
38
|
+
|
|
39
|
+
// Viewport Sizes
|
|
40
|
+
$viewport-sm: 20rem;
|
|
41
|
+
$viewport-md: 47rem;
|
|
42
|
+
$viewport-lg: 64rem;
|
|
43
|
+
$viewport-xlg: 120rem;
|
package/src/assets/styles.scss
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
@import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
|
|
2
|
-
|
|
3
|
-
@import '_variables';
|
|
4
|
-
|
|
5
|
-
/* icon font path, required */
|
|
6
|
-
$--color-primary: $app-primary-color !default;
|
|
7
|
-
|
|
1
|
+
@import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
|
|
2
|
+
|
|
3
|
+
@import '_variables';
|
|
4
|
+
|
|
5
|
+
/* icon font path, required */
|
|
6
|
+
$--color-primary: $app-primary-color !default;
|