117 lines
1.7 KiB
JavaScript
117 lines
1.7 KiB
JavaScript
import i18n from "../i18n/i18n";
|
|
|
|
export const tableThemes = [
|
|
"#f03c3c",
|
|
"#ff4f81",
|
|
"#bc49c4",
|
|
"#a751e8",
|
|
"#7c4af0",
|
|
"#6360f7",
|
|
"#7d9dff",
|
|
"#32c9b0",
|
|
"#3cde7d",
|
|
"#89e667",
|
|
"#ffe159",
|
|
"#ff9159",
|
|
];
|
|
|
|
export const noteThemes = [
|
|
"#ffdfd9",
|
|
"#fcf7ac",
|
|
"#cffcb1",
|
|
"#c7d2ff",
|
|
"#e7c7ff",
|
|
];
|
|
|
|
export const defaultBlue = "#175e7a";
|
|
export const defaultNoteTheme = "#fcf7ac";
|
|
export const tableHeaderHeight = 50;
|
|
export const tableWidth = 200;
|
|
export const tableFieldHeight = 36;
|
|
export const tableColorStripHeight = 7;
|
|
|
|
export const Cardinality = {
|
|
ONE_TO_ONE: i18n.t("one_to_one"),
|
|
ONE_TO_MANY: i18n.t("one_to_many"),
|
|
MANY_TO_ONE: i18n.t("many_to_one"),
|
|
};
|
|
|
|
export const Constraint = {
|
|
NONE: "No action",
|
|
RESTRICT: "Restrict",
|
|
CASCADE: "Cascade",
|
|
SET_NULL: "Set null",
|
|
SET_DEFAULT: "Set default",
|
|
};
|
|
|
|
export const Tab = {
|
|
TABLES: "1",
|
|
RELATIONSHIPS: "2",
|
|
AREAS: "3",
|
|
NOTES: "4",
|
|
TYPES: "5",
|
|
ENUMS: "6",
|
|
};
|
|
|
|
export const ObjectType = {
|
|
NONE: 0,
|
|
TABLE: 1,
|
|
AREA: 2,
|
|
NOTE: 3,
|
|
RELATIONSHIP: 4,
|
|
TYPE: 5,
|
|
ENUM: 6,
|
|
};
|
|
|
|
export const Action = {
|
|
ADD: 0,
|
|
MOVE: 1,
|
|
DELETE: 2,
|
|
EDIT: 3,
|
|
PAN: 4,
|
|
};
|
|
|
|
export const State = {
|
|
NONE: 0,
|
|
SAVING: 1,
|
|
SAVED: 2,
|
|
LOADING: 3,
|
|
ERROR: 4,
|
|
};
|
|
|
|
export const MODAL = {
|
|
NONE: 0,
|
|
IMG: 1,
|
|
CODE: 2,
|
|
IMPORT: 3,
|
|
RENAME: 4,
|
|
OPEN: 5,
|
|
SAVEAS: 6,
|
|
NEW: 7,
|
|
IMPORT_SRC: 8,
|
|
TABLE_WIDTH: 9,
|
|
LANGUAGE: 10,
|
|
};
|
|
|
|
export const STATUS = {
|
|
NONE: 0,
|
|
WARNING: 1,
|
|
ERROR: 2,
|
|
OK: 3,
|
|
};
|
|
|
|
export const SIDESHEET = {
|
|
NONE: 0,
|
|
TODO: 1,
|
|
TIMELINE: 2,
|
|
};
|
|
|
|
export const DB = {
|
|
MYSQL: "mysql",
|
|
POSTGRES: "postgresql",
|
|
MSSQL: "mssql",
|
|
SQLITE: "sqlite",
|
|
MARIADB: "mariadb",
|
|
GENERIC: "generic",
|
|
};
|