1
1
<template >
2
2
<div class =' calendar-page' >
3
3
<b-row >
4
- <b-col lg =' 4' xs =' 12' md =' 6' >
4
+ <b-col lg =' 4' sm =' 12' md =' 6' >
5
5
<h1 class =" page-title" >
6
6
{{currentMonth}} - <span class =" fw-semi-bold" >{{currentDay}}</span >
7
7
</h1 >
12
12
class =" external-event"
13
13
data-event =' { "classNames": ["bg-success", "text-white"], "title": "Make a tea" }'
14
14
>
15
- <i class =" fa fa-circle fa-fw text-success ml-xs mr-xs " ></i >
15
+ <i class =" fa fa-circle fa-fw text-success ms-1 me-1 " ></i >
16
16
Make a tea
17
17
</div >
18
18
<div
19
19
class =" external-event"
20
20
data-event =' { "classNames": ["bg-warning", "text-white"], "title": "Open windows" }'
21
21
>
22
- <i class =" fa fa-circle fa-fw text-warning ml-xs mr-xs " ></i >
22
+ <i class =" fa fa-circle fa-fw text-warning ms-1 me-1 " ></i >
23
23
Open windows
24
24
</div >
25
25
<div
26
26
class =" external-event"
27
27
data-event =' { "classNames": ["bg-gray", "text-white"], "title": "Some stuff" }'
28
28
>
29
- <i class =" fa fa-circle-o fa-fw text-gray-light ml-xs mr-xs " ></i >
29
+ <i class =" fa fa-circle-o fa-fw text-gray-light ms-1 me-1 " ></i >
30
30
Some stuff
31
31
</div >
32
32
<div
33
33
class =" external-event"
34
34
data-event =' { "classNames": ["bg-danger", "text-white"], "title": "Study UX engineering" }'
35
35
>
36
- <i class =" fa fa-square fa-fw text-danger ml-xs mr-xs " ></i >
36
+ <i class =" fa fa-square fa-fw text-danger ms-1 me-1 " ></i >
37
37
Study UX engineering
38
38
</div >
39
39
<div
40
40
class =" external-event"
41
41
data-event =' { "classNames": ["bg-gray", "text-white"], "title": "Another stuff" }'
42
42
>
43
- <i class =" fa fa-circle-o fa-fw text-gray-light ml-xs mr-xs " ></i >
43
+ <i class =" fa fa-circle-o fa-fw text-gray-light ms-1 me-1 " ></i >
44
44
Another stuff
45
45
</div >
46
46
</div >
47
47
</b-col >
48
- <b-col md =' 6' lg =' 8' xs =' 12' >
48
+ <b-col md =' 6' lg =' 8' sm =' 12' >
49
49
<Widget >
50
50
<b-row class =" calendar-controls" >
51
51
<b-col md =' 3' >
52
- <b-button-group class =" mr-sm " >
53
- <b-button variant =" default" @click =" prev" >
52
+ <b-button-group class =" me-1 " >
53
+ <b-button variant =" gray- default" @click =" prev" >
54
54
<i class =" fa fa-angle-left" ></i >
55
55
</b-button >
56
- <b-button variant =" default" @click =" next" >
56
+ <b-button variant =" gray- default" @click =" next" >
57
57
<i class =" fa fa-angle-right" ></i >
58
58
</b-button >
59
59
</b-button-group >
60
- <b-button class = " mt-2 " variant =" default" @click =" today" >
60
+ <b-button variant =" gray- default" @click =" today" >
61
61
Today
62
62
</b-button >
63
63
</b-col >
64
- <b-col md =' 9' class =" calendar-controls text-right " >
64
+ <b-col md =' 9' class =" calendar-controls text-end " >
65
65
<b-button-group >
66
66
<b-button
67
- variant =" default" @click =" changeView('dayGridMonth')"
67
+ variant =" gray- default" @click =" changeView('dayGridMonth')"
68
68
:class =" { active: calendarView === 'dayGridMonth' }"
69
69
>Month</b-button >
70
70
<b-button
71
- variant =" default" @click =" changeView('timeGridWeek')"
71
+ variant =" gray- default" @click =" changeView('timeGridWeek')"
72
72
:class =" { active: calendarView === 'timeGridWeek' }"
73
73
>Week</b-button >
74
74
<b-button
75
- variant =" default" @click =" changeView('timeGridDay')"
75
+ variant =" gray- default" @click =" changeView('timeGridDay')"
76
76
:class =" { active: calendarView === 'timeGridDay' }"
77
77
>Day</b-button >
78
78
</b-button-group >
@@ -200,7 +200,7 @@ export default {
200
200
const d = date .getDate ();
201
201
const m = date .getMonth ();
202
202
const y = date .getFullYear ();
203
- const {info , danger , primary , gray , success , textColor } = this .appConfig .colors ;
203
+ const {info , danger , primary , success , textColor , inverse , warning } = this .appConfig .colors ;
204
204
return {
205
205
header: {
206
206
left: ' ' ,
@@ -211,22 +211,22 @@ export default {
211
211
{
212
212
title: ' All Day Event' ,
213
213
start: new Date (y, m, 1 ),
214
- backgroundColor: info ,
214
+ backgroundColor: primary ,
215
215
description: ' Will be busy throughout the whole day' ,
216
216
},
217
217
{
218
218
title: ' Long Event' ,
219
219
start: new Date (y, m, d + 5 ),
220
220
end: new Date (y, m, d + 7 ),
221
221
textColor: textColor,
222
- backgroundColor: gray ,
222
+ backgroundColor: primary ,
223
223
description: ' This conference should be worse visiting' ,
224
224
},
225
225
{
226
226
id: 999 ,
227
227
title: ' Blah Blah Car' ,
228
228
start: new Date (y, m, d - 3 , 16 , 0 ),
229
- backgroundColor: gray ,
229
+ backgroundColor: warning ,
230
230
textColor: textColor,
231
231
allDay: false ,
232
232
description: ' Agree with this guy on arrival time' ,
@@ -236,21 +236,21 @@ export default {
236
236
title: ' Buy this template' ,
237
237
start: new Date (y, m, d + 3 , 12 , 0 ),
238
238
allDay: false ,
239
- backgroundColor: primary ,
239
+ backgroundColor: success ,
240
240
description: ' Make sure everything is consistent first' ,
241
241
},
242
242
{
243
243
title: ' Got to school' ,
244
244
start: new Date (y, m, d + 16 , 12 , 0 ),
245
245
end: new Date (y, m, d + 16 , 13 , 0 ),
246
- backgroundColor: success ,
246
+ backgroundColor: danger ,
247
247
description: ' Time to go back' ,
248
248
},
249
249
{
250
250
title: ' Study some Node' ,
251
251
start: new Date (y, m, d + 18 , 12 , 0 ),
252
252
end: new Date (y, m, d + 18 , 13 , 0 ),
253
- backgroundColor: info ,
253
+ backgroundColor: inverse ,
254
254
description: ' Node.js is a platform built '
255
255
+ ' on Chrome\' s JavaScript runtime for easily'
256
256
+ ' building fast, scalable network applications.'
@@ -264,7 +264,7 @@ export default {
264
264
start: new Date (y, m, 28 ),
265
265
end: new Date (y, m, 29 ),
266
266
url: ' http://flatlogic.com/' ,
267
- backgroundColor: danger ,
267
+ backgroundColor: info ,
268
268
description: ' Creative solutions' ,
269
269
},
270
270
],
@@ -283,4 +283,4 @@ export default {
283
283
};
284
284
</script >
285
285
286
- <style src="./Calendar.scss " lang="scss" />
286
+ <style src="./Calendar.scss " lang="scss" />
0 commit comments