-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: create instanceService * feat: improve the interface * refactor: improve the inject initial values of localeService * refactor: improve the localeService * test: update test cases * refactor: make provider compatible with create function * fix: provider should create in useLayoutEffect rather that useEffect * test: add test cases for instanceService * test: increase code coverage * chore: add module.hot.accept * refactor: fix website generate api structure * build: fix web script failed * docs: add builtin doc
- Loading branch information
1 parent
753ba64
commit 3093a21
Showing
39 changed files
with
631 additions
and
444 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
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,14 +1,17 @@ | ||
import React, { StrictMode } from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { Workbench, MoleculeProvider } from '../../esm'; | ||
import { create, Workbench } from '../../esm'; | ||
import '../../esm/style/mo.css'; | ||
|
||
const App = () => ( | ||
const moInstance = create({ | ||
extensions: [], | ||
}); | ||
|
||
export const App = () => moInstance.render(<Workbench />); | ||
|
||
ReactDOM.render( | ||
<StrictMode> | ||
<MoleculeProvider> | ||
<Workbench /> | ||
</MoleculeProvider> | ||
</StrictMode> | ||
<App /> | ||
</StrictMode>, | ||
document.getElementById('root') | ||
); | ||
|
||
ReactDOM.render(<App />, document.getElementById('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
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.