Appearance
Enterprise Application (EA)
EA is Motanamy's platform for multi-user business systems. It runs in the browser and is served by the EA server. EA plugins can add pages, dashboard widgets, settings screens, roles, translations and an optional backend.
What a plugin can do
- Add dashboard widgets and pages to the main navigation
- Add settings pages under Settings
- Define roles that administrators grant to users
- Register Arabic and English translations
- Run backend routes in
main.jswith Express or NestJS
How it works
setting.json → loads script.js → registers widgets, pages, roles, translationsA minimal script.js:
js
plugins["my-plugin"] = function () {
this.addLanguage("en", "myPlugin", { name: "My Plugin" });
this.addLanguage("ar", "myPlugin", { name: "الإضافة الخاصة بي" });
this.addToSetting({
label: "My Plugin",
key: "myPlugin.name",
icon: "mdi mdi-puzzle",
to: "/app/setting/my-plugin"
});
this.addPage({
name: "/[my-plugin]setting.vue",
path: "/app/setting/my-plugin",
file: ["my-plugin", "setting.vue"]
}, "setting");
}Get started
Follow the Quick Start with --type EA:
bash
mot create my-plugin --type EANext steps
- Development Guide: the files, the workflow, roles and i18n
- script.js API: every registration method
- main.js Backend: backend routes and the database
- Example Plugin: a complete music player plugin