Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5d1ee25

Browse files
chore: formatting
1 parent 35c9596 commit 5d1ee25

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

‎src/.vitepress/theme/components/NewsLetter.vue‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ import { VTLink } from '@vue/theme'
4040

4141
<p class="help">
4242
You can read the previous issues and listen to our podcast at
43-
<VTLink class="link" href="https://news.vuejs.org/" no-icon
44-
>news.vuejs.org</VTLink
45-
>. You may also go social at
46-
<VTLink class="link" href="https://twitter.com/vuejs" no-icon
47-
>Twitter</VTLink
48-
>, or join our home at
49-
<VTLink class="link" href="https://chat.vuejs.org/" no-icon
50-
>Discord</VTLink
51-
>.
43+
<VTLink
44+
class="link"
45+
href="https://news.vuejs.org/"
46+
no-icon
47+
>news.vuejs.org</VTLink>. You may also go social at
48+
<VTLink class="link" href="https://twitter.com/vuejs" no-icon>Twitter</VTLink>, or join our home at
49+
<VTLink class="link" href="https://chat.vuejs.org/" no-icon>Discord</VTLink>.
5250
</p>
5351
</div>
5452
</section>
@@ -157,7 +155,7 @@ import { VTLink } from '@vue/theme'
157155
font-weight: 500;
158156
color: var(--vt-c-text-dark-1);
159157
background-color: var(--vt-c-brand);
160-
transition: background-color .25s;
158+
transition: background-color 0.25s;
161159
cursor: pointer;
162160
}
163161

‎src/.vitepress/theme/components/PreferenceSwitch.vue‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const route = useRoute()
1313
const show = computed(() => /^\/(guide|tutorial|examples)\//.test(route.path))
1414
const isOpen = ref(
1515
typeof localStorage !== 'undefined' &&
16-
!localStorage.getItem(preferCompositionKey)
16+
!localStorage.getItem(preferCompositionKey)
1717
)
1818
1919
const toggleOpen = () => (isOpen.value = !isOpen.value)
@@ -31,7 +31,7 @@ function useToggleFn(
3131
className: string
3232
) {
3333
if (typeof localStorage === 'undefined') {
34-
return () => {}
34+
return () => {}
3535
}
3636
const classList = document.documentElement.classList
3737
return (value = !state.value) => {
@@ -59,24 +59,25 @@ function useToggleFn(
5959
</button>
6060
<div id="preference-switches" :hidden="!isOpen" :aria-hidden="!isOpen">
6161
<div class="switch-container">
62-
<label class="options-label" @click="toggleCompositionAPI(false)"
63-
>Options</label
64-
>
62+
<label
63+
class="options-label"
64+
@click="toggleCompositionAPI(false)"
65+
>Options</label>
6566
<VTSwitch
6667
class="api-switch"
6768
aria-label="Switch API"
6869
@click="toggleCompositionAPI()"
6970
/>
70-
<label class="composition-label" @click="toggleCompositionAPI(true)"
71-
>Composition</label
72-
>
71+
<label
72+
class="composition-label"
73+
@click="toggleCompositionAPI(true)"
74+
>Composition</label>
7375
<a
7476
class="switch-link"
7577
title="About API preference"
7678
href="/guide/introduction.html#api-styles"
7779
@click="closeSideBar"
78-
>?</a
79-
>
80+
>?</a>
8081
</div>
8182
<div class="switch-container" v-if="route.path.startsWith('/examples')">
8283
<label class="no-sfc-label" @click="toggleSFC(false)">HTML</label>
@@ -91,8 +92,7 @@ function useToggleFn(
9192
title="About SFC"
9293
href="/guide/scaling-up/sfc.html"
9394
@click="closeSideBar"
94-
>?</a
95-
>
95+
>?</a>
9696
</div>
9797
</div>
9898
</div>

‎src/api/ApiIndex.vue‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ function slugify(text) {
8181
</div>
8282
</div>
8383

84-
<div v-if="!filtered.length" class="no-match">
85-
No API matching "{{ query }}" found.
86-
</div>
84+
<div
85+
v-if="!filtered.length"
86+
class="no-match"
87+
>No API matching "{{ query }}" found.</div>
8788
</div>
8889
</template>
8990

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /