Skip to content

Commit cf0a5c2

Browse files
committed
Merge branch 'master' into dev
2 parents 99c721c + cbe8373 commit cf0a5c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+370
-217
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
},
1515
"npmClient": "pnpm",
1616
"version": "3.9.0-beta.1"
17-
}
17+
}

packages/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@vue/compiler-dom": "^3.5.13",
2727
"@vuelidate/core": "^2.0.3",
2828
"@vuelidate/validators": "^2.0.4",
29-
"@vuetify/one": "^2.2.4",
29+
"@vuetify/one": "^2.3.0",
3030
"algoliasearch": "^4.24.0",
3131
"fflate": "^0.8.2",
3232
"isomorphic-fetch": "^3.0.0",

packages/docs/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
7171
auth.verify()
7272
73-
watch(() => user.theme, val => {
73+
watch(() => user.one.theme, val => {
7474
if (val === 'system') {
7575
media = getMatchMedia()!
7676
media.addEventListener('change', onThemeChange)
@@ -85,7 +85,7 @@
8585
8686
watchEffect(() => {
8787
theme.global.name.value = (
88-
user.theme === 'system' ? systemTheme.value : user.theme
88+
user.one.theme === 'system' ? systemTheme.value : user.one.theme
8989
)
9090
})
9191

packages/docs/src/components/PageFeatures.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</page-feature-chip>
1515

1616
<page-feature-chip
17-
v-if="one.isSubscriber && user.pins"
17+
v-if="one.isSubscriber && user.ecosystem.docs.pins.enabled"
1818
:prepend-icon="`mdi-pin${!pinned ? '-outline' : ''}`"
1919
text="Pin"
2020
@click="onClickPin"

packages/docs/src/components/api/ApiTable.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}"
2929
/>
3030

31-
<tr v-if="item.description || (user.dev && item.source)">
31+
<tr v-if="item.description || (user.one.devmode && item.source)">
3232
<td class="text-mono pt-4" colspan="3">
3333
<template v-if="item.description">
3434
<AppMarkdown
@@ -39,9 +39,9 @@
3939
<span v-else>{{ item.description }}</span>
4040
</template>
4141

42-
<p v-if="user.dev && item.source">
42+
<p v-if="user.one.devmode && item.source">
4343
<strong>source: {{ item.source }}</strong>
44-
<template v-if="user.dev && item.descriptionSource && item.source !== item.descriptionSource">
44+
<template v-if="user.one.devmode && item.descriptionSource && item.source !== item.descriptionSource">
4545
<br>
4646
<strong>description source: {{ item.descriptionSource }}</strong>
4747
</template>
@@ -82,7 +82,7 @@
8282
8383
const filtered = computed(() => {
8484
const items = props.items.filter((item: any) => {
85-
return user.dev || item.description !== '**FOR INTERNAL USE ONLY**'
85+
return user.one.devmode || item.description !== '**FOR INTERNAL USE ONLY**'
8686
})
8787
if (!appStore.apiSearch) return items
8888

packages/docs/src/components/api/DirectiveTable.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
/>
1010
<span v-else>{{ item.description }}</span>
1111

12-
<p v-if="user.dev && item.source">
12+
<p v-if="user.one.devmode && item.source">
1313
<strong>source: {{ item.source }}</strong>
14-
<template v-if="user.dev && item.descriptionSource && item.source !== item.descriptionSource">
14+
<template v-if="user.one.devmode && item.descriptionSource && item.source !== item.descriptionSource">
1515
<br>
1616
<strong>description source: {{ item.descriptionSource }}</strong>
1717
</template>

packages/docs/src/components/api/Inline.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<border-chip
3-
:prepend-icon="user.api === 'inline' ? 'mdi-flask-outline' : 'mdi-flask-empty-outline'"
3+
:prepend-icon="user.ecosystem.docs.api === 'inline' ? 'mdi-flask-outline' : 'mdi-flask-empty-outline'"
44
:text="t('toggle', [`${t('inline')} ${t('api')}`])"
55
class="mb-2"
66
@click="onClick"
@@ -57,13 +57,13 @@
5757
return pageToApi[path as keyof typeof pageToApi]
5858
})
5959
60-
const showInline = computed(() => user.api === 'inline')
60+
const showInline = computed(() => user.ecosystem.docs.api === 'inline')
6161
6262
onBeforeMount(() => {
6363
name.value = components.value?.[0] ?? ''
6464
})
6565
6666
function onClick () {
67-
user.api = user.api === 'inline' ? 'link-only' : 'inline'
67+
user.ecosystem.docs.api = user.ecosystem.docs.api === 'inline' ? 'link-only' : 'inline'
6868
}
6969
</script>

packages/docs/src/components/app/Markup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<v-sheet
44
v-bind="{ ...hoverProps, ...$attrs }"
55
ref="root"
6-
:color="theme.name.value === 'light' && !user.mixedTheme ? 'surface-bright' : undefined"
6+
:color="theme.name.value === 'light' && !user.ecosystem.docs.mixedTheme ? 'surface-bright' : undefined"
77
:rounded="rounded"
8-
:theme="theme.name.value === 'light' && user.mixedTheme ? 'dark' : theme.name.value"
8+
:theme="theme.name.value === 'light' && user.ecosystem.docs.mixedTheme ? 'dark' : theme.name.value"
99
class="app-markup overflow-hidden"
1010
dir="ltr"
1111
>

packages/docs/src/components/app/Toc.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
</v-col>
104104

105105
<v-col
106-
v-if="spot.spot && (!user.disableAds || (user.showHouseAds && spot.spot.sponsor === 'Vuetify'))"
106+
v-if="spot.spot && (user.one.ads.enabled || (user.one.ads.house && spot.spot.sponsor === 'Vuetify'))"
107107
cols="12"
108108
>
109109
<a

packages/docs/src/components/app/V2Banner.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
<script setup>
3939
const user = useUserStore()
4040
41-
const showBanner = computed(() => !user.notifications.last.v2banner)
41+
const showBanner = computed(() => !user.one.banners.last)
4242
4343
function onClose () {
44-
user.notifications.last.v2banner = Date.now()
44+
user.one.banners.last = Date.now()
4545
}
4646
</script>

0 commit comments

Comments
 (0)