@dargmuesli/nuxt-vio 3.0.0-beta.12 → 3.0.0-beta.14
Sign up to get free protection for your applications and to get access to all the features.
package/assets/css/tailwind.css
CHANGED
@@ -1,43 +1,58 @@
|
|
1
|
+
/* stylelint-disable at-rule-no-unknown */
|
1
2
|
@tailwind base;
|
2
3
|
@tailwind components;
|
3
4
|
@tailwind utilities;
|
5
|
+
/* stylelint-enable at-rule-no-unknown */
|
4
6
|
|
7
|
+
/* doiuse-disable css-cascade-layers */
|
5
8
|
@layer base {
|
9
|
+
/* doiuse-enable css-cascade-layers */
|
6
10
|
a:focus {
|
7
|
-
|
11
|
+
/* doiuse-disable css-nesting */
|
12
|
+
@apply outline-none ring; /* doiuse-enable css-nesting */
|
8
13
|
}
|
9
14
|
|
10
15
|
button:focus {
|
11
|
-
|
16
|
+
/* doiuse-disable css-nesting */
|
17
|
+
@apply outline-none ring; /* doiuse-enable css-nesting */
|
12
18
|
}
|
13
19
|
|
14
20
|
thead {
|
15
|
-
|
21
|
+
/* doiuse-disable css-nesting */
|
22
|
+
@apply vio-bg-darken sticky top-0 z-10; /* doiuse-enable css-nesting */
|
16
23
|
}
|
17
24
|
|
18
25
|
tbody {
|
19
|
-
|
26
|
+
/* doiuse-disable css-nesting */
|
27
|
+
@apply vio-divide-darken divide-y; /* doiuse-enable css-nesting */
|
20
28
|
}
|
21
29
|
}
|
22
30
|
|
31
|
+
/* doiuse-disable css-cascade-layers */
|
23
32
|
@layer utilities {
|
33
|
+
/* doiuse-enable css-cascade-layers */
|
24
34
|
.vio-prose {
|
25
|
-
|
35
|
+
/* doiuse-disable css-nesting */
|
36
|
+
@apply prose prose-sm m-auto dark:prose-invert sm:prose-base lg:prose-lg xl:prose-xl; /* 2xl:prose-2xl */ /* doiuse-enable css-nesting */
|
26
37
|
}
|
27
38
|
|
28
39
|
.vio-prose-fullwidth {
|
29
|
-
|
40
|
+
/* doiuse-disable css-nesting */
|
41
|
+
@apply vio-prose max-w-full sm:max-w-full md:max-w-full xl:max-w-full 2xl:max-w-full; /* doiuse-enable css-nesting */
|
30
42
|
}
|
31
43
|
|
32
44
|
.vio-divide-darken {
|
33
|
-
|
45
|
+
/* doiuse-disable css-nesting */
|
46
|
+
@apply divide-background-brighten dark:divide-background-darken; /* doiuse-enable css-nesting */
|
34
47
|
}
|
35
48
|
|
36
49
|
.vio-bg-darken {
|
37
|
-
|
50
|
+
/* doiuse-disable css-nesting */
|
51
|
+
@apply bg-background-brighten dark:bg-background-darken; /* doiuse-enable css-nesting */
|
38
52
|
}
|
39
53
|
|
40
54
|
.vio-border-darken {
|
41
|
-
|
55
|
+
/* doiuse-disable css-nesting */
|
56
|
+
@apply border-background-brighten dark:border-background-darken; /* doiuse-enable css-nesting */
|
42
57
|
}
|
43
58
|
}
|
@@ -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/nuxt.config.ts
CHANGED
@@ -23,6 +23,7 @@ const BASE_URL =
|
|
23
23
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
24
24
|
export default defineNuxtConfig({
|
25
25
|
alias: {
|
26
|
+
clipboard: 'clipboard',
|
26
27
|
dayjs: 'dayjs',
|
27
28
|
sweetalert2: 'sweetalert2',
|
28
29
|
}, // TODO: remove (https://github.com/nuxt/nuxt/issues/19426)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "3.0.0-beta.
|
3
|
+
"version": "3.0.0-beta.14",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"lint:fix": "pnpm lint:js --fix && pnpm lint:ts --fix && pnpm lint:style --fix",
|
36
36
|
"lint:js": "eslint --cache --ext .js,.ts,.vue --ignore-path .gitignore .",
|
37
37
|
"lint:staged": "lint-staged",
|
38
|
-
"lint:style": "stylelint
|
38
|
+
"lint:style": "stylelint --cache {,**/}*.{vue,css} --ignore-path .gitignore",
|
39
39
|
"lint:ts": "nuxt typecheck",
|
40
40
|
"lint": "pnpm lint:js && pnpm lint:ts && pnpm lint:style",
|
41
41
|
"prepare": "nuxt prepare .playground",
|
@@ -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>
|