Misk-Web Core
npm install @misk/core
This package provides shared, styled React components, Redux helper functions, and Typescript utilities across Misk tab repos. The top of each component/container file contains a usage example.
``bash`
$ yarn add @misk/core
- createApp(routes): builder function to create an componentcreateIndex(tabSlug, App, Ducks)
- : builder function to create bootstrapping objects necessary for index.tsx
- ErrorCalloutComponent: Processes a Redux / Axios error and dumps raw JSON for debuggingOfflineComponent
- : NonIdealState component for Offline or Loading tab statePathDebugComponent
- : outputs values passed in by props for hash, pathname, and search in React-Router instanceSidebarComponent
- : dashboard styled sidebar
- CodePreContainer: Word wrap enabled BlueprintJS
block for displaying formatted content (ie. JSON, logs...)ColumnContainer
-: Column container for use inside of aDesktopWideOnlyContainer
-: Only shows container when window width >1200pxFlexContainer
-: Container using CSS FlexBox to have enclosed items flow responsively to screen widthMobileNeverContainer
-: Never show container when window width <768pxMobileOnlyContainer
-: Only show container when window width <768pxResponsiveContainer
-: Responsive container that all tabs and Nav Navbar use to ensure consistent view widthResponsiveContainer
-: Extension ofResponsiveContainerthat moves the App view below the NavbarWrapTextContainer
-: Word wrap enabledblockNavbarFeatures
-
: Related and themeable components to a dashboard styled NavbarTable
-: Basic table that parses heading keys from the array of objects passed in as data propsenvironmentUtilities
-
: various utilities helpful in environment (color, default visibilities...)network
-: wrapped functions around Axios requests to allow simplified syntax that withasync awaitreturns an object of{ data, error }.theme`: definition and default theme used to style Navbar.
-Releasing
Changelog (and Breaking Changes)