-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "self test development-like" | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: | | ||
yarn && yarn build | ||
- uses: ./ | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
config: chromatic.config.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,6 @@ jobs: | |
with: | ||
appCode: ${{ secrets.CHROMATIC_APP_CODE }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
storybookBuildDir: storybook-static | ||
storybookBuildDir: storybook-static-1 | ||
env: | ||
CHROMATIC_STORYBOOK_VERSION: [email protected] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = [ | ||
{ | ||
id: 'one', | ||
appCode: process.env.CHROMATIC_APP_CODE, | ||
storybookBuildDir: 'storybook-static-1', | ||
}, | ||
{ | ||
id: 'two', | ||
appCode: process.env.CHROMATIC_APP_CODE, | ||
storybookBuildDir: 'storybook-static-2', | ||
}, | ||
]; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"><base target="_parent"><style>:not(.sb-show-main) > .sb-main, | ||
:not(.sb-show-nopreview) > .sb-nopreview, | ||
:not(.sb-show-errordisplay) > .sb-errordisplay { | ||
display: none; | ||
} | ||
|
||
.sb-wrapper { | ||
position: fixed; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
padding: 20px; | ||
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
overflow: auto; | ||
} | ||
|
||
.sb-heading { | ||
font-size: 14px; | ||
font-weight: 600; | ||
letter-spacing: 0.2px; | ||
margin: 10px 0; | ||
padding-right: 25px; | ||
} | ||
|
||
.sb-nopreview { | ||
display: flex; | ||
align-content: center; | ||
justify-content: center; | ||
} | ||
|
||
.sb-nopreview_main { | ||
margin: auto; | ||
padding: 30px; | ||
border-radius: 10px; | ||
background: rgba(0,0,0,0.03); | ||
} | ||
|
||
.sb-nopreview_heading { | ||
text-align: center; | ||
} | ||
|
||
.sb-errordisplay { | ||
border: 20px solid rgb(187, 49, 49); | ||
background: #222; | ||
color: #fff; | ||
z-index: 999999; | ||
} | ||
|
||
.sb-errordisplay_code { | ||
padding: 10px; | ||
background: #000; | ||
color: #eee; | ||
font-family: "Operator Mono", "Fira Code Retina", "Fira Code", "FiraCode-Retina", "Andale Mono", "Lucida Console", Consolas, Monaco, monospace; | ||
} | ||
|
||
.sb-errordisplay pre { | ||
white-space: pre-wrap; | ||
}</style><script>/* globals window */ | ||
/* eslint-disable no-underscore-dangle */ | ||
try { | ||
if (window.parent !== window) { | ||
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; | ||
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__; | ||
} | ||
} catch (e) { | ||
// eslint-disable-next-line no-console | ||
console.warn('unable to connect to parent frame for connecting dev tools'); | ||
}</script><style>#root[hidden], | ||
#docs-root[hidden] { | ||
display: none !important; | ||
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.774ec8a69245de6ad3ef.bundle.js"></script><script src="vendors~main.774ec8a69245de6ad3ef.bundle.js"></script><script src="main.774ec8a69245de6ad3ef.bundle.js"></script></body></html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"><style>html, body { | ||
overflow: hidden; | ||
height: 100%; | ||
width: 100%; | ||
margin: 0; | ||
padding: 0; | ||
}</style><script>/* globals window */ | ||
/* eslint-disable no-underscore-dangle */ | ||
try { | ||
if (window.parent !== window) { | ||
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; | ||
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__; | ||
} | ||
} catch (e) { | ||
// eslint-disable-next-line no-console | ||
console.warn('unable to connect to parent frame for connecting dev tools'); | ||
}</script><style>#root[hidden], | ||
#docs-root[hidden] { | ||
display: none !important; | ||
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = false;</script><script src="runtime~main.25fc818af1dd5d1e4dbb.bundle.js"></script><script src="vendors~main.8a575d479d4527f0c5fc.bundle.js"></script><script src="main.133e24f8ec81fc731630.bundle.js"></script></body></html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.