File tree Expand file tree Collapse file tree 15 files changed +40
-40
lines changed Expand file tree Collapse file tree 15 files changed +40
-40
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export default {
65
65
default: ' #31CC7C' ,
66
66
},
67
67
},
68
- emits: [' color-selected ' ],
68
+ emits: [' colorSelected ' ],
69
69
data () {
70
70
return {
71
71
random: ' #31CC7C' ,
@@ -92,7 +92,7 @@ export default {
92
92
this .pick (this .random )
93
93
},
94
94
pick (color ) {
95
- this .$emit (' color-selected ' , color)
95
+ this .$emit (' colorSelected ' , color)
96
96
},
97
97
/*
98
98
* Generate a random colour with the core generator
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default {
52
52
},
53
53
},
54
54
emits: [
55
- ' select-date-time ' ,
55
+ ' selectDateTime ' ,
56
56
' close' ,
57
57
],
58
58
data () {
@@ -72,7 +72,7 @@ export default {
72
72
},
73
73
74
74
onSubmit () {
75
- this .$emit (' select-date-time ' , this .date )
75
+ this .$emit (' selectDateTime ' , this .date )
76
76
},
77
77
78
78
onClose () {
Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ export default {
71
71
},
72
72
},
73
73
emits: [
74
- ' add-alarm ' ,
75
- ' remove-alarm ' ,
76
- ' update-alarm ' ,
74
+ ' addAlarm ' ,
75
+ ' removeAlarm ' ,
76
+ ' updateAlarm ' ,
77
77
],
78
78
computed: {
79
79
alarmComponents () {
@@ -125,7 +125,7 @@ export default {
125
125
* @param {object} alarm The alarm time or duration
126
126
*/
127
127
addAlarm (alarm ) {
128
- this .$emit (' add-alarm ' , this .generateVAlarm (alarm))
128
+ this .$emit (' addAlarm ' , this .generateVAlarm (alarm))
129
129
},
130
130
131
131
/**
@@ -135,7 +135,7 @@ export default {
135
135
* @param {number} index This index of the updated alarm-item
136
136
*/
137
137
updateAlarm (alarm , index ) {
138
- this .$emit (' update-alarm ' , this .generateVAlarm (alarm), index)
138
+ this .$emit (' updateAlarm ' , this .generateVAlarm (alarm), index)
139
139
},
140
140
141
141
/**
@@ -144,7 +144,7 @@ export default {
144
144
* @param {number} index The index of the alarm-list
145
145
*/
146
146
removeAlarm (index ) {
147
- this .$emit (' remove-alarm ' , index)
147
+ this .$emit (' removeAlarm ' , index)
148
148
},
149
149
},
150
150
}
Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ export default {
124
124
},
125
125
},
126
126
emits: [
127
- ' remove-alarm ' ,
128
- ' update-alarm ' ,
127
+ ' removeAlarm ' ,
128
+ ' updateAlarm ' ,
129
129
],
130
130
data () {
131
131
return {
@@ -210,7 +210,7 @@ export default {
210
210
parameter: undefined , // ical.js sets the correct parameter for us when using a `ICAL.Time`-object
211
211
}
212
212
213
- this .$emit (' update-alarm ' , alarm, this .index )
213
+ this .$emit (' updateAlarm ' , alarm, this .index )
214
214
this .closeEditMode ()
215
215
},
216
216
@@ -220,7 +220,7 @@ export default {
220
220
parameter: undefined , // We don't care about the params, since they currently can't be changed
221
221
}
222
222
223
- this .$emit (' update-alarm ' , alarm, this .index )
223
+ this .$emit (' updateAlarm ' , alarm, this .index )
224
224
this .closeEditMode ()
225
225
},
226
226
@@ -232,7 +232,7 @@ export default {
232
232
* This method emits the removeAlarm event
233
233
*/
234
234
removeAlarm () {
235
- this .$emit (' remove-alarm ' , this .index )
235
+ this .$emit (' removeAlarm ' , this .index )
236
236
this .showMenu = false
237
237
},
238
238
},
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export default {
137
137
},
138
138
},
139
139
emits: [
140
- ' add-alarm ' ,
140
+ ' addAlarm ' ,
141
141
],
142
142
data () {
143
143
return {
@@ -214,7 +214,7 @@ export default {
214
214
},
215
215
216
216
onAlarmOptionClick (alarm ) {
217
- this .$emit (' add-alarm ' , alarm)
217
+ this .$emit (' addAlarm ' , alarm)
218
218
},
219
219
220
220
onChooseDateAndTime (date ) {
@@ -223,7 +223,7 @@ export default {
223
223
parameter: undefined , // ical.js sets the correct parameter for us when using a `ICAL.Time`-object
224
224
}
225
225
226
- this .$emit (' add-alarm ' , alarm)
226
+ this .$emit (' addAlarm ' , alarm)
227
227
this .chooseDateTimeMenuIsOpen = false
228
228
},
229
229
},
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default {
85
85
},
86
86
},
87
87
emits: [
88
- ' select-date-time ' ,
88
+ ' selectDateTime ' ,
89
89
' close' ,
90
90
],
91
91
data () {
@@ -149,7 +149,7 @@ export default {
149
149
150
150
const alarmObject = getAlarmObjectFromTriggerTime (seconds, this .alarm .relativeIsRelatedToStart )
151
151
152
- this .$emit (' select-date-time ' , alarmObject)
152
+ this .$emit (' selectDateTime ' , alarmObject)
153
153
},
154
154
155
155
onClose () {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export default {
73
73
required: false ,
74
74
},
75
75
},
76
- emits: [' change-calendar ' ],
76
+ emits: [' changeCalendar ' ],
77
77
computed: {
78
78
isDisabled () {
79
79
return this .calendars .length < 2 || this .disabled
@@ -108,7 +108,7 @@ export default {
108
108
if (! calendar) {
109
109
return
110
110
}
111
- this .$emit (' change-calendar ' , calendar)
111
+ this .$emit (' changeCalendar ' , calendar)
112
112
},
113
113
},
114
114
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
28
28
:aria-checked =" checked"
29
29
:checked =" checked"
30
30
:disabled =" readOnly"
31
- @click =" $emit('set-checked ', checked)" >
31
+ @click =" $emit('setChecked ', checked)" >
32
32
<label :for =" id" >
33
33
<span >{{ propertyString }}</span >
34
34
</label >
@@ -56,7 +56,7 @@ export default {
56
56
default: ' ' ,
57
57
},
58
58
},
59
- emits: [' set-checked ' ],
59
+ emits: [' setChecked ' ],
60
60
}
61
61
</script >
62
62
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export default {
121
121
checkOverdue: {
122
122
type: Boolean ,
123
123
default: true ,
124
- }
124
+ },
125
125
},
126
126
data () {
127
127
return {
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export default {
86
86
default: null ,
87
87
},
88
88
},
89
- emits: [' change-value ' ],
89
+ emits: [' changeValue ' ],
90
90
computed: {
91
91
isDisabled () {
92
92
return this .options .length < 2 || this .disabled
@@ -100,7 +100,7 @@ export default {
100
100
if (! value) {
101
101
return
102
102
}
103
- this .$emit (' change-value ' , value)
103
+ this .$emit (' changeValue ' , value)
104
104
},
105
105
},
106
106
}
Original file line number Diff line number Diff line change @@ -82,17 +82,17 @@ export default {
82
82
},
83
83
},
84
84
emits: [
85
- ' add-tag ' ,
86
- ' set-tags ' ,
85
+ ' addTag ' ,
86
+ ' setTags ' ,
87
87
],
88
88
methods: {
89
89
t,
90
90
91
91
addTag (tag ) {
92
- this .$emit (' add-tag ' , tag)
92
+ this .$emit (' addTag ' , tag)
93
93
},
94
94
setTags (tags ) {
95
- this .$emit (' set-tags ' , tags)
95
+ this .$emit (' setTags ' , tags)
96
96
},
97
97
},
98
98
}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export default {
71
71
default: ' ' ,
72
72
},
73
73
},
74
- emits: [' toggle-completed ' ],
74
+ emits: [' toggleCompleted ' ],
75
75
computed: {
76
76
ariaLabel () {
77
77
if (this .cancelled && ! this .completed ) {
@@ -97,7 +97,7 @@ export default {
97
97
t,
98
98
99
99
toggleCompleted () {
100
- this .$emit (' toggle-completed ' )
100
+ this .$emit (' toggleCompleted ' )
101
101
},
102
102
},
103
103
}
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ export default {
63
63
},
64
64
},
65
65
emits: [
66
- ' status-clicked ' ,
67
- ' reset-status ' ,
66
+ ' statusClicked ' ,
67
+ ' resetStatus ' ,
68
68
],
69
69
data () {
70
70
return {
@@ -86,7 +86,7 @@ export default {
86
86
},
87
87
methods: {
88
88
statusClicked () {
89
- this .$emit (' status-clicked ' )
89
+ this .$emit (' statusClicked ' )
90
90
},
91
91
checkTimeout (newStatus ) {
92
92
if (newStatus) {
@@ -96,7 +96,7 @@ export default {
96
96
if (newStatus .status === ' success' ) {
97
97
this .resetStatusTimeout = setTimeout (
98
98
() => {
99
- this .$emit (' reset-status ' )
99
+ this .$emit (' resetStatus ' )
100
100
}, 5000 ,
101
101
)
102
102
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import { convertTimeZone } from './alarms.js'
27
27
/**
28
28
* Returns a formatted string for the due date
29
29
*
30
- * @param {Task } task The task
30
+ * @param {import('../models/task.js'). Task } task The task
31
31
* @return {string } The formatted due date string
32
32
*/
33
33
export function dueDateString ( task ) {
@@ -88,7 +88,7 @@ export function dueDateString(task) {
88
88
/**
89
89
* Returns a formatted string for the start date
90
90
*
91
- * @param {Task } task The task
91
+ * @param {import('../models/task.js'). Task } task The task
92
92
* @return {string } The formatted start date string
93
93
*/
94
94
export function startDateString ( task ) {
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
172
172
:property-string =" completedString"
173
173
:read-only =" readOnly"
174
174
:task =" task"
175
- :check-overdue =false
175
+ :check-overdue =" false"
176
176
@set-value =" changeCompletedDate" >
177
177
<template #icon >
178
178
<CalendarCheck :size =" 20" />
You can’t perform that action at this time.
0 commit comments