mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-05 06:31:46 +09:00
Extensions can now contribute a real tab to a core-owned tab group:
a new `tabs` contribution kind ({group, to, label, icon?, end?, order?},
group id == sidebar item id) is merged into the strip by TabGroupLayout
(new groupId prop; core wins `to` collisions), and route contributions
gained a `group` field so ExtensionRoutes collects them per group and
App.jsx mounts them INSIDE that group''s TabGroupLayout — the shared
PageTopbar chrome stays and the Sidebar keeps the group item lit via
contributed matchPrefixes. Wired for files/servers/monitoring.
First consumer: the FTP Server page moves to the serverkit-ftp builtin
extension (tab in the Files group; backend /api/v1/ftp stays core per
D2). Added to CONVERTED_BUILTIN_SLUGS so upgraded panels auto-install
it once; fresh installs find it in the Marketplace.
Proven by the extended contributions-envelope test (26 plugin/platform
tests green; full backend suite 1215 passed), lint 0 errors, build clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
38 lines
1.4 KiB
JSON
38 lines
1.4 KiB
JSON
{
|
|
"name": "serverkit-ftp",
|
|
"display_name": "FTP Server",
|
|
"version": "1.0.0",
|
|
"description": "FTP server management (vsftpd/proftpd) — install, users, config and logs — as a tab in the Files group.",
|
|
"author": "ServerKit",
|
|
"license": "MIT",
|
|
"category": "utility",
|
|
"homepage": "https://github.com/jhd3197/ServerKit",
|
|
"permissions": ["shell", "filesystem"],
|
|
"icon": "<rect x=\"16\" y=\"16\" width=\"6\" height=\"6\" rx=\"1\"/><rect x=\"2\" y=\"16\" width=\"6\" height=\"6\" rx=\"1\"/><rect x=\"9\" y=\"2\" width=\"6\" height=\"6\" rx=\"1\"/><path d=\"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3\"/><path d=\"M12 12V8\"/>",
|
|
"contributions": {
|
|
"tabs": [
|
|
{
|
|
"group": "files",
|
|
"to": "/ftp",
|
|
"label": "FTP Server",
|
|
"icon": "<rect x=\"16\" y=\"16\" width=\"6\" height=\"6\" rx=\"1\"/><rect x=\"2\" y=\"16\" width=\"6\" height=\"6\" rx=\"1\"/><rect x=\"9\" y=\"2\" width=\"6\" height=\"6\" rx=\"1\"/><path d=\"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3\"/><path d=\"M12 12V8\"/>"
|
|
}
|
|
],
|
|
"routes": [
|
|
{ "path": "ftp", "component": "FtpServerPage", "group": "files" },
|
|
{ "path": "ftp/:tab", "component": "FtpServerPage", "group": "files" }
|
|
],
|
|
"page_titles": {
|
|
"/ftp": "FTP Server"
|
|
},
|
|
"command_palette": [
|
|
{
|
|
"label": "FTP Server",
|
|
"path": "/ftp",
|
|
"category": "Pages",
|
|
"keywords": "sftp upload vsftpd proftpd transfer"
|
|
}
|
|
]
|
|
}
|
|
}
|