Skip to content

Commit ae45ca5

Browse files
committed
chore: modify the behavior of the formatting program and rerun it npx prettier --write
1 parent 00cbcf4 commit ae45ca5

39 files changed

+468
-433
lines changed

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"semi": true,
33
"bracketSameLine": true,
44
"arrowParens": "always",
5-
"htmlWhitespaceSensitivity": "strict",
5+
"htmlWhitespaceSensitivity": "ignore",
66
"vueIndentScriptAndStyle": false,
77
"singleQuote": true,
88
"trailingComma": "none",

app.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ onMounted(() => {
4848

4949
<template>
5050
<NuxtLayout>
51-
<div ref="mainBody" class="flex-1 pl-[1px]"><NuxtPage /> </div
52-
></NuxtLayout>
51+
<div ref="mainBody" class="flex-1 pl-[1px]"><NuxtPage /></div>
52+
</NuxtLayout>
5353
</template>

components/AccordionNavigation.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ defineProps({
3636
: `${route.path.replace(/\/+$/, '')}${item.hash}`
3737
"
3838
:class="linkClass">
39-
{{ getSpecifiedTitle(item) }}</AppLink
40-
>
39+
{{ getSpecifiedTitle(item) }}
40+
</AppLink>
4141
</span>
4242
</template>
4343

components/TitleComponent.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ defineProps({
1313
:class="
1414
'pb-2 leading-[0.8] font-[450] ' +
1515
(smallTitle ? 'text-[24pt]' : 'text-[32pt]')
16-
"
17-
>{{ title }}</h2
18-
>
16+
">
17+
{{ title }}
18+
</h2>
1919
<h3 class="text-[14pt] font-[450]">{{ description }}</h3>
2020
<div class="text-[11pt]">
2121
<AccordionNavigation
2222
v-if="navigationList"
2323
:navigation-list="navigationList"
24-
link-class=""
25-
>·</AccordionNavigation
26-
>
24+
link-class="">
25+
·
26+
</AccordionNavigation>
2727
</div>
2828
</div>
2929
</template>

components/app/AppShow.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ defineProps({
1414
:key="`${title.texts[0]}-${index}`">
1515
<span v-if="title.book.includes(index)">
1616
<span v-if="locale === 'zh'">《{{ item }}》</span>
17-
<span v-else-if="locale === 'en'"
18-
><i>{{ item }}</i></span
19-
>
17+
<span v-else-if="locale === 'en'">
18+
<i>{{ item }}</i>
19+
</span>
2020
</span>
2121
<span v-else>{{ item }}</span>
2222
</span>

components/app/table/AppTableIsa.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const props = defineProps({
2323
<tr>
2424
<th
2525
v-for="(item, index) in tableValue.th"
26-
:key="`${myKey}-th-${index}`"
27-
>{{ item }}</th
28-
>
26+
:key="`${myKey}-th-${index}`">
27+
{{ item }}
28+
</th>
2929
</tr>
3030
</thead>
3131
<tbody>
@@ -34,14 +34,14 @@ const props = defineProps({
3434
:key="`${myKey}-tr-${index1}`">
3535
<td
3636
v-for="(item2, index2) in item1[0]"
37-
:key="`${myKey}-td-${index1}-${index2}`"
38-
>{{ item2 }}</td
39-
>
37+
:key="`${myKey}-td-${index1}-${index2}`">
38+
{{ item2 }}
39+
</td>
4040
<td
4141
v-for="(item3, index3) in item1[1]"
42-
:key="`${myKey}-td-${index1}-${index3 + item1[0].length}`"
43-
><code>{{ item3 }}</code></td
44-
>
42+
:key="`${myKey}-td-${index1}-${index3 + item1[0].length}`">
43+
<code>{{ item3 }}</code>
44+
</td>
4545
</tr>
4646
</tbody>
4747
</table>

components/app/table/AppTableOrdinary.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const props = defineProps({
2323
<tr>
2424
<th
2525
v-for="(item, index) in tableValue.th"
26-
:key="`${myKey}-th-${index}`"
27-
>{{ item }}</th
28-
>
26+
:key="`${myKey}-th-${index}`">
27+
{{ item }}
28+
</th>
2929
</tr>
3030
</thead>
3131
<tbody>
@@ -34,9 +34,9 @@ const props = defineProps({
3434
:key="`${myKey}-tr-${index1}`">
3535
<td
3636
v-for="(item2, index2) in item1"
37-
:key="`${myKey}-td-${index1}-${index2}`"
38-
>{{ item2 }}</td
39-
>
37+
:key="`${myKey}-td-${index1}-${index2}`">
38+
{{ item2 }}
39+
</td>
4040
</tr>
4141
</tbody>
4242
</table>

components/app/ul/AppUlBAndLink.vue

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@ const props = defineProps({
1717

1818
<template>
1919
<ul :class="props.class">
20-
<li v-for="(item, index) in lis" :key="`${myKey}-li-${index}`"
21-
><template v-if="Array.isArray(item)"
22-
><app-ul-b-and-link
20+
<li v-for="(item, index) in lis" :key="`${myKey}-li-${index}`">
21+
<template v-if="Array.isArray(item)">
22+
<app-ul-b-and-link
2323
:lis="item"
2424
:my-key="`${myKey}-${index}`"
25-
class="py-[0.5rem] pl-[2.5rem]" /></template
26-
><template v-else
27-
><b>{{ item.b }}</b
28-
><app-link :to="item.link.url">{{
29-
item.link.title
30-
}}</app-link></template
31-
></li
32-
>
25+
class="py-[0.5rem] pl-[2.5rem]" />
26+
</template>
27+
<template v-else>
28+
<b>{{ item.b }}</b>
29+
<app-link :to="item.link.url">{{ item.link.title }}</app-link>
30+
</template>
31+
</li>
3332
</ul>
3433
</template>

components/app/ul/AppUlOrdinary.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ const props = defineProps({
2424
<li
2525
v-for="(item, index) in lis"
2626
:key="`${myKey}-li-${index}`"
27-
:class="Array.isArray(item) ? 'list-none' : liClass"
28-
><template v-if="typeof item === 'string'">{{ item }}</template
29-
><template v-else-if="Array.isArray(item)"
30-
><app-ul-ordinary
27+
:class="Array.isArray(item) ? 'list-none' : liClass">
28+
<template v-if="typeof item === 'string'">{{ item }}</template>
29+
<template v-else-if="Array.isArray(item)">
30+
<app-ul-ordinary
3131
:lis="item"
3232
:li-class="liClass"
3333
:my-key="`${myKey}-${index}`"
34-
class="py-[0.5rem] pl-[2.5rem]" /></template
35-
></li>
34+
class="py-[0.5rem] pl-[2.5rem]" />
35+
</template>
36+
</li>
3637
</ul>
3738
</template>

components/bar/BarFooter.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const navigationList = [
1414
<div
1515
class="theme-bg-color-secondary-static footerbar flex w-full justify-center py-[2px] text-white">
1616
<div class="m-auto">
17-
<span class="pl-[0.5rem]"
18-
>&copy; {{ textValue.antong }}&nbsp;&nbsp;&nbsp;&nbsp;2011 -
19-
{{ nowYear }}</span
20-
>
17+
<span class="pl-[0.5rem]">
18+
&copy; {{ textValue.antong }}&nbsp;&nbsp;&nbsp;&nbsp;2011 -
19+
{{ nowYear }}
20+
</span>
2121
<span class="mx-[20px]">|</span>
2222
<AccordionNavigation
2323
:navigation-list="navigationList"

0 commit comments

Comments
 (0)