diff --git a/src/App.vue b/src/App.vue index 5028729..6ad1bca 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,28 +1,83 @@ diff --git a/src/background.ts b/src/background.ts index 13ac1c2..3617a4f 100644 --- a/src/background.ts +++ b/src/background.ts @@ -1,6 +1,6 @@ "use strict"; -import { app, protocol, BrowserWindow } from "electron"; +import { app, protocol, BrowserWindow, ipcMain } from "electron"; import { createProtocol } from "vue-cli-plugin-electron-builder/lib"; import installExtension, { VUEJS_DEVTOOLS } from "electron-devtools-installer"; const isDevelopment = process.env.NODE_ENV !== "production"; @@ -78,3 +78,8 @@ if (isDevelopment) { }); } } + +ipcMain.on("login", (event, nickname) => { + event.reply("loginStatus", true); + console.log(nickname); +}); diff --git a/src/components/Chat.vue b/src/components/Chat.vue deleted file mode 100644 index 20c9cca..0000000 --- a/src/components/Chat.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..cad8a5e --- /dev/null +++ b/vue.config.js @@ -0,0 +1,7 @@ +module.exports = { + pluginOptions: { + electronBuilder: { + nodeIntegration: true, + }, + }, +};