forked from comixed/comixed
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the task audit log to use new state wiring [comixed#424]
* Refactored the code to use the new NgRx model. * Removed the old task audit log state wiring.
- Loading branch information
Showing
22 changed files
with
635 additions
and
625 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
comixed-frontend/src/app/backend-status/actions/load-task-audit-log.actions.ts
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,43 @@ | ||
/* | ||
* ComiXed - A digital comic book library management application. | ||
* Copyright (C) 2020, The ComiXed Project | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses> | ||
*/ | ||
|
||
import { createAction, props } from '@ngrx/store'; | ||
import { TaskAuditLogEntry } from 'app/backend-status/models/task-audit-log-entry'; | ||
|
||
/** | ||
* Loads all task audit log entries after the specified date. | ||
*/ | ||
export const loadTaskAuditLogEntries = createAction( | ||
'[LoadTaskAuditLog] Load task audit log entries', | ||
props<{ since: number }>() | ||
); | ||
|
||
/** | ||
* Receives additional task audit log entries. | ||
*/ | ||
export const taskAuditLogEntriesLoaded = createAction( | ||
'[LoadTaskAuditLog] Task audit log entries loaded', | ||
props<{ entries: TaskAuditLogEntry[]; latest: number }>() | ||
); | ||
|
||
/** | ||
* Failed to get task audit log entries. | ||
*/ | ||
export const loadTaskAuditLogFailed = createAction( | ||
'[LoadTaskAuditLog] Failed to load the task audit log entries' | ||
); |
53 changes: 0 additions & 53 deletions
53
comixed-frontend/src/app/backend-status/actions/task-audit-log.actions.ts
This file was deleted.
Oops, something went wrong.
134 changes: 0 additions & 134 deletions
134
comixed-frontend/src/app/backend-status/adaptors/task-audit-log.adaptor.spec.ts
This file was deleted.
Oops, something went wrong.
77 changes: 0 additions & 77 deletions
77
comixed-frontend/src/app/backend-status/adaptors/task-audit-log.adaptor.ts
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.