Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vitepress/theme/components/SponsorsGroup.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { onMounted, onUnmounted } from 'vue'
import { SponsorData, data, base, load } from './sponsors';
import { SponsorData, data, base, load } from './sponsors'

const { tier, placement = 'aside' } = defineProps<{
tier: keyof SponsorData
Expand Down
22 changes: 11 additions & 11 deletions .vitepress/theme/components/VueJobs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ const base = 'https://app.vuejobs.com/feed/vuejs/docs?format=json'
let items = $ref<Jobs[]>([])

type Jobs = {
organization: Organization;
title: string;
link: string;
locations: string[];
remote: false | 'ALLOWED' | 'ONLY';
};
organization: Organization
title: string
link: string
locations: string[]
remote: false | 'ALLOWED' | 'ONLY'
}

type Organization = {
name: string;
avatar: string;
};
name: string
avatar: string
}
</script>

<script setup lang="ts">
Expand Down Expand Up @@ -43,8 +43,8 @@ onMounted(async () => {
target="_blank"
>
<div class="vj-company-logo">
<img
:src="job.organization.avatar"
<img
:src="job.organization.avatar"
:alt="`Logo for ${job.organization.name}`" />
</div>
<div
Expand Down
6 changes: 3 additions & 3 deletions .vitepress/theme/styles/vue-mastery.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
.vue-mastery-link .banner {
background-color: var(--vt-c-white-soft);
border-radius: 4px;
width:96px;
height:56px;
width: 96px;
height: 56px;
object-fit: cover;
}

Expand Down Expand Up @@ -50,7 +50,7 @@

@media (max-width: 576px) {
.vue-mastery-link .banner {
width:56px;
width: 56px;
}

.vue-mastery-link .description {
Expand Down
2 changes: 1 addition & 1 deletion src/about/team/TeamHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
font-size: 14px;
font-weight: 500;
color: var(--vt-c-brand);
transition: color .25s;
transition: color 0.25s;
}

.action :deep(a:hover) {
Expand Down
2 changes: 1 addition & 1 deletion src/guide/built-ins/keep-alive-demos/CompA.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ let count = $ref(0)

<template>
<p>Current component: A</p>
<span style="margin-right:20px">count: {{ count }}</span>
<span style="margin-right: 20px">count: {{ count }}</span>
<button @click="count++">+</button>
</template>
2 changes: 1 addition & 1 deletion src/guide/built-ins/keep-alive-demos/CompB.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ let msg = $ref('')

<template>
<p>Current component: B</p>
<span style="margin-right:20px;">Message is: {{ msg }}</span>
<span style="margin-right: 20px">Message is: {{ msg }}</span>
<input v-model="msg">
</template>
2 changes: 1 addition & 1 deletion src/guide/built-ins/transition-demos/CssAnimation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let show = $ref(true)
<div class="demo">
<button @click="show = !show">Toggle</button>
<Transition name="bounce">
<p v-if="show" style="margin-top: 20px; text-align: center;">
<p v-if="show" style="margin-top: 20px; text-align: center">
Hello here is some bouncy text!
</p>
</Transition>
Expand Down
2 changes: 1 addition & 1 deletion src/guide/extras/demos/SpreadSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const cols = cells.map((_, i) => String.fromCharCode(65 + i))
<tbody>
<tr v-for="i in cells[0].length">
<th>{{ i - 1 }}</th>
<td v-for="c, j in cols">
<td v-for="(c, j) in cols">
<Cell :r="i - 1" :c="j"></Cell>
</td>
</tr>
Expand Down
22 changes: 8 additions & 14 deletions src/guide/scaling-up/TestingApiSwitcher.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref } from 'vue';
import { ref } from 'vue'
const activeId = ref('vtu-api')

const testingLangs = [
Expand All @@ -14,9 +14,8 @@ const testingLangs = [
{
label: 'Testing Library',
className: 'testing-library-api'
},
}
]

</script>

<template>
Expand All @@ -31,7 +30,7 @@ const testingLangs = [
>{{ lang.label }}</div>
</div>
<div class="code-example">
<slot/>
<slot />
</div>
</div>
</template>
Expand All @@ -44,7 +43,7 @@ const testingLangs = [
flex-direction: column;
}

.code-example :slotted([class*=language]) {
.code-example :slotted([class*='language']) {
margin-top: 0;
border-top-left-radius: 0;
}
Expand All @@ -57,19 +56,15 @@ const testingLangs = [
.tab {
color: white;
background: #292d3ef0;
border-bottom-color: rgba(255,255,255,0.3);
border-bottom-color: rgba(255, 255, 255, 0.3);
padding: 6px 24px;
border-width: 2px;
border-style: solid;
border-top: transparent;
border-right: transparent;
border-left: transparent;
cursor: pointer;
transition: border, background-color .2s;
transition-property: border, background-color;
transition-duration: 0.2s, 0.2s;
transition-timing-function: ease, ease;
transition-delay: 0s, 0s;
transition: border 0.2s, background-color 0.2s;
}

.tab.active {
Expand Down Expand Up @@ -102,7 +97,7 @@ const testingLangs = [
}

:global(.dark .testing-code-examples .tab:not(.active)) {
border-bottom: 2px solid rgba(255,255,255,.2);
border-bottom: 2px solid rgba(255, 255, 255, 0.2);
background: #2f2f2f;
color: inherit;
}
Expand All @@ -112,7 +107,7 @@ const testingLangs = [
}

/* Show/Hide logic for codeblocks */
:slotted([class$="api"]) {
:slotted([class$='api']) {
display: none;
}

Expand All @@ -121,5 +116,4 @@ const testingLangs = [
.prefers-vtu-api :slotted(.vtu-api) {
display: block;
}

</style>