From a3365c544d8e5ae1793267bc6d03e8af449ade38 Mon Sep 17 00:00:00 2001 From: Andrew Gundersen Date: Thu, 4 Feb 2021 11:29:35 -0600 Subject: [PATCH] splash and login screens --- src/background.ts | 10 +++++-- src/components/splash/index.vue | 46 +++++++++++++++++++++++++++++++++ src/router.ts | 7 +++++ src/views/splash.vue | 17 ++++++++++++ 4 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 src/components/splash/index.vue create mode 100644 src/views/splash.vue diff --git a/src/background.ts b/src/background.ts index e2d0712..3e36280 100644 --- a/src/background.ts +++ b/src/background.ts @@ -27,7 +27,7 @@ function createWindow() { win = new BrowserWindow({ width: 350, height: 520, - resizable: false, + resizable: true, maximizable: false, // Postition at launch @@ -35,7 +35,13 @@ function createWindow() { y: 10, webPreferences: { - devTools: false, + devTools: true, + + nodeIntegration: + (process.env.ELECTRON_NODE_INTEGRATION as unknown) as boolean, + + preload: path.join(__dirname, "preload.js") + } }); diff --git a/src/components/splash/index.vue b/src/components/splash/index.vue new file mode 100644 index 0000000..33afe3f --- /dev/null +++ b/src/components/splash/index.vue @@ -0,0 +1,46 @@ + + + + + \ No newline at end of file diff --git a/src/router.ts b/src/router.ts index 07537f3..bc2a7ed 100644 --- a/src/router.ts +++ b/src/router.ts @@ -7,12 +7,19 @@ import { import Home from "./views/home.vue"; import Login from "./views/login.vue"; +import Splash from "./views/splash.vue"; // Define the routes (/*) for the app here. const routes: Array = [ { path: "/", + name: "Splash", + component: Splash + }, + + { + path: "/home", name: "Home", component: Home }, diff --git a/src/views/splash.vue b/src/views/splash.vue new file mode 100644 index 0000000..4615508 --- /dev/null +++ b/src/views/splash.vue @@ -0,0 +1,17 @@ + + + \ No newline at end of file -- 2.43.0