mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 23:33:12 +09:00
Add hook to add extra content to Web UI pages
Allow plugins to extend Web UI pages provided by Clusterio by adding components in the componentExtra property of the plugin.
This commit is contained in:
1 parent
68b8ac6b8c
commit
5319ff3907
11 files changed
+73
-1
No files matched your search
@@ -8,6 +8,7 @@ import { libLink } from "@clusterio/lib";
|
||||
import { useAccount } from "../model/account";
|
||||
import ControlContext from "./ControlContext";
|
||||
import PageLayout from "./PageLayout";
|
||||
import PluginExtra from "./PluginExtra";
|
||||
import InstanceConfigTree from "./InstanceConfigTree";
|
||||
import LogConsole from "./LogConsole";
|
||||
import InstanceRcon from "./InstanceRcon";
|
||||
@@ -147,5 +148,7 @@ export default function InstanceViewPage(props) {
|
||||
}
|
||||
|
||||
{account.hasPermission("core.instance.get_config") && <InstanceConfigTree id={instanceId} />}
|
||||
|
||||
<PluginExtra component="InstanceViewPage" instance={instance} />
|
||||
</PageLayout>;
|
||||
}
|
||||
Reference in new issue
Block a user