packages/react/react-application/stories/index.stories.tsx (30 lines of code) (raw):

import * as React from 'react'; import Application from '../src'; import Skeleton from '../src/Skeleton'; import { storiesOf } from '@storybook/react'; import { start } from '@alicloud/console-os-kernal'; start({ sandBox: { disable: false } }) storiesOf('Console Application', module) .add('With Manifest', () => { return ( <Application id="sc-assets-trade-order" manifest="http://30.37.65.55/project/file/sc-assets-trade-order/build/micro-service/bc-shipping-address-linx.manifest.json" /> ) }) .add('With Error', () => { return ( <Application id="os-example" manifest="https://g.alicdn.com/ConsoleOS/OSExample/0.0.2/os-example.manifest.json" /> ) }) .add('Skeleton', () => { return ( <Skeleton active /> ) }) start()