सीधे कंटेंट पर जाएँ
14 दिन का मुफ़्त ट्रायल, कार्ड नहीं चाहिए9 भाषाएँ176 व्यवसाय प्रकार · 50 ऐप
HI· USD
लाइव डेमो आज़माएँमुफ़्त ट्रायल शुरू करें

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.

  • 7 पाठ
  • लगभग 63 मिनट

पहला पाठ शुरू करें

पाठ

डेवलपर पाठ अंग्रेज़ी में लिखे गए हैं: कोड, API के नाम और फ़ाइलों के नाम हर जगह अंग्रेज़ी में होते हैं।

  1. 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 मिनट
  2. module.json referenceEvery manifest field: identity, permissions, sidebar entries, settings, jobs, hooks, filters, widgets, routes, schema, messages, tests and checksum.लगभग 10 मिनट
  3. 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 मिनट
  4. Admin pages, permissions and settingsServer-component pages with permission guards, server actions that validate and log, and settings fields stored for you.लगभग 9 मिनट
  5. 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 मिनट
  6. Data access and security rulespluginStore or an additive schema fragment, Prisma only, minor-unit money, and the nine security rules every plugin follows.लगभग 9 मिनट
  7. 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 मिनट