forked from jappel/leistungsbilanz-ts
Add persistent history stacks
This commit is contained in:
parent
2d0aa11d9c
commit
1e4dd26bb8
24 changed files with 2294 additions and 15 deletions
|
|
@ -10,6 +10,7 @@ export interface ExecuteCircuitDeviceRowUpdateCommandInput {
|
|||
source: ProjectRevisionSource;
|
||||
description?: string;
|
||||
actorId?: string;
|
||||
historyTargetChangeSetId?: string;
|
||||
command: CircuitDeviceRowUpdateProjectCommand;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ export interface ExecuteCircuitUpdateCommandInput {
|
|||
source: ProjectRevisionSource;
|
||||
description?: string;
|
||||
actorId?: string;
|
||||
historyTargetChangeSetId?: string;
|
||||
command: CircuitUpdateProjectCommand;
|
||||
}
|
||||
|
||||
|
|
|
|||
12
src/domain/ports/project-history.store.ts
Normal file
12
src/domain/ports/project-history.store.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
export interface ProjectHistoryState {
|
||||
projectId: string;
|
||||
currentRevision: number;
|
||||
undoDepth: number;
|
||||
redoDepth: number;
|
||||
undoChangeSetId: string | null;
|
||||
redoChangeSetId: string | null;
|
||||
}
|
||||
|
||||
export interface ProjectHistoryStore {
|
||||
getState(projectId: string): ProjectHistoryState | null;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue