File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 2121npm-debug.log *
2222yarn-debug.log *
2323yarn-error.log *
24+
25+ # storybook
26+ storybook-static
Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ import { Action } from 'typings'
22
33declare var acquireVsCodeApi : any
44
5- const vscode = acquireVsCodeApi ( )
5+ // @ts -ignore
6+ const vscode = window . acquireVsCodeApi ? acquireVsCodeApi ( ) : {
7+ postMessage ( event : string ) {
8+ console . log ( 'postMessage' , event )
9+ }
10+ }
611
712export function send ( event : string | Action ) {
813 return vscode . postMessage ( event )
Original file line number Diff line number Diff line change 11import React from 'react'
22
3- import { storiesOf } from '@storybook/react '
3+ import { object , withKnobs } from '@storybook/addon-knobs '
44import { linkTo } from '@storybook/addon-links'
5- import { withKnobs , object } from '@storybook/addon-knobs '
5+ import { storiesOf } from '@storybook/react '
66import SideBarDecorator from './utils/SideBarDecorator'
77
88import Level from '../src/components/Level'
@@ -13,7 +13,7 @@ storiesOf('Tutorial SideBar', module)
1313 . addDecorator ( withKnobs )
1414 . add ( 'Level' , ( ) => (
1515 < Level
16- level = { object ( 'level' , demo . data . levels [ ' level1Id' ] ) }
16+ level = { object ( 'level' , demo . data . levels . level1Id ) }
1717 stages = { object ( 'stages' , {
1818 stage1Id : {
1919 stepList : [ ] ,
You can’t perform that action at this time.
0 commit comments