From bb3d3ef5b6e0acb3516cd6d8457571642c69a768 Mon Sep 17 00:00:00 2001 From: Jason Wall Date: Fri, 7 Aug 2020 22:55:01 -0400 Subject: [PATCH] formatting and readme updates --- app/db/README.md | 1 + app/db/src/app/services/app.service.ts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/app/db/README.md b/app/db/README.md index 1a050f32..24bd69a9 100644 --- a/app/db/README.md +++ b/app/db/README.md @@ -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 - Test note persistence - Test note search +- Make card icons configurable (for future) diff --git a/app/db/src/app/services/app.service.ts b/app/db/src/app/services/app.service.ts index 6a39c673..358c60f1 100644 --- a/app/db/src/app/services/app.service.ts +++ b/app/db/src/app/services/app.service.ts @@ -86,6 +86,8 @@ const initialState: AppState = { }, }; +//#region + type AppAction = | { type: 'GET_SAVED_PAGE'; @@ -163,6 +165,8 @@ type AppAction = note: NoteItem; }; +//#endregion Actions + function maybeMutateStorable( state: AppState, candidate: IStorable, @@ -503,6 +507,8 @@ export class AppService extends createStateService(reducer, initialState) { this.searchIndexArray = this.buildIndexArray().sort(); } + //#region General + removeCard(card: CardItem) { this.dispatch({ type: 'REMOVE_CARD', @@ -527,6 +533,8 @@ export class AppService extends createStateService(reducer, initialState) { }); } + //#endregion + //#region Saved Pages getSavedPage(pageid: string) {