mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-02 10:34:22 +01:00
added objects to be transfered from parser to db
This commit is contained in:
@@ -15,6 +15,7 @@ import { commitType } from './gitGraphTypes.js';
|
||||
import { ImperativeState } from '../../utils/imperativeState.js';
|
||||
|
||||
import DEFAULT_CONFIG from '../../defaultConfig.js';
|
||||
|
||||
import type { GitGraphDiagramConfig } from '../../config.type.js';
|
||||
interface GitGraphState {
|
||||
commits: Map<string, Commit>;
|
||||
|
||||
@@ -9,13 +9,31 @@ export const commitType = {
|
||||
CHERRY_PICK: 4,
|
||||
} as const;
|
||||
|
||||
export const gitcommitType = {
|
||||
NORMAL: 0,
|
||||
REVERSE: 1,
|
||||
HIGHLIGHT: 2,
|
||||
MERGE: 3,
|
||||
CHERRY_PICK: 4,
|
||||
} as const;
|
||||
export interface CommitDB {
|
||||
message: string;
|
||||
id: string;
|
||||
type: typeof commitType;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export interface BranchDB {
|
||||
name: string;
|
||||
order: number;
|
||||
}
|
||||
|
||||
export interface MergeDB {
|
||||
branch: string;
|
||||
id: string;
|
||||
type?: typeof commitType;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export interface CherryPickDB {
|
||||
id: string;
|
||||
targetId: string;
|
||||
parent: string;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export interface Commit {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user