Initial clean project import

This commit is contained in:
cat-shark
2026-06-19 18:41:41 +08:00
commit a13b804c7a
1306 changed files with 220568 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { ipcRenderer } from "electron";
const init = () => {};
const send = (name: string, type: string, data: any = {}) => {
return ipcRenderer.invoke("event:send", name, type, data).then();
};
const callPage = async (name: string, type: string, data: any, option: any) => {
return ipcRenderer.invoke("event:callPage", name, type, data, option);
};
const channelSend = async (channel: string, data: any) => {
return ipcRenderer.invoke("event:channelSend", channel, data);
};
export default {
init,
send,
callPage,
channelSend,
};