This repository was archived by the owner on Oct 13, 2022. It is now read-only.
File tree 10 files changed +31
-35
lines changed
10 files changed +31
-35
lines changed Original file line number Diff line number Diff line change 24
24
"marked" : " ^0.3.7" ,
25
25
"node-fetch" : " ^2.0.0" ,
26
26
"npm-run-all" : " ^4.1.2" ,
27
- "sapper" : " ^0.10.2 " ,
27
+ "sapper" : " ^0.11.1 " ,
28
28
"serve" : " ^6.4.10" ,
29
29
"serve-static" : " ^1.13.1" ,
30
- "svelte" : " ^1.57.1 " ,
30
+ "svelte" : " ^2.4.4 " ,
31
31
"svelte-loader" : " ^2.3.1" ,
32
32
"webpack" : " ^4.1.0"
33
33
},
36
36
},
37
37
"devDependencies" : {
38
38
"git-branch-is" : " ^0.1.0" ,
39
- "now" : " ^10.2.2 "
39
+ "now" : " ^11.1.7 "
40
40
}
41
41
}
Original file line number Diff line number Diff line change 1
- < :Head >
1
+ < svelte:head >
2
2
< title > Sapper • Military-grade progressive web apps, powered by Svelte</ title >
3
- </ :Head >
3
+ </ svelte:head >
4
4
5
5
< Layout >
6
- < h1 > {{ error.message} }</ h1 >
7
- < p > Error code {{ status} }</ p >
6
+ < h1 > {error.message}</ h1 >
7
+ < p > Error code {status}</ p >
8
8
</ Layout >
9
9
10
10
< style >
Original file line number Diff line number Diff line change 1
- < :Head >
1
+ < svelte:head >
2
2
< title > Sapper • Military-grade progressive web apps, powered by Svelte</ title >
3
- </ :Head >
3
+ </ svelte:head >
4
4
5
5
< Layout >
6
6
< h1 > Internal server error</ h1 >
7
- < p > {{ error.message} }</ p >
7
+ < p > {error.message}</ p >
8
8
</ Layout >
9
9
10
10
< style >
Original file line number Diff line number Diff line change 1
1
< ul class ='guide-toc '>
2
- {{ #each $guide_contents as section} }
2
+ {#each $guide_contents as section}
3
3
< li >
4
- < a class ='section {{ section.slug === $activeGuideSection ? "active": ""}} ' href ='guide#{{ section.slug}} '> {{ section.metadata.title} }</ a >
5
- {{ #each section.subsections as subsection} }
6
- < a class ='subsection {{ subsection.slug === $activeGuideSection ? "active": ""}} ' href ='guide#{{ subsection.slug}} '> {{ subsection.title} }</ a >
7
- {{ /each} }
4
+ < a class ='section {section.slug === $activeGuideSection ? "active": ""} ' href ='guide#{section.slug} '> {section.metadata.title}</ a >
5
+ {#each section.subsections as subsection}
6
+ < a class ='subsection {subsection.slug === $activeGuideSection ? "active": ""} ' href ='guide#{subsection.slug} '> {subsection.title}</ a >
7
+ {/each}
8
8
</ li >
9
- {{ /each} }
9
+ {/each}
10
10
</ ul >
11
11
12
12
< style >
Original file line number Diff line number Diff line change 1
- < Nav : page/>
1
+ < Nav { page} />
2
2
3
3
< div >
4
4
< slot > </ slot >
Original file line number Diff line number Diff line change 1
- < div class ='{{ open ? "open": "closed"} } mousecatcher ' on:click ='set({ open: false }) '> </ div >
1
+ < div class ='{open ? "open": "closed"} mousecatcher ' on:click ='set({ open: false }) '> </ div >
2
2
3
3
< div class ='container '>
4
- < span class ="menu-link " on:click ='toggleOpen() '> {{ open ? 'Close' : 'Menu'} }</ span >
4
+ < span class ="menu-link " on:click ='toggleOpen() '> {open ? 'Close' : 'Menu'}</ span >
5
5
< a href ='. ' class ='logo '> Sapper</ a >
6
6
</ div >
7
7
8
- < nav ref:nav class ='{{ open ? "open": "closed"} } ' on:click ='set({ open: false }) '>
8
+ < nav ref:nav class ='{open ? "open": "closed"} ' on:click ='set({ open: false }) '>
9
9
< ul class ='primary '>
10
- < li > < a rel ='prefetch ' class ='{{ page === "guide" ? "active": ""} } ' href ='guide '> Guide</ a > </ li >
10
+ < li > < a rel ='prefetch ' class ='{page === "guide" ? "active": ""} ' href ='guide '> Guide</ a > </ li >
11
11
< li > < a href ='https://gitter.im/sveltejs/svelte '> Chat</ a > </ li >
12
12
< li > < a href ='https://svelte.technology '> Svelte</ a > </ li >
13
13
< li > < a href ='https://github.com/sveltejs/sapper '> GitHub</ a > </ li >
Original file line number Diff line number Diff line change 1
- < :Head >
1
+ < svelte:head >
2
2
< title > Learn Sapper</ title >
3
- </ :Head >
3
+ </ svelte:head >
4
4
5
5
< Layout page ='guide '>
6
6
< div ref:container class ='content '>
7
- {{ #each sections as section} }
8
- < section id ='{{ section.slug} } '>
7
+ {#each sections as section}
8
+ < section id ='{section.slug} '>
9
9
< h2 >
10
- {{ section.metadata.title} }
11
- < small > < a href ='https://github.com/sveltejs/sapper.svelte.technology/edit/master/content/guide/{{ section.file} } '> edit this section</ a > </ small >
10
+ {section.metadata.title}
11
+ < small > < a href ='https://github.com/sveltejs/sapper.svelte.technology/edit/master/content/guide/{section.file} '> edit this section</ a > </ small >
12
12
</ h2 >
13
13
14
- {{{ section.html}} }
14
+ {@html section.html}
15
15
</ section >
16
- {{ /each} }
16
+ {/each}
17
17
</ div >
18
18
19
19
< div class ='sidebar '>
Original file line number Diff line number Diff line change 1
- < :Head >
1
+ < svelte:head >
2
2
< title > Sapper • Military-grade progressive web apps, powered by Svelte</ title >
3
- </ :Head >
3
+ </ svelte:head >
4
4
5
5
< Layout >
6
6
< div class ='hero '>
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ module.exports = {
19
19
loader : 'svelte-loader' ,
20
20
options : {
21
21
hydratable : true ,
22
- cascade : false ,
23
- store : true ,
24
22
hotReload : true
25
23
}
26
24
}
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ module.exports = {
20
20
loader : 'svelte-loader' ,
21
21
options : {
22
22
css : false ,
23
- cascade : false ,
24
- store : true ,
25
23
generate : 'ssr'
26
24
}
27
25
}
You can’t perform that action at this time.
0 commit comments