Skip to content

Feature/markdown #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 14, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
repair storybook
  • Loading branch information
ShMcK committed Jul 14, 2019
commit 75f23e1f74755ed6a04dccd0206f29d83e6644cc
3 changes: 3 additions & 0 deletions web-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# storybook
storybook-static
7 changes: 6 additions & 1 deletion web-app/src/utils/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { Action } from 'typings'

declare var acquireVsCodeApi: any

const vscode = acquireVsCodeApi()
// @ts-ignore
const vscode = window.acquireVsCodeApi ? acquireVsCodeApi() : {
postMessage(event: string) {
console.log('postMessage', event)
}
}

export function send(event: string | Action) {
return vscode.postMessage(event)
Expand Down
6 changes: 3 additions & 3 deletions web-app/stories/Level.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'

import { storiesOf } from '@storybook/react'
import { object, withKnobs } from '@storybook/addon-knobs'
import { linkTo } from '@storybook/addon-links'
import { withKnobs, object } from '@storybook/addon-knobs'
import { storiesOf } from '@storybook/react'
import SideBarDecorator from './utils/SideBarDecorator'

import Level from '../src/components/Level'
Expand All @@ -13,7 +13,7 @@ storiesOf('Tutorial SideBar', module)
.addDecorator(withKnobs)
.add('Level', () => (
<Level
level={object('level', demo.data.levels['level1Id'])}
level={object('level', demo.data.levels.level1Id)}
stages={object('stages', {
stage1Id: {
stepList: [],
Expand Down