-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ditch separate config file, improve examples
- Loading branch information
Showing
20 changed files
with
62 additions
and
191 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
import { StoryComponent, StoryMeta } from '@storylite/storylite' | ||
|
||
export default { | ||
title: 'Demo', | ||
} | ||
title: 'Demos', | ||
} satisfies StoryMeta | ||
|
||
const Demo1: StoryComponent = () => <div style={{ color: 'blue', fontSize: '28px' }}>It Works!</div> | ||
Demo1.storyTitle = 'Demo 1' | ||
|
||
const Demo2: StoryComponent = () => ( | ||
<div style={{ color: 'orange', fontSize: '28px' }}>It Works!</div> | ||
) | ||
Demo2.storyTitle = 'Demo 2' | ||
|
||
export const Demo = () => <div style={{ color: 'blue', fontSize: '28px' }}>It Works!</div> | ||
export { Demo1, Demo2 } |
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,13 @@ | ||
import { StoryComponent, StoryMeta } from '@storylite/storylite' | ||
|
||
export default { | ||
title: 'Welcome', | ||
icon: <span>🏠</span>, | ||
priority: 100, | ||
} satisfies StoryMeta | ||
|
||
export const Main: StoryComponent = () => ( | ||
<div style={{ color: 'green', fontSize: '28px' }}>React Demo Index Page</div> | ||
) | ||
|
||
// Main.storyTitle = 'Main Component' |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,4 @@ dist-ssr | |
*.sln | ||
*.sw? | ||
vite.config.ts.timestamp-* | ||
storylite.config.js | ||
storylite.config.ts | ||
|
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.