2024-09-13 12:19:12 +08:00
|
|
|
import useRouterStore from '@/useRouterStore'
|
2024-10-25 18:53:08 +08:00
|
|
|
import { defineComponent } from 'vue'
|
2024-09-13 12:19:12 +08:00
|
|
|
import UserPage from '@/user/UserPage'
|
|
|
|
import BackgroundPage from '@/layout/background/BackgroundPage'
|
|
|
|
import ThemeProvider from '@/utils/ThemeProvider'
|
2024-10-10 16:04:00 +08:00
|
|
|
import BlockSettings from '@/layout/grid/BlockSettings'
|
2024-10-25 18:53:08 +08:00
|
|
|
import SearchSetting from '@/layout/grid/SearchSetting'
|
2024-10-29 18:47:37 +08:00
|
|
|
import TimeSetting from '@/layout/grid/TimeSetting'
|
2024-10-30 19:07:10 +08:00
|
|
|
import SiderSetting from '@/layout/grid/SiderSetting'
|
|
|
|
import DockSetting from '@/layout/grid/DockSetting'
|
2024-11-12 18:09:34 +08:00
|
|
|
import Feedback from '@/layout/grid/Feedback'
|
2024-10-30 19:07:10 +08:00
|
|
|
import Reset from '@/layout/grid/Reset'
|
2024-10-25 18:53:08 +08:00
|
|
|
|
2024-09-13 12:19:12 +08:00
|
|
|
export default defineComponent(() => {
|
|
|
|
const router = useRouterStore()
|
2024-10-25 18:53:08 +08:00
|
|
|
|
2024-09-13 12:19:12 +08:00
|
|
|
return () => (
|
2024-11-15 14:42:11 +08:00
|
|
|
<div class="w-full h-full rounded-xl">
|
2024-09-13 12:19:12 +08:00
|
|
|
<ThemeProvider>
|
2024-10-25 18:53:08 +08:00
|
|
|
{router.path === 'settings-user' ? (
|
|
|
|
<UserPage />
|
|
|
|
) : router.path === 'settings-background' ? (
|
|
|
|
<BackgroundPage />
|
|
|
|
) : router.path === 'settings-block' ? (
|
|
|
|
<BlockSettings />
|
|
|
|
) : router.path === 'settings-search' ? (
|
|
|
|
<SearchSetting />
|
2024-10-29 18:47:37 +08:00
|
|
|
) : router.path === 'settings-time' ? (
|
|
|
|
<TimeSetting />
|
2024-10-30 19:07:10 +08:00
|
|
|
) : router.path === 'settings-sider' ? (
|
|
|
|
<SiderSetting />
|
|
|
|
) : router.path === 'settings-dock' ? (
|
|
|
|
<DockSetting />
|
|
|
|
) : router.path === 'settings-reset' ? (
|
|
|
|
<Reset />
|
2024-11-12 18:09:34 +08:00
|
|
|
) : router.path === 'settings-fallback' ? (
|
|
|
|
<Feedback />
|
2024-10-25 18:53:08 +08:00
|
|
|
) : null}
|
2024-09-13 12:19:12 +08:00
|
|
|
</ThemeProvider>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
})
|