Skip to content

Commit 6ba8270

Browse files
Minor changes suggested by Prettier (#2146)
1 parent 7b8e101 commit 6ba8270

File tree

9 files changed

+28
-34
lines changed

9 files changed

+28
-34
lines changed

.vitepress/theme/components/SponsorsGroup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { onMounted, onUnmounted } from 'vue'
3-
import { SponsorData, data, base, load } from './sponsors';
3+
import { SponsorData, data, base, load } from './sponsors'
44
55
const { tier, placement = 'aside' } = defineProps<{
66
tier: keyof SponsorData

.vitepress/theme/components/VueJobs.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ const base = 'https://app.vuejobs.com/feed/vuejs/docs?format=json'
55
let items = $ref<Jobs[]>([])
66
77
type Jobs = {
8-
organization: Organization;
9-
title: string;
10-
link: string;
11-
locations: string[];
12-
remote: false | 'ALLOWED' | 'ONLY';
13-
};
8+
organization: Organization
9+
title: string
10+
link: string
11+
locations: string[]
12+
remote: false | 'ALLOWED' | 'ONLY'
13+
}
1414
1515
type Organization = {
16-
name: string;
17-
avatar: string;
18-
};
16+
name: string
17+
avatar: string
18+
}
1919
</script>
2020
2121
<script setup lang="ts">
@@ -43,8 +43,8 @@ onMounted(async () => {
4343
target="_blank"
4444
>
4545
<div class="vj-company-logo">
46-
<img
47-
:src="job.organization.avatar"
46+
<img
47+
:src="job.organization.avatar"
4848
:alt="`Logo for ${job.organization.name}`" />
4949
</div>
5050
<div

.vitepress/theme/styles/vue-mastery.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
.vue-mastery-link .banner {
1414
background-color: var(--vt-c-white-soft);
1515
border-radius: 4px;
16-
width:96px;
17-
height:56px;
16+
width: 96px;
17+
height: 56px;
1818
object-fit: cover;
1919
}
2020

@@ -50,7 +50,7 @@
5050

5151
@media (max-width: 576px) {
5252
.vue-mastery-link .banner {
53-
width:56px;
53+
width: 56px;
5454
}
5555

5656
.vue-mastery-link .description {

src/about/team/TeamHero.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
font-size: 14px;
6767
font-weight: 500;
6868
color: var(--vt-c-brand);
69-
transition: color .25s;
69+
transition: color 0.25s;
7070
}
7171
7272
.action :deep(a:hover) {

src/guide/built-ins/keep-alive-demos/CompA.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ let count = $ref(0)
44

55
<template>
66
<p>Current component: A</p>
7-
<span style="margin-right:20px">count: {{ count }}</span>
7+
<span style="margin-right: 20px">count: {{ count }}</span>
88
<button @click="count++">+</button>
99
</template>

src/guide/built-ins/keep-alive-demos/CompB.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ let msg = $ref('')
44

55
<template>
66
<p>Current component: B</p>
7-
<span style="margin-right:20px;">Message is: {{ msg }}</span>
7+
<span style="margin-right: 20px">Message is: {{ msg }}</span>
88
<input v-model="msg">
99
</template>

src/guide/built-ins/transition-demos/CssAnimation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let show = $ref(true)
66
<div class="demo">
77
<button @click="show = !show">Toggle</button>
88
<Transition name="bounce">
9-
<p v-if="show" style="margin-top: 20px; text-align: center;">
9+
<p v-if="show" style="margin-top: 20px; text-align: center">
1010
Hello here is some bouncy text!
1111
</p>
1212
</Transition>

src/guide/extras/demos/SpreadSheet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const cols = cells.map((_, i) => String.fromCharCode(65 + i))
1616
<tbody>
1717
<tr v-for="i in cells[0].length">
1818
<th>{{ i - 1 }}</th>
19-
<td v-for="c, j in cols">
19+
<td v-for="(c, j) in cols">
2020
<Cell :r="i - 1" :c="j"></Cell>
2121
</td>
2222
</tr>

src/guide/scaling-up/TestingApiSwitcher.vue

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue';
2+
import { ref } from 'vue'
33
const activeId = ref('vtu-api')
44
55
const testingLangs = [
@@ -14,9 +14,8 @@ const testingLangs = [
1414
{
1515
label: 'Testing Library',
1616
className: 'testing-library-api'
17-
},
17+
}
1818
]
19-
2019
</script>
2120

2221
<template>
@@ -31,7 +30,7 @@ const testingLangs = [
3130
>{{ lang.label }}</div>
3231
</div>
3332
<div class="code-example">
34-
<slot/>
33+
<slot />
3534
</div>
3635
</div>
3736
</template>
@@ -44,7 +43,7 @@ const testingLangs = [
4443
flex-direction: column;
4544
}
4645
47-
.code-example :slotted([class*=language]) {
46+
.code-example :slotted([class*='language']) {
4847
margin-top: 0;
4948
border-top-left-radius: 0;
5049
}
@@ -57,19 +56,15 @@ const testingLangs = [
5756
.tab {
5857
color: white;
5958
background: #292d3ef0;
60-
border-bottom-color: rgba(255,255,255,0.3);
59+
border-bottom-color: rgba(255, 255, 255, 0.3);
6160
padding: 6px 24px;
6261
border-width: 2px;
6362
border-style: solid;
6463
border-top: transparent;
6564
border-right: transparent;
6665
border-left: transparent;
6766
cursor: pointer;
68-
transition: border, background-color .2s;
69-
transition-property: border, background-color;
70-
transition-duration: 0.2s, 0.2s;
71-
transition-timing-function: ease, ease;
72-
transition-delay: 0s, 0s;
67+
transition: border 0.2s, background-color 0.2s;
7368
}
7469
7570
.tab.active {
@@ -102,7 +97,7 @@ const testingLangs = [
10297
}
10398
10499
:global(.dark .testing-code-examples .tab:not(.active)) {
105-
border-bottom: 2px solid rgba(255,255,255,.2);
100+
border-bottom: 2px solid rgba(255, 255, 255, 0.2);
106101
background: #2f2f2f;
107102
color: inherit;
108103
}
@@ -112,7 +107,7 @@ const testingLangs = [
112107
}
113108
114109
/* Show/Hide logic for codeblocks */
115-
:slotted([class$="api"]) {
110+
:slotted([class$='api']) {
116111
display: none;
117112
}
118113
@@ -121,5 +116,4 @@ const testingLangs = [
121116
.prefers-vtu-api :slotted(.vtu-api) {
122117
display: block;
123118
}
124-
125119
</style>

0 commit comments

Comments
 (0)