Files
api/web/layouts/unraid-next.vue
T
Eli Bosley af5ca11860 Feat/vue (#1655)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Introduced Docker management UI components: Overview, Logs, Console,
Preview, and Edit.
- Added responsive Card/Detail layouts with grouping, bulk actions, and
tabs.
  - New UnraidToaster component and global toaster configuration.
- Component auto-mounting improved with async loading and multi-selector
support.
- UI/UX
- Overhauled theme system (light/dark tokens, primary/orange accents)
and added theme variants.
  - Header OS version now includes integrated changelog modal.
- Registration displays warning states; multiple visual polish updates.
- API
  - CPU load now includes percentGuest and percentSteal metrics.
- Chores
  - Migrated web app to Vite; updated artifacts and manifests.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: mdatelle <mike@datelle.net>
Co-authored-by: Michael Datelle <mdatelle@icloud.com>
2025-09-08 10:04:49 -04:00

43 lines
967 B
Vue

<script setup lang="ts">
import { onMounted } from 'vue';
import UApp from '@nuxt/ui/components/App.vue';
import UPage from '@nuxt/ui/components/Page.vue';
import { defaultColors } from '~/themes/default';
import { useThemeStore } from '~/store/theme';
const themeStore = useThemeStore();
// Initialize theme on mount
onMounted(() => {
// Set a default theme similar to ColorSwitcherCe
const whiteTheme = defaultColors.white;
if (whiteTheme) {
const defaultTheme = {
banner: false,
bannerGradient: false,
descriptionShow: true,
textColor: whiteTheme['--header-text-primary'],
metaColor: whiteTheme['--header-text-secondary'],
bgColor: whiteTheme['--header-background-color'],
name: 'white',
};
themeStore.setTheme(defaultTheme);
}
});
</script>
<template>
<UApp>
<UPage>
<slot />
</UPage>
</UApp>
</template>
<style>
/* Import theme styles */
@import '~/assets/main.css';
</style>