mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-11 17:29:44 +00:00

* refactor(api): rename ui subpackage name * refactor(api): update import paths for template UI schemas * chore: update dependencies and bump package versions * chore(api): bump package version to 0.1.1 * refactor(api): rename IUiIframe to IUiCustom and related types * format
20 lines
395 B
Svelte
20 lines
395 B
Svelte
<script>
|
|
import '../app.css';
|
|
import { ModeWatcher } from 'mode-watcher';
|
|
import { ThemeWrapper, updateTheme } from '@kksh/svelte5';
|
|
import { onMount } from 'svelte';
|
|
import { ui } from '@kksh/api/ui/custom';
|
|
|
|
onMount(() => {
|
|
ui.registerDragRegion();
|
|
ui.getTheme().then((theme) => {
|
|
updateTheme(theme);
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<ModeWatcher />
|
|
<ThemeWrapper>
|
|
<slot />
|
|
</ThemeWrapper>
|