Page MenuHomeSealhub

page.ts
No OneTemporary

import { Collection, FieldTypes, Policies } from "sealious";
import { CRUDRoles } from "../policy-types/roles.js";
export default class Page extends Collection {
fields = {
url: new FieldTypes.Text().setRequired(true),
content: new FieldTypes.JDD().setRequired(true),
domain: new FieldTypes.Text(),
title: new FieldTypes.Text(),
heading: new FieldTypes.Text(),
description: new FieldTypes.Text(),
imageForMetadata: new FieldTypes.Image().setRequired(true),
hideNavigation: new FieldTypes.Boolean(),
};
policies = CRUDRoles(["page"], { show: new Policies.Public() });
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Dec 24, 14:03 (10 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556688
Default Alt Text
page.ts (589 B)

Event Timeline