File tree 14 files changed +59
-40
lines changed
Filter options
14 files changed +59
-40
lines changed
Original file line number Diff line number Diff line change 8
8
$item-line-height : 18px ,
9
9
$item-padding : 8px 14px ,
10
10
$icon-height : 32px ,
11
- $icon-width : 32px ,
11
+ $icon-width : 32px
12
12
);
13
13
14
14
.v-sidebar-menu hr {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ defineProps({
17
17
18
18
<template >
19
19
<div class =" mb-4 px-5" >
20
- <span class =" shadow-2 mb-1 inline-block p-3" style =" border-radius : 10px " >
20
+ <span class =" shadow-2 mb-1 p-3 inline-block " style =" border-radius : 10px " >
21
21
<span :class =" `text-2xl text-${color} i-${icon}`" />
22
22
</span >
23
23
<div :class =" `mb-3 text-2xl text-${color}`" >
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ watchEffect(() => mode.value = state.value)
19
19
<div >
20
20
<client-only >
21
21
<Button @click =" next()" >
22
- <i v-if =" mode === 'dark'" i-carbon-moon inline-block align-middle class =" align-middle" />
23
- <i v-if =" mode === 'light'" i-carbon-sun inline-block align-middle class =" align-middle" />
24
- <i v-if =" mode === 'cafe'" i-carbon-cafe inline-block align-middle class =" align-middle" />
25
- <i v-if =" mode === 'contrast'" i-carbon-contrast inline-block align-middle class =" align-middle" />
26
- <i v-if =" mode === 'auto'" i-carbon-laptop inline-block align-middle class =" align-middle" />
22
+ <i v-if =" mode === 'dark'" i-carbon-moon align-middle inline-block class =" align-middle" />
23
+ <i v-if =" mode === 'light'" i-carbon-sun align-middle inline-block class =" align-middle" />
24
+ <i v-if =" mode === 'cafe'" i-carbon-cafe align-middle inline-block class =" align-middle" />
25
+ <i v-if =" mode === 'contrast'" i-carbon-contrast align-middle inline-block class =" align-middle" />
26
+ <i v-if =" mode === 'auto'" i-carbon-laptop align-middle inline-block class =" align-middle" />
27
27
<span class =" ml-2 capitalize" >{{ mode }}</span >
28
28
</Button >
29
29
</client-only >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const config = useRuntimeConfig()
4
4
5
5
<template >
6
6
<div class =" layout-footer mt-4" >
7
- <span class =" ml-2 font-medium" >{{ config.public.APP_NAME }} - {{ config.public.APP_VERSION }}</span >
7
+ <span class =" font-medium ml-2 " >{{ config.public.APP_NAME }} - {{ config.public.APP_VERSION }}</span >
8
8
</div >
9
9
</template >
10
10
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ onMounted(() => {
51
51
</div >
52
52
</template >
53
53
<template #footer >
54
- <div class =" m-2 text-center text- xs text-color-primary" >
54
+ <div class =" text-xs text-color-primary m-2 text-center " >
55
55
<span v-if =" !collapsed" >PrimeVue-Nuxt Starter {{ config.public.APP_VERSION }}</span >
56
56
<span v-if =" collapsed" >{{ config.public.APP_VERSION }}</span >
57
57
</div >
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ const router = useRouter()
7
7
<div class =" col-12 mt-10 text-center" >
8
8
<img src =" /nuxt-logo.svg" alt =" Nuxt logo" class =" mb-5" style =" width :81px ; height :60px ;" >
9
9
</div >
10
- <main class =" px-4 py-10 text-center text-8xl text-teal-700 " >
10
+ <main class =" text-8xl text-teal-700 px-4 py-10 text-center" >
11
11
<div >
12
12
<p class =" text-8xl text-red-600" >
13
13
<span class =" i-codicon-error inline-block" />
14
14
</p >
15
15
</div >
16
16
</main >
17
17
<div style =" alignment : center " >
18
- <h1 class =" text-center text- 2xl text-5xl font-bold" >
18
+ <h1 class =" text-2xl text-5xl font-bold text-center " >
19
19
Page not found ...
20
20
</h1 >
21
21
<div class =" col-12 mt-5 text-center" >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const count = useCounter()
10
10
<PageView />
11
11
<h2 >Counter (useState)</h2 >
12
12
13
- <div class =" grid grid-cols-3 mt-8 w-80" >
13
+ <div class =" mt-8 grid grid-cols-3 w-80" >
14
14
<Button icon =" pi pi-plus" class =" p-button-rounded p-button-info" @click =" count.inc()" />
15
15
<span class =" text-4xl" >{{ count.count }}</span >
16
16
<Button icon =" pi pi-minus" class =" p-button-rounded p-button-success" @click =" count.dec()" />
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import AdvertiseBox from '@/components/AdvertiseBox.vue'
4
4
5
5
<template >
6
6
<div class =" card surface-0 text-center" >
7
- <div class =" mb-3 text-4xl font-bold" >
7
+ <div class =" text-4xl font-bold mb-3 " >
8
8
<span class =" text-green-600" >PrimeVue </span >
9
9
<span class =" text-blue-400" > & TypeScript</span >
10
10
<span class =" text-green-400" > & Nuxt 3</span >
11
11
</div >
12
- <h2 class =" pb-6 text-2xl" >
12
+ <h2 class =" text-2xl pb-6 " >
13
13
Starter for Vue.js Development with Nuxt 3.
14
14
</h2 >
15
- <div class =" grid grid-cols-2 gap -2 lg:grid-cols-3" >
15
+ <div class =" gap-2 grid grid-cols-2 lg:grid-cols-3" >
16
16
<AdvertiseBox header =" PrimeVue 4.2.x" icon =" prime-check-circle" color =" green-600" >
17
17
Excellent <ExternalLink href =" https://github.com/sfxcode/formkit-primevue" text =" Component Library" /> for VUE
18
18
</AdvertiseBox >
Original file line number Diff line number Diff line change 7
7
<h2 >Icons by UnoCSS</h2 >
8
8
<div class =" i-logos-vue text-6xl" />
9
9
<h3 >Iconset: MDI</h3 >
10
- <div class =" grid grid-cols-3 mt-6 " >
10
+ <div class =" mt-6 grid grid-cols-3" >
11
11
<div class =" i-mdi-information text-green-600-500-500 text-4xl" />
12
12
<div class =" i-mdi-alarm text-4xl text-blue-500" />
13
13
<div class =" i-mdi-github-circle text-4xl text-purple-500" />
14
14
</div >
15
15
<h3 >Iconset: TWEMOJI</h3 >
16
- <div class =" grid grid-cols-3 mt-6 " >
16
+ <div class =" mt-6 grid grid-cols-3" >
17
17
<div class =" i-twemoji-1st-place-medal text-4xl" />
18
18
<div class =" i-twemoji-2nd-place-medal text-4xl" />
19
19
<div class =" i-twemoji-3rd-place-medal text-4xl" />
20
20
</div >
21
21
<h3 >Iconset: Prime</h3 >
22
- <div class =" grid grid-cols-3 mt-6 " >
22
+ <div class =" mt-6 grid grid-cols-3" >
23
23
<div class =" i-prime-home text-4xl" />
24
24
<div class =" i-prime-comments text-4xl text-green-400" />
25
25
<div class =" i-prime-check-circle" />
Original file line number Diff line number Diff line change @@ -5,20 +5,17 @@ const config = useRuntimeConfig()
5
5
<template >
6
6
< div class = " card">
7
7
<h2 >UnoCSS </h2>
8
- < div h - full flex select - none text - center all :transition - 400 >
8
+ < div text - center flex h - full select - none all :transition - 400 >
9
9
< div ma >
10
- < div animate - 5s animate - bounce - alt animate - count - infinite text - 6 xl font - bold fw100 >
10
+ < div animate - 5s text - 6 xl font - bold fw100 animate - bounce - alt animate - count - infinite >
11
11
unocss
12
12
</div>
13
- < div m1 text - lg fw300 dark :op30 >
13
+ < div text - lg fw300 m1 dark :op30 >
14
14
The instant on - demand Atomic CSS engine .
15
15
</div>
16
16
< div
17
- m2
18
- flex
19
- justify - center
20
- text - 2xl
21
- dark :op30
17
+
18
+ text - 2xl m2 flex justify - center dark :op30
22
19
hover = " op80"
23
20
>
24
21
< a
@@ -32,7 +29,7 @@ const config = useRuntimeConfig()
32
29
</div>
33
30
< div
34
31
35
- bottom - 5 left - 0 right - 0 text - center fw300 dark :op30
32
+ fw300 text - center bottom - 5 left - 0 right - 0 dark :op30
36
33
>
37
34
on - demand · instant · fully customizable
38
35
</div>
@@ -48,7 +45,7 @@ const config = useRuntimeConfig()
48
45
< a href = " ../__unocss" target = " _blank" >
49
46
< div class = " i-mdi-information text-green-600-500-500 text-4xl" / >
50
47
</a>
51
- < article class = " pt-4 text-base prose prose-truegray xl:text-xl" >
48
+ < article class = " prose-truegray text-base pt-4 prose xl:text-xl" >
52
49
View , play and analyse rules and setup ...
53
50
</article>
54
51
</div>
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
2
import antfu from '@antfu/eslint-config'
3
+ import nuxt from './.nuxt/eslint.config.mjs'
3
4
4
5
export default antfu (
5
- {
6
- unocss : true ,
7
- formatters : true ,
8
- pnpm : true ,
9
- } ,
10
- )
6
+ {
7
+ unocss : true ,
8
+ formatters : true ,
9
+ pnpm : true ,
10
+ } ,
11
+ ) . append ( nuxt ( ) )
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export default defineNuxtConfig({
31
31
'@nuxt/content' ,
32
32
'@vueuse/nuxt' ,
33
33
'@nuxt/test-utils/module' ,
34
+ '@nuxt/eslint' ,
34
35
'@nuxt/image' ,
35
36
'@nuxt/fonts' ,
36
37
'@sfxcode/formkit-primevue-nuxt' ,
@@ -89,6 +90,16 @@ export default defineNuxtConfig({
89
90
transpile : [ 'nuxt' , 'primevue' , '@sfxcode/formkit-primevue' ] ,
90
91
} ,
91
92
93
+ eslint : {
94
+ config : {
95
+ standalone : false ,
96
+ nuxt : {
97
+ sortConfigKeys : true ,
98
+ } ,
99
+ } ,
100
+ } ,
101
+
102
+
92
103
sourcemap : {
93
104
client : false ,
94
105
server : false ,
Original file line number Diff line number Diff line change 41
41
"@tiptap/pm" : " ^2.11.5" ,
42
42
"@tiptap/starter-kit" : " ^2.11.5" ,
43
43
"@tiptap/vue-3" : " ^2.11.5" ,
44
- "@unocss/eslint-plugin " : " 66.1.0-beta.7" ,
44
+ "@unocss/eslint-config " : " 66.1.0-beta.7" ,
45
45
"@unocss/nuxt" : " ^66.1.0-beta.7" ,
46
46
"@vitest/ui" : " ^3.0.9" ,
47
47
"@vue/test-utils" : " ^2.4.6" ,
You can’t perform that action at this time.
0 commit comments