Move software files one directory up, Readme
This commit is contained in:
14
src/plugins/i18n.ts
Normal file
14
src/plugins/i18n.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createI18n } from "vue-i18n";
|
||||
import german from '../locales/de.json'
|
||||
import english from '../locales/en.json'
|
||||
|
||||
type MessageSchema = typeof german
|
||||
|
||||
export const i18n = createI18n<[MessageSchema], 'de' | 'en'>({
|
||||
legacy: true,
|
||||
locale: 'de',
|
||||
messages: {
|
||||
'de': german,
|
||||
'en': english
|
||||
}
|
||||
})
|
||||
5
src/plugins/pinia.ts
Normal file
5
src/plugins/pinia.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { createPinia } from "pinia"
|
||||
|
||||
const pinia = createPinia()
|
||||
|
||||
export default pinia
|
||||
10
src/plugins/router.ts
Normal file
10
src/plugins/router.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
import routes from '../router/routes'
|
||||
|
||||
// Router configuration
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
||||
36
src/plugins/vuetify.ts
Normal file
36
src/plugins/vuetify.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
// Vuetify & Material icons imports
|
||||
import 'vuetify/styles'
|
||||
import '@mdi/font/css/materialdesignicons.css'
|
||||
import { createVuetify } from 'vuetify/lib/framework.mjs'
|
||||
import * as components from 'vuetify/components'
|
||||
import * as directives from 'vuetify/directives'
|
||||
import colors from 'vuetify/util/colors'
|
||||
|
||||
// Vuetify config
|
||||
const vuetify = createVuetify({
|
||||
components,
|
||||
directives,
|
||||
theme: {
|
||||
defaultTheme: 'dark',
|
||||
themes: {
|
||||
dark: {
|
||||
dark: true,
|
||||
colors: {
|
||||
primary: colors.blue.darken4,
|
||||
secondary: colors.yellow.darken3,
|
||||
sheet: colors.grey.darken4
|
||||
}
|
||||
},
|
||||
light: {
|
||||
dark: false,
|
||||
colors: {
|
||||
primary: colors.blue.darken4,
|
||||
secondary: colors.yellow.darken3,
|
||||
sheet: colors.grey.lighten3
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
export default vuetify
|
||||
Reference in New Issue
Block a user