Skip to content

Commit d679ed9

Browse files
committed
chore: format
1 parent 7b383e1 commit d679ed9

11 files changed

Lines changed: 28 additions & 105 deletions

File tree

.prettierrc.mjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import type { Config } from 'prettier';
2+
3+
export default {
4+
singleQuote: true,
5+
} as Config;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"vue-router": "4.5.1"
8080
},
8181
"volta": {
82-
"node": "24.3.0",
82+
"node": "24.4.1",
8383
"pnpm": "10.12.3"
8484
},
8585
"packageManager": "pnpm@10.12.3",

src/components/BodyScrollbar.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ useEventListener('selectstart', (e) => {
110110
});
111111
</script>
112112
<template>
113-
<div
114-
fixed
115-
z-2000
116-
class="BodyScrollbar"
117-
>
113+
<div fixed z-2000 class="BodyScrollbar">
118114
<div
119115
v-show="yShow"
120116
scrollbar-y

src/components/TrackGraph.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,5 @@ watch(
275275
);
276276
</script>
277277
<template>
278-
<div
279-
ref="el"
280-
class="TrackGraph"
281-
/>
278+
<div ref="el" class="TrackGraph" />
282279
</template>

src/components/TrackModal.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ useEventListener('keyup', (e) => {
5959
'track-model-exit': showStatus === 1,
6060
}"
6161
>
62-
<TrackCard
63-
v-if="data"
64-
v-bind="data"
65-
@close="onUpdateShow(false)"
66-
/>
62+
<TrackCard v-if="data" v-bind="data" @close="onUpdateShow(false)" />
6763
</div>
6864
</template>
6965

src/views/ImportPage.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ onMounted(async () => {
7979
flex-col
8080
flex-items-center
8181
>
82-
<div
83-
v-if="!gmOk()"
84-
mb-20px
85-
>
82+
<div v-if="!gmOk()" mb-20px>
8683
建议安装并启用
8784
<a
8885
href="https://github.com/gkd-kit/network-extension"

src/views/SelectorPage.vue

Lines changed: 12 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,12 @@ const error = computed(() => {
6868
});
6969
</script>
7070
<template>
71-
<div
72-
flex
73-
items-center
74-
gap-16px
75-
pt-12px
76-
px-12px
77-
>
71+
<div flex items-center gap-16px pt-12px px-12px>
7872
<NTooltip placement="right">
7973
<template #trigger>
8074
<NButton text>
8175
<template #icon>
82-
<RouterLink
83-
to="/"
84-
color="inherit"
85-
>
76+
<RouterLink to="/" color="inherit">
8677
<NIcon size="24">
8778
<SvgIcon name="home" />
8879
</NIcon>
@@ -92,23 +83,12 @@ const error = computed(() => {
9283
</template>
9384
回到首页
9485
</NTooltip>
95-
<div
96-
flex
97-
gap-16px
98-
>
99-
<div text-18px>
100-
测试选择器
101-
</div>
86+
<div flex gap-16px>
87+
<div text-18px>测试选择器</div>
10288
<div>语法高亮/错误解析</div>
10389
</div>
10490
</div>
105-
<div
106-
flex
107-
flex-col
108-
items-center
109-
p-8px
110-
text="40px/52px"
111-
>
91+
<div flex flex-col items-center p-8px text="40px/52px">
11292
<NInput
11393
v-model:value="inputText"
11494
type="textarea"
@@ -129,30 +109,14 @@ const error = computed(() => {
129109
transition-colors
130110
:class="error ? `bg-red-200` : `bg-light-600`"
131111
>
132-
<div
133-
v-if="ast"
134-
overflow-x-scroll
135-
scrollbar-hidden
136-
>
137-
<SelectorText
138-
:source="text"
139-
:node="ast"
140-
/>
112+
<div v-if="ast" overflow-x-scroll scrollbar-hidden>
113+
<SelectorText :source="text" :node="ast" />
141114
</div>
142-
<span
143-
v-else-if="error"
144-
whitespace-pre-wrap
145-
>
115+
<span v-else-if="error" whitespace-pre-wrap>
146116
<span v-if="error.headText">{{ error.headText }}</span>
147-
<span
148-
bg-red
149-
relative
150-
>
117+
<span bg-red relative>
151118
<span v-if="error.errorText">{{ error.errorText }}</span>
152-
<span
153-
v-else
154-
pl-20px
155-
/>
119+
<span v-else pl-20px />
156120
<div
157121
absolute
158122
left-0
@@ -164,21 +128,13 @@ const error = computed(() => {
164128
animate-bounce
165129
pointer-events-none
166130
>
167-
<SvgIcon
168-
name="arrow"
169-
class="text-18px color-dark"
170-
/>
131+
<SvgIcon name="arrow" class="text-18px color-dark" />
171132
</div>
172133
</span>
173134
<span v-if="error.tailText">{{ error.tailText }}</span>
174135
</span>
175136
</div>
176-
<div
177-
v-if="error"
178-
p-4px
179-
bg-red-300
180-
gkd_code
181-
>
137+
<div v-if="error" p-4px bg-red-300 gkd_code>
182138
{{ error.message }}
183139
</div>
184140
</div>

src/views/SvgPage.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,7 @@ const copy = async (text: string) => {
4040
</script>
4141
<template>
4242
<div class="SvgPage">
43-
<div
44-
px-16px
45-
pt-16px
46-
flex
47-
items-center
48-
gap-16px
49-
>
43+
<div px-16px pt-16px flex items-center gap-16px>
5044
<NInput
5145
v-model="search"
5246
:style="{ width: '320px' }"

src/views/_404Page.vue

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
<template>
2-
<div
3-
flex
4-
flex-col
5-
flex-items-center
6-
w-full
7-
pt-50px
8-
gap-8px
9-
>
2+
<div flex flex-col flex-items-center w-full pt-50px gap-8px>
103
<div>当前页面不存在可访问资源</div>
11-
<RouterLink to="/">
12-
回到首页
13-
</RouterLink>
4+
<RouterLink to="/"> 回到首页 </RouterLink>
145
</div>
156
</template>

0 commit comments

Comments
 (0)