-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update RollCake MF Broker version to v0.0.4 - Remove page state feature - Refactor page update logic
- Loading branch information
Showing
10 changed files
with
35 additions
and
68 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
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,6 +1,6 @@ | ||
import Element from './element'; | ||
|
||
export function createElement(config = null) { | ||
export function createElement(config = {}) { | ||
const { tag, attr, props, children } = config; | ||
return new Element(tag, attr, props, children); | ||
} |
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,6 +1,6 @@ | ||
import Page from './page'; | ||
|
||
export function createPage(config = null) { | ||
const { state, onInit, onUpdate, onDestroy, content, loadingContent } = config; | ||
return new Page(state, onInit, onUpdate, onDestroy, content, loadingContent); | ||
export function createPage(config = {}) { | ||
const { onInit, onUpdate, onDestroy, content, loadingContent } = config; | ||
return new Page(onInit, onUpdate, onDestroy, content, loadingContent); | ||
} |
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,9 +1,3 @@ | ||
export const ERROR_MESSAGE = { | ||
BROKER_NOT_INTIALIZED: 'Please, refresh your screen. The broker was not initialized yet.', | ||
STATE_NOT_INITIALIZED: 'Please, refresh your screen. The state was not initialized yet.', | ||
STATE_KEY_ALREADY_BEING_USED: 'You cannot use this key, because it is already being used in another page declaration.', | ||
EVENT_BUS_NOT_INITIALIZED: 'Please, refresh your screen. The event bus was not initialized yet.' | ||
}; | ||
export const PUBLIC_BUS_PUBLISH_EVENT_TYPE = { | ||
NAVIGATE_TO: 'navigate-to' | ||
} |