Function
Static Public Summary | ||
public |
An error page component that displays the relevant error. |
|
public |
A header layout component that displays the logo/sidebar toggle. |
|
public |
HeaderShape(props: Object): React.Component A header shape component that displays the header curve svg. |
|
public |
A home page component showcasing WIP components. |
|
public |
Navigation(props: Object): React.Component A navigation layout component that links to the main areas of the application. |
|
public |
A component to handle all routes in the application. |
|
public |
A styles layout component that sets global styles based on Redux state. |
|
public |
This function sends an action to be intercepted by watchHideModal. |
|
public |
* hideModalSaga() This generator function hides the modal. |
|
public |
A helper to test Redux connected components by passing a mocked Redux store. |
|
public |
settingsReducer(state: Object, action: Object): Object The Settings reducer. |
|
public |
This function sends an action to be intercepted by watchShowModal. |
|
public |
* showModalSaga(action: Object) This generator function shows the modal with action data yielded from watchShowModal. |
|
public |
storeMetric(data: Object): Object This function sends an action to store the new data to uiReducer. |
|
public |
storeSettings(data: Object): Object This function sends an action to store the new data to settingsReducer. |
|
public |
This function sends an action to store the new data to uiReducer. |
|
public |
The UI reducer. |
|
public |
updateMetric(data: Object): Object This function sends an action to be intercepted by watchUpdateMetric. |
|
public |
* updateMetricSaga(action: Object) This generator function stores the action data yielded from watchUpdateMetric. |
|
public |
updateSettings(data: Object): Object This function sends an action to be intercepted by watchUpdateSettings. |
|
public |
* updateSettingsSaga(action: Object) This generator function stores the action data yielded from watchUpdateSettings. |
|
public |
This function sends an action to be intercepted by watchUpdateUi. |
|
public |
* updateUiSaga(action: Object) This generator function stores the action data yielded from watchUpdateUi. |
|
public |
* watchHideModal() This generator function watchs for the latest hideModal call. |
|
public |
* watchShowModal() This generator function watchs for the latest showModal call. |
|
public |
This generator function watchs for the latest updateMetric call. |
|
public |
This generator function watchs for every updateSettings call. |
|
public |
* watchUpdateUi() This generator function watchs for every updateUi call. |
Static Public
public ErrorView(props: Object): undefined[] source
import {ErrorView} from 'pokedex-net-client/src/components/views/ErrorView/index.js'
An error page component that displays the relevant error.
public Header(props: Object): React.Component source
import {Header} from 'pokedex-net-client/src/components/layout/Header/index.js'
A header layout component that displays the logo/sidebar toggle.
Return:
React.Component |
public HeaderShape(props: Object): React.Component source
import {HeaderShape} from 'pokedex-net-client/src/components/layout/Header/HeaderShape/index.js'
A header shape component that displays the header curve svg.
Return:
React.Component |
public HomeView(props: Object): React.Fragment source
import {HomeView} from 'pokedex-net-client/src/components/views/HomeView/index.js'
A home page component showcasing WIP components.
Return:
React.Fragment |
public Navigation(props: Object): React.Component source
import {Navigation} from 'pokedex-net-client/src/components/layout/Navigation/index.js'
A navigation layout component that links to the main areas of the application.
Return:
React.Component |
public Routes(props: Object): React.Component source
import {Routes} from 'pokedex-net-client/src/components/layout/Routes/index.js'
A component to handle all routes in the application.
Return:
React.Component |
public Styles(props: Object): React.Fragment source
import {Styles} from 'pokedex-net-client/src/components/layout/Styles/index.js'
A styles layout component that sets global styles based on Redux state.
Return:
React.Fragment |
public hideModal(): Object source
import {hideModal} from 'pokedex-net-client/src/stores/ui/actions/index.js'
This function sends an action to be intercepted by watchHideModal.
public * hideModalSaga() source
import {hideModalSaga} from 'pokedex-net-client/src/stores/ui/sagas/index.js'
This generator function hides the modal.
Emit:
public mockStore(mockState: Object): Object source
import {mockStore} from 'pokedex-net-client/src/lib/helpers/index.js'
A helper to test Redux connected components by passing a mocked Redux store.
Params:
Name | Type | Attribute | Description |
mockState | Object | A mock Redux state. |
public settingsReducer(state: Object, action: Object): Object source
import settingsReducer from 'pokedex-net-client/src/stores/settings/reducer/index.js'
The Settings reducer.
public showModal(data: string): Object source
import {showModal} from 'pokedex-net-client/src/stores/ui/actions/index.js'
This function sends an action to be intercepted by watchShowModal.
Params:
Name | Type | Attribute | Description |
data | string | A string with the value to update in the store. |
public * showModalSaga(action: Object) source
import {showModalSaga} from 'pokedex-net-client/src/stores/ui/sagas/index.js'
This generator function shows the modal with action data yielded from watchShowModal.
Params:
Name | Type | Attribute | Description |
action | Object | Redux action |
Emit:
public storeMetric(data: Object): Object source
import {storeMetric} from 'pokedex-net-client/src/stores/ui/actions/index.js'
This function sends an action to store the new data to uiReducer.
Params:
Name | Type | Attribute | Description |
data | Object | An object with the key/value pair to store in the store. |
public storeSettings(data: Object): Object source
import {storeSettings} from 'pokedex-net-client/src/stores/settings/actions/index.js'
This function sends an action to store the new data to settingsReducer.
Params:
Name | Type | Attribute | Description |
data | Object | An object with the key/value pair to store in the store. |
public storeUi(data: Object): Object source
import {storeUi} from 'pokedex-net-client/src/stores/ui/actions/index.js'
This function sends an action to store the new data to uiReducer.
Params:
Name | Type | Attribute | Description |
data | Object | An object with the key/value pair to store in the store. |
public uiReducer(state: Object, action: Object): Object source
import uiReducer from 'pokedex-net-client/src/stores/ui/reducer/index.js'
The UI reducer.
public updateMetric(data: Object): Object source
import {updateMetric} from 'pokedex-net-client/src/stores/ui/actions/index.js'
This function sends an action to be intercepted by watchUpdateMetric.
Params:
Name | Type | Attribute | Description |
data | Object | An object with the key/value pair to update in the store. |
public * updateMetricSaga(action: Object) source
import {updateMetricSaga} from 'pokedex-net-client/src/stores/ui/sagas/index.js'
This generator function stores the action data yielded from watchUpdateMetric.
Params:
Name | Type | Attribute | Description |
action | Object | Redux action |
Emit:
public updateSettings(data: Object): Object source
import {updateSettings} from 'pokedex-net-client/src/stores/settings/actions/index.js'
This function sends an action to be intercepted by watchUpdateSettings.
Params:
Name | Type | Attribute | Description |
data | Object | An object with the key/value pair to update in the store. |
public * updateSettingsSaga(action: Object) source
import {updateSettingsSaga} from 'pokedex-net-client/src/stores/settings/sagas/index.js'
This generator function stores the action data yielded from watchUpdateSettings.
Params:
Name | Type | Attribute | Description |
action | Object | Redux action |
Emit:
public updateUi(data: Object): Object source
import {updateUi} from 'pokedex-net-client/src/stores/ui/actions/index.js'
This function sends an action to be intercepted by watchUpdateUi.
Params:
Name | Type | Attribute | Description |
data | Object | An object with the key/value pair to update in the store. |
public * updateUiSaga(action: Object) source
import {updateUiSaga} from 'pokedex-net-client/src/stores/ui/sagas/index.js'
This generator function stores the action data yielded from watchUpdateUi.
Params:
Name | Type | Attribute | Description |
action | Object | Redux action |
Emit:
public * watchHideModal() source
import {watchHideModal} from 'pokedex-net-client/src/stores/ui/sagas/index.js'
This generator function watchs for the latest hideModal call.
Emit:
public * watchShowModal() source
import {watchShowModal} from 'pokedex-net-client/src/stores/ui/sagas/index.js'
This generator function watchs for the latest showModal call.
Emit:
public * watchUpdateMetric() source
import {watchUpdateMetric} from 'pokedex-net-client/src/stores/ui/sagas/index.js'
This generator function watchs for the latest updateMetric call.
Emit:
public * watchUpdateSettings() source
import {watchUpdateSettings} from 'pokedex-net-client/src/stores/settings/sagas/index.js'
This generator function watchs for every updateSettings call.
Emit:
public * watchUpdateUi() source
import {watchUpdateUi} from 'pokedex-net-client/src/stores/ui/sagas/index.js'
This generator function watchs for every updateUi call.