File tree Expand file tree Collapse file tree 11 files changed +295
-858
lines changed Expand file tree Collapse file tree 11 files changed +295
-858
lines changed Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"scripts" : {
6
6
"serve" : " vue-cli-service serve --port 3000" ,
7
+ "serve:dark" : " VUE_APP_THEME='dark' yarn serve" ,
8
+ "serve:light" : " VUE_APP_THEME='light' yarn serve" ,
7
9
"serve:backend" : " VUE_APP_BACKEND=true vue-cli-service serve --port 3000" ,
8
10
"build" : " VUE_APP_BACKEND=true vue-cli-service build" ,
11
+ "build:dark" : " VUE_APP_THEME='dark' yarn build" ,
12
+ "build:light" : " VUE_APP_THEME='light' yarn build" ,
9
13
"lint" : " vue-cli-service lint" ,
10
14
"start" : " node server.js"
11
15
},
Original file line number Diff line number Diff line change 10
10
</div >
11
11
<h6 >Theme</h6 >
12
12
</header >
13
- <a href =" # " class =" theme-preview active" >
13
+ <a : href =" theme === 'light' ? 'https://demo.flatlogic.com/light-blue-vue/dark' : '#' " class =" theme-preview" :class = " { active: theme !== 'light'} " >
14
14
<img src =" ../../assets/dark-theme.png" alt =" Dark Theme" class =" img-thumbnail" >
15
15
</a >
16
- <a href =" https://demo.flatlogic.com/light-blue-vue/white " class =" theme-preview" >
16
+ <a : href =" theme !== 'light' ? ' https://demo.flatlogic.com/light-blue-vue/light' : '#' " class =" theme-preview" :class = " {active: theme === 'light'} " >
17
17
<img src =" ../../assets/white-theme.png" alt =" White Theme" class =" img-thumbnail" >
18
18
</a >
19
19
<div class =" widget-body mt-3" >
68
68
</template >
69
69
70
70
<script >
71
+ import config from ' ../../config' ;
72
+
71
73
export default {
72
74
name: ' Helper' ,
73
75
data () {
74
76
return {
77
+ theme: config .theme ,
75
78
opened: false ,
76
79
}
77
80
},
Original file line number Diff line number Diff line change 1
1
const hostApi = process . env . NODE_ENV === "development" ? "http://localhost" : "https://flatlogic-node-backend.herokuapp.com" ;
2
2
const portApi = process . env . NODE_ENV === "development" ? 8080 : "" ;
3
3
const baseURLApi = `${ hostApi } ${ portApi ? `:${ portApi } ` : `` } ` ;
4
+ const chartColors = process . env . VUE_APP_THEME === 'light' ? {
5
+ blue : '#196EFF' ,
6
+ green : '#2ada7a' ,
7
+ orange : '#ffc107' ,
8
+ red : '#ff0115' ,
9
+ purple : '#a700ae' ,
10
+ dark : '#3c484f' ,
11
+ teal : '#7f49fa' ,
12
+ pink : '#e671b8' ,
13
+ gray : '#d6dee5' ,
14
+ textColor : '#444'
15
+ } : {
16
+ blue : '#2e74e3' ,
17
+ green : '#25b932' ,
18
+ orange : '#f0af03' ,
19
+ red : '#db4a00' ,
20
+ purple : '#a700ae' ,
21
+ dark : '#3c484f' ,
22
+ teal : '#14d3d3' ,
23
+ pink : '#e671b8' ,
24
+ gray : '#d6dee5' ,
25
+ textColor : '#fff'
26
+ } ;
4
27
5
28
export default {
29
+ theme : process . env . VUE_APP_THEME ,
30
+ chartColors,
6
31
hostApi,
7
32
portApi,
8
33
baseURLApi,
You can’t perform that action at this time.
0 commit comments