feat: project init

This commit is contained in:
skytek_xinliang
2026-03-26 10:08:35 +08:00
commit 507afcc99c
36 changed files with 4430 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Plugins
Plugins are a way to extend the functionality of your Vue application. Use this folder for registering plugins that you want to use globally.
+21
View File
@@ -0,0 +1,21 @@
import { createI18n } from 'vue-i18n'
const messages = {
en: {
message: {
hello: 'hello world',
},
},
ja: {
message: {
hello: 'こんにちは、世界',
},
},
}
export default createI18n({
legacy: false,
locale: 'en',
fallbackLocale: 'en',
messages,
})
+19
View File
@@ -0,0 +1,19 @@
// Types
import type { App } from 'vue'
import { createPinia } from 'pinia'
import router from '../router'
/**
* plugins/index.ts
*
* Automatically included in `./src/main.ts`
*/
import i18n from './i18n'
// Plugins
import vuetify from './vuetify'
export function registerPlugins(app: App) {
app.use(vuetify)
app.use(createPinia())
app.use(i18n)
app.use(router)
}
+25
View File
@@ -0,0 +1,25 @@
/**
* plugins/vuetify.ts
*
* Framework documentation: https://vuetifyjs.com`
*/
// Composables
import { createVuetify } from 'vuetify'
import { aliases, mdi } from 'vuetify/iconsets/mdi-svg'
import themes from '@/styles/themes'
import 'vuetify/styles'
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
export default createVuetify({
icons: {
defaultSet: 'mdi',
aliases,
sets: { mdi },
},
theme: {
defaultTheme: 'themeBlueSky',
themes,
},
})