public commit

This commit is contained in:
dswbx
2024-11-16 12:01:47 +01:00
commit 90f80c4280
582 changed files with 49291 additions and 0 deletions
@@ -0,0 +1,80 @@
import {
TbBraces,
TbCalendar,
TbCirclesRelation,
TbCodePlus,
TbNumber123,
TbPhoto,
TbSelector,
TbTextCaption,
TbToggleLeft
} from "react-icons/tb";
type TFieldSpec = {
type: string;
label: string;
icon: any;
addable?: boolean;
disabled?: string[];
hidden?: string[];
};
export const fieldSpecs: TFieldSpec[] = [
{
type: "primary",
label: "Primary",
icon: TbTextCaption,
addable: false,
disabled: ["name"],
hidden: ["virtual"]
},
{
type: "text",
label: "Text",
icon: TbTextCaption
},
{
type: "number",
label: "Number",
icon: TbNumber123
},
{
type: "boolean",
label: "Boolean",
icon: TbToggleLeft
},
{
type: "date",
label: "Date",
icon: TbCalendar
},
{
type: "enum",
label: "Enum",
icon: TbSelector
},
{
type: "json",
label: "JSON",
icon: TbBraces
},
{
type: "jsonschema",
label: "JSON Schema",
icon: TbCodePlus
},
{
type: "relation",
label: "Relation",
icon: TbCirclesRelation,
addable: false,
hidden: ["virtual"]
},
{
type: "media",
label: "Media",
icon: TbPhoto,
addable: false,
hidden: ["virtual"]
}
];