Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
feat(*): update
Browse files Browse the repository at this point in the history
  • Loading branch information
WOSHIZHAZHA120 committed Mar 7, 2024
1 parent e3971ee commit 9409c9b
Show file tree
Hide file tree
Showing 37 changed files with 421 additions and 395 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"naive-ui": "^2.38.1",
"nuxt": "^3.10.3",
"remeda": "^1.44.1",
"sass": "^1.71.1",
"tetrio.js": "^1.1.0",
"type-fest": "^4.10.3",
"unocss": "^0.58.5",
Expand Down
60 changes: 39 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

87 changes: 5 additions & 82 deletions src/app.vue
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>&copy; 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
Binary file added src/assets/images/ranks/z.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 0 additions & 27 deletions src/components/app/menus/left.vue

This file was deleted.

49 changes: 0 additions & 49 deletions src/components/app/menus/right.vue

This file was deleted.

Loading

0 comments on commit 9409c9b

Please sign in to comment.