fix(storybook): update storybook generation templates
This commit is contained in:
24
web/.storybook/tools/Emoji.template
Normal file
24
web/.storybook/tools/Emoji.template
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Canvas, Meta, Story, IconGallery, IconItem } from '@storybook/addon-docs';
|
||||
import { Image, ImageRow } from './ImageAsset';
|
||||
|
||||
<Meta title="owncast/Frontend Assets/Emoji" parameters=\{{previewTabs: { canvas: { hidden: true } }, chromatic: { disableSnapshot: true }}} />
|
||||
|
||||
# Built-in Custom Emoji
|
||||
|
||||
{{#each emojiCollections}}
|
||||
|
||||
## {{capitalize this.name}}
|
||||
|
||||
<a href="img/emoji/{{this.name}}/LICENSE.md" target="_blank">
|
||||
LICENSE
|
||||
</a>
|
||||
|
||||
<IconGallery>
|
||||
{{#each images}}
|
||||
<IconItem name="{{this.name}}">
|
||||
<img src="{{this.src}}" />
|
||||
</IconItem>
|
||||
{{/each}}
|
||||
</IconGallery>
|
||||
|
||||
{{/each}}
|
||||
Reference in New Issue
Block a user