mirror of
https://github.com/adam-benyekkou/my_portfolio.git
synced 2026-01-15 20:20:09 +00:00
Refactoring types / interface in dedicated models
This commit is contained in:
12
src/app/shared/models/about.model.ts
Normal file
12
src/app/shared/models/about.model.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
type NeuralProfileNode = {
|
||||
id: string;
|
||||
title: string;
|
||||
isExpanded: boolean;
|
||||
isSelected: boolean;
|
||||
children?: NeuralProfileNode[];
|
||||
level: number;
|
||||
hasChildren: boolean;
|
||||
visible: boolean;
|
||||
};
|
||||
|
||||
export type { NeuralProfileNode };
|
||||
9
src/app/shared/models/header.model.ts
Normal file
9
src/app/shared/models/header.model.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
type TextItem = {
|
||||
readonly id: number;
|
||||
readonly text: string;
|
||||
readonly displayed: string;
|
||||
readonly isTyping: boolean;
|
||||
readonly isComplete: boolean;
|
||||
};
|
||||
|
||||
export { type TextItem };
|
||||
23
src/app/shared/models/project.model.ts
Normal file
23
src/app/shared/models/project.model.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
type Project = {
|
||||
id: string;
|
||||
title: string;
|
||||
status: string;
|
||||
classification: string;
|
||||
objective: string;
|
||||
statusDescription: string;
|
||||
techStack: string[];
|
||||
demoUrl?: string;
|
||||
codeUrl?: string;
|
||||
isRedacted: boolean;
|
||||
caseStudy?: {
|
||||
title: string;
|
||||
sections: CaseStudySection[];
|
||||
};
|
||||
};
|
||||
|
||||
type CaseStudySection = {
|
||||
title: string;
|
||||
content: string;
|
||||
};
|
||||
|
||||
export { type Project, type CaseStudySection };
|
||||
Reference in New Issue
Block a user