Add .env.example with configuration for database, Redis, security, SMTP, workers, and plugins. Add .gitignore for Python, Node.js, Next.js, Docker volumes, and IDE files. Add MIT License. Update README.md with feature overview, quick start guide, architecture description, plugin system documentation, security details, backup/restore instructions, and developer setup. Add Alembic configuration files and placeholder directories for API, web, worker, and plugin components
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
export const APP_NAME = "NexaDash";
|
|
export const DEFAULT_LOCALE = "en";
|
|
export const SUPPORTED_LOCALES = ["en", "de"];
|
|
export const DEFAULT_THEME = "system";
|
|
export const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000";
|
|
|
|
export const PERMISSIONS = {
|
|
USER_READ: "user:read",
|
|
USER_WRITE: "user:write",
|
|
USER_DELETE: "user:delete",
|
|
USER_INVITE: "user:invite",
|
|
ROLE_READ: "role:read",
|
|
ROLE_WRITE: "role:write",
|
|
DASHBOARD_READ: "dashboard:read",
|
|
DASHBOARD_WRITE: "dashboard:write",
|
|
DASHBOARD_DELETE: "dashboard:delete",
|
|
DASHBOARD_SHARE: "dashboard:share",
|
|
PLUGIN_READ: "plugin:read",
|
|
PLUGIN_WRITE: "plugin:write",
|
|
PLUGIN_DELETE: "plugin:delete",
|
|
PLUGIN_ADMIN: "plugin:admin",
|
|
PLUGIN_INSTALL: "plugin:install",
|
|
CONNECTION_READ: "connection:read",
|
|
CONNECTION_WRITE: "connection:write",
|
|
CONNECTION_DELETE: "connection:delete",
|
|
CONNECTION_TEST: "connection:test",
|
|
SYSTEM_READ: "system:read",
|
|
SYSTEM_WRITE: "system:write",
|
|
AUDIT_READ: "audit:read",
|
|
BACKUP_RESTORE: "backup:restore",
|
|
API_TOKEN_READ: "api_token:read",
|
|
API_TOKEN_WRITE: "api_token:write",
|
|
} as const;
|
|
|
|
export const STATUS_COLORS = {
|
|
ok: "bg-emerald-500",
|
|
warning: "bg-amber-500",
|
|
error: "bg-rose-500",
|
|
critical: "bg-rose-600",
|
|
info: "bg-blue-500",
|
|
unknown: "bg-slate-400",
|
|
} as const;
|