From ecb026a88f607b6f2b04fddd42608de64ea2f48a Mon Sep 17 00:00:00 2001 From: dyzulk <66510723+dyzulk@users.noreply.github.com> Date: Sun, 18 Jan 2026 17:50:23 +0700 Subject: [PATCH] docs: fix variable display and rename sidebar item --- .vitepress/config/sidebars.ts | 2 +- docs/manual/settings/templates.md | 32 +++++++++++++--------------- id/docs/manual/settings/templates.md | 32 +++++++++++++--------------- 3 files changed, 31 insertions(+), 35 deletions(-) diff --git a/.vitepress/config/sidebars.ts b/.vitepress/config/sidebars.ts index e79f6f4..7903dce 100644 --- a/.vitepress/config/sidebars.ts +++ b/.vitepress/config/sidebars.ts @@ -59,7 +59,7 @@ export const sidebarEn: DefaultTheme.Sidebar = { { text: 'Introduction', link: '/docs/manual/settings/' }, { text: 'Plugins', link: '/docs/manual/settings/plugins' }, { text: 'Routers', link: '/docs/manual/settings/routers' }, - { text: 'Templates', link: '/docs/manual/settings/templates' }, + { text: 'Voucher Templates', link: '/docs/manual/settings/templates' }, { text: 'Logos', link: '/docs/manual/settings/logos' }, { text: 'API & CORS', link: '/docs/manual/settings/api-cors' }, { text: 'System', link: '/docs/manual/settings/system' } diff --git a/docs/manual/settings/templates.md b/docs/manual/settings/templates.md index 33e5dda..fe93f55 100644 --- a/docs/manual/settings/templates.md +++ b/docs/manual/settings/templates.md @@ -8,25 +8,23 @@ Templates use HTML and specialized placeholders to display voucher data. ### Supported Variables -| Variable | Description | -| :--- | :--- | -| `\{\{username\}\}` | User's login username | -| `\{\{password\}\}` | User's login password | -| `\{\{server_name\}\}` | Hotspot server name | -| `\{\{dns_name\}\}` | DNS name for login (e.g., `hotspot.lan`) | -| `\{\{profile\}\}` | User profile/package name | -| `\{\{price\}\}` | Plan price (formatted) | -| `\{\{validity\}\}` | Validity duration | -| `\{\{time_limit\}\}` | Time limit session | -| `\{\{data_limit\}\}` | Data quota limit | -| `\{\{ip_address\}\}` | User's IP address | -| `\{\{mac_address\}\}` | User's MAC address | -| `\{\{comment\}\}` | User comment | -| `\{\{copyright\}\}` | Copyright text | -| `\{\{qrcode\}\}` | Generates a QR Code for login URL | +| `{{username}}` | User's login username | +| `{{password}}` | User's login password | +| `{{server_name}}` | Hotspot server name | +| `{{dns_name}}` | DNS name for login (e.g., `hotspot.lan`) | +| `{{profile}}` | User profile/package name | +| `{{price}}` | Plan price (formatted) | +| `{{validity}}` | Validity duration | +| `{{time_limit}}` | Time limit session | +| `{{data_limit}}` | Data quota limit | +| `{{ip_address}}` | User's IP address | +| `{{mac_address}}` | User's MAC address | +| `{{comment}}` | User comment | +| `{{copyright}}` | Copyright text | +| `{{qrcode}}` | Generates a QR Code for login URL | > [!TIP] -> The `\{\{qrcode\}\}` variable supports custom attributes for styling, for example: `\{\{qrcode size=100 fg=red\}\}`. +> The `{{qrcode}}` variable supports custom attributes for styling, for example: `{{qrcode size=100 fg=red}}`. - **Preview**: Test your template instantly from the editor. ## Quick Print diff --git a/id/docs/manual/settings/templates.md b/id/docs/manual/settings/templates.md index ad2d324..6bb3f7e 100644 --- a/id/docs/manual/settings/templates.md +++ b/id/docs/manual/settings/templates.md @@ -8,25 +8,23 @@ Template menggunakan HTML dan placeholder khusus untuk menampilkan data voucher. ### Variabel yang Didukung -| Variabel | Deskripsi | -| :--- | :--- | -| `\{\{username\}\}` | Username login pengguna | -| `\{\{password\}\}` | Password login pengguna | -| `\{\{server_name\}\}` | Nama server hotspot | -| `\{\{dns_name\}\}` | Nama DNS untuk login (cth: `hotspot.lan`) | -| `\{\{profile\}\}` | Nama profil/paket pengguna | -| `\{\{price\}\}` | Harga paket (terformat) | -| `\{\{validity\}\}` | Durasi masa aktif | -| `\{\{time_limit\}\}` | Batas waktu sesi | -| `\{\{data_limit\}\}` | Batas kuota data | -| `\{\{ip_address\}\}` | Alamat IP pengguna | -| `\{\{mac_address\}\}` | Alamat MAC pengguna | -| `\{\{comment\}\}` | Komentar pengguna | -| `\{\{copyright\}\}` | Teks hak cipta | -| `\{\{qrcode\}\}` | Menghasilkan kode QR untuk URL login | +| `{{username}}` | Username login pengguna | +| `{{password}}` | Password login pengguna | +| `{{server_name}}` | Nama server hotspot | +| `{{dns_name}}` | Nama DNS untuk login (cth: `hotspot.lan`) | +| `{{profile}}` | Nama profil/paket pengguna | +| `{{price}}` | Harga paket (terformat) | +| `{{validity}}` | Durasi masa aktif | +| `{{time_limit}}` | Batas waktu sesi | +| `{{data_limit}}` | Batas kuota data | +| `{{ip_address}}` | Alamat IP pengguna | +| `{{mac_address}}` | Alamat MAC pengguna | +| `{{comment}}` | Komentar pengguna | +| `{{copyright}}` | Teks hak cipta | +| `{{qrcode}}` | Menghasilkan kode QR untuk URL login | > [!TIP] -> Variabel `\{\{qrcode\}\}` mendukung atribut kustom untuk gaya, contohnya: `\{\{qrcode size=100 fg=red\}\}`. +> Variabel `{{qrcode}}` mendukung atribut kustom untuk gaya, contohnya: `{{qrcode size=100 fg=red}}`. - **Preview**: Uji template Anda secara instan dari editor. ## Cetak Cepat