File tree 3 files changed +27
-28
lines changed
examples/phonon-and-riot/src/tags
3 files changed +27
-28
lines changed Original file line number Diff line number Diff line change 13
13
PageTwo,
14
14
},
15
15
onMounted () {
16
- setTimeout (() => {
17
- phonon .options ({
18
- navigator : {
19
- defaultPage: ' home' ,
20
- animatePages: true ,
21
- enableBrowserBackButton: true ,
22
- templateRootDirectory: ' ./tpl' ,
23
- },
24
- i18n: null , // for this example, we do not use internationalization
25
- });
26
- const app = phonon .navigator ();
16
+ phonon .options ({
17
+ navigator : {
18
+ defaultPage: ' home' ,
19
+ animatePages: true ,
20
+ enableBrowserBackButton: true ,
21
+ templateRootDirectory: ' ./tpl' ,
22
+ },
23
+ i18n: null , // for this example, we do not use internationalization
24
+ });
27
25
28
- app . on ({ page : ' home ' , preventClose : false , content : null } );
26
+ const app = phonon . navigator ( );
29
27
30
- app .on ({
31
- page: ' pagetwo' ,
32
- preventClose: true ,
33
- content: null ,
34
- readyDelay: 1 ,
35
- });
28
+ app .on ({ page: ' home' , preventClose: false , content: null });
36
29
37
- app .start ();
38
- }, 1000 );
30
+ app .on ({
31
+ page: ' pagetwo' ,
32
+ preventClose: true ,
33
+ content: null ,
34
+ readyDelay: 1 ,
35
+ });
36
+
37
+ app .start ();
39
38
},
40
39
};
41
40
</script >
Original file line number Diff line number Diff line change 7
7
</header >
8
8
<div class =" content" >
9
9
<ul class =" list" >
10
- <li class =" divider" >Select a pizza</li >
11
- <li ><a class =" padded-list" href =" #!pagetwo/margherita" >Margherita</a ></li >
12
- <li ><a class =" padded-list" href =" #!pagetwo/calzone" >Cheese Calzone</a ></li >
13
- <li ><a class =" padded-list" href =" #!pagetwo/pesto" >Pesto Pizza</a ></li >
14
- <li ><a class =" padded-list" href =" #!pagetwo/roma" >Roma</a ></li >
15
- <li ><a class =" padded-list" href =" #!pagetwo/prosciutto" >Prosciutto</a ></li >
16
- <li ><a class =" padded-list" href =" #!pagetwo/funghi" >Funghi</a ></li >
10
+ <li class =" divider" >Select a pizza</li >
11
+ <li ><a class =" padded-list" href =" #!pagetwo/margherita" >Margherita</a ></li >
12
+ <li ><a class =" padded-list" href =" #!pagetwo/calzone" >Cheese Calzone</a ></li >
13
+ <li ><a class =" padded-list" href =" #!pagetwo/pesto" >Pesto Pizza</a ></li >
14
+ <li ><a class =" padded-list" href =" #!pagetwo/roma" >Roma</a ></li >
15
+ <li ><a class =" padded-list" href =" #!pagetwo/prosciutto" >Prosciutto</a ></li >
16
+ <li ><a class =" padded-list" href =" #!pagetwo/funghi" >Funghi</a ></li >
17
17
</ul >
18
18
</div >
19
19
</div >
Original file line number Diff line number Diff line change 20
20
21
21
<script >
22
22
import phonon from ' phonon/dist/js/phonon-core' ;
23
- import dialogs from ' ../../../.. /dist/js/components/dialogs' ;
23
+ import dialogs from ' phonon /dist/js/components/dialogs' ;
24
24
25
25
const { alert } = dialogs ();
26
26
You can’t perform that action at this time.
0 commit comments