-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstore.js
274 lines (220 loc) · 8.11 KB
/
store.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
// Vuex managing global variables.
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
state: {
// Login page
logincolor: '#E39E4D',
cancelbcolor: '#fbfbfb',
textcolor: '#3b3a3a',
promptcolor: '#4C4F55',
promptbkcolor:'#FFFFFF',
loginpage:'#F5F5F5',
logincontainer:'#7C7E82',
logintitle:'#FFFFFF',
// Loading page
loading:'#FC7727',
// Navigation bar
navtheme:'lightGray',
navctn:'#4C4F55', // underline navigation bar
naveffect:'#FC7727', // button effect
triangle:'#FC7727',
account:'black', // account name
logout:'black',
// Dashboard
dashboard: '#F5F5F5',
projectnum:'#FC7727',
searchtext: '#807e7e',
searchbkbtn: '#FC7727',
searchbtn: 'black',
searchcrs: '#ADABAB',
addnew: '#E75B4B',
noproj: '#C4C2C2',
pageswitch:'#E75B4B',
scrollbar: '#E9E9EA',
scrollbart: '#36393F',
// User profile
userprofile:'#F5F5F5',
nickname:'#2a2a2b',
// User profile - profile
modifybk:'#FC7727',
modify:'#292828',
confirm:'#E39E4D',
// User profile - preference
pretext: '#000000',
// side bar
sidetext: '#000111',
sidetextoc: '#FC7727',
// Survey item
cardbk: 'lightGray',
// Game detail Description
gamedm: 'lightGray',
// GameItem
gameib: 'lightGray',
gameibc: 'lightGray',
viewdetail: '#C4C2C2',
surveybutton: '#C4C2C2',
// GameTester
gametesterb: 'lightGray',
viewres: 'lightGray',
// QuestionForm
quesform_background: 'lightGray',
// Survey
searchButton: 'lightGray',
// SurveyContent
content_background: 'lightGray',
actionButton_background: 'lightGray',
theBarLayer_background: 'lightGray',
// SurveyDetail
gameItem_border: 'lightGray',
gameItem_background: 'lightGray',
// SurveyItem
surveyItem_border: 'lightGray',
surveyItem_background: 'lightGray',
surveyButton: 'lightGray',
// SurveyMetaData
surveyMetaDataForm_background: 'lightGray',
// SurveyTemplate
questionsWrapper_background: 'lightGray',
// TemplateItem
templateItem_border: 'lightGray',
templateItem_background: 'lightGray',
// TestSessionItem
sessionItem_border: 'lightGray',
sessionItem_background: 'lightGray',
// UserItem
cardColor_background: 'lightGray',
},
mutations: {
defaultcolor (state) {
state.logincolor = '#E39E4D';
state.cancelbcolor = '#fbfbfb';
state.textcolor = '#3b3a3a';
state.promptcolor = '#4C4F55';
state.promptbkcolor = '#FFFFFF';
state.loginpage = '#F5F5F5';
state.logincontainer = '#7C7E82';
state.logintitle = '#FFFFFF';
// Loading page
state.loading = '#FC7727';
// Navigation bar
state.navtheme = 'lightGray';
state.navctn = '#4C4F55'; // underline navigation bar
state.naveffect = '#FC7727'; // button effect
state.triangle = '#FC7727';
state.account = 'black'; // account name
state.logout = 'black';
// Dashboard
state.dashboard = '#F5F5F5';
state.projectnum = '#FC7727';
state.searchtext = '#807e7e';
state.searchbkbtn = '#FC7727';
state.searchbtn = 'black';
state.searchcrs = '#ADABAB';
state.addnew = '#E75B4B';
state.noproj = '#C4C2C2';
state.pageswitch = '#E75B4B';
state.scrollbar = '#E9E9EA';
state.scrollbart = '#36393F';
// User profile
state.userprofile = '#F5F5F5';
state.nickname = '#2a2a2b'; //??
// User profile - profile
state.modifybk = '#FC7727';
state.modify = '#292828';
state.confirm = '#E39E4D';
// User profile - preference
state.pretext = '#000000';
// Side bar
state.sidetext = '#000111';
state.sidetextoc = '#FC7727';
// Survey item
state.cardbk= 'lightGray';
// Game detail Description
state.gamedm = 'lightGray';
// GameItem
state.gameib = 'lightGray';
state.gameibc = 'lightGray';
state.viewdetail = 'C4C2C2';
state.surveybutton = '#C4C2C2';
// GameTester
state.gametesterb = 'lightGray';
state.viewres = 'lightGray';
// QuestionForm
state.quesform_background = 'lightGray';
// Survey
state.state.searchButton = 'lightGray';
// SurveyContent
state.content_background = 'lightGray';
state.actionButton_background = 'lightGray';
state.theBarLayer_background = 'lightGray';
// SurveyDetail
state.gameItem_border = 'lightGray';
state.gameItem_background = 'lightGray';
// SurveyItem
state.surveyItem_border = 'lightGray';
state.surveyItem_background = 'lightGray';
state.surveyButton = 'lightGray';
// SurveyMetaData
state.surveyMetaDataForm_background = 'lightGray';
// SurveyTemplate
state.questionsWrapper_background = 'lightGray';
// TemplateItem
state.templateItem_border = 'lightGray';
state.templateItem_background = 'lightGray';
// TestSessionItem
state.sessionItem_border = 'lightGray';
state.sessionItem_background = 'lightGray';
// UserItem
state.cardColor_background = 'lightGray';
},
darkcolor (state) {
state.logincolor = '#E39E4D';
state.cancelbcolor = '#fbfbfb';
state.textcolor = '#3b3a3a';
state.promptcolor = '#4C4F55';
state.promptbkcolor = '#FFFFFF';
state.loginpage = '#F5F5F5';
state.logincontainer = '#7C7E82';
state.logintitle = '#FFFFFF';
// Loading page
state.loading = '#000000';
// Navigation bar
state.navtheme = '#5a3c3c';
state.navctn = '#4C4F55'; // underline navigation bar
state.naveffect = '#FC7727'; // button effect
state.triangle = '#FFFFFF';
state.account = '#FFFFFF'; // account name
state.logout = '#FFFFFF';
// Dashboard
state.dashboard = '#F5F5F5';
state.projectnum = '#FC7727';
state.searchtext = '#807e7e';
state.searchbkbtn = '#FC7727';
state.searchbtn = '#F8DC77';
state.searchcrs = '#ADABAB';
state.addnew = '#E75B4B';
state.noproj = '#C4C2C2';
state.pageswitch = '#E75B4B';
state.scrollbar = '#36393F';
state.scrollbart = '#E9E9EA';
// User profile
state.userprofile = '#341b1b';
state.nickname = '#2a2a2b';
// User profile - profile
state.modifybk = '#FC7727';
state.modify = '#292828';
state.confirm = '#E39E4D';
// User profile - preference
state.pretext = '#fbfbfb';
// Side bar
state.sidetext = '#fbfbfb';
state.sidetextoc = '#FC7727';
// Survey item
state.cardbk= 'F8DC77';
// Game detail Description
state.gamedm = 'FFD333';
}
}
});