mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-31 05:03:21 +08:00
Simpler server addons
This commit is contained in:
parent
4703c15e55
commit
69653e02d7
@ -1,6 +1,6 @@
|
||||
{
|
||||
"title": "Kitchen Sink",
|
||||
"addons": ["a11y", "knobs", "actions", "links"],
|
||||
"addons": ["knobs", "actions"],
|
||||
"parameters": {
|
||||
"backgrounds": [
|
||||
{ "name": "light", "value": "#eeeeee" },
|
||||
|
@ -1,16 +1,12 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`json-to-csf-compiler kitchen_sink.json 1`] = `
|
||||
"import { withA11y } from '@storybook/addon-a11y';
|
||||
import { withLinks } from '@storybook/addon-links';
|
||||
import { array, boolean, color, date, number, object, select, text, withKnobs } from '@storybook/addon-knobs';
|
||||
"import { array, boolean, color, date, number, object, select, text, withKnobs } from '@storybook/addon-knobs';
|
||||
import { withActions } from '@storybook/addon-actions';
|
||||
|
||||
export default {
|
||||
title: 'Kitchen Sink',
|
||||
decorators: [
|
||||
withA11y,
|
||||
withLinks,
|
||||
withKnobs
|
||||
],
|
||||
parameters: {
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"title": "Welcome",
|
||||
"addons": ["links"],
|
||||
"stories": [
|
||||
{
|
||||
"name": "Welcome",
|
||||
|
@ -1,13 +1,9 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`json-to-csf-compiler links.json 1`] = `
|
||||
"import { withLinks } from '@storybook/addon-links';
|
||||
|
||||
"
|
||||
export default {
|
||||
title: 'Welcome',
|
||||
decorators: [
|
||||
withLinks
|
||||
],
|
||||
};
|
||||
|
||||
export const Welcome = () => {};
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { addParameters, addDecorator } from '@storybook/server';
|
||||
import { withA11y } from '@storybook/addon-a11y';
|
||||
import { withLinks } from '@storybook/addon-links';
|
||||
|
||||
addDecorator(withA11y);
|
||||
addDecorator(withLinks);
|
||||
|
||||
const port = process.env.SERVER_PORT || 1337;
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"title": "Addons/a11y",
|
||||
"addons": ["a11y"],
|
||||
"parameters": {
|
||||
"options": { "selectedPanel": "storybook/a11y/panel" }
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"title": "Kitchen Sink",
|
||||
"addons": ["a11y", "knobs", "actions", "links"],
|
||||
"addons": ["knobs", "actions"],
|
||||
"parameters": {
|
||||
"backgrounds": [
|
||||
{ "name": "light", "value": "#eeeeee" },
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"title": "Welcome",
|
||||
"addons": ["links"],
|
||||
"stories": [
|
||||
{
|
||||
"name": "Welcome",
|
||||
|
Loading…
x
Reference in New Issue
Block a user