-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25132 from paoloricciuti/fix-sveltekit-other-app-…
…modules SvelteKit: Fix missing `$app` modules
- Loading branch information
Showing
9 changed files
with
71 additions
and
1 deletion.
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
8 changes: 8 additions & 0 deletions
8
code/frameworks/sveltekit/template/stories_svelte-kit-skeleton-js/Environment.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,8 @@ | ||
<script> | ||
import { browser, dev, building, version } from '$app/environment'; | ||
</script> | ||
|
||
<div data-testid="browser">{browser}</div> | ||
<div data-testid="dev">{dev}</div> | ||
<div data-testid="building">{building}</div> | ||
<div data-testid="version">{version}</div> |
6 changes: 6 additions & 0 deletions
6
code/frameworks/sveltekit/template/stories_svelte-kit-skeleton-js/Paths.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,6 @@ | ||
<script> | ||
import { assets, base } from "$app/paths"; | ||
</script> | ||
|
||
<div data-testid="assets">{assets}</div> | ||
<div data-testid="base">{base}</div> |
10 changes: 10 additions & 0 deletions
10
code/frameworks/sveltekit/template/stories_svelte-kit-skeleton-js/environment.stories.js
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 @@ | ||
import { expect, fn, within } from '@storybook/test'; | ||
import Environment from './Environment.svelte'; | ||
|
||
export default { | ||
title: 'stories/sveltekit/modules/environment', | ||
component: Environment, | ||
tags: ['autodocs'], | ||
}; | ||
|
||
export const Default = {}; |
10 changes: 10 additions & 0 deletions
10
code/frameworks/sveltekit/template/stories_svelte-kit-skeleton-js/paths.stories.js
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 @@ | ||
import { expect, fn, within } from '@storybook/test'; | ||
import Paths from './Paths.svelte'; | ||
|
||
export default { | ||
title: 'stories/sveltekit/modules/paths', | ||
component: Paths, | ||
tags: ['autodocs'], | ||
}; | ||
|
||
export const Default = {}; |
8 changes: 8 additions & 0 deletions
8
code/frameworks/sveltekit/template/stories_svelte-kit-skeleton-ts/Environment.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,8 @@ | ||
<script> | ||
import { browser, dev, building, version } from '$app/environment'; | ||
</script> | ||
|
||
<div data-testid="browser">{browser}</div> | ||
<div data-testid="dev">{dev}</div> | ||
<div data-testid="building">{building}</div> | ||
<div data-testid="version">{version}</div> |
6 changes: 6 additions & 0 deletions
6
code/frameworks/sveltekit/template/stories_svelte-kit-skeleton-ts/Paths.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,6 @@ | ||
<script> | ||
import { assets, base } from "$app/paths"; | ||
</script> | ||
|
||
<div data-testid="assets">{assets}</div> | ||
<div data-testid="base">{base}</div> |
10 changes: 10 additions & 0 deletions
10
code/frameworks/sveltekit/template/stories_svelte-kit-skeleton-ts/environment.stories.js
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 @@ | ||
import { expect, fn, within } from '@storybook/test'; | ||
import Environment from './Environment.svelte'; | ||
|
||
export default { | ||
title: 'stories/sveltekit/modules/environment', | ||
component: Environment, | ||
tags: ['autodocs'], | ||
}; | ||
|
||
export const Default = {}; |
10 changes: 10 additions & 0 deletions
10
code/frameworks/sveltekit/template/stories_svelte-kit-skeleton-ts/paths.stories.js
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 @@ | ||
import { expect, fn, within } from '@storybook/test'; | ||
import Paths from './Paths.svelte'; | ||
|
||
export default { | ||
title: 'stories/sveltekit/modules/paths', | ||
component: Paths, | ||
tags: ['autodocs'], | ||
}; | ||
|
||
export const Default = {}; |