From b37e58eff65bc889c0ab03d3a896930674c34913 Mon Sep 17 00:00:00 2001 From: UKDTOM Date: Mon, 1 Jun 2020 21:53:37 +0200 Subject: [PATCH] #23 , #10 fixed --- package.json | 4 +-- src/App.vue | 3 +- src/background.js | 2 +- src/components/layout/Header.vue | 9 +++--- src/components/layout/Menu.vue | 4 +-- src/components/modules/ExportTools/Export.vue | 19 +++++------ src/main.js | 32 ++++++++----------- src/store/modules/plextv.js | 6 +++- 8 files changed, 40 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index 03b78b0..1807561 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "0.1.0", "private": true, "scripts": { - "serve": "vue-cli-service serve", - "build": "vue-cli-service build", + "serve": "vue-cli-service electron:serve", + "build": "vue-cli-service electron:build", "lint": "vue-cli-service lint", "electron:build": "vue-cli-service electron:build", "electron:serve": "vue-cli-service electron:serve", diff --git a/src/App.vue b/src/App.vue index 4c5957b..5e02853 100644 --- a/src/App.vue +++ b/src/App.vue @@ -36,8 +36,7 @@ export default { Header, }, methods: { setCollapsed(value){ - console.log("This is a call") - console.log(value) + this.isCollapsed = value }, diff --git a/src/background.js b/src/background.js index e29caae..590acd0 100644 --- a/src/background.js +++ b/src/background.js @@ -23,7 +23,7 @@ function createWindow () { if (process.env.WEBPACK_DEV_SERVER_URL) { // Load the url of the dev server if in development mode win.loadURL(process.env.WEBPACK_DEV_SERVER_URL) - if (!process.env.IS_TEST) win.webContents.openDevTools() + if (!process.env.IS_TEST) win.webContents.openDevTools({'mode': 'undocked'}) } else { createProtocol('app') // Load the index.html when not in development diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index c64e403..7203baf 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -49,17 +49,18 @@