@@ -14,27 +14,28 @@ import App from "./App";
1414import  router  from  "./router" ; 
1515import  filters  from  "./plugins/filters" ; 
1616import  store  from  "./store" ; 
17+ import  wb  from  "./registerServiceWorker" ; 
1718
1819import  "./styles/index.styl" ; 
1920
2021Vue . config . productionTip  =  false ; 
21- const  render  =  h  =>  h ( App ) ; 
22+ const  render  =  ( h )  =>  h ( App ) ; 
2223
2324Vue . use ( Toasted ,  { 
2425  position : "bottom-center" , 
2526  duration : 3000 , 
2627  iconPack : "fontawesome" , 
2728  action : { 
2829    icon : "times" , 
29-     onClick : ( e ,  toastObject )  =>  toastObject . goAway ( 0 ) 
30+     onClick : ( e ,  toastObject )  =>  toastObject . goAway ( 0 ) , 
3031  } , 
3132  fitToScreen : true , 
32-   singleton : true 
33+   singleton : true , 
3334} ) ; 
3435
3536Vue . toasted . register ( 
3637  "error_post" , 
37-   payload  =>  { 
38+   ( payload )  =>  { 
3839    const  msg  =  payload . message  ||  "Something went wrong!" ; 
3940    return  `Oops... ${ msg }  ; 
4041  } , 
@@ -43,7 +44,7 @@ Vue.toasted.register(
4344
4445Vue . toasted . register ( 
4546  "success" , 
46-   payload  =>  { 
47+   ( payload )  =>  { 
4748    const  msg  =  payload . message  ||  "Success!" ; 
4849    return  `Yay! ${ msg }  ; 
4950  } , 
@@ -60,21 +61,21 @@ Vue.use(vueMq, {
6061    md : 991 , 
6162    lg : 1367 , 
6263    xl : 1920 , 
63-     xxl : Infinity 
64-   } 
64+     xxl : Infinity , 
65+   } , 
6566} ) ; 
6667
6768Vue . use ( scrollSpy ,  { 
68-   easing : Easing . Cubic . In 
69+   easing : Easing . Cubic . In , 
6970} ) ; 
7071
7172Vue . use ( VueYoutube ) ; 
7273
7374Vue . use ( VueReCaptcha ,  { 
7475  siteKey : "6LepxJ0UAAAAAMGBO1-1PxqQ_Y3TuJGt5DHp5cHk" , 
7576  loaderOptions : { 
76-     useRecaptchaNet : true 
77-   } 
77+     useRecaptchaNet : true , 
78+   } , 
7879} ) ; 
7980
8081Vue . use ( filters ) ; 
@@ -85,31 +86,29 @@ Vue.use(filters);
8586const  app  =  new  Vue ( { 
8687  router, 
8788  store, 
88-   render
89+   render, 
8990} ) . $mount ( "#app" ,  true ) ; 
9091
9192if  ( process . env . NODE_ENV  ===  "production" )  { 
9293  window . ga  =  new  GAnalytics ( "UA-72222745-1" ) ; 
9394
94-   router . afterEach ( nxt  =>  { 
95+   router . afterEach ( ( nxt )  =>  { 
9596    ga . send ( "pageview" ,  { 
96-       dp : nxt . path 
97+       dp : nxt . path , 
9798    } ) ; 
9899  } ) ; 
99100} 
100101
101102// Service Worker registration 
102- if  ( "serviceWorker"  in  navigator )  { 
103-   navigator . serviceWorker . register ( "./sw.js" ) ; 
104- } 
103+ Vue . prototype . $workbox  =  wb ; 
105104
106105const  config  =  { 
107106  apiKey : "AIzaSyDgx3hMDrBTQ6ci9hKg0MMmbR36rBaH6Bo" , 
108107  authDomain : "codefest19.firebaseapp.com" , 
109108  databaseURL : "https://codefest19.firebaseio.com" , 
110109  projectId : "codefest19" , 
111110  storageBucket : "codefest19.appspot.com" , 
112-   messagingSenderId : "800543243585" 
111+   messagingSenderId : "800543243585" , 
113112} ; 
114113
115114firebase . initializeApp ( config ) ; 
0 commit comments