2023-09-19 20:47:50 +08:00
|
|
|
const menu = {
|
2023-09-19 20:47:54 +08:00
|
|
|
File: {
|
|
|
|
New: [],
|
|
|
|
"New window": [],
|
|
|
|
Save: [],
|
|
|
|
"Save as": [],
|
|
|
|
Share: [],
|
|
|
|
Rename: [],
|
|
|
|
Import: [],
|
|
|
|
"Export as": [".png", ".jpg", ".pdf", ".xml"],
|
|
|
|
"Export source": ["MySQL", "PostgreSQL", "DBML"],
|
|
|
|
Properties: [],
|
|
|
|
Close: [],
|
|
|
|
},
|
|
|
|
Edit: {
|
|
|
|
Undo: [],
|
|
|
|
Redo: [],
|
|
|
|
Cut: [],
|
|
|
|
Copy: [],
|
|
|
|
"Copy as image": [],
|
|
|
|
Paste: [],
|
|
|
|
Delete: [],
|
|
|
|
"Edit table": [],
|
|
|
|
},
|
|
|
|
View: {
|
|
|
|
Toolbar: [],
|
|
|
|
Grid: [],
|
|
|
|
Sidebar: [],
|
|
|
|
Editor: [],
|
|
|
|
"Reset view": [],
|
|
|
|
"View schema": [],
|
|
|
|
Theme: ["Light", "Dark"],
|
|
|
|
"Zoom in": [],
|
|
|
|
"Zoom out": [],
|
|
|
|
Fullscreen: [],
|
|
|
|
},
|
|
|
|
Insert: {
|
|
|
|
"New table": [],
|
|
|
|
"New relationship": [],
|
|
|
|
Note: [],
|
|
|
|
Image: [],
|
|
|
|
Textbox: [],
|
|
|
|
Shape: ["Rhombus", "Rectangle"],
|
|
|
|
},
|
|
|
|
Logs: {
|
|
|
|
"Open logs": [],
|
|
|
|
"Commit changes": [],
|
|
|
|
"Revert changes": [],
|
|
|
|
"View commits": [],
|
|
|
|
},
|
|
|
|
Help: {
|
|
|
|
Shortcuts: [],
|
|
|
|
"Ask us on discord": [],
|
|
|
|
"Tweet us": [],
|
|
|
|
"Found a bug": [],
|
|
|
|
},
|
2023-09-19 20:47:50 +08:00
|
|
|
};
|
2023-09-19 20:47:54 +08:00
|
|
|
|
2023-09-19 20:47:50 +08:00
|
|
|
const sqlDataTypes = [
|
2023-09-19 20:47:54 +08:00
|
|
|
"INT",
|
|
|
|
"SMALLINT",
|
|
|
|
"BIGINT",
|
|
|
|
"DECIMAL",
|
|
|
|
"NUMERIC",
|
|
|
|
"FLOAT",
|
|
|
|
"REAL",
|
|
|
|
"DOUBLE PRECISION",
|
|
|
|
"CHAR",
|
|
|
|
"VARCHAR",
|
|
|
|
"TEXT",
|
|
|
|
"DATE",
|
|
|
|
"TIME",
|
|
|
|
"TIMESTAMP",
|
|
|
|
"INTERVAL",
|
|
|
|
"BOOLEAN",
|
|
|
|
"BINARY",
|
|
|
|
"VARBINARY",
|
|
|
|
"BLOB",
|
|
|
|
"CLOB",
|
|
|
|
"UUID",
|
|
|
|
"XML",
|
|
|
|
"JSON",
|
|
|
|
];
|
|
|
|
|
|
|
|
const tableThemes = [
|
|
|
|
"#f03c3c",
|
|
|
|
"#ff4f81",
|
|
|
|
"#bc49c4",
|
|
|
|
"#a751e8",
|
|
|
|
"#7c4af0",
|
|
|
|
"#6360f7",
|
|
|
|
"#7d9dff",
|
|
|
|
"#32c9b0",
|
|
|
|
"#3cde7d",
|
|
|
|
"#89e667",
|
|
|
|
"#ffe159",
|
|
|
|
"#ff9159",
|
|
|
|
];
|
|
|
|
|
|
|
|
const defaultTableTheme = "#9e9e9e"
|
2023-09-19 20:47:50 +08:00
|
|
|
|
2023-09-19 20:47:54 +08:00
|
|
|
export { menu, sqlDataTypes, tableThemes, defaultTableTheme };
|