-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(entity): adding downloader * feat(entity): adding style * feat(entity): adding copy * feat(entity): renaming * feat(entity): adding style * feat(entity): adding style * feat(entity): adding style * feat(entity): adding style * feat(entity): adding style * feat(entity): adding style * feat(entity): adding style * feat(entity): adding style * feat(entity): adding style * feat(entity): fixed eslinter
- Loading branch information
Showing
17 changed files
with
234 additions
and
67 deletions.
There are no files selected for viewing
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
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,7 @@ | ||
const TextPipe = { | ||
capitalizeFirstLetter (string: string): string { | ||
return string.charAt(0).toUpperCase() + string.slice(1) | ||
} | ||
} | ||
|
||
export default TextPipe |
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
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
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
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
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
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
130 changes: 128 additions & 2 deletions
130
front/src/services/board/drawer/factories/Service.factory.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
19 changes: 15 additions & 4 deletions
19
front/src/services/board/drawer/factories/State.factory.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
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
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import { type TStateFactory } from './State.factory' | ||
import { type IPosition } from '../../../../interfaces/Position.interface' | ||
import { type TCommonBases } from '../Common.bases' | ||
import { type TEntityOrCreate } from '../../../Entity' | ||
import { type TDrawer } from '../../../Drawer' | ||
|
||
export type TBaseFactory = | ||
Omit<TCommonBases & TStateFactory, 'create'> | ||
& | ||
{ | ||
create: (entity: TEntityOrCreate, context: CanvasRenderingContext2D) => void | ||
update: (entity: TEntityOrCreate) => void | ||
create: (drawer: TDrawer) => void | ||
position: (withOffset?: number) => IPosition | ||
isSelected: (position: IPosition) => boolean | ||
updatePosition: (position: IPosition) => void | ||
beforeDraw?: () => void | ||
afterDraw?: () => void | ||
} |
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 |
---|---|---|
@@ -1,4 +1,18 @@ | ||
import { type TBaseFactory } from './Base.factory' | ||
import { type IServiceEnvVariable } from '../../../../interfaces/ServiceVariable/EnvVariable.interface' | ||
import { type IServicePortVariable } from '../../../../interfaces/ServiceVariable/Port.interface' | ||
import { type IServiceVolume } from '../../../../interfaces/ServiceVariable/Volume.interface' | ||
|
||
export interface IVariableName<IVariable> { | ||
sectionName: string | ||
variableName: string | ||
valueDecorator: (variable: IVariable) => string | ||
} | ||
|
||
export type TServiceFactory = | ||
TBaseFactory | ||
TBaseFactory & { | ||
drawSection: <IVariable>(name: IVariableName<IVariable>, variables: IVariable[], positionY: number) => void | ||
drawEnvVariables: (variables: IServiceEnvVariable[], positionY: number) => void | ||
drawPorts: (variables: IServicePortVariable[], positionY: number) => void | ||
drawVolumes: (variables: IServiceVolume[], positionY: number) => void | ||
} |
Oops, something went wrong.