2020-06-15 17:41:31 +02:00
|
|
|
const FIELD_TYPES = ["string", "number", "boolean"]
|
|
|
|
|
|
|
|
export const FIELDS = {
|
|
|
|
PLAIN_TEXT: {
|
|
|
|
name: "Plain Text",
|
|
|
|
icon: "ri-text",
|
2020-06-16 21:29:18 +02:00
|
|
|
type: "string",
|
|
|
|
constraints: {
|
2020-06-15 17:41:31 +02:00
|
|
|
type: "string",
|
2020-06-16 21:29:18 +02:00
|
|
|
length: {},
|
|
|
|
presence: false,
|
2020-06-15 17:41:31 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
NUMBER: {
|
|
|
|
name: "Number",
|
|
|
|
icon: "ri-number-1",
|
2020-06-16 21:29:18 +02:00
|
|
|
type: "number",
|
|
|
|
constraints: {
|
2020-06-15 17:41:31 +02:00
|
|
|
type: "number",
|
2020-06-16 21:29:18 +02:00
|
|
|
presence: false,
|
|
|
|
numericality: {},
|
2020-06-15 17:41:31 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
BOOLEAN: {
|
|
|
|
name: "True/False",
|
|
|
|
icon: "ri-toggle-line",
|
2020-06-16 21:29:18 +02:00
|
|
|
type: "boolean",
|
|
|
|
constraints: {
|
2020-06-15 17:41:31 +02:00
|
|
|
type: "boolean",
|
2020-06-16 21:29:18 +02:00
|
|
|
presence: false,
|
2020-06-15 17:41:31 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
OPTIONS: {
|
|
|
|
name: "Options",
|
|
|
|
icon: "ri-list-check-2",
|
2020-06-16 21:29:18 +02:00
|
|
|
type: "options",
|
|
|
|
constraints: {
|
|
|
|
type: "string",
|
|
|
|
presence: false,
|
2020-06-15 17:41:31 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
DATETIME: {
|
|
|
|
name: "Date/Time",
|
|
|
|
icon: "ri-calendar-event-fill",
|
2020-06-16 21:29:18 +02:00
|
|
|
type: "datetime",
|
|
|
|
constraints: {
|
2020-06-15 17:41:31 +02:00
|
|
|
type: "date",
|
2020-06-16 21:29:18 +02:00
|
|
|
datetime: {},
|
|
|
|
presence: false,
|
2020-06-15 17:41:31 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
IMAGE: {
|
|
|
|
name: "Image",
|
|
|
|
icon: "ri-image-line",
|
2020-06-16 21:29:18 +02:00
|
|
|
type: "image",
|
|
|
|
constraints: {
|
|
|
|
type: "string",
|
|
|
|
presence: false,
|
2020-06-15 17:41:31 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
FILE: {
|
|
|
|
name: "Image",
|
|
|
|
icon: "ri-file-line",
|
2020-06-16 21:29:18 +02:00
|
|
|
type: "file",
|
|
|
|
constraints: {
|
|
|
|
type: "string",
|
|
|
|
presence: false,
|
2020-06-15 17:41:31 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
DATA_LINK: {
|
|
|
|
name: "Data Links",
|
|
|
|
icon: "ri-link",
|
2020-06-16 21:29:18 +02:00
|
|
|
type: "link",
|
|
|
|
modelId: null,
|
|
|
|
constraints: {
|
|
|
|
type: "array",
|
|
|
|
}
|
2020-06-15 17:41:31 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const BLOCKS = {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export const TABLES = {}
|