mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-28 07:41:27 +00:00
merge: resolve main into feat/app-demo-polish
This commit is contained in:
commit
38e0bc1802
42 files changed
+4125
-585
No files matched your search
@@ -124,6 +124,7 @@ export type TemplateEntity = {
|
||||
variablesRaw: string;
|
||||
isOfficial: boolean;
|
||||
ownerId: string | null;
|
||||
isPublic: boolean;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
};
|
||||
@@ -618,6 +619,7 @@ function normalizeTemplate(template: RawServiceTemplate): TemplateEntity | null
|
||||
variablesRaw: template.variables ?? '',
|
||||
isOfficial: Boolean(template.is_official),
|
||||
ownerId: template.owner_id ?? null,
|
||||
isPublic: Boolean(template.is_public),
|
||||
createdAt: template.created_at,
|
||||
updatedAt: template.updated_at,
|
||||
};
|
||||
@@ -1361,6 +1363,7 @@ export type TemplateWriteInput = {
|
||||
logo?: string;
|
||||
config: Record<string, unknown>;
|
||||
variables?: TemplateVariableEntity[];
|
||||
isPublic?: boolean;
|
||||
};
|
||||
|
||||
function templateWriteBody(input: TemplateWriteInput): string {
|
||||
@@ -1371,6 +1374,7 @@ function templateWriteBody(input: TemplateWriteInput): string {
|
||||
logo: input.logo ?? '',
|
||||
config: input.config,
|
||||
variables: input.variables ?? [],
|
||||
is_public: input.isPublic ?? false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user