Move web interface to its own package

Create clusterio/web_ui package and move all of the web interface files
to it in order to be able to share the interface components with
plugins.
This commit is contained in:
Hornwitser committed 2020-10-28 19:22:14 +01:00
1 parent eee4c69575
commit 690e566556
32 files changed
+46 -27

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { notification } from "antd";
export default function notify(message, type = "info", description = undefined) {
notification[type]({
message: typeof message === "string" ? message : "ERROR: See console",
description,
placement: "bottomRight",
});
if (typeof message !== "string") console.error(message);
}