initial commit

This commit is contained in:
yangsy
2025-08-13 01:36:30 +08:00
commit 202f83d157
78 changed files with 5896 additions and 0 deletions

12
src/stores/theme.ts Normal file
View File

@@ -0,0 +1,12 @@
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
import { darkTheme, lightTheme } from 'naive-ui'
export const useThemeStore = defineStore('ndm-theme', () => {
const darkThemeEnabled = ref(false)
const themeMode = computed(() => {
return darkThemeEnabled.value ? darkTheme : lightTheme
})
return { darkThemeEnabled, themeMode }
})