Page MenuHomeSealhub

shared.ts
No OneTemporary

shared.ts

import { Controls, Fields } from "@sealcode/sealgen";
import { Pages } from "../../../collections/collections.js";
import { imageRouter } from "../../../image-router.js";
import { TheFileManager } from "../../../file-manager.js";
export const PagesFormFields = <const>{
url: new Fields.CollectionField(Pages.fields.url.required, Pages.fields.url),
domain: new Fields.CollectionField(Pages.fields.domain.required, Pages.fields.domain),
title: new Fields.CollectionField(Pages.fields.title.required, Pages.fields.title),
heading: new Fields.CollectionField(
Pages.fields.heading.required,
Pages.fields.heading
),
description: new Fields.CollectionField(
Pages.fields.description.required,
Pages.fields.description
),
imageForMetadata: new Fields.File(false, TheFileManager),
hideNavigation: new Fields.Boolean(Pages.fields.hideNavigation.required),
};
export const PagesFormControls = [
new Controls.SimpleInput(PagesFormFields.url, { label: "url" }),
new Controls.SimpleInput(PagesFormFields.domain, { label: "domain" }),
new Controls.SimpleInput(PagesFormFields.title, { label: "title" }),
new Controls.SimpleInput(PagesFormFields.heading, { label: "heading" }),
new Controls.SimpleInput(PagesFormFields.description, { label: "description" }),
new Controls.Photo(PagesFormFields.imageForMetadata, imageRouter, {
label: "imageForMetadata",
}),
new Controls.Checkbox(PagesFormFields.hideNavigation, { label: "hideNavigation" }),
];

File Metadata

Mime Type
text/x-java
Expires
Sun, Nov 2, 17:31 (14 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1030461
Default Alt Text
shared.ts (1 KB)

Event Timeline