forked from wevote/WebApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added building and access via webapp to the Storybook design inventory
There is no detail in this issue, on how this is going to be used, so I'm shooting in the dark a bit. npm start is for development, but I added the capability there anyways npm build and npm prod, are (I think) what the production servers use, so I also added the capability to those scripts. It looks like anyone who navigates to https://wevote.us/storybook will be able to modify the statically built copy of the inventory, but those changes do not seem to effect the master copy (wherever that is stored), since when you regenerate the static files, those local changes are overwritten. The downside is that those local changes seem to persist between sessions (between different users), so accidental changes could be confusing, and purposeful changes would be lost. I think there is no harm in making this live, but it will probably need more analysis re: what we are using it for, and how it will be used. And do we need to restrict access? Implements https://wevoteusa.atlassian.net/browse/WV-206
- Loading branch information
1 parent
bdb1a32
commit 1fcb906
Showing
5 changed files
with
18 additions
and
40 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { renderLog } from '../../common/utils/logging'; | ||
|
||
|
||
// React functional component example | ||
export default function StorybookRedirect () { | ||
renderLog('StorybookRedirect functional component'); | ||
|
||
return ( | ||
<a href="/storybook?path=/docs/design-system--docs">Redirect to Html page</a> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters