First working draft of inventory sync

This commit is contained in:
Daniel committed 2021-07-12 22:05:53 +02:00
1 parent a578719fc5
commit 86bd07666f
12 files changed
+512

No files matched your search

Whitespace-only changes.
+32
View File
@@ -0,0 +1,32 @@
import React, { useContext } from "react";
import { Typography } from "antd";
import libPlugin from "@clusterio/lib/plugin";
import { notifyErrorHandler, PageLayout, ControlContext } from "@clusterio/web_ui";
import info from "../info";
import "./index.css";
const { Paragraph } = Typography;
function InventoryPage() {
// let control = useContext(ControlContext);
return <PageLayout nav={[{ name: "Inventory sync" }]}>
<h2>Inventory sync</h2>
</PageLayout>;
}
export class WebPlugin extends libPlugin.BaseWebPlugin {
async init() {
this.pages = [
{ path: "/inventory", sidebarName: "Inventory sync", content: <InventoryPage /> },
];
}
onMasterConnectionEvent(event) {
if (event === "connect") {
}
}
}