Giao diện
@digiforce-nc/plugin-developer-platform
Plugin nền tảng phát triển — cung cấp công cụ cho developer tạo, test, debug và publish plugin trực tiếp từ giao diện Digiforce.
Plugin này làm gì?
plugin-developer-platform biến Digiforce thành môi trường phát triển plugin: tạo plugin mới từ template, hot-reload khi code thay đổi, test API trực tiếp, xem debug log, và publish lên marketplace — tất cả từ giao diện web, không cần rời khỏi trình duyệt.
Sáu tính năng chính
| # | Tính năng | Chi tiết |
|---|---|---|
| 1 | Plugin scaffold | Wizard tạo plugin mới: chọn template, đặt tên, sinh boilerplate code |
| 2 | Hot reload | Tự detect thay đổi code → reload plugin không cần restart server |
| 3 | Debug console | Xem log realtime, filter theo level, search text |
| 4 | API playground | Giao diện test API: chọn resource/action, nhập params, xem response |
| 5 | Package builder | Build TypeScript, bundle assets, tạo package sẵn sàng publish |
| 6 | Publish | Đẩy package lên marketplace hoặc private registry |
Kiến trúc
Luồng phát triển plugin
Plugin templates
| Template | Mô tả |
|---|---|
| Basic | Plugin tối thiểu: server + client skeleton |
| Collection | Plugin với custom collection và CRUD API |
| Widget | Plugin thêm UI widget (block) |
| Provider | Plugin đăng ký provider (auth, storage, verification...) |
Thành phần client
| Thành phần | Mô tả |
|---|---|
PluginScaffold | Wizard tạo plugin mới (chọn template, nhập metadata) |
DevConsole | Console debug: log realtime, filter, search |
APIPlayground | Giao diện test API (resource picker, params editor, response viewer) |
PackageBuilder | UI build plugin: progress, logs, download artifact |
PluginExplorer | File browser cho plugin source code |
Dependencies
| Package | Vai trò |
|---|---|
@digiforce-nc/server | Server framework |
@digiforce-nc/client | Client UI framework |
@digiforce-nc/database | Database ORM |
Mục lục chi tiết
(Xem trang tổng quan ở trên)