File tree 8 files changed +166
-53
lines changed
8 files changed +166
-53
lines changed Original file line number Diff line number Diff line change 8
8
"lint" : " vue-cli-service lint"
9
9
},
10
10
"dependencies" : {
11
+ "@mdi/font" : " 5.9.55" ,
11
12
"core-js" : " ^3.6.5" ,
12
13
"register-service-worker" : " ^1.7.1" ,
14
+ "roboto-fontface" : " *" ,
13
15
"vue" : " ^2.6.11" ,
14
16
"vue-class-component" : " ^7.2.3" ,
15
17
"vue-property-decorator" : " ^9.1.2" ,
16
18
"vue-router" : " ^3.2.0" ,
19
+ "vuetify" : " ^2.4.0" ,
17
20
"vuex" : " ^3.4.0"
18
21
},
19
22
"devDependencies" : {
32
35
"eslint-plugin-prettier" : " ^3.3.1" ,
33
36
"eslint-plugin-vue" : " ^6.2.2" ,
34
37
"prettier" : " ^2.2.1" ,
35
- "sass" : " ^1.26.5 " ,
36
- "sass-loader" : " ^8 .0.2 " ,
38
+ "sass" : " ~1.32.0 " ,
39
+ "sass-loader" : " ^10 .0.0 " ,
37
40
"typescript" : " ~4.1.5" ,
38
- "vue-template-compiler" : " ^2.6.11"
41
+ "vue-cli-plugin-vuetify" : " ~2.4.1" ,
42
+ "vue-template-compiler" : " ^2.6.11" ,
43
+ "vuetify-loader" : " ^1.7.0"
39
44
}
40
45
}
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
- < html lang ="">
2
+ < html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ import App from "./App.vue";
3
3
import "./registerServiceWorker" ;
4
4
import router from "./router" ;
5
5
import store from "./store" ;
6
+ import vuetify from "./plugins/vuetify" ;
6
7
7
8
Vue . config . productionTip = false ;
8
9
9
10
new Vue ( {
10
11
router,
11
12
store,
13
+ vuetify,
12
14
render : ( h ) => h ( App ) ,
13
15
} ) . $mount ( "#app" ) ;
Original file line number Diff line number Diff line change
1
+ import Vue from "vue" ;
2
+ import Vuetify from "vuetify/lib/framework" ;
3
+
4
+ Vue . use ( Vuetify ) ;
5
+
6
+ export default new Vuetify ( {
7
+ theme : {
8
+ options : {
9
+ customProperties : true ,
10
+ } ,
11
+ themes : {
12
+ light : {
13
+ primary : "#007BFF" ,
14
+ secondary : "#424242" ,
15
+ accent : "#82B1FF" ,
16
+ error : "#FF5252" ,
17
+ info : "#2196F3" ,
18
+ success : "#4CAF50" ,
19
+ warning : "#FFC107" ,
20
+ } ,
21
+ } ,
22
+ } ,
23
+ } ) ;
Original file line number Diff line number Diff line change 1
- import Vue from "vue" ;
2
- import VueRouter , { RouteConfig } from "vue-router" ;
3
- import Home from "../views/Home.vue" ;
1
+ import Vue from 'vue' ;
2
+ import VueRouter , { RouteConfig } from 'vue-router' ;
4
3
5
4
Vue . use ( VueRouter ) ;
6
5
7
6
const routes : Array < RouteConfig > = [
8
7
{
9
- path : "/" ,
10
- name : " Home" ,
11
- component : Home ,
8
+ path : '/' ,
9
+ name : ' Home' ,
10
+ component : ( ) => import ( /* webpackChunkName: "home" */ '../views/ Home.vue' ) ,
12
11
} ,
13
12
{
14
- path : "/about" ,
15
- name : "About" ,
16
- // route level code-splitting
17
- // this generates a separate chunk (about.[hash].js) for this route
18
- // which is lazy-loaded when the route is visited.
13
+ path : '/about' ,
14
+ name : 'About' ,
19
15
component : ( ) =>
20
- import ( /* webpackChunkName: "about" */ " ../views/About.vue" ) ,
16
+ import ( /* webpackChunkName: "about" */ ' ../views/About.vue' ) ,
21
17
} ,
22
18
] ;
23
19
24
20
const router = new VueRouter ( {
25
- mode : " history" ,
21
+ mode : ' history' ,
26
22
base : process . env . BASE_URL ,
27
23
routes,
28
24
} ) ;
Original file line number Diff line number Diff line change
1
+ declare module "vuetify/lib/framework" {
2
+ import Vuetify from "vuetify" ;
3
+ export default Vuetify ;
4
+ }
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ transpileDependencies : [ "vuetify" ] ,
3
+ } ;
You can’t perform that action at this time.
0 commit comments