Skip to content

Commit 19289b4

Browse files
committed
config deploy
1 parent a68f83b commit 19289b4

15 files changed

+431
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "react uikit cli",
55
"main": "index.js",
66
"repository": "https://github.com/rismanss/react-uikit-cli",
7+
"homepage": "https://rismanss.github.io/react-uikit-cli",
78
"keywords": [
89
"react",
910
"cli",
@@ -23,6 +24,7 @@
2324
"scripts": {
2425
"lint": "eslint .",
2526
"lint-fix": "eslint . --fix",
27+
"build-storybook": "build-storybook",
2628
"storybook": "start-storybook -p 9001"
2729
},
2830
"dependencies": {

storybook-static/favicon.ico

32.2 KB
Binary file not shown.

storybook-static/iframe.html

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
<!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,
2+
:not(.sb-show-nopreview) > .sb-nopreview,
3+
:not(.sb-show-errordisplay) > .sb-errordisplay {
4+
display: none;
5+
}
6+
7+
.sb-show-main.sb-main-centered {
8+
margin: 0;
9+
display: flex;
10+
align-items: center;
11+
min-height: 100vh;
12+
}
13+
14+
.sb-show-main.sb-main-centered #root {
15+
box-sizing: border-box;
16+
margin: auto;
17+
padding: 1rem;
18+
max-height: 100%; /* Hack for centering correctly in IE11 */
19+
}
20+
21+
/* Vertical centering fix for IE11 */
22+
@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {
23+
.sb-show-main.sb-main-centered:after {
24+
content: '';
25+
min-height: inherit;
26+
font-size: 0;
27+
}
28+
}
29+
30+
.sb-show-main.sb-main-fullscreen {
31+
margin: 0;
32+
padding: 0;
33+
display: block;
34+
}
35+
36+
.sb-show-main.sb-main-padded {
37+
margin: 0;
38+
padding: 1rem;
39+
display: block;
40+
}
41+
42+
.sb-wrapper {
43+
position: fixed;
44+
top: 0;
45+
bottom: 0;
46+
left: 0;
47+
right: 0;
48+
padding: 20px;
49+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
50+
-webkit-font-smoothing: antialiased;
51+
overflow: auto;
52+
}
53+
54+
.sb-heading {
55+
font-size: 14px;
56+
font-weight: 600;
57+
letter-spacing: 0.2px;
58+
margin: 10px 0;
59+
padding-right: 25px;
60+
}
61+
62+
.sb-nopreview {
63+
display: flex;
64+
align-content: center;
65+
justify-content: center;
66+
}
67+
68+
.sb-nopreview_main {
69+
margin: auto;
70+
padding: 30px;
71+
border-radius: 10px;
72+
background: rgba(0,0,0,0.03);
73+
}
74+
75+
.sb-nopreview_heading {
76+
text-align: center;
77+
}
78+
79+
.sb-errordisplay {
80+
border: 20px solid rgb(187, 49, 49);
81+
background: #222;
82+
color: #fff;
83+
z-index: 999999;
84+
}
85+
86+
.sb-errordisplay_code {
87+
padding: 10px;
88+
background: #000;
89+
color: #eee;
90+
font-family: "Operator Mono", "Fira Code Retina", "Fira Code", "FiraCode-Retina", "Andale Mono", "Lucida Console", Consolas, Monaco, monospace;
91+
}
92+
93+
.sb-errordisplay pre {
94+
white-space: pre-wrap;
95+
}</style><script>/* globals window */
96+
/* eslint-disable no-underscore-dangle */
97+
try {
98+
if (window.top !== window) {
99+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
100+
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.top.__VUE_DEVTOOLS_GLOBAL_HOOK__;
101+
window.top.__VUE_DEVTOOLS_CONTEXT__ = window.document;
102+
}
103+
} catch (e) {
104+
// eslint-disable-next-line no-console
105+
console.warn('unable to connect to top frame for connecting dev tools');
106+
}
107+
108+
window.onerror = function onerror(message, source, line, column, err) {
109+
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
110+
// eslint-disable-next-line no-var, vars-on-top
111+
var xhr = new window.XMLHttpRequest();
112+
xhr.open('POST', '/runtime-error');
113+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
114+
xhr.send(
115+
JSON.stringify({
116+
/* eslint-disable object-shorthand */
117+
message: message,
118+
source: source,
119+
line: line,
120+
column: column,
121+
error: err && { message: err.message, name: err.name, stack: err.stack },
122+
origin: 'preview',
123+
/* eslint-enable object-shorthand */
124+
})
125+
);
126+
};</script><style>#root[hidden],
127+
#docs-root[hidden] {
128+
display: none !important;
129+
}</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>window['LOGLEVEL'] = "info";
130+
131+
132+
133+
window['FRAMEWORK_OPTIONS'] = {};</script><script src="runtime~main.b34d0c75d87e73515148.bundle.js"></script><script src="vendors~main.b34d0c75d87e73515148.bundle.js"></script><script src="main.b34d0c75d87e73515148.bundle.js"></script></body></html>

storybook-static/index.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!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 {
2+
overflow: hidden;
3+
height: 100%;
4+
width: 100%;
5+
margin: 0;
6+
padding: 0;
7+
}
8+
9+
* {
10+
box-sizing: border-box;
11+
}</style><script>/* globals window */
12+
/* eslint-disable no-underscore-dangle */
13+
try {
14+
if (window.top !== window) {
15+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
16+
}
17+
} catch (e) {
18+
// eslint-disable-next-line no-console
19+
console.warn('unable to connect to top frame for connecting dev tools');
20+
}
21+
22+
window.onerror = function onerror(message, source, line, column, err) {
23+
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
24+
// eslint-disable-next-line no-var, vars-on-top
25+
var xhr = new window.XMLHttpRequest();
26+
xhr.open('POST', '/runtime-error');
27+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
28+
xhr.send(
29+
JSON.stringify({
30+
/* eslint-disable object-shorthand */
31+
message: message,
32+
source: source,
33+
line: line,
34+
column: column,
35+
error: err && { message: err.message, name: err.name, stack: err.stack },
36+
origin: 'manager',
37+
/* eslint-enable object-shorthand */
38+
})
39+
);
40+
};</script><style>#root[hidden],
41+
#docs-root[hidden] {
42+
display: none !important;
43+
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['CONFIG_TYPE'] = "PRODUCTION";
44+
45+
46+
47+
window['LOGLEVEL'] = "info";
48+
49+
50+
51+
52+
53+
54+
55+
window['DOCS_MODE'] = false;</script><script src="runtime~main.870e8ee0658e83d05c6b.bundle.js"></script><script src="vendors~main.1e98644c30196b10007f.bundle.js"></script><script src="main.ec391663634f68540c9c.bundle.js"></script></body></html>

storybook-static/main.b34d0c75d87e73515148.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/main.b34d0c75d87e73515148.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/main.ec391663634f68540c9c.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/runtime~main.870e8ee0658e83d05c6b.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/runtime~main.b34d0c75d87e73515148.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/runtime~main.b34d0c75d87e73515148.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)