/
main.js
55 lines (44 loc) · 1.3 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Import Vue
import Vue from 'vue'
// Import Vue-i18n
import i18n from './i18n'
// Import F7
import Framework7 from 'framework7'
// Import F7 Vue Plugin
import Framework7Vue from 'framework7-vue'
// Import F7 iOS Theme Styles
import Framework7Theme from 'framework7/dist/css/framework7.ios.min.css'
import Framework7ThemeColors from 'framework7/dist/css/framework7.ios.colors.min.css'
/* OR for Material Theme:
import Framework7Theme from 'framework7/dist/css/framework7.material.min.css'
import Framework7ThemeColors from 'framework7/dist/css/framework7.material.colors.min.css'
*/
// Import Framework7 Icons
import Framework7Icons from 'framework7-icons/css/framework7-icons.css'
// Import Nunito FontFace
import NunitoFontFace from 'nunito-fontface/css/nunito/nunito-fontface.css'
// Import App Custom Styles
import AppStyles from './assets/sass/app.scss'
// Import Routes
import Routes from './routes.js'
// Import App Component
import App from './main.vue'
// Init F7 Vue Plugin
Vue.use(Framework7Vue)
// Init App
new Vue({
el: '#app',
template: '<app/>',
i18n,
// Init Framework7 by passing parameters here
framework7: {
root: '#app',
/* Uncomment to enable Material theme: */
// material: true,
routes: Routes
},
// Register App Component
components: {
app: App
}
});