From 8bf3073f34bf4d0507dee267c14bedeb088a7a63 Mon Sep 17 00:00:00 2001 From: lumozx <969671691@qq.com> Date: Mon, 16 Dec 2019 16:04:21 +0800 Subject: [PATCH] Update 7.1.4 (#60) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 升级部分包 * fix: 为解决electron的无边框早macos 10.15.1的拖拽BUG,只用有边框 BUG:https://github.com/electron/electron/issues/21034 * fix: 使用https * fix: 解决同源策略,可以修复右键功能 * fix: 解决mac qq选中整个content截图白屏的问题,实际上这是qq的问题,识图的截图方式依然存在白屏问题 * chore: 升级版本 * chore: 还原功能,记录问题 调试发现,qq截图白屏是new tray执行的原因,只要tray顺利执行,那么qq弹框截屏就白屏 * feat: 增加回到日事清功能 * fix: 升级@sentry/electron解决提示getName被废弃警告的问题 --- download.js | 6 +- electron-builder.js | 4 +- fe/modules/index/Index.vue | 151 +------------- fe/modules/index/pub/Welcome.vue | 2 +- fe/modules/preference/Preference.vue | 14 +- fe/modules/preference/main.js | 16 +- fe/modules/preference/pub/Server.vue | 2 +- fe/modules/utils/config.js | 6 +- main.js | 40 ++-- native/hotkey.js | 6 +- native/mainDb.js | 7 +- native/menu/icon.js | 5 +- native/menu/index.js | 1 + native/menu/macTemplate.js | 6 +- native/menu/tray.js | 291 ++++++++++++++------------- native/menu/winTemplate.js | 8 +- native/util.js | 60 +++--- package.json | 55 ++--- page.js | 7 +- 19 files changed, 282 insertions(+), 405 deletions(-) diff --git a/download.js b/download.js index bf34804..6393f45 100644 --- a/download.js +++ b/download.js @@ -75,9 +75,9 @@ class Download extends Page { if (!isExist) return fileName; const extname = path.extname(fileName); const basename = path.basename(fileName, extname); - + let count = 0; - + while (isExist) { isExist = this.isFileExist(`${basename}(${++count})${extname}`); } @@ -154,4 +154,4 @@ class Download extends Page { } } -module.exports = new Download(); \ No newline at end of file +module.exports = new Download(); diff --git a/electron-builder.js b/electron-builder.js index a8dda56..051796f 100644 --- a/electron-builder.js +++ b/electron-builder.js @@ -16,7 +16,9 @@ const output = process.platform === 'darwin' ? `package-${process.env.CHANNEL}` try { rimraf.sync(output); -} catch (e) {} +} catch (e) { + console.log(e) +} builder.build({ config: { diff --git a/fe/modules/index/Index.vue b/fe/modules/index/Index.vue index d09601e..621384c 100644 --- a/fe/modules/index/Index.vue +++ b/fe/modules/index/Index.vue @@ -1,34 +1,5 @@