Commit ad223f3
App state tutorial (#1016)
* migrate everything but the page stores section to $app/state
* move redirects from tutorial into handle hooks: keeps all redirects on one place, less prerendered pages for stuff that's increasingly rotten, fixes a bug with the specific redirects not working currently (they were missing from entries)
* replace $app/stores tutorial with $app/state
* bump kit
* small tweaks
* update
* Update apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/01-page-state/index.md
Co-authored-by: Conduitry <[email protected]>
* Update apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/01-page-state/index.md
* Update apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/02-navigating-state/index.md
Co-authored-by: Conduitry <[email protected]>
* Update apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/03-updated-state/index.md
Co-authored-by: Conduitry <[email protected]>
* Update apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/03-updated-state/index.md
* Apply suggestions from code review
* bump, use <page.data.component> directly
* update
* revert
* only update kit
* get the damn thing working
* sure, prettier, let's suddenly start complaining about these files for some reason
* undo some other upgrade that fucked up syntax highlighting for some insane reason. fuck me i fucking hate computers
* i don't fucking believe this
---------
Co-authored-by: Rich Harris <[email protected]>
Co-authored-by: Conduitry <[email protected]>1 parent 989d67f commit ad223f3
File tree
58 files changed
+759
-564
lines changed- apps/svelte.dev
- content/tutorial
- +assets
- 01-svelte/+assets/src/routes
- 02-advanced-svelte/+assets/src/routes
- 03-sveltekit
- 08-app-state
- 01-page-state
- +assets
- app-a/src/routes
- about
- app-b/src/routes
- 03-updated-state
- +assets
- app-a
- src/routes
- about
- app-b/src/routes
- 08-stores
- 01-page-store/+assets/app-b/src/routes
- 09-errors-and-redirects
- 02-error-pages
- +assets/app-b/src/routes
- xx-custom-error-messages
- +assets/app-b/src/routes
- 04-advanced-sveltekit
- 01-hooks/04-handleerror
- +assets/app-b/src/routes
- 03-link-options/01-preload/+assets
- app-a/src/routes
- app-b/src/routes
- 04-advanced-routing
- 02-rest-params/+assets
- app-a/src/routes/[path]
- app-b/src/routes/[...path]
- 03-param-matchers/+assets
- app-a/src/routes/colors/[color]
- app-b/src/routes/colors/[color=hex]
- 05-advanced-loading/01-universal-load-functions
- +assets
- app-a/src/routes
- app-b/src/routes
- scripts/create-tutorial-zip/common
- src
- src
- lib/components
- routes
- (authed)/apps
- tutorial/[...slug]
- filetree
- packages
- editor
- repl
- site-kit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
58 files changed
+759
-564
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
| |||
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
19 | | - | |
| 15 | + | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
24 | | - | |
| 20 | + | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
30 | | - | |
| 26 | + | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
34 | | - | |
| 30 | + | |
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
| 37 | + | |
| 38 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments