修改前端

This commit is contained in:
橙子
2021-10-11 15:45:59 +08:00
parent 23461b15a9
commit 0aa09f6a03
72 changed files with 1603 additions and 144 deletions

20
Yi.Vue/src/plugins/app.js Normal file
View File

@@ -0,0 +1,20 @@
/**
* plugins/app.js
*
* Automatically loads and bootstraps files
* in the `./src/components/` folder.
*/
// Imports
import Vue from 'vue'
const requireComponent = require.context('@/components', true, /\.vue$/)
for (const file of requireComponent.keys()) {
const componentConfig = requireComponent(file)
Vue.component(
componentConfig.default.name,
componentConfig.default || componentConfig,
)
}

View File

@@ -0,0 +1,4 @@
import Vue from 'vue'
import 'chartist/dist/chartist.min.css'
Vue.use(require('vue-chartist'))

View File

@@ -0,0 +1,6 @@
// Automatically included in './src/main.js'
import './app'
import './chartist'
// import './webfontloader'
// import './vue-meta'

View File

@@ -0,0 +1,30 @@
// Vuetify Documentation https://vuetifyjs.com
import Vue from 'vue'
import Vuetify from 'vuetify/lib/framework'
import ripple from 'vuetify/lib/directives/ripple'
Vue.use(Vuetify, { directives: { ripple } })
const theme = {
primary: '#E91E63',
secondary: '#9C27b0',
accent: '#e91e63',
info: '#00CAE3',
success: '#4CAF50',
warning: '#FB8C00',
error: '#FF5252',
}
export default new Vuetify({
breakpoint: { mobileBreakpoint: 960 },
icons: {
values: { expand: 'mdi-menu-down' },
},
theme: {
themes: {
dark: theme,
light: theme,
},
},
})