This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3971ee
commit 9409c9b
Showing
37 changed files
with
421 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,11 @@ | ||
<script lang="ts" setup> | ||
import { darkTheme, dateZhCN, lightTheme, useOsTheme, zhCN } from 'naive-ui' | ||
const osTheme = useOsTheme() | ||
const theme = computed(() => { | ||
if (osTheme.value === 'dark') { | ||
return darkTheme | ||
} | ||
return lightTheme | ||
}) | ||
import '~/styles/index.scss' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<NuxtLoadingIndicator/> | ||
|
||
<n-config-provider :date-locale="dateZhCN" :locale="zhCN" :theme="theme"> | ||
<n-dialog-provider> | ||
<n-loading-bar-provider> | ||
<n-message-provider> | ||
<n-notification-provider> | ||
<n-layout position="absolute"> | ||
<n-layout-header> | ||
<n-flex justify="space-between"> | ||
<app-menus-left/> | ||
<app-menus-right/> | ||
</n-flex> | ||
</n-layout-header> | ||
|
||
<n-layout-content> | ||
<NuxtErrorBoundary> | ||
<div class="px-2 py-10"> | ||
<Suspense> | ||
<NuxtPage/> | ||
|
||
<template #fallback> | ||
<div class="mx-auto text-center"> | ||
<n-spin/> | ||
</div> | ||
</template> | ||
</Suspense> | ||
</div> | ||
<NuxtLoadingIndicator/> | ||
|
||
<template #error="{ error }"> | ||
<n-flex class="py-10" vertical> | ||
<n-result status="error"/> | ||
|
||
<div class="text-center"> | ||
<n-text class="text-4xl fw-bold"> | ||
{{ error.value.message }} | ||
</n-text> | ||
</div> | ||
</n-flex> | ||
</template> | ||
</NuxtErrorBoundary> | ||
</n-layout-content> | ||
|
||
<n-layout-footer class="p-2 text-center"> | ||
<n-text>© 2024 - {{ new Date().getFullYear() }}</n-text> | ||
<n-divider vertical/> | ||
<n-button href='https://studio26f.org' tag='a' text>26F Studio</n-button> | ||
</n-layout-footer> | ||
</n-layout> | ||
</n-notification-provider> | ||
</n-message-provider> | ||
</n-loading-bar-provider> | ||
</n-dialog-provider> | ||
</n-config-provider> | ||
<NuxtLayout> | ||
<NuxtPage/> | ||
</NuxtLayout> | ||
</template> | ||
|
||
<style> | ||
:root, body { | ||
@apply m-0 p-0 w-full h-full font-sans text-[12px]; | ||
} | ||
.page-enter-active, | ||
.page-leave-active { | ||
@apply transition-(all duration-300) ease-in-out; | ||
} | ||
.page-enter-from, | ||
.page-leave-to { | ||
@apply opacity-0 blur; | ||
} | ||
</style> | ||
</template> |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.