-
Notifications
You must be signed in to change notification settings - Fork 47
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
8 changed files
with
115 additions
and
36 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
5 changes: 5 additions & 0 deletions
5
src/service/state/data/CreateInspectorEngineStateDataService.re
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,5 @@ | ||
open Wonderjs; | ||
|
||
open StateDataMainType; | ||
|
||
let createStateData = () => {state: None, isDebug: false}; |
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,3 +1,3 @@ | ||
open Wonderjs; | ||
|
||
let getEngineStateData = () => StateDataMain.stateData; | ||
let getStateData = () => StateDataMain.stateData; |
10 changes: 10 additions & 0 deletions
10
src/service/state/inspectorEngine/StateDataInspectorEngineService.re
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,10 @@ | ||
open Wonderjs; | ||
|
||
let getStateData = () => | ||
CreateInspectorEngineStateDataService.createStateData(); | ||
|
||
let unsafeGetState = () => | ||
StateDataMainService.unsafeGetState(getStateData()); | ||
|
||
let setState = (state: StateDataMainType.state) => | ||
StateDataMainService.setState(getStateData(), state); |
13 changes: 13 additions & 0 deletions
13
src/service/state/inspectorEngine/StateInspectorEngineService.re
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,13 @@ | ||
let deepCopyForRestore = Wonderjs.StateAPI.deepCopyForRestore; | ||
|
||
let createState = Wonderjs.StateAPI.createState; | ||
|
||
let createStateData = CreateInspectorEngineStateDataService.createStateData; | ||
|
||
let getStateFromData = Wonderjs.StateAPI.getStateFromData; | ||
|
||
let unsafeGetState = StateDataInspectorEngineService.unsafeGetState; | ||
|
||
let setStateToData = Wonderjs.StateAPI.setStateToData; | ||
|
||
let setState = StateDataInspectorEngineService.setState; |