File tree Expand file tree Collapse file tree 3 files changed +32
-26
lines changed Expand file tree Collapse file tree 3 files changed +32
-26
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<!-- App -->
3
- <div id = " app " >
3
+ <f7-app :params = " f7params " >
4
4
5
5
<!-- Statusbar -->
6
6
<f7-statusbar ></f7-statusbar >
60
60
</f7-view >
61
61
</f7-login-screen >
62
62
63
- </div >
63
+ </f7-app >
64
64
</template >
65
65
66
66
<script >
67
- export default {}
67
+ // Import Routes
68
+ import routes from ' ./routes.js'
69
+
70
+ export default {
71
+ data () {
72
+ return {
73
+ // Framework7 parameters here
74
+ f7params: {
75
+ id: ' io.framework7.testapp' , // App bundle ID
76
+ name: ' Framework7' , // App name
77
+ theme: ' auto' , // Automatic theme detection
78
+ // App routes
79
+ routes: routes,
80
+ // Any other parameters, e.g.
81
+ panel: {
82
+ swipe: ' left'
83
+ },
84
+ navbar: {
85
+ hideOnPageScroll: true
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
68
91
</script >
Original file line number Diff line number Diff line change 3
3
/* eslint-disable no-new */
4
4
5
5
import Vue from 'vue'
6
- import Framework7 from 'framework7/dist/ framework7.esm.bundle.js'
7
- import Framework7Vue from 'framework7-vue/dist/ framework7-vue.esm.bundle.js'
6
+ import Framework7 from 'framework7/framework7.esm.bundle.js'
7
+ import Framework7Vue from 'framework7-vue/framework7-vue.esm.bundle.js'
8
8
import axios from 'axios'
9
- import Routes from './routes.js'
10
9
import App from './app'
11
- import Framework7Styles from 'framework7/dist/ css/framework7.css'
10
+ import Framework7Styles from 'framework7/css/framework7.css'
12
11
import AppStyles from './css/app.less'
13
12
14
13
Vue . config . productionTip = false
15
- Vue . use ( Framework7Vue , Framework7 )
14
+ Framework7 . use ( Framework7Vue )
16
15
17
16
new Vue ( {
18
17
el : '#app' ,
@@ -27,21 +26,5 @@ new Vue({
27
26
AppStyles : AppStyles ,
28
27
axios : axios
29
28
}
30
- } ,
31
- // Init Framework7 by passing parameters here
32
- framework7 : {
33
- id : 'me.appbase.testapp' , // App bundle ID
34
- name : 'Appbase' , // App name
35
- theme : 'auto' , // Automatic theme detection
36
- routes : Routes ,
37
- // Any other parameters, e.g.
38
- panel : {
39
- swipe : 'left' ,
40
- leftBreakpoint : 1216 ,
41
- rightBreakpoint : 1408
42
- } ,
43
- navbar : {
44
- hideOnPageScroll : true
45
- }
46
29
}
47
30
} )
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<f7-page >
3
- <f7-navbar title =" Right Panel" sliding ></f7-navbar >
4
- <f7-block >
3
+ <f7-navbar title =" Right Panel" ></f7-navbar >
4
+ <f7-block strong >
5
5
<p >Right panel content goes here</p >
6
6
</f7-block >
7
7
<f7-block-title >Load page in panel</f7-block-title >
You can’t perform that action at this time.
0 commit comments