@abi-software/flatmapvuer 0.5.10 → 0.6.0-vue3-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 +105 -105
- package/babel.config.js +0 -14
- package/dist/favicon.ico +0 -0
- package/dist/flatmapvuer.js +69542 -0
- package/dist/flatmapvuer.umd.cjs +1021 -0
- package/dist/index.html +17 -0
- package/dist/style.css +1 -0
- package/package.json +87 -79
- package/public/index.html +17 -17
- package/src/App.vue +303 -228
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +6 -7
- package/src/components/AnnotationTool.vue +443 -403
- package/src/components/EventBus.js +3 -3
- package/src/components/ExternalResourceCard.vue +108 -99
- package/src/components/FlatmapVuer.vue +2117 -2070
- package/src/components/MultiFlatmapVuer.vue +603 -535
- package/src/components/ProvenancePopup.vue +496 -422
- package/src/components/SelectionsGroup.vue +258 -249
- package/src/components/Tooltip.vue +50 -52
- package/src/components/TreeControls.vue +234 -231
- package/src/components/index.js +6 -9
- package/src/components/legends/DynamicLegends.vue +106 -112
- package/src/components/legends/SvgLegends.vue +112 -67
- package/src/components.d.ts +46 -0
- package/src/icons/flatmap-marker.js +1 -1
- package/src/icons/fonts/mapicon-species.eot +0 -0
- package/src/icons/fonts/mapicon-species.svg +14 -14
- package/src/icons/fonts/mapicon-species.ttf +0 -0
- package/src/icons/fonts/mapicon-species.woff +0 -0
- package/src/icons/mapicon-species-style.css +42 -42
- package/src/icons/yellowstar.js +5 -5
- package/src/legends/legend.svg +25 -25
- package/src/main.js +4 -8
- package/src/services/flatmapQueries.js +451 -415
- package/vite.config.js +76 -0
- package/vue.config.js +45 -31
- package/CHANGELOG.md +0 -402
- package/package-lock.json +0 -18473
- package/src/nerve-map.js +0 -99
package/src/App.vue
CHANGED
|
@@ -1,228 +1,303 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="app">
|
|
3
|
-
<el-popover
|
|
4
|
-
placement="bottom"
|
|
5
|
-
trigger="click"
|
|
6
|
-
width=500
|
|
7
|
-
class="popover"
|
|
8
|
-
:
|
|
9
|
-
|
|
10
|
-
<div class="options-container">
|
|
11
|
-
<el-row :gutter="20">
|
|
12
|
-
<el-button @click="helpMode = !helpMode" size="
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<el-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</
|
|
36
|
-
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
.
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<el-popover
|
|
4
|
+
placement="bottom"
|
|
5
|
+
trigger="click"
|
|
6
|
+
width="500"
|
|
7
|
+
class="popover"
|
|
8
|
+
:teleported="false"
|
|
9
|
+
>
|
|
10
|
+
<div class="options-container">
|
|
11
|
+
<el-row :gutter="20">
|
|
12
|
+
<el-button @click="helpMode = !helpMode" size="small"
|
|
13
|
+
>Help Mode</el-button
|
|
14
|
+
>
|
|
15
|
+
<el-button @click="saveSettings()" size="small"
|
|
16
|
+
>Save Settings</el-button
|
|
17
|
+
>
|
|
18
|
+
<el-button
|
|
19
|
+
:disabled="mapSettings.length === 0"
|
|
20
|
+
@click="restoreSettings()"
|
|
21
|
+
size="small"
|
|
22
|
+
>Restore Settings</el-button
|
|
23
|
+
>
|
|
24
|
+
<el-autocomplete
|
|
25
|
+
class="search-box"
|
|
26
|
+
placeholder="Search"
|
|
27
|
+
v-model="searchText"
|
|
28
|
+
:fetch-suggestions="fetchSuggestions"
|
|
29
|
+
@keyup.enter.native="search"
|
|
30
|
+
@select="search"
|
|
31
|
+
popper-class="autocomplete-popper"
|
|
32
|
+
:teleported="false"
|
|
33
|
+
>
|
|
34
|
+
</el-autocomplete>
|
|
35
|
+
</el-row>
|
|
36
|
+
</div>
|
|
37
|
+
<template #reference>
|
|
38
|
+
<el-button class="options-button" :icon="ElIconSetting"
|
|
39
|
+
>Options</el-button>
|
|
40
|
+
</template>
|
|
41
|
+
</el-popover>
|
|
42
|
+
|
|
43
|
+
<MultiFlatmapVuer
|
|
44
|
+
ref="multi"
|
|
45
|
+
:availableSpecies="availableSpecies"
|
|
46
|
+
@resource-selected="FlatmapSelected"
|
|
47
|
+
:minZoom="minZoom"
|
|
48
|
+
@pan-zoom-callback="panZoomcallback"
|
|
49
|
+
@open-map="openMap"
|
|
50
|
+
@ready="FlatmapReady"
|
|
51
|
+
:featureInfo="featureInfo"
|
|
52
|
+
:searchable="searchable"
|
|
53
|
+
:layerControl="layerControl"
|
|
54
|
+
:initial="initial"
|
|
55
|
+
:pathControls="pathControls"
|
|
56
|
+
:helpMode="helpMode"
|
|
57
|
+
:displayMinimap="true"
|
|
58
|
+
:enableOpenMapUI="true"
|
|
59
|
+
:flatmapAPI="flatmapAPI"
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
<script>
|
|
65
|
+
import { shallowRef } from 'vue';
|
|
66
|
+
import { Setting as ElIconSetting } from '@element-plus/icons-vue'
|
|
67
|
+
/* eslint-disable no-alert, no-console */
|
|
68
|
+
import MultiFlatmapVuer from './components/MultiFlatmapVuer.vue'
|
|
69
|
+
import {
|
|
70
|
+
ElAutocomplete as Autocomplete,
|
|
71
|
+
ElButton as Button,
|
|
72
|
+
ElCol as Col,
|
|
73
|
+
ElPopover as Popover,
|
|
74
|
+
ElRow as Row,
|
|
75
|
+
} from 'element-plus'
|
|
76
|
+
import './icons/mapicon-species-style.css'
|
|
77
|
+
|
|
78
|
+
export default {
|
|
79
|
+
name: 'app',
|
|
80
|
+
components: {
|
|
81
|
+
Autocomplete,
|
|
82
|
+
Button,
|
|
83
|
+
Col,
|
|
84
|
+
ElIconSetting,
|
|
85
|
+
Popover,
|
|
86
|
+
Row,
|
|
87
|
+
},
|
|
88
|
+
methods: {
|
|
89
|
+
saveSettings: function () {
|
|
90
|
+
this.mapSettings.push(this.$refs.multi.getState())
|
|
91
|
+
},
|
|
92
|
+
restoreSettings: function () {
|
|
93
|
+
if (this.mapSettings.length > 0)
|
|
94
|
+
this.$refs.multi.setState(this.mapSettings.pop())
|
|
95
|
+
},
|
|
96
|
+
FlatmapSelected: function (resource) {
|
|
97
|
+
if (resource.eventType === 'click') {
|
|
98
|
+
console.log('resource', resource)
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
FlatmapReady: function (component) {
|
|
102
|
+
console.log(component)
|
|
103
|
+
let taxon = component.mapImp.describes
|
|
104
|
+
let id = component.mapImp.addMarker('UBERON:0000948')
|
|
105
|
+
window.flatmapImp = component.mapImp
|
|
106
|
+
component.enablePanZoomEvents(true)
|
|
107
|
+
//component.showPathwaysDrawer(false);
|
|
108
|
+
console.log(taxon, id)
|
|
109
|
+
//component.searchAndShowResult("heart");
|
|
110
|
+
},
|
|
111
|
+
panZoomcallback: function (payload) {
|
|
112
|
+
this.payload = payload
|
|
113
|
+
},
|
|
114
|
+
openMap: function (map) {
|
|
115
|
+
console.log(map)
|
|
116
|
+
},
|
|
117
|
+
fetchSuggestions: function (term, cb) {
|
|
118
|
+
if (term === '') {
|
|
119
|
+
cb([])
|
|
120
|
+
} else {
|
|
121
|
+
const suggestions = []
|
|
122
|
+
const results = this.$refs.multi
|
|
123
|
+
.getCurrentFlatmap()
|
|
124
|
+
.searchSuggestions(term)
|
|
125
|
+
results.__featureIds.forEach((id) => {
|
|
126
|
+
const annotation = this.$refs.multi
|
|
127
|
+
.getCurrentFlatmap()
|
|
128
|
+
.mapImp.annotation(id)
|
|
129
|
+
if (annotation && annotation.label) suggestions.push(annotation.label)
|
|
130
|
+
})
|
|
131
|
+
const unique = new Set(suggestions)
|
|
132
|
+
suggestions.length = 0
|
|
133
|
+
for (const item of unique) {
|
|
134
|
+
suggestions.push({ value: '"' + item + '"' })
|
|
135
|
+
}
|
|
136
|
+
cb(suggestions)
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
search: function () {
|
|
140
|
+
console.log(this.searchText)
|
|
141
|
+
this.$refs.multi
|
|
142
|
+
.getCurrentFlatmap()
|
|
143
|
+
.searchAndShowResult(this.searchText, true)
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
data: function () {
|
|
147
|
+
return {
|
|
148
|
+
searchText: '',
|
|
149
|
+
featureInfo: true,
|
|
150
|
+
searchable: true,
|
|
151
|
+
pathControls: true,
|
|
152
|
+
layerControl: true,
|
|
153
|
+
minZoom: 4,
|
|
154
|
+
availableSpecies: {
|
|
155
|
+
'Human Female': {
|
|
156
|
+
taxo: 'NCBITaxon:9606',
|
|
157
|
+
biologicalSex: 'PATO:0000383',
|
|
158
|
+
iconClass: 'mapicon-icon_human',
|
|
159
|
+
displayWarning: true,
|
|
160
|
+
},
|
|
161
|
+
'Human Male': {
|
|
162
|
+
taxo: 'NCBITaxon:9606',
|
|
163
|
+
biologicalSex: 'PATO:0000384',
|
|
164
|
+
iconClass: 'mapicon-icon_human',
|
|
165
|
+
displayWarning: true,
|
|
166
|
+
},
|
|
167
|
+
Rat: {
|
|
168
|
+
taxo: 'NCBITaxon:10114',
|
|
169
|
+
iconClass: 'mapicon-icon_rat',
|
|
170
|
+
displayWarning: true,
|
|
171
|
+
displayLatestChanges: true,
|
|
172
|
+
},
|
|
173
|
+
'Rat (NPO)': {
|
|
174
|
+
taxo: 'NCBITaxon:10116',
|
|
175
|
+
iconClass: 'mapicon-icon_rat',
|
|
176
|
+
displayWarning: true,
|
|
177
|
+
displayLatestChanges: true,
|
|
178
|
+
},
|
|
179
|
+
Mouse: {
|
|
180
|
+
taxo: 'NCBITaxon:10090',
|
|
181
|
+
iconClass: 'mapicon-icon_mouse',
|
|
182
|
+
displayWarning: true,
|
|
183
|
+
},
|
|
184
|
+
Kember: { taxo: 'ABI:1000001', displayWarning: true },
|
|
185
|
+
Pig: {
|
|
186
|
+
taxo: 'NCBITaxon:9823',
|
|
187
|
+
iconClass: 'mapicon-icon_pig',
|
|
188
|
+
displayWarning: true,
|
|
189
|
+
},
|
|
190
|
+
Cat: {
|
|
191
|
+
taxo: 'NCBITaxon:9685',
|
|
192
|
+
iconClass: 'mapicon-icon_cat',
|
|
193
|
+
displayWarning: true,
|
|
194
|
+
},
|
|
195
|
+
Sample: { taxo: 'NCBITaxon:1', displayWarning: true },
|
|
196
|
+
'Functional Connectivity': {
|
|
197
|
+
taxo: 'FunctionalConnectivity',
|
|
198
|
+
displayWarning: true,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
tooltipContent: undefined,
|
|
202
|
+
tStyle: {
|
|
203
|
+
top: '200px',
|
|
204
|
+
left: '200px',
|
|
205
|
+
position: 'absolute',
|
|
206
|
+
},
|
|
207
|
+
displayCloseButton: false,
|
|
208
|
+
initial: 'Rat (NPO)',
|
|
209
|
+
helpMode: false,
|
|
210
|
+
mapSettings: [],
|
|
211
|
+
//flatmapAPI: "https://mapcore-demo.org/current/flatmap/v2/"
|
|
212
|
+
//flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v3/"
|
|
213
|
+
//flatmapAPI: "https://mapcore-demo.org/current/flatmap/v3/"
|
|
214
|
+
flatmapAPI: 'https://mapcore-demo.org/devel/flatmap/v4/',
|
|
215
|
+
//flatmapAPI: "https://mapcore-demo.org/fccb/flatmap/"
|
|
216
|
+
//flatmapAPI: "https://mapcore-demo.org/staging/flatmap/v1/"
|
|
217
|
+
// flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/",
|
|
218
|
+
ElIconSetting: shallowRef(ElIconSetting)
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
components: {
|
|
222
|
+
MultiFlatmapVuer,
|
|
223
|
+
},
|
|
224
|
+
}
|
|
225
|
+
</script>
|
|
226
|
+
|
|
227
|
+
<style lang="scss">
|
|
228
|
+
@use 'element-plus/theme-chalk/src/autocomplete';
|
|
229
|
+
@use 'element-plus/theme-chalk/src/button';
|
|
230
|
+
@use 'element-plus/theme-chalk/src/col';
|
|
231
|
+
@use 'element-plus/theme-chalk/src/popover';
|
|
232
|
+
@use 'element-plus/theme-chalk/src/row';
|
|
233
|
+
|
|
234
|
+
#app {
|
|
235
|
+
font-family: 'Asap', 'Avenir', Helvetica, Arial, sans-serif;
|
|
236
|
+
-webkit-font-smoothing: antialiased;
|
|
237
|
+
-moz-osx-font-smoothing: grayscale;
|
|
238
|
+
text-align: center;
|
|
239
|
+
color: #2c3e50;
|
|
240
|
+
height: 100%;
|
|
241
|
+
width: 100%;
|
|
242
|
+
position: absolute;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.maplibregl-ctrl-top-left .maplibregl-ctrl {
|
|
246
|
+
margin-top: 120px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.search-box {
|
|
250
|
+
margin-top: 2px;
|
|
251
|
+
height: 28px;
|
|
252
|
+
:deep(.el-input__inner) {
|
|
253
|
+
background-color: $background;
|
|
254
|
+
height: 28px;
|
|
255
|
+
line-height: 28px;
|
|
256
|
+
border: 1px solid rgb(144, 147, 153);
|
|
257
|
+
border-radius: 4px;
|
|
258
|
+
&:focus {
|
|
259
|
+
border-color: $app-primary-color;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:deep(.autocomplete-popper) {
|
|
265
|
+
min-width: 137px !important;
|
|
266
|
+
width: auto !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
body {
|
|
270
|
+
margin: 0px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.maplibregl-ctrl-top-left .maplibregl-ctrl {
|
|
274
|
+
margin-top: 120px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.popover {
|
|
278
|
+
top: 5px;
|
|
279
|
+
right: calc(50% - 20px);
|
|
280
|
+
position: absolute;
|
|
281
|
+
z-index: 1000;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.el-row {
|
|
285
|
+
margin-bottom: 5px;
|
|
286
|
+
&:last-child {
|
|
287
|
+
margin-bottom: 0;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.options-button {
|
|
292
|
+
z-index:100;
|
|
293
|
+
position: absolute;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.options-container {
|
|
297
|
+
text-align: center;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.el-tabs__content {
|
|
301
|
+
height: 100%;
|
|
302
|
+
}
|
|
303
|
+
</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 !default;
|
|
32
|
-
$app-secondary-color: $darkBlue !default;
|
|
33
|
-
$text-color: $grey !default;
|
|
34
|
-
$input-text: $grey !default;
|
|
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 !default;
|
|
32
|
+
$app-secondary-color: $darkBlue !default;
|
|
33
|
+
$text-color: $grey !default;
|
|
34
|
+
$input-text: $grey !default;
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$--color-primary: $app-primary-color !default;
|
|
7
|
-
$--font-path: '~element-ui/lib/theme-chalk/fonts';
|
|
1
|
+
|
|
2
|
+
@import '_variables';
|
|
3
|
+
|
|
4
|
+
@import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
|
|
5
|
+
|
|
6
|
+
$--color-primary: $app-primary-color !default;
|