@@ -14,27 +14,28 @@ import App from "./App";
14
14
import router from "./router" ;
15
15
import filters from "./plugins/filters" ;
16
16
import store from "./store" ;
17
+ import wb from "./registerServiceWorker" ;
17
18
18
19
import "./styles/index.styl" ;
19
20
20
21
Vue . config . productionTip = false ;
21
- const render = h => h ( App ) ;
22
+ const render = ( h ) => h ( App ) ;
22
23
23
24
Vue . use ( Toasted , {
24
25
position : "bottom-center" ,
25
26
duration : 3000 ,
26
27
iconPack : "fontawesome" ,
27
28
action : {
28
29
icon : "times" ,
29
- onClick : ( e , toastObject ) => toastObject . goAway ( 0 )
30
+ onClick : ( e , toastObject ) => toastObject . goAway ( 0 ) ,
30
31
} ,
31
32
fitToScreen : true ,
32
- singleton : true
33
+ singleton : true ,
33
34
} ) ;
34
35
35
36
Vue . toasted . register (
36
37
"error_post" ,
37
- payload => {
38
+ ( payload ) => {
38
39
const msg = payload . message || "Something went wrong!" ;
39
40
return `Oops... ${ msg } ` ;
40
41
} ,
@@ -43,7 +44,7 @@ Vue.toasted.register(
43
44
44
45
Vue . toasted . register (
45
46
"success" ,
46
- payload => {
47
+ ( payload ) => {
47
48
const msg = payload . message || "Success!" ;
48
49
return `Yay! ${ msg } ` ;
49
50
} ,
@@ -60,21 +61,21 @@ Vue.use(vueMq, {
60
61
md : 991 ,
61
62
lg : 1367 ,
62
63
xl : 1920 ,
63
- xxl : Infinity
64
- }
64
+ xxl : Infinity ,
65
+ } ,
65
66
} ) ;
66
67
67
68
Vue . use ( scrollSpy , {
68
- easing : Easing . Cubic . In
69
+ easing : Easing . Cubic . In ,
69
70
} ) ;
70
71
71
72
Vue . use ( VueYoutube ) ;
72
73
73
74
Vue . use ( VueReCaptcha , {
74
75
siteKey : "6LepxJ0UAAAAAMGBO1-1PxqQ_Y3TuJGt5DHp5cHk" ,
75
76
loaderOptions : {
76
- useRecaptchaNet : true
77
- }
77
+ useRecaptchaNet : true ,
78
+ } ,
78
79
} ) ;
79
80
80
81
Vue . use ( filters ) ;
@@ -85,31 +86,29 @@ Vue.use(filters);
85
86
const app = new Vue ( {
86
87
router,
87
88
store,
88
- render
89
+ render,
89
90
} ) . $mount ( "#app" , true ) ;
90
91
91
92
if ( process . env . NODE_ENV === "production" ) {
92
93
window . ga = new GAnalytics ( "UA-72222745-1" ) ;
93
94
94
- router . afterEach ( nxt => {
95
+ router . afterEach ( ( nxt ) => {
95
96
ga . send ( "pageview" , {
96
- dp : nxt . path
97
+ dp : nxt . path ,
97
98
} ) ;
98
99
} ) ;
99
100
}
100
101
101
102
// Service Worker registration
102
- if ( "serviceWorker" in navigator ) {
103
- navigator . serviceWorker . register ( "./sw.js" ) ;
104
- }
103
+ Vue . prototype . $workbox = wb ;
105
104
106
105
const config = {
107
106
apiKey : "AIzaSyDgx3hMDrBTQ6ci9hKg0MMmbR36rBaH6Bo" ,
108
107
authDomain : "codefest19.firebaseapp.com" ,
109
108
databaseURL : "https://codefest19.firebaseio.com" ,
110
109
projectId : "codefest19" ,
111
110
storageBucket : "codefest19.appspot.com" ,
112
- messagingSenderId : "800543243585"
111
+ messagingSenderId : "800543243585" ,
113
112
} ;
114
113
115
114
firebase . initializeApp ( config ) ;
0 commit comments