diff --git a/.env b/.env new file mode 100644 index 0000000..baf1244 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +STORYBOOK_BRAND_URL="https://engineering.purdue.edu/webqueue/webqueue2/build" \ No newline at end of file diff --git a/package.json b/package.json index 9300279..fb4b9f3 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "scripts": { "start:frontend": "react-scripts start", "start:api": "cd api/ && venv/bin/gunicorn -b 127.0.0.1:5000 api:app", - "start:docs": "start-storybook -p 6006 -s public -c storybook-config", + "start:docs": "start-storybook -p 6006 -s public -c storybook-config --no-manager-cache", "build:frontend": "react-scripts build", "build:docs": "build-storybook -s public -c storybook-config -o build-docs", "kill:frontend": "pgrep -u $(whoami) -f 'react-scripts/scripts/start.js' -d ' ' | xargs kill -9", diff --git a/storybook-config/DocsTheme.js b/storybook-config/DocsTheme.js index ac35143..394ce2f 100644 --- a/storybook-config/DocsTheme.js +++ b/storybook-config/DocsTheme.js @@ -3,12 +3,13 @@ * @see https://storybook.js.org/docs/react/configure/theming#create-a-theme-quickstart * @see https://storybook.js.org/docs/react/configure/features-and-behavior */ -import { create } from '@storybook/theming'; +import { create } from "@storybook/theming"; +import brandImage from "../public/logo192.png"; export default create({ base: 'light', - brandTitle: 'webqueue2 Front End Docs', - brandUrl: 'https://engineering.purdue.edu/webqueue/webqueue2/build', - brandImage: 'https://github.itap.purdue.edu/ECN/webqueue2-frontend/blob/master/public/logo192.png?raw=true', + brandTitle: "webqueue2 Storybook", + brandUrl: process.env.STORYBOOK_BRAND_URL, + brandImage: brandImage, appBg: 'white' }); \ No newline at end of file diff --git a/styleguidist/assetsDir/ItemBodyView_Loaded.png b/styleguidist/assetsDir/ItemBodyView_Loaded.png deleted file mode 100644 index b99e9f5..0000000 Binary files a/styleguidist/assetsDir/ItemBodyView_Loaded.png and /dev/null differ diff --git a/styleguidist/assetsDir/ItemBodyView_Loading.gif b/styleguidist/assetsDir/ItemBodyView_Loading.gif deleted file mode 100644 index 3329413..0000000 Binary files a/styleguidist/assetsDir/ItemBodyView_Loading.gif and /dev/null differ