Giter Site home page Giter Site logo

modulor-storybook's People

Contributors

nogizhopaboroda avatar nvignola avatar pankajpatel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

modulor-storybook's Issues

Semver?

Now we are adopting semver in modulor-html; shall we follow same for storybook as well?

Change routing

Change routing of manager and preview apps, pass all parameter via query string
format:

?story=<story>&story_kind=<storykind>[&plugin=<plugin>][&...]

branding and mobile storybook

Todo:

  • Add Branding to storybook
    • Branding related Components
    • Configure branding and favicon from config
  • Mobile Storybook
    • Conditional Split.js render
    • Mobile attribute support for the sandbox-application component
    • Switch to Mobile UI on resize
    • Allow panes to be collapsible on Mobile (maybe Desktop as well)

create readme

create proper readme of how to install, write stories, plugins, etc

enhanced stories grouping

api proposal:

storiesOf('Stories group')
  .add(
    //grouping stories
    storiesOf('Main story')
      .add(...story1...)
      .add(...story1...)
  )
  //old way to keep consistency
  .add(...story...)

support story as HTML Node

example:

import { storiesOf } from 'modulor-storybook';

const $el = document.createElement('my-component');

storiesOf('My component')
  .add('default', () => $el);

This is needed to render react, vue, etc components and templates rendered by hyperhtml, bel, yoyo, etc

Handle file changes and new files

Application should handle following cases:

  • new story was created,
  • webpack config was changed
  • server config was changed

Can probably be solved with nodemon

http requests mock plugin

api proposal:

storiesOf('Foo')
  //as decorator
  .addDecorator(withMock({
    ...mocks map (see below)...
  }))
  //in story
  .add('some story', withMock({
    "foo/bar": (url, params) => {},
    "foo/baz*": { bla: baz },
    "foo/baz*": [{
      mock: () => {},
      times: 1,
      delay: 2000
    }, {
      mock: () => {}
    }],
  })

example mock lib:
http://www.wheresrhys.co.uk/fetch-mock

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.