From c298d4b6fbe1d64e2193f6c845128f4f9ec7c13d Mon Sep 17 00:00:00 2001 From: dyzulk <66510723+dyzulk@users.noreply.github.com> Date: Mon, 19 Jan 2026 10:06:07 +0700 Subject: [PATCH] feat: Add English plugin development guide, replacing the Indonesian version. --- docs/guide/plugin-development.md | 6 ++++-- id/docs/guide/plugin-development.md | 6 ++++-- public/plugins.json | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 public/plugins.json diff --git a/docs/guide/plugin-development.md b/docs/guide/plugin-development.md index 9afb1f7..053857b 100644 --- a/docs/guide/plugin-development.md +++ b/docs/guide/plugin-development.md @@ -28,11 +28,12 @@ Your `plugin.php` **must** start with a specific comment block. The Registry cra * Version: 1.0.0 * Author: YourName * Category: Hotspot Tools + * Scope: Global * Tags: theme, dark-mode, ui * Core Version: >=1.2.0 */ -use App\Services\Hook; +use App\Core\Hooks; // Plugin logic starts here... ``` @@ -41,7 +42,8 @@ use App\Services\Hook; - **Plugin Name**: Displayed title. - **Description**: Short summary (max 160 chars). - **Version**: SemVer format (e.g., `1.0.0`). -- **Category**: One of: `Hotspot Tools`, `System Tools`, `Payment Gateway`, `Reports`. +- **Category**: One of: `Hotspot Tools`, `System Tools`, `Payment Gateway`, `Reports`, `Language Pack`. +- **Scope**: `Global` (available everywhere) or `Session` (specific to a router session). - **Tags**: Comma-separated search keywords. ## Release & Registry Rules diff --git a/id/docs/guide/plugin-development.md b/id/docs/guide/plugin-development.md index 3b61085..8603c88 100644 --- a/id/docs/guide/plugin-development.md +++ b/id/docs/guide/plugin-development.md @@ -28,11 +28,12 @@ File `plugin.php` Anda **wajib** dimulai dengan blok komentar khusus. Crawler Re * Version: 1.0.0 * Author: NamaAnda * Category: Hotspot Tools + * Scope: Global * Tags: theme, dark-mode, ui * Core Version: >=1.2.0 */ -use App\Services\Hook; +use App\Core\Hooks; // Logika plugin dimulai di sini... ``` @@ -41,7 +42,8 @@ use App\Services\Hook; - **Plugin Name**: Nama yang ditampilkan. - **Description**: Ringkasan pendek (maks 160 karakter). - **Version**: Format SemVer (contoh: `1.0.0`). -- **Category**: Salah satu dari: `Hotspot Tools`, `System Tools`, `Payment Gateway`, `Reports`. +- **Category**: Salah satu dari: `Hotspot Tools`, `System Tools`, `Payment Gateway`, `Reports`, `Language Pack`. +- **Scope**: `Global` (tersedia di mana saja) atau `Session` (spesifik untuk sesi router). - **Tags**: Kata kunci pencarian (dipisahkan koma). ## Aturan Rilis & Registry diff --git a/public/plugins.json b/public/plugins.json deleted file mode 100644 index af8b583..0000000 --- a/public/plugins.json +++ /dev/null @@ -1 +0,0 @@ -[{"id":"plugin-mivo-theme","name":"Mivo Theme Downloader","description":"Allows downloading the Captive Portal theme with auto-configuration.","author":"DyzulkDev","version":"1.0.0","category":"Hotspot Tools","tags":["theme","downloader","hotspot","captive-portal"],"repo":"https://github.com/mivodev/plugin-mivo-theme","download":"https://github.com/mivodev/plugin-mivo-theme/releases/download/v1.0.0/plugin-mivo-theme.zip","readme":"/plugins/plugin-mivo-theme","updated_at":"2026-01-18T09:35:20Z"}] \ No newline at end of file