mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
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:
1 parent
eee4c69575
commit
690e566556
32 files changed
+46
-27
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user