formatting and readme updates

This commit is contained in:
Jason Wall 2020-08-07 22:55:01 -04:00
parent b542da787b
commit bb3d3ef5b6
2 changed files with 9 additions and 0 deletions

View File

@ -55,3 +55,4 @@ To get more help on the Angular CLI use `ng help` or go check out the [Angular C
- Android and IOS mobile apps with Ionic Capactor - Android and IOS mobile apps with Ionic Capactor
- Test note persistence - Test note persistence
- Test note search - Test note search
- Make card icons configurable (for future)

View File

@ -86,6 +86,8 @@ const initialState: AppState = {
}, },
}; };
//#region
type AppAction = type AppAction =
| { | {
type: 'GET_SAVED_PAGE'; type: 'GET_SAVED_PAGE';
@ -163,6 +165,8 @@ type AppAction =
note: NoteItem; note: NoteItem;
}; };
//#endregion Actions
function maybeMutateStorable<T>( function maybeMutateStorable<T>(
state: AppState, state: AppState,
candidate: IStorable<T>, candidate: IStorable<T>,
@ -503,6 +507,8 @@ export class AppService extends createStateService(reducer, initialState) {
this.searchIndexArray = this.buildIndexArray().sort(); this.searchIndexArray = this.buildIndexArray().sort();
} }
//#region General
removeCard(card: CardItem) { removeCard(card: CardItem) {
this.dispatch({ this.dispatch({
type: 'REMOVE_CARD', type: 'REMOVE_CARD',
@ -527,6 +533,8 @@ export class AppService extends createStateService(reducer, initialState) {
}); });
} }
//#endregion
//#region Saved Pages //#region Saved Pages
getSavedPage(pageid: string) { getSavedPage(pageid: string) {