mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-19 05:03:57 +00:00
relayout folders
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export type Config = {
|
||||
modules: ModuleConfiguration[];
|
||||
routes: RouteConfiguration[];
|
||||
};
|
||||
|
||||
export type ConfigState = {
|
||||
config: Config;
|
||||
timestamp: number;
|
||||
isCurrent: boolean;
|
||||
};
|
||||
|
||||
export type ModuleConfiguration = {
|
||||
id?: string;
|
||||
type: string;
|
||||
params?: Record<string, any>;
|
||||
};
|
||||
|
||||
export type RouteConfiguration = {
|
||||
input?: string;
|
||||
processors?: ProcessorConfiguration[];
|
||||
output?: string;
|
||||
};
|
||||
|
||||
export type ProcessorConfiguration = {
|
||||
type: string;
|
||||
params?: Record<string, any>;
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
import { FormGroup } from '@angular/forms';
|
||||
|
||||
export type ObjectInfo = {
|
||||
name: string;
|
||||
type: string;
|
||||
schema: any;
|
||||
};
|
||||
|
||||
export type ParamsFormInfo = {
|
||||
formGroup: FormGroup;
|
||||
paramsInfo: ParamsInfo;
|
||||
};
|
||||
|
||||
export type ParamsInfo = {
|
||||
[key: string]: ParamInfo;
|
||||
};
|
||||
|
||||
export type ParamInfo = {
|
||||
key: string;
|
||||
display: string;
|
||||
hint: string;
|
||||
type: string;
|
||||
placeholder?: string;
|
||||
options?: string[];
|
||||
isConst: boolean;
|
||||
schema: any;
|
||||
default?: any;
|
||||
};
|
||||
Reference in New Issue
Block a user