mirror of
https://github.com/rustfs/console.git
synced 2026-11-03 14:44:58 +08:00
- Auto-format all files to comply with Prettier rules - Fix code style issues in 545 files
20 lines
533 B
Vue
20 lines
533 B
Vue
<template>
|
|
<Body
|
|
class="bg-background overscroll-none font-sans antialiased"
|
|
:class="[activeTheme ? `theme-${activeTheme}` : '', isScaled ? 'theme-scaled' : '']"
|
|
>
|
|
<ProvidersAppUiProvider>
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</ProvidersAppUiProvider>
|
|
</Body>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { computed } from 'vue'
|
|
|
|
const activeTheme = useCookie<string>('active_theme', { readonly: true })
|
|
const isScaled = computed(() => !!activeTheme.value?.endsWith('-scaled'))
|
|
</script>
|