Skip to content

Files

Latest commit

3479e59 · Apr 6, 2021

History

History

frontend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 2, 2020
Jan 28, 2021
Dec 2, 2020
Apr 6, 2021
Dec 2, 2020
Dec 2, 2020
Mar 12, 2020
Oct 7, 2020
Sep 16, 2020
Aug 13, 2020
Dec 2, 2020
Dec 2, 2020
Dec 2, 2020

Kalm Dashboard

How to run this project.

# before start, copy .env.sample to .env, then edit .env

npm install
npm run start

Storybook Design System

We will use storybook as a tool for designing assets for the KALM system. With storybook, we can integrate the design into the product faster and the frontend development process(design and engineering realization) can be organized according to components.

features

  • support material-ui custom theme
  • support change background colors
  • support change viewport
  • support custom state and property
  • support notes
  • support mock url query
  • support event emit

how to run storybook

npm run storybook

how to write a storybook for a components

There are two parts of the code that relate to storybook

  • frontend/.storybook: all storybook configs here.
  • frontend/src/_stories: all stories and story related widgets

example for support parameters when preview storybook

please checkout frontend/src/_stories/1-Button.stories.tsx as a references.

References:

ACME kalmVersion 0f95468be69d68428497df5374ea2fc89935028d

origin ba57875eb15066c6cc9e6c16267ab653e20ae83f