initial
This commit is contained in:
parent
aa7c30950c
commit
72716e1c28
41 changed files with 15461 additions and 0 deletions
27
frontend/app/types.ts
Normal file
27
frontend/app/types.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// TypeScript variants of the Java classes.
|
||||
// Typically, standalone DTOs (Data Transfer Objects) are used to communicate with the backend,
|
||||
// but we'll keep it simple here.
|
||||
|
||||
export type UiPropertyType = "number" | "string" | "text";
|
||||
|
||||
export class TypeProperty {
|
||||
constructor(public name: string, public type: UiPropertyType) {}
|
||||
}
|
||||
|
||||
export class DataType {
|
||||
constructor(
|
||||
public id: string,
|
||||
public name: string,
|
||||
public properties: TypeProperty[]
|
||||
) {}
|
||||
|
||||
static empty(): DataType {
|
||||
return new DataType("", "", []);
|
||||
}
|
||||
}
|
||||
|
||||
export class DataTypeConfiguration {
|
||||
constructor(public dataTypes: DataType[]) {}
|
||||
}
|
||||
|
||||
export type Runnable = () => void;
|
||||
Loading…
Add table
Add a link
Reference in a new issue