-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
277 changed files
with
6,664 additions
and
5,386 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,16 @@ | ||
export const imports = {} | ||
export const imports = { | ||
'src/components/CreateChatRoom/docz.mdx': () => | ||
import(/* webpackPrefetch: true, webpackChunkName: "src-components-create-chat-room-docz" */ 'src/components/CreateChatRoom/docz.mdx'), | ||
'src/components/CreateMessage/docz.mdx': () => | ||
import(/* webpackPrefetch: true, webpackChunkName: "src-components-create-message-docz" */ 'src/components/CreateMessage/docz.mdx'), | ||
'src/components/LoginComponent/docz.mdx': () => | ||
import(/* webpackPrefetch: true, webpackChunkName: "src-components-login-component-docz" */ 'src/components/LoginComponent/docz.mdx'), | ||
'src/components/MessageList/docz.mdx': () => | ||
import(/* webpackPrefetch: true, webpackChunkName: "src-components-message-list-docz" */ 'src/components/MessageList/docz.mdx'), | ||
'src/components/PreviewLoader/docz.mdx': () => | ||
import(/* webpackPrefetch: true, webpackChunkName: "src-components-preview-loader-docz" */ 'src/components/PreviewLoader/docz.mdx'), | ||
'src/components/ProfileCard/docs.mdx': () => | ||
import(/* webpackPrefetch: true, webpackChunkName: "src-components-profile-card-docs" */ 'src/components/ProfileCard/docs.mdx'), | ||
'src/components/RoomsList/docz.mdx': () => | ||
import(/* webpackPrefetch: true, webpackChunkName: "src-components-rooms-list-docz" */ 'src/components/RoomsList/docz.mdx'), | ||
} |
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,17 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import Root from "./root"; | ||
|
||
const _onPreRenders = []; | ||
const _onPostRenders = []; | ||
|
||
const onPreRender = () => _onPreRenders.forEach((f) => f && f()); | ||
const onPostRender = () => _onPostRenders.forEach((f) => f && f()); | ||
|
||
const root = document.querySelector("#root"); | ||
const render = (Component = Root) => { | ||
onPreRender(); | ||
ReactDOM.render(<Component />, root, onPostRender); | ||
}; | ||
|
||
render(Root); |
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,19 @@ | ||
import React from "react"; | ||
import { setConfig, hot } from "react-hot-loader"; | ||
import Theme from "docz-theme-default"; | ||
|
||
import { imports } from "./imports"; | ||
import db from "./db.json"; | ||
|
||
import Wrapper from "../../src/setup/docz_wrapper/wrapper"; | ||
|
||
const Root = () => ( | ||
<Theme db={db} imports={imports} hashRouter={false} wrapper={Wrapper} /> | ||
); | ||
|
||
// TODO: this is temporary until react-hot-loader fix hooks issues | ||
setConfig({ | ||
pureSFC: true | ||
}); | ||
|
||
export default hot(module)(Root); |
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
Large diffs are not rendered by default.
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
Oops, something went wrong.