Import web interface from clusterio/clusterioWeb

Import the source files in use for the web interface, excluding the
copied and modified lib/link files.
This commit is contained in:
Danielv123 authored and Hornwitser committed 2020-09-28 04:19:00 +02:00
1 parent f318f8826b
commit 2382f4bbdc
17 files changed
+1795

No files matched your search

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