@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/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: 4, description: "Multi-scale rabbit cardiac electrophysiology models", },
40
- { id: 17, description: "Multi-scale human cardiac electrophysiology models", },
41
- { id: 78, description: "Kember Cardiac Nerve Model", },
42
- { id: 135, description: "Computational analysis of the human sinus node action potential - Model development and effects of mutations", },
43
- { id: 157, description: "Fabbri-based composite SAN model", },
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__orig-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
+ <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;
@@ -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;