Skip to content

Commit d3515de

Browse files
committed
style: Fix code style
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent a8839cc commit d3515de

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

src/components/cards/badges/DueDate.vue

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ import { mapState } from 'vuex'
3737
import moment from '@nextcloud/moment'
3838
import Clock from 'vue-material-design-icons/Clock.vue'
3939
import ClockOutline from 'vue-material-design-icons/ClockOutline.vue'
40-
import CalendarAlert from 'vue-material-design-icons/CalendarAlert.vue'
41-
import CalendarBlank from 'vue-material-design-icons/CalendarBlank.vue'
4240
4341
const DueState = {
4442
Future: 'Future',
@@ -48,18 +46,16 @@ const DueState = {
4846
}
4947
export default {
5048
name: 'DueDate',
49+
components: {
50+
Clock,
51+
ClockOutline,
52+
},
5153
props: {
5254
card: {
5355
type: Object,
5456
default: null,
5557
},
5658
},
57-
components: {
58-
Clock,
59-
ClockOutline,
60-
CalendarAlert,
61-
CalendarBlank,
62-
},
6359
computed: {
6460
...mapState({
6561
compactMode: state => state.compactMode,
@@ -73,13 +69,13 @@ export default {
7369
return DueState.Now
7470
}
7571
if (days === 1) {
76-
return DueState.Overdue
72+
return DueState.Next
7773
}
7874
7975
return DueState.Future
8076
},
8177
overdue() {
82-
this.dueState === DueState.Overdue
78+
return this.dueState === DueState.Overdue
8379
},
8480
relativeDate() {
8581
const diff = moment(this.$root.time).diff(this.card.duedate, 'seconds')
@@ -108,11 +104,11 @@ export default {
108104
flex-shrink: 1;
109105
z-index: 2;
110106
111-
[data-due-state="Overdue"] & {
107+
[data-due-state='Overdue'] & {
112108
color: var(--color-main-background);
113109
background-color: var(--color-error-text);
114110
}
115-
[data-due-state="Now"] & {
111+
[data-due-state='Now'] & {
116112
color: var(--color-main-background);
117113
background-color: var(--color-warning);
118114
}

src/mixins/color.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
*/
2222

23-
import chroma from "chroma-js"
23+
import chroma from 'chroma-js'
2424

2525
export default {
2626
methods: {

0 commit comments

Comments
 (0)