From: Andrew Gundersen Date: Sat, 20 Feb 2021 16:47:28 +0000 (-0600) Subject: factored out window styling to app.vue and other style improvments X-Git-Tag: v0.9~81^2~2 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=d62561f6e8878ca7983805abbded665a62c887ce;p=mime-chat factored out window styling to app.vue and other style improvments --- diff --git a/src/App.vue b/src/App.vue index 13dae39..d3e2d89 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,26 @@ diff --git a/src/background/run.ts b/src/background/run.ts index d3ab521..eeafe21 100644 --- a/src/background/run.ts +++ b/src/background/run.ts @@ -14,7 +14,7 @@ export async function main() { // create main window. await createWindow({ width: 350, - height: 525, + height: 500, resizable: true }); diff --git a/src/background/session.ts b/src/background/session.ts index 5959e2e..7ca7f36 100644 --- a/src/background/session.ts +++ b/src/background/session.ts @@ -23,8 +23,8 @@ interface TextMessage { content: string; } -const ip = 'ws://127.0.0.1'; -const port = 8081; +const ip = 'ws://localhost'; +const port = 8760; const reconnectTimeout = 3000; //ms let socket: WebSocket; let success = false; diff --git a/src/background/window.ts b/src/background/window.ts index 8967dea..036999a 100644 --- a/src/background/window.ts +++ b/src/background/window.ts @@ -55,6 +55,9 @@ export const createWindow = async (options: WindowSettings): Promise => { width: options.width, height: options.height, resizable: options.resizable, + frame: false, + minWidth: 350, + minHeight: 500, webPreferences: { // Use pluginOptions.nodeIntegration, leave this alone // See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info diff --git a/src/views/home.vue b/src/views/home.vue index 677474b..0551f88 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -22,11 +22,11 @@ export default defineComponent({ diff --git a/src/views/login.vue b/src/views/login.vue index 25f9bbf..a5b9eed 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,5 +1,6 @@ @@ -81,13 +89,12 @@ export default defineComponent({