@dargmuesli/nuxt-vio 3.0.0-beta.13 → 3.0.0-beta.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -24,11 +24,11 @@
|
|
24
24
|
|
25
25
|
<script setup lang="ts">
|
26
26
|
const { t } = useI18n()
|
27
|
-
const
|
27
|
+
const runtimeConfig = useRuntimeConfig()
|
28
28
|
|
29
29
|
// computations
|
30
30
|
const year = computed(() =>
|
31
|
-
|
31
|
+
runtimeConfig.public.isTesting ? 1337 : new Date().getFullYear(),
|
32
32
|
)
|
33
33
|
</script>
|
34
34
|
|
@@ -45,23 +45,26 @@
|
|
45
45
|
</template>
|
46
46
|
|
47
47
|
<script setup lang="ts">
|
48
|
-
const { $dayjs } = useNuxtApp()
|
49
48
|
const { t } = useI18n()
|
50
49
|
const localePath = useLocalePath()
|
51
50
|
const strapiFetch = useStrapiFetch()
|
51
|
+
const dateTime = useDateTime()
|
52
52
|
|
53
53
|
// async data
|
54
54
|
let eventsCurrentCount = 0
|
55
55
|
let eventsFutureCount = 0
|
56
56
|
|
57
|
+
// data
|
58
|
+
const now = dateTime()
|
59
|
+
|
57
60
|
// methods
|
58
61
|
const init = async () => {
|
59
62
|
eventsCurrentCount = (
|
60
63
|
(await strapiFetch('/events', {
|
61
64
|
query: {
|
62
|
-
'filters[$and][0][dateStart][$lte]':
|
63
|
-
'filters[$and][1][$or][0][dateEnd][$gt]':
|
64
|
-
'filters[$and][1][$or][1][dateStart][$gte]':
|
65
|
+
'filters[$and][0][dateStart][$lte]': now.toISOString(),
|
66
|
+
'filters[$and][1][$or][0][dateEnd][$gt]': now.toISOString(),
|
67
|
+
'filters[$and][1][$or][1][dateStart][$gte]': now
|
65
68
|
.startOf('day')
|
66
69
|
.toISOString(),
|
67
70
|
},
|
@@ -70,7 +73,7 @@ const init = async () => {
|
|
70
73
|
eventsFutureCount = (
|
71
74
|
(await strapiFetch('/events', {
|
72
75
|
query: {
|
73
|
-
'filters[dateStart][$gt]':
|
76
|
+
'filters[dateStart][$gt]': now.toISOString(),
|
74
77
|
},
|
75
78
|
})) as any
|
76
79
|
).meta.pagination.total
|
package/package.json
CHANGED
@@ -1,17 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<svg
|
3
|
-
xmlns="http://www.w3.org/2000/svg"
|
4
|
-
width="1064pt"
|
5
|
-
height="1064pt"
|
6
|
-
version="1.1"
|
7
|
-
viewBox="0 0 1064 1064"
|
8
|
-
>
|
9
|
-
<g id="#9a9a9aff">
|
10
|
-
<path
|
11
|
-
fill="#ecc94b"
|
12
|
-
d="M 802.62 185.62 C 806.76 181.54 810.71 177.26 815.06 173.41 C 828.57 186.40 841.60 199.89 854.94 213.06 C 866.81 225.07 878.95 236.83 890.68 248.99 C 858.25 281.90 825.33 314.33 792.78 347.13 C 801.85 360.72 810.67 374.54 817.81 389.27 C 849.17 451.62 859.14 524.40 845.66 592.88 C 835.73 644.31 812.88 693.19 779.77 733.77 C 748.01 772.91 706.76 804.28 660.61 824.52 C 601.85 850.47 535.17 858.08 472.10 845.87 C 399.83 832.28 332.81 792.71 286.03 735.97 C 261.50 706.51 242.51 672.51 229.95 636.31 C 214.56 591.74 209.12 543.75 214.40 496.88 C 219.97 445.89 238.13 396.34 266.77 353.78 C 297.11 308.55 339.24 271.29 387.93 246.85 C 436.80 222.00 492.22 210.23 546.98 212.87 C 592.26 214.95 637.06 226.87 677.39 247.55 C 691.14 254.44 704.16 262.67 716.88 271.28 C 745.53 242.80 774.02 214.15 802.62 185.62 M 668.11 321.11 C 659.08 330.37 649.57 339.17 640.85 348.72 C 671.30 366.97 697.16 392.75 715.33 423.27 C 726.58 412.55 737.35 401.34 748.40 390.41 C 762.78 375.92 777.38 361.65 791.64 347.04 C 771.18 318.23 745.87 292.82 717.00 272.43 C 700.48 288.43 684.45 304.92 668.11 321.11 M 436.34 342.35 C 401.95 359.59 372.51 386.48 352.08 419.07 C 331.27 452.09 319.83 490.96 319.57 530.00 C 319.10 567.70 329.06 605.44 347.89 638.09 C 365.96 669.51 392.23 696.14 423.39 714.64 C 456.33 734.24 494.65 744.78 533.00 744.45 C 574.05 744.36 615.02 731.94 649.19 709.17 C 676.80 690.95 700.05 666.14 716.43 637.39 C 736.74 602.03 746.42 560.71 744.11 520.01 C 742.05 486.63 732.53 453.44 715.15 424.78 C 673.22 466.47 631.56 508.43 589.65 550.14 C 586.42 547.81 583.82 544.77 581.00 542.00 C 559.16 520.17 537.32 498.33 515.49 476.50 C 514.40 475.63 513.59 474.12 515.09 473.18 C 556.44 431.67 598.01 390.37 639.32 348.82 C 615.75 334.67 589.17 325.65 561.99 321.72 C 519.31 315.51 474.81 322.86 436.34 342.35 Z"
|
13
|
-
opacity="1"
|
14
|
-
/>
|
15
|
-
</g>
|
16
|
-
</svg>
|
17
|
-
</template>
|