Plugin SDK
Write a plugin: package layout, module.json, register() with hooks and filters, admin pages, settings, jobs, API routes, data and security, then test and pack it.
Уроки
Уроки для разработчиков написаны на английском: код, названия API и имена файлов везде на английском.
- Plugin package layout and lifecycleThe folder a plugin lives in, what each file does, and what happens on preview, install, enable/disable and uninstall.около 8 мин
- module.json referenceEvery manifest field: identity, permissions, sidebar entries, settings, jobs, hooks, filters, widgets, routes, schema, messages, tests and checksum.около 10 мин
- register(): hooks and filtersHooks react after the fact and never break the caller; filters run before the fact and may change a value or veto an action.около 10 мин
- Admin pages, permissions and settingsServer-component pages with permission guards, server actions that validate and log, and settings fields stored for you.около 9 мин
- Scheduled jobs and plugin API routesJobs run from the maintenance tick; API routes are published under /api/plugins/<id> and must authenticate every call.около 8 мин
- Data access and security rulespluginStore or an additive schema fragment, Prisma only, minor-unit money, and the nine security rules every plugin follows.около 9 мин
- Create, test and pack a pluginScaffold with the create-module wizard, iterate in Module Studio, write check.ts, then validate, pack with a checksum and install.около 9 мин