@asd20/ui 3.2.813 → 3.2.814
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:style="{ '--accent-color': event.calendarColor }"
|
|
8
8
|
>
|
|
9
9
|
<span class="title"
|
|
10
|
-
><span>{{
|
|
10
|
+
><span>{{ sanitizedSummary }}</span></span
|
|
11
11
|
>
|
|
12
12
|
<span class="time">{{ start }}{{ end }}</span>
|
|
13
13
|
<span class="start-time">{{ startTime }}</span>
|
|
@@ -36,20 +36,43 @@ export default {
|
|
|
36
36
|
this.event.allday || this.event.multiDay,
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
|
|
40
39
|
startTime() {
|
|
41
|
-
return format(
|
|
40
|
+
return format(
|
|
41
|
+
parse(this.event.start, "yyyy-MM-dd'T'HH:mm:ssX", new Date()),
|
|
42
|
+
'h:mm aa'
|
|
43
|
+
)
|
|
42
44
|
},
|
|
43
45
|
start() {
|
|
44
|
-
return format(
|
|
46
|
+
return format(
|
|
47
|
+
parse(this.event.start, "yyyy-MM-dd'T'HH:mm:ssX", new Date()),
|
|
48
|
+
'h:mm aa, MMMM DD YYYY'
|
|
49
|
+
)
|
|
45
50
|
},
|
|
46
51
|
end() {
|
|
47
|
-
return
|
|
52
|
+
return (
|
|
53
|
+
' to ' +
|
|
54
|
+
format(
|
|
55
|
+
parse(this.event.end, "yyyy-MM-dd'T'HH:mm:ssX", new Date()),
|
|
56
|
+
'h:mm aa, MMMM DD YYYY'
|
|
57
|
+
)
|
|
58
|
+
)
|
|
59
|
+
},
|
|
60
|
+
sanitizedSummary() {
|
|
61
|
+
return this.sanitizeSummary(this.event.summary)
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
// specifically for rSchool events that have extraneous school names in the summary
|
|
66
|
+
sanitizeSummary(summary) {
|
|
67
|
+
if (!summary) return summary
|
|
68
|
+
const pattern = /vs\.[^>]*>Multiple Schools/
|
|
69
|
+
return summary.replace(pattern, 'vs. Multiple Schools')
|
|
48
70
|
},
|
|
49
71
|
},
|
|
50
72
|
}
|
|
51
73
|
</script>
|
|
52
74
|
|
|
75
|
+
|
|
53
76
|
<style lang="scss" scoped>
|
|
54
77
|
@import '../../../design/_mixins.scss';
|
|
55
78
|
@import '../../../design/_variables.scss';
|