feat: 添加bbs前端
This commit is contained in:
18
Yi.BBS.Vue2/src/plugins/theme/dark.js
Normal file
18
Yi.BBS.Vue2/src/plugins/theme/dark.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import colors from 'vuetify/lib/util/colors'
|
||||
|
||||
export default {
|
||||
white: '#1E1E1E',
|
||||
grey: {
|
||||
lighten5: '#363636'
|
||||
}
|
||||
}
|
||||
// const color = {
|
||||
// primary: '#1976D2',
|
||||
// secondary: '#424242',
|
||||
// accent: '#82B1FF',
|
||||
// error: '#FF5252',
|
||||
// info: '#2196F3',
|
||||
// success: '#4CAF50',
|
||||
// warning: '#FFC107',
|
||||
// }
|
||||
// export default color
|
||||
19
Yi.BBS.Vue2/src/plugins/theme/light.js
Normal file
19
Yi.BBS.Vue2/src/plugins/theme/light.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import colors from 'vuetify/lib/util/colors'
|
||||
import store from "../../store/index"
|
||||
|
||||
// export default {
|
||||
// primary: {
|
||||
// base: colors.primary.base,
|
||||
// darken1: colors.primary.base1
|
||||
// },
|
||||
// secondary: colors.secondary,
|
||||
// // 所有的键将生成主题样式,
|
||||
// // 这里我们添加一个自定义的 `tertiary` 颜色
|
||||
// tertiary: colors.tertiary
|
||||
// }
|
||||
const color = {
|
||||
// cyan: '#FF9900',
|
||||
// blue: '#663300'
|
||||
|
||||
};
|
||||
export default color
|
||||
21
Yi.BBS.Vue2/src/plugins/vuetify.js
Normal file
21
Yi.BBS.Vue2/src/plugins/vuetify.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import Vue from 'vue'
|
||||
import Vuetify from 'vuetify/lib'
|
||||
import light from './theme/light'
|
||||
import dark from './theme/dark'
|
||||
import 'typeface-roboto/index.css' // 引入本地的Roboto字体资源
|
||||
import '@mdi/font/css/materialdesignicons.css' // 引入本地的Material Design Icons资源
|
||||
Vue.use(Vuetify)
|
||||
|
||||
import en from 'vuetify/lib/locale/en';
|
||||
import zhHans from 'vuetify/lib/locale/zh-Hans';
|
||||
import ja from 'vuetify/lib/locale/ja';
|
||||
|
||||
export default new Vuetify({
|
||||
lang: {
|
||||
locales: { en, zhHans, ja },
|
||||
current: 'zhHans',
|
||||
},
|
||||
theme: {
|
||||
themes: { light, dark },
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user