-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] correctly do fallthrough in simple case (#2072)
- Loading branch information
Showing
15 changed files
with
83 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
[fix] correctly do fallthrough in simple case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...outes/routing/fallthrough/[animal].svelte → ...ting/fallthrough-advanced/[animal].svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...utes/routing/fallthrough/[mineral].svelte → ...ing/fallthrough-advanced/[mineral].svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...es/routing/fallthrough/[vegetable].svelte → ...g/fallthrough-advanced/[vegetable].svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/kit/test/apps/basics/src/routes/routing/fallthrough-advanced/__layout.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<slot></slot> | ||
|
||
<a href="/routing/fallthrough-advanced/aluminium">aluminium</a> | ||
<a href="/routing/fallthrough-advanced/broccoli">broccoli</a> | ||
<a href="/routing/fallthrough-advanced/camel">camel</a> | ||
|
||
<a href="/routing/fallthrough-advanced/potato">potato</a> |
14 changes: 14 additions & 0 deletions
14
packages/kit/test/apps/basics/src/routes/routing/fallthrough-simple/[legal].svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script context="module"> | ||
/** @type {import("@sveltejs/kit").Load} */ | ||
export const load = ({ page }) => { | ||
if (page.path === '/valid') { | ||
return { | ||
props: {} | ||
}; | ||
} else { | ||
return; | ||
} | ||
}; | ||
</script> | ||
|
||
<h1>Legal</h1> |
10 changes: 10 additions & 0 deletions
10
packages/kit/test/apps/basics/src/routes/routing/fallthrough-simple/[page].svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script context="module"> | ||
/** @type {import("@sveltejs/kit").Load} */ | ||
export const load = ({ page }) => { | ||
return { | ||
props: {} | ||
}; | ||
}; | ||
</script> | ||
|
||
<h1>Page</h1> |
7 changes: 0 additions & 7 deletions
7
packages/kit/test/apps/basics/src/routes/routing/fallthrough/__layout.svelte
This file was deleted.
Oops, something went wrong.