From 51a98caf50794fb0812720b17f967c267b83170e Mon Sep 17 00:00:00 2001 From: wallace5303 <530353222@qq.com> Date: Wed, 23 Feb 2022 23:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/controller/example.js | 47 +++++++++---------- frontend/.env | 2 - frontend/.env.development | 5 +- frontend/src/api/main.js | 21 --------- frontend/src/views/base/db/Index.vue | 32 +------------ frontend/src/views/base/file/Index.vue | 36 +++----------- frontend/src/views/base/testapi/Index.vue | 8 ---- frontend/vue.config.js | 2 +- public/dist/css/chunk-20a0d95c.38f6334f.css | 1 + public/dist/css/chunk-23ab9104.ffff7b55.css | 1 + public/dist/css/chunk-3619a56a.bdc8e5ac.css | 1 + public/dist/css/chunk-bc8b1b0c.6a9bab8f.css | 1 + public/dist/index.html | 4 +- public/dist/js/app.4fc23d71.js | 2 + public/dist/js/app.4fc23d71.js.map | 1 + public/dist/js/chunk-20a0d95c.53d57c41.js | 2 + public/dist/js/chunk-20a0d95c.53d57c41.js.map | 1 + public/dist/js/chunk-23ab9104.7c9d30d1.js | 2 + public/dist/js/chunk-23ab9104.7c9d30d1.js.map | 1 + public/dist/js/chunk-26360310.4e0c0c29.js | 2 + public/dist/js/chunk-26360310.4e0c0c29.js.map | 1 + public/dist/js/chunk-26fcacb7.746a5c72.js | 2 + public/dist/js/chunk-26fcacb7.746a5c72.js.map | 1 + public/dist/js/chunk-2f42023a.5b250698.js | 2 + public/dist/js/chunk-2f42023a.5b250698.js.map | 1 + public/dist/js/chunk-3619a56a.3034aa50.js | 2 + public/dist/js/chunk-3619a56a.3034aa50.js.map | 1 + public/dist/js/chunk-490df4c2.783e1537.js | 2 + public/dist/js/chunk-490df4c2.783e1537.js.map | 1 + public/dist/js/chunk-4d0be246.8253a539.js | 2 + public/dist/js/chunk-4d0be246.8253a539.js.map | 1 + public/dist/js/chunk-72d90f2a.4a4f637c.js | 2 + public/dist/js/chunk-72d90f2a.4a4f637c.js.map | 1 + public/dist/js/chunk-9234b1da.374ed212.js | 2 + public/dist/js/chunk-9234b1da.374ed212.js.map | 1 + public/dist/js/chunk-94d99d1e.25bdad89.js | 2 + public/dist/js/chunk-94d99d1e.25bdad89.js.map | 1 + public/dist/js/chunk-b67071c4.1d279762.js | 2 + public/dist/js/chunk-b67071c4.1d279762.js.map | 1 + public/dist/js/chunk-b8ab1f0c.490535dc.js | 2 + public/dist/js/chunk-b8ab1f0c.490535dc.js.map | 1 + public/dist/js/chunk-bc8b1b0c.6446aab8.js | 2 + public/dist/js/chunk-bc8b1b0c.6446aab8.js.map | 1 + 43 files changed, 84 insertions(+), 122 deletions(-) create mode 100644 public/dist/css/chunk-20a0d95c.38f6334f.css create mode 100644 public/dist/css/chunk-23ab9104.ffff7b55.css create mode 100644 public/dist/css/chunk-3619a56a.bdc8e5ac.css create mode 100644 public/dist/css/chunk-bc8b1b0c.6a9bab8f.css create mode 100644 public/dist/js/app.4fc23d71.js create mode 100644 public/dist/js/app.4fc23d71.js.map create mode 100644 public/dist/js/chunk-20a0d95c.53d57c41.js create mode 100644 public/dist/js/chunk-20a0d95c.53d57c41.js.map create mode 100644 public/dist/js/chunk-23ab9104.7c9d30d1.js create mode 100644 public/dist/js/chunk-23ab9104.7c9d30d1.js.map create mode 100644 public/dist/js/chunk-26360310.4e0c0c29.js create mode 100644 public/dist/js/chunk-26360310.4e0c0c29.js.map create mode 100644 public/dist/js/chunk-26fcacb7.746a5c72.js create mode 100644 public/dist/js/chunk-26fcacb7.746a5c72.js.map create mode 100644 public/dist/js/chunk-2f42023a.5b250698.js create mode 100644 public/dist/js/chunk-2f42023a.5b250698.js.map create mode 100644 public/dist/js/chunk-3619a56a.3034aa50.js create mode 100644 public/dist/js/chunk-3619a56a.3034aa50.js.map create mode 100644 public/dist/js/chunk-490df4c2.783e1537.js create mode 100644 public/dist/js/chunk-490df4c2.783e1537.js.map create mode 100644 public/dist/js/chunk-4d0be246.8253a539.js create mode 100644 public/dist/js/chunk-4d0be246.8253a539.js.map create mode 100644 public/dist/js/chunk-72d90f2a.4a4f637c.js create mode 100644 public/dist/js/chunk-72d90f2a.4a4f637c.js.map create mode 100644 public/dist/js/chunk-9234b1da.374ed212.js create mode 100644 public/dist/js/chunk-9234b1da.374ed212.js.map create mode 100644 public/dist/js/chunk-94d99d1e.25bdad89.js create mode 100644 public/dist/js/chunk-94d99d1e.25bdad89.js.map create mode 100644 public/dist/js/chunk-b67071c4.1d279762.js create mode 100644 public/dist/js/chunk-b67071c4.1d279762.js.map create mode 100644 public/dist/js/chunk-b8ab1f0c.490535dc.js create mode 100644 public/dist/js/chunk-b8ab1f0c.490535dc.js.map create mode 100644 public/dist/js/chunk-bc8b1b0c.6446aab8.js create mode 100644 public/dist/js/chunk-bc8b1b0c.6446aab8.js.map diff --git a/electron/controller/example.js b/electron/controller/example.js index 2467f48..66c7ff1 100644 --- a/electron/controller/example.js +++ b/electron/controller/example.js @@ -5,12 +5,11 @@ const path = require('path'); const fs = require('fs'); const is = require('electron-is'); const { exec } = require('child_process'); -const unzip = require("unzip-crx-3"); const Controller = require('ee-core').Controller; const Utils = require('ee-core').Utils; const electronApp = require('electron').app; -const {dialog, webContents, shell, BrowserWindow, BrowserView, Notification, powerMonitor, screen, nativeTheme} = require('electron'); -const chromeExtension = require('../library/chromeExtension'); +const {dialog, webContents, shell, BrowserWindow, BrowserView, + Notification, powerMonitor, screen, nativeTheme} = require('electron'); const autoLaunchManager = require('../library/autoLaunch'); let myTimer = null; @@ -23,16 +22,16 @@ let notificationObj = null; */ class ExampleController extends Controller { - /** - * 所有方法接收两个参数 - * @param args 前端 或 egg,传的参数(单个参数,或参数数组) - * @param event - IpcMainEvent 文档:https://www.electronjs.org/docs/latest/api/structures/ipc-main-event - */ - constructor(ctx) { super(ctx); } + /** + * 所有方法接收两个参数 + * @param args 前端传的参数 + * @param event - IpcMainEvent 文档:https://www.electronjs.org/docs/latest/api/structures/ipc-main-event + */ + /** * test */ @@ -236,23 +235,23 @@ class ExampleController extends Controller { /** * 加载扩展程序 */ - async loadExtension (args) { - const crxFile = args[0]; - if (_.isEmpty(crxFile)) { - return false; - } - const extensionId = path.basename(crxFile, '.crx'); - const chromeExtensionDir = chromeExtension.getDirectory(); - const extensionDir = path.join(chromeExtensionDir, extensionId); + // async loadExtension (args) { + // const crxFile = args[0]; + // if (_.isEmpty(crxFile)) { + // return false; + // } + // const extensionId = path.basename(crxFile, '.crx'); + // const chromeExtensionDir = chromeExtension.getDirectory(); + // const extensionDir = path.join(chromeExtensionDir, extensionId); - console.log("[api] [example] [loadExtension] extension id:", extensionId); - unzip(crxFile, extensionDir).then(() => { - console.log("[api] [example] [loadExtension] unzip success!"); - chromeExtension.load(extensionId); - }); + // console.log("[api] [example] [loadExtension] extension id:", extensionId); + // unzip(crxFile, extensionDir).then(() => { + // console.log("[api] [example] [loadExtension] unzip success!"); + // chromeExtension.load(extensionId); + // }); - return true; - } + // return true; + // } /** * 创建系统通知 diff --git a/frontend/.env b/frontend/.env index 14fc0a8..b73cd6c 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,5 +1,3 @@ NODE_ENV=production VUE_APP_PREVIEW=false - -# 生产环境,请留空,不要占用该属性 VUE_APP_API_BASE_URL= \ No newline at end of file diff --git a/frontend/.env.development b/frontend/.env.development index 63f02bf..8ea9687 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,6 +1,3 @@ NODE_ENV=development - VUE_APP_PREVIEW=true - -# 开发环境时,要调用的egg服务地址 -VUE_APP_API_BASE_URL=http://localhost:7068 \ No newline at end of file +VUE_APP_API_BASE_URL= \ No newline at end of file diff --git a/frontend/src/api/main.js b/frontend/src/api/main.js index 4a3a003..6fa8674 100644 --- a/frontend/src/api/main.js +++ b/frontend/src/api/main.js @@ -1,14 +1,5 @@ import request from '@/utils/request' -const eggApiroute = { - uploadFile: '/api/example/uploadFile', - openSoftware: '/api/example/openSoftware', - messageShow: '/api/example/messageShow', - messageShowConfirm: '/api/example/messageShowConfirm', - dbOperation: '/api/example/dbOperation', - test1: '/api/example/test1', -} - const ipcApiRoute = { messageShow: 'controller.example.messageShow', messageShowConfirm: 'controller.example.messageShowConfirm', @@ -38,19 +29,7 @@ const specialIpcRoute = { appUpdater: 'app.updater' // 此频道在后端也有相同定义 } -/** - * 访问egg api - */ -const requestEggApi = (uri, parameter) => { - return request({ - url: eggApiroute[uri], - method: 'post', - data: parameter - }) -} - export { - requestEggApi, ipcApiRoute, specialIpcRoute } \ No newline at end of file diff --git a/frontend/src/views/base/db/Index.vue b/frontend/src/views/base/db/Index.vue index 9d7fbfa..4bcd004 100644 --- a/frontend/src/views/base/db/Index.vue +++ b/frontend/src/views/base/db/Index.vue @@ -161,19 +161,8 @@ export default { if (res.all_list.length == 0) { return false; } - self.all_list = res.data.all_list; + self.all_list = res.all_list; }) - // requestEggApi('dbOperation', params).then(res => { - // if (res.code !== 0) { - // return false - // } - // if (res.data.all_list.length == 0) { - // return false; - // } - // self.all_list = res.data.all_list; - // }).catch(err => { - // console.log('err:', err) - // }) }, dbOperation (ac) { const self = this; @@ -191,25 +180,6 @@ export default { if (ac == 'add' && this.name.length == 0) { self.$message.error(`请填写数据`); } - // requestEggApi('dbOperation', params).then(res => { - // if (res.code !== 0) { - // return false - // } - // if (ac == 'get') { - // if (res.data.result.length == 0) { - // self.$message.error(`没有数据`); - // return; - // } - // self.userList = res.data.result; - // } - // if (res.data.all_list.length == 0) { - // return; - // } - // self.all_list = res.data.all_list; - // self.$message.success(`success`); - // }).catch(err => { - // console.log('err:', err) - // }) this.$ipcCall(ipcApiRoute.dbOperation, params).then(res => { console.log('res:', res); diff --git a/frontend/src/views/base/file/Index.vue b/frontend/src/views/base/file/Index.vue index b96a21f..86e4ab7 100644 --- a/frontend/src/views/base/file/Index.vue +++ b/frontend/src/views/base/file/Index.vue @@ -57,7 +57,7 @@ \ No newline at end of file + ::-webkit-scrollbar-thumb:active{background-color:#E6FFEE}
\ No newline at end of file diff --git a/public/dist/js/app.4fc23d71.js b/public/dist/js/app.4fc23d71.js new file mode 100644 index 0000000..570f33a --- /dev/null +++ b/public/dist/js/app.4fc23d71.js @@ -0,0 +1,2 @@ +(function(e){function n(n){for(var a,s,o=n[0],u=n[1],i=n[2],d=0,f=[];d\n
\n \n
\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=30547c66&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-layout',{attrs:{\"id\":\"app-layout-sider\"}},[_c('a-layout-sider',{staticClass:\"layout-sider\",attrs:{\"theme\":\"light\"},model:{value:(_vm.collapsed),callback:function ($$v) {_vm.collapsed=$$v},expression:\"collapsed\"}},[_c('div',{staticClass:\"logo\"},[_c('img',{staticClass:\"pic-logo\",attrs:{\"src\":require(\"@/assets/logo.png\")}})]),_c('a-menu',{staticClass:\"menu-item\",attrs:{\"theme\":\"light\",\"mode\":\"inline\",\"default-selected-keys\":['menu_1']},on:{\"click\":_vm.menuHandle}},_vm._l((_vm.menu),function(menuInfo,index){return _c('a-menu-item',{key:index},[_c('a-icon',{attrs:{\"type\":menuInfo.icon}}),_vm._v(\" \"+_vm._s(menuInfo.title)+\" \")],1)}),1)],1),_c('a-layout',[_c('a-layout-content',{staticClass:\"layout-content\"},[_c('router-view')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppSider.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppSider.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppSider.vue?vue&type=template&id=9dbf58d6&scoped=true&\"\nimport script from \"./AppSider.vue?vue&type=script&lang=js&\"\nexport * from \"./AppSider.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AppSider.vue?vue&type=style&index=0&id=9dbf58d6&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9dbf58d6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-layout',{attrs:{\"id\":\"app-menu\"}},[_c('a-layout-sider',{staticClass:\"layout-sider\",attrs:{\"theme\":\"light\"}},[_c('a-menu',{attrs:{\"theme\":\"light\",\"mode\":\"inline\",\"default-selected-keys\":['menu_100']}},_vm._l((_vm.menu),function(menuInfo,subIndex){return _c('a-menu-item',{key:subIndex},[_c('router-link',{attrs:{\"to\":{ name: menuInfo.pageName, params: menuInfo.params}}},[_c('span',[_vm._v(_vm._s(menuInfo.title))])])],1)}),1)],1),_c('a-layout',[_c('a-layout-content',[_c('router-view')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Menu.vue?vue&type=template&id=8e61d820&scoped=true&\"\nimport script from \"./Menu.vue?vue&type=script&lang=js&\"\nexport * from \"./Menu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Menu.vue?vue&type=style&index=0&id=8e61d820&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8e61d820\",\n null\n \n)\n\nexport default component.exports","/**\n * 基础路由\n * @type { *[] }\n */\n import {AppSider, Menu} from '@/layouts'\n\n const RouteView = {\n name: 'RouteView',\n render: (h) => h('router-view')\n }\nexport const constantRouterMap = [\n {\n path: '/',\n component: AppSider,\n children: [\n {\n path: '/base',\n name: 'Base',\n component: Menu,\n children: [\n {\n path: '/base/index',\n name: 'BaseIndex',\n component: () => import('@/views/base/file/Index')\n },\n {\n path: '/base/file/index',\n name: 'BaseFileIndex',\n component: () => import('@/views/base/file/Index')\n },\n {\n path: '/base/socket/index',\n name: 'BaseSocketIndex',\n component: () => import('@/views/base/socket/Index')\n },\n {\n path: '/base/db/index',\n name: 'BaseDBIndex',\n component: () => import('@/views/base/db/Index')\n },\n {\n path: '/base/windowview/index',\n name: 'BaseWindowViewIndex',\n component: () => import('@/views/base/windowview/Index')\n },\n {\n path: '/base/window/index',\n name: 'BaseWindowIndex',\n component: () => import('@/views/base/window/Index')\n },\n {\n path: '/base/notification/index',\n name: 'BaseNotificationIndex',\n component: () => import('@/views/base/notification/Index')\n },\n {\n path: '/base/powermonitor/index',\n name: 'BasePowerMonitorIndex',\n component: () => import('@/views/base/powermonitor/Index')\n },\n {\n path: '/base/screen/index',\n name: 'BaseScreenIndex',\n component: () => import('@/views/base/screen/Index')\n },\n {\n path: '/base/theme/index',\n name: 'BaseThemeIndex',\n component: () => import('@/views/base/theme/Index')\n }, \n {\n path: '/base/software/open',\n name: 'BaseSoftwareIndex',\n component: () => import('@/views/base/software/Index')\n },\n {\n path: '/base/system/index',\n name: 'BaseSystemIndex',\n component: () => import('@/views/base/system/Index')\n },\n {\n path: '/base/testapi/index',\n name: 'BaseTestApiIndex',\n component: () => import('@/views/base/testapi/Index')\n },\n {\n path: '/base/updater/index',\n name: 'BaseUpdaterIndex',\n component: () => import('@/views/base/updater/Index')\n }, \n ] \n },\n {\n path: '/other/index',\n name: 'OtherIndex',\n component: () => import('@/views/other/Index')\n }\n ]\n }\n]\n","import Vue from 'vue'\nimport Router from 'vue-router'\nimport { constantRouterMap } from '@/config/router.config'\n\n// hack router push callback\nconst originalPush = Router.prototype.push\nRouter.prototype.push = function push (location, onResolve, onReject) {\n if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)\n return originalPush.call(this, location).catch(err => err)\n}\n\nVue.use(Router)\n\nexport default new Router({\n mode: 'history',\n routes: constantRouterMap\n})\n","const { ipcRenderer: ipc } = window.require && window.require('electron') || {}\n/**\n * 异步调用主函数\n * @param ipc\n * @param channel\n * @param param\n * @returns {Promise}\n */\nconst call = (ipc, channel, param) => {\n return new Promise((resolve) => {\n // 声明渲染进程函数, 用于主进程函数回调, 返回数据\n // 调用主进程函数\n ipc.once(channel, (event, result) => {\n console.log('[ipcRenderer] [call] result:', result)\n resolve(result)\n })\n ipc.send(channel, param)\n })\n}\n\nexport default {\n install(Vue) {\n Vue.prototype.$ipc = ipc // 全局注入ipc\n Vue.prototype.$ipcCall = (channel, param) => call(ipc, channel, param) // 全局注入调用主进程函数的方法\n }\n}\n","import Vue from 'vue'\nimport antd from 'ant-design-vue'\nimport 'ant-design-vue/dist/antd.less';\nimport App from './App'\nimport router from './router'\nimport { VueAxios } from './utils/request'\nimport IpcRenderer from '@/utils/ipcRenderer'\n\n// 使用antd\nVue.use(antd)\n\n// mount axios to `Vue.$http` and `this.$http`\nVue.use(VueAxios)\n\n// 全局注入IPC通信\nVue.use(IpcRenderer)\n\nVue.config.productionTip = false\n\nnew Vue({\n router,\n render: h => h(App)\n}).$mount('#app')\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppSider.vue?vue&type=style&index=0&id=9dbf58d6&lang=less&scoped=true&\"","const VueAxios = {\n vm: {},\n // eslint-disable-next-line no-unused-vars\n install (Vue, instance) {\n if (this.installed) {\n return\n }\n this.installed = true\n\n if (!instance) {\n // eslint-disable-next-line no-console\n console.error('You have to install axios')\n return\n }\n\n Vue.axios = instance\n\n Object.defineProperties(Vue.prototype, {\n axios: {\n get: function get () {\n return instance\n }\n },\n $http: {\n get: function get () {\n return instance\n }\n }\n })\n }\n}\n\nexport {\n VueAxios\n}\n","import axios from 'axios'\nimport storage from 'store'\nimport notification from 'ant-design-vue/es/notification'\nimport { VueAxios } from './axios'\n\n// 创建 axios 实例\nconst request = axios.create({\n // API 请求的默认前缀\n baseURL: process.env.VUE_APP_API_BASE_URL,\n timeout: 60000 // 请求超时时间\n})\n\n// 异常拦截处理器\nconst errorHandler = (error) => {\n if (error.response) {\n const data = error.response.data\n if (error.response.status === 403) {\n notification.error({\n message: 'Forbidden',\n description: data.message\n })\n }\n if (error.response.status === 401 && !(data.result && data.result.isLogin)) {\n notification.error({\n message: 'Unauthorized',\n description: 'Authorization verification failed'\n })\n }\n }\n return Promise.reject(error)\n}\n\n// request interceptor\nrequest.interceptors.request.use(config => {\n const token = storage.get('token')\n // 如果 token 存在\n // 让每个请求携带自定义 token 请根据实际情况自行修改\n if (token) {\n config.headers['Access-Token'] = token\n }\n return config\n}, errorHandler)\n\n// response interceptor\nrequest.interceptors.response.use((response) => {\n return response.data\n}, errorHandler)\n\nconst installer = {\n vm: {},\n install (Vue) {\n Vue.use(VueAxios, request)\n }\n}\n\nexport default request\n\nexport {\n installer as VueAxios,\n request as axios\n}\n","module.exports = __webpack_public_path__ + \"img/logo.18776b4e.png\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=style&index=0&id=8e61d820&lang=less&scoped=true&\""],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-20a0d95c.53d57c41.js b/public/dist/js/chunk-20a0d95c.53d57c41.js new file mode 100644 index 0000000..6a69d4d --- /dev/null +++ b/public/dist/js/chunk-20a0d95c.53d57c41.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20a0d95c"],{"2a3f":function(e,t,o){},"667f":function(e,t,o){"use strict";o("2a3f")},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return a}));o("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},a={appUpdater:"app.updater"}},c9d6:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-file"}},[o("div",{staticClass:"one-block-2"},[0!==e.image_info.length?o("a-list",{attrs:{size:"small",bordered:"","data-source":e.image_info},scopedSlots:e._u([{key:"renderItem",fn:function(t){return o("a-list-item",{staticStyle:{"text-align":"left"}},[e._v(" "+e._s(t.id)+". "+e._s(t.imageUrlText)+":  "),o("a",{attrs:{href:t.url,target:"_blank"}},[e._v(e._s(t.url))])])}}],null,!1,1145998633)}):e._e()],1),e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.messageShow("ipc")}}},[e._v("消息提示(ipc)")]),o("a-button",{on:{click:function(t){return e.messageShowConfirm("ipc")}}},[e._v("消息提示与确认(ipc)")])],1)],1),e._m(1),o("div",{staticClass:"one-block-2"},[o("a-row",[o("a-col",{attrs:{span:12}},[o("a-input",{attrs:{value:e.dir_path,"addon-before":"保存目录"},model:{value:e.dir_path,callback:function(t){e.dir_path=t},expression:"dir_path"}})],1),o("a-col",{attrs:{span:12}},[o("a-button",{on:{click:e.selectDir}},[e._v(" 修改目录 ")])],1)],1)],1),e._m(2),o("div",{staticClass:"one-block-2"},[o("a-list",{attrs:{grid:{gutter:16,column:4},"data-source":e.file_list},scopedSlots:e._u([{key:"renderItem",fn:function(t){return o("a-list-item",{on:{click:function(o){return e.openDirectry(t.id)}}},[o("a-card",{attrs:{title:t.content}},[o("a-button",{attrs:{type:"link"}},[e._v(" 打开 ")])],1)],1)}}])})],1),o("div",{staticClass:"footer"})])},a=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 系统原生对话框 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 2. 选择保存目录 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 4. 打开文件夹 ")])])}],r=o("a358"),l=[{content:"【下载】目录",id:"downloads"},{content:"【图片】目录",id:"pictures"},{content:"【文档】目录",id:"documents"},{content:"【音乐】目录",id:"music"}],i={data:function(){return{file_list:l,image_info:[],num:0,dir_path:"D:\\www\\ee"}},methods:{openDirectry:function(e){this.$ipcCall(r["a"].openDirectory,{id:e}).then((function(e){}))},selectDir:function(){var e=this;e.$ipcCall(r["a"].selectFolder,"").then((function(t){e.dir_path=t,e.$message.info(t)}))},messageShow:function(e){var t=this;console.log("[messageShow] type:",e),this.$ipcCall(r["a"].messageShow,"").then((function(e){t.$message.info(e)}))},messageShowConfirm:function(e){var t=this;console.log("[messageShowConfirm] type:",e),this.$ipcCall(r["a"].messageShowConfirm,"").then((function(e){t.$message.info(e)}))}}},c=i,s=(o("667f"),o("2877")),p=Object(s["a"])(c,n,a,!1,null,"a9872e50",null);t["default"]=p.exports}}]); +//# sourceMappingURL=chunk-20a0d95c.53d57c41.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-20a0d95c.53d57c41.js.map b/public/dist/js/chunk-20a0d95c.53d57c41.js.map new file mode 100644 index 0000000..e8325eb --- /dev/null +++ b/public/dist/js/chunk-20a0d95c.53d57c41.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/file/Index.vue?8a42","webpack:///./src/api/main.js","webpack:///./src/views/base/file/Index.vue?c8fa","webpack:///src/views/base/file/Index.vue","webpack:///./src/views/base/file/Index.vue?bf78","webpack:///./src/views/base/file/Index.vue"],"names":["ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater","render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","image_info","length","scopedSlots","_u","key","fn","item","staticStyle","_v","_s","id","imageUrlText","url","_e","_m","on","$event","dir_path","model","value","callback","$$v","expression","selectDir","gutter","column","file_list","openDirectry","content","staticRenderFns","data","num","methods","$ipcCall","self","type","console","then","component"],"mappings":"2IAAA,W,kCCAA,kFAEMA,EAAc,CAClBC,YAAa,iCACbC,mBAAoB,wCACpBC,aAAc,kCACdC,cAAe,mCACfC,mBAAoB,wCACpBC,kBAAmB,uCACnBC,MAAO,2BACPC,UAAW,+BACXC,gBAAiB,qCACjBC,kBAAmB,uCACnBC,aAAc,kCACdC,iBAAkB,sCAClBC,iBAAkB,sCAClBC,UAAW,+BACXC,aAAc,kCACdC,WAAY,gCACZC,SAAU,8BACVC,SAAU,8BACVC,gBAAiB,qCACjBC,YAAa,iCACbC,YAAa,iCACbC,WAA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AAe,CAACH,EAAG,OAAO,CAACJ,EAAIgB,GAAG,oB,YC4Dje,GACA,CACEoB,QAAFA,SACElB,GAAFA,aAEA,CACEkB,QAAFA,SACElB,GAAFA,YAEA,CACEkB,QAAFA,SACElB,GAAFA,aAEA,CACEkB,QAAFA,SACElB,GAAFA,UAIe,GACboB,KADF,WAEI,MAAO,CACLJ,UAAWA,EACX1B,WAAYA,GACZ+B,IAAKA,EACXd,yBAGEe,QAASA,CACPL,aADJ,SACAjB,GACMjB,KAAKwC,SAAS,OAAY/D,cAAe,CAA/CwC,OAAA,uBAIIa,UANJ,WAOM,IAAN,OACMW,EAAKA,SAASA,OAAYA,aAAcA,IAAIA,MAAKA,SAAxBA,GACvBA,EAAKA,SAAWA,EAChBA,EAAKA,SAASA,KAAKA,OAG3BnE,YAbA,SAaAoE,GACM,IAAN,OACMC,QAAQA,IAAIA,sBAAuBA,GACnC3C,KAAKwC,SAAS,OAAYlE,YAAa,IAAIsE,MAAK,SAAvB,GACvBH,EAAKA,SAASA,KAAKA,OAGvBlE,mBApBJ,SAoBAmE,GACM,IAAN,OACMC,QAAQA,IAAIA,6BAA8BA,GAC1C3C,KAAKwC,SAAS,OAAYjE,mBAAoB,IAAIqE,MAAK,SAA9B,GACvBH,EAAKA,SAASA,KAAKA,SCjHkV,I,wBCQzWI,EAAY,eACd,EACA/C,EACAsC,GACA,EACA,KACA,WACA,MAIa,aAAAS,E","file":"js/chunk-20a0d95c.53d57c41.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=a9872e50&lang=less&scoped=true&\"","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-file\"}},[_c('div',{staticClass:\"one-block-2\"},[(_vm.image_info.length !== 0)?_c('a-list',{attrs:{\"size\":\"small\",\"bordered\":\"\",\"data-source\":_vm.image_info},scopedSlots:_vm._u([{key:\"renderItem\",fn:function(item){return _c('a-list-item',{staticStyle:{\"text-align\":\"left\"}},[_vm._v(\" \"+_vm._s(item.id)+\". \"+_vm._s(item.imageUrlText)+\":  \"),_c('a',{attrs:{\"href\":item.url,\"target\":\"_blank\"}},[_vm._v(_vm._s(item.url))])])}}],null,false,1145998633)}):_vm._e()],1),_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.messageShow('ipc')}}},[_vm._v(\"消息提示(ipc)\")]),_c('a-button',{on:{\"click\":function($event){return _vm.messageShowConfirm('ipc')}}},[_vm._v(\"消息提示与确认(ipc)\")])],1)],1),_vm._m(1),_c('div',{staticClass:\"one-block-2\"},[_c('a-row',[_c('a-col',{attrs:{\"span\":12}},[_c('a-input',{attrs:{\"value\":_vm.dir_path,\"addon-before\":\"保存目录\"},model:{value:(_vm.dir_path),callback:function ($$v) {_vm.dir_path=$$v},expression:\"dir_path\"}})],1),_c('a-col',{attrs:{\"span\":12}},[_c('a-button',{on:{\"click\":_vm.selectDir}},[_vm._v(\" 修改目录 \")])],1)],1)],1),_vm._m(2),_c('div',{staticClass:\"one-block-2\"},[_c('a-list',{attrs:{\"grid\":{ gutter: 16, column: 4 },\"data-source\":_vm.file_list},scopedSlots:_vm._u([{key:\"renderItem\",fn:function(item){return _c('a-list-item',{on:{\"click\":function($event){return _vm.openDirectry(item.id)}}},[_c('a-card',{attrs:{\"title\":item.content}},[_c('a-button',{attrs:{\"type\":\"link\"}},[_vm._v(\" 打开 \")])],1)],1)}}])})],1),_c('div',{staticClass:\"footer\"})])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 系统原生对话框 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 2. 选择保存目录 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 4. 打开文件夹 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=a9872e50&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=a9872e50&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a9872e50\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-23ab9104.7c9d30d1.js b/public/dist/js/chunk-23ab9104.7c9d30d1.js new file mode 100644 index 0000000..a1c10d2 --- /dev/null +++ b/public/dist/js/chunk-23ab9104.7c9d30d1.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23ab9104"],{7961:function(t,n,e){},ac99:function(t,n,e){"use strict";e("7961")},acbf:function(t,n,e){"use strict";e.r(n);var c=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"app-base-test-api"}},[t._m(0),e("div",{staticClass:"one-block-2"},[e("a-button",{on:{click:function(n){return t.exec(1)}}},[t._v(" 点击 ")])],1)])},a=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 1. 测试一些操作系统api ")])])}],i={data:function(){return{type:1}},methods:{exec:function(t){}}},s=i,o=(e("ac99"),e("2877")),u=Object(o["a"])(s,c,a,!1,null,"3604c322",null);n["default"]=u.exports}}]); +//# sourceMappingURL=chunk-23ab9104.7c9d30d1.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-23ab9104.7c9d30d1.js.map b/public/dist/js/chunk-23ab9104.7c9d30d1.js.map new file mode 100644 index 0000000..8e132c2 --- /dev/null +++ b/public/dist/js/chunk-23ab9104.7c9d30d1.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/testapi/Index.vue?3945","webpack:///./src/views/base/testapi/Index.vue?33e2","webpack:///src/views/base/testapi/Index.vue","webpack:///./src/views/base/testapi/Index.vue?2b04","webpack:///./src/views/base/testapi/Index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","on","$event","exec","_v","staticRenderFns","data","type","methods","id","component"],"mappings":"uIAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,sBAAsB,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,WAAW,CAACK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,KAAK,MAAM,CAACX,EAAIY,GAAG,WAAW,MAC9QC,EAAkB,CAAC,WAAa,IAAIb,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,OAAO,CAACJ,EAAIY,GAAG,0BCanJ,GACbE,KADF,WAEI,MAAO,CACLC,KAAMA,IAGVC,QAASA,CACPL,KADJ,SACAM,OCrB6W,I,wBCQzWC,EAAY,eACd,EACAnB,EACAc,GACA,EACA,KACA,WACA,MAIa,aAAAK,E","file":"js/chunk-23ab9104.7c9d30d1.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=3604c322&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-test-api\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-button',{on:{\"click\":function($event){return _vm.exec(1)}}},[_vm._v(\" 点击 \")])],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 测试一些操作系统api \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3604c322&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=3604c322&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3604c322\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-26360310.4e0c0c29.js b/public/dist/js/chunk-26360310.4e0c0c29.js new file mode 100644 index 0000000..96b982e --- /dev/null +++ b/public/dist/js/chunk-26360310.4e0c0c29.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26360310"],{5756:function(e,t,o){"use strict";o("e3e4")},"8f7f":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-demo-window"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.checkForUpdater()}}},[e._v("检查更新")]),o("a-button",{on:{click:function(t){return e.download()}}},[e._v("下载并安装")])],1)],1),e._m(1),o("div",{staticClass:"one-block-2"},[o("a-progress",{attrs:{percent:e.percentNumber,status:"active"}}),o("a-space",[e._v(" "+e._s(e.progress)+" ")])],1)])},r=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 自动更新 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 2. 下载进度 ")])])}],a=o("a358"),l={data:function(){return{status:0,progress:"",percentNumber:0}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.removeAllListeners(a["b"].appUpdater),this.$ipc.on(a["b"].appUpdater,(function(t,o){o=JSON.parse(o),e.status=o.status,3==o.status?(e.progress=o.desc,e.percentNumber=o.percentNumber):e.$message.info(o.desc)}))},checkForUpdater:function(){this.$ipcCall(a["a"].checkForUpdater).then((function(e){console.log(e)}))},download:function(){1===this.status?this.$ipcCall(a["a"].downloadApp).then((function(e){console.log(e)})):this.$message.info("没有可用版本")}}},c=l,s=(o("5756"),o("2877")),i=Object(s["a"])(c,n,r,!1,null,"cae527a6",null);t["default"]=i.exports},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return r}));o("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},r={appUpdater:"app.updater"}},e3e4:function(e,t,o){}}]); +//# sourceMappingURL=chunk-26360310.4e0c0c29.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-26360310.4e0c0c29.js.map b/public/dist/js/chunk-26360310.4e0c0c29.js.map new file mode 100644 index 0000000..041a496 --- /dev/null +++ b/public/dist/js/chunk-26360310.4e0c0c29.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/updater/Index.vue?0432","webpack:///./src/views/base/updater/Index.vue?4987","webpack:///src/views/base/updater/Index.vue","webpack:///./src/views/base/updater/Index.vue?8dc3","webpack:///./src/views/base/updater/Index.vue","webpack:///./src/api/main.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","on","$event","checkForUpdater","_v","download","percentNumber","_s","progress","staticRenderFns","data","status","mounted","init","methods","$ipc","removeAllListeners","appUpdater","result","self","$ipcCall","then","console","downloadApp","$message","info","component","ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","dbOperation","uploadFile","specialIpcRoute"],"mappings":"gHAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,oBAAoB,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,UAAU,CAACA,EAAG,WAAW,CAACK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,qBAAqB,CAACX,EAAIY,GAAG,UAAUR,EAAG,WAAW,CAACK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIa,cAAc,CAACb,EAAIY,GAAG,YAAY,IAAI,GAAGZ,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,aAAa,CAACE,MAAM,CAAC,QAAUN,EAAIc,cAAc,OAAS,YAAYV,EAAG,UAAU,CAACJ,EAAIY,GAAG,IAAIZ,EAAIe,GAAGf,EAAIgB,UAAU,QAAQ,MACljBC,EAAkB,CAAC,WAAa,IAAIjB,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,OAAO,CAACJ,EAAIY,GAAG,kBAAkB,WAAa,IAAIZ,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,OAAO,CAACJ,EAAIY,GAAG,mB,YC4BhT,GACbM,KADF,WAEI,MAAO,CACLC,OAAQA,EACRH,SAAUA,GACVF,cAAeA,IAGnBM,QARF,WASInB,KAAKoB,QAEPC,QAASA,CACPD,KADJ,WAEM,IAAN,OACMpB,KAAKsB,KAAKC,mBAAmB,OAAgBC,YAC7CxB,KAAKsB,KAAKd,GAAG,OAAgBgB,YAAY,SAAb,KAC1BC,EAASA,KAAKA,MAAMA,GACpBC,EAAKA,OAASA,EAAOA,OACA,GAAjBD,EAAOP,QACTQ,EAAKA,SAAWA,EAAOA,KACvBA,EAAKA,cAAgBA,EAAOA,eAE5BA,EAAKA,SAASA,KAAKA,EAAOA,UAIhChB,gBAfJ,WAgBMV,KAAK2B,SAAS,OAAYjB,iBAAiBkB,MAAK,SAAvB,GACvBC,QAAQA,IAAIA,OAGhBjB,SApBJ,WAqB0B,IAAhBZ,KAAKkB,OAITlB,KAAK2B,SAAS,OAAYG,aAAaF,MAAK,SAAnB,GACvBC,QAAQA,IAAIA,MAJZ7B,KAAK+B,SAASC,KAAK,aC9DkV,I,wBCQzWC,EAAY,eACd,EACAnC,EACAkB,GACA,EACA,KACA,WACA,MAIa,aAAAiB,E,2CCnBf,kFAEMC,EAAc,CAClBC,YAAa,iCACbC,mBAAoB,wCACpBC,aAAc,kCACdC,cAAe,mCACfC,mBAAoB,wCACpBC,kBAAmB,uCACnBC,MAAO,2BACPC,UAAW,+BACXC,gBAAiB,qCACjBC,kBAAmB,uCACnBC,aAAc,kCACdC,iBAAkB,sCAClBC,iBAAkB,sCAClBC,UAAW,+BACXC,aAAc,kCACdC,WAAY,gCACZC,SAAU,8BACVC,SAAU,8BACV1C,gBAAiB,qCACjBoB,YAAa,iCACbuB,YAAa,iCACbC,WAAY,iCAGRC,EAAkB,CACtB/B,WAAY,gB","file":"js/chunk-26360310.4e0c0c29.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=cae527a6&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-demo-window\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.checkForUpdater()}}},[_vm._v(\"检查更新\")]),_c('a-button',{on:{\"click\":function($event){return _vm.download()}}},[_vm._v(\"下载并安装\")])],1)],1),_vm._m(1),_c('div',{staticClass:\"one-block-2\"},[_c('a-progress',{attrs:{\"percent\":_vm.percentNumber,\"status\":\"active\"}}),_c('a-space',[_vm._v(\" \"+_vm._s(_vm.progress)+\" \")])],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 自动更新 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 2. 下载进度 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=cae527a6&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=cae527a6&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"cae527a6\",\n null\n \n)\n\nexport default component.exports","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-26fcacb7.746a5c72.js b/public/dist/js/chunk-26fcacb7.746a5c72.js new file mode 100644 index 0000000..7ff68c6 --- /dev/null +++ b/public/dist/js/chunk-26fcacb7.746a5c72.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26fcacb7"],{"314d":function(e,t,o){"use strict";o("a561")},"4a19":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-system-launch"}},[o("div",{staticClass:"one-block-2"},[o("a-list",{staticClass:"set-auto",attrs:{itemLayout:"horizontal"}},[o("a-list-item",{staticStyle:{"text-align":"left"},scopedSlots:e._u([{key:"actions",fn:function(){return[o("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关"},on:{change:function(t){return e.autoLaunchChange()}},model:{value:e.autoLaunchChecked,callback:function(t){e.autoLaunchChecked=t},expression:"autoLaunchChecked"}})]},proxy:!0}])},[o("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[o("a",[e._v("启动")])]},proxy:!0},{key:"description",fn:function(){return[o("span",[e._v(" 开机自动启动 ")])]},proxy:!0}])})],1)],1)],1)])},a=[],l=o("a358"),r={data:function(){return{autoLaunchChecked:!1}},mounted:function(){this.init()},methods:{init:function(){var e=this,t=this;t.$ipcCall(l["a"].autoLaunch,"check").then((function(t){console.log("[ipcRenderer] [autoLaunch] result:",t),e.autoLaunchChecked=t.status}))},autoLaunchChange:function(e){console.log("[ipcRenderer] [autoLaunch] self.autoLaunchChecked:",this.autoLaunchChecked)}}},c=r,i=(o("314d"),o("2877")),s=Object(i["a"])(c,n,a,!1,null,"59a6529a",null);t["default"]=s.exports},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return a}));o("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},a={appUpdater:"app.updater"}},a561:function(e,t,o){}}]); +//# sourceMappingURL=chunk-26fcacb7.746a5c72.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-26fcacb7.746a5c72.js.map b/public/dist/js/chunk-26fcacb7.746a5c72.js.map new file mode 100644 index 0000000..c4c3b01 --- /dev/null +++ b/public/dist/js/chunk-26fcacb7.746a5c72.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/system/Index.vue?2e1c","webpack:///./src/views/base/system/Index.vue?7063","webpack:///src/views/base/system/Index.vue","webpack:///./src/views/base/system/Index.vue?ef6a","webpack:///./src/views/base/system/Index.vue","webpack:///./src/api/main.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","staticStyle","scopedSlots","_u","key","fn","on","$event","autoLaunchChange","model","value","callback","$$v","autoLaunchChecked","expression","proxy","_v","staticRenderFns","data","mounted","init","methods","self","console","checkStatus","component","ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAA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wCACpBC,kBAAmB,uCACnBC,MAAO,2BACPC,UAAW,+BACXC,gBAAiB,qCACjBC,kBAAmB,uCACnBC,aAAc,kCACdC,iBAAkB,sCAClBC,iBAAkB,sCAClBC,UAAW,+BACXC,aAAc,kCACdC,WAAY,gCACZC,SAAU,8BACVC,SAAU,8BACVC,gBAAiB,qCACjBC,YAAa,iCACbC,YAAa,iCACbC,WAAY,iCAGRC,EAAkB,CACtBC,WAAY,gB","file":"js/chunk-26fcacb7.746a5c72.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=59a6529a&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-system-launch\"}},[_c('div',{staticClass:\"one-block-2\"},[_c('a-list',{staticClass:\"set-auto\",attrs:{\"itemLayout\":\"horizontal\"}},[_c('a-list-item',{staticStyle:{\"text-align\":\"left\"},scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [_c('a-switch',{attrs:{\"checkedChildren\":\"开\",\"unCheckedChildren\":\"关\"},on:{\"change\":function($event){return _vm.autoLaunchChange()}},model:{value:(_vm.autoLaunchChecked),callback:function ($$v) {_vm.autoLaunchChecked=$$v},expression:\"autoLaunchChecked\"}})]},proxy:true}])},[_c('a-list-item-meta',{scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('a',[_vm._v(\"启动\")])]},proxy:true},{key:\"description\",fn:function(){return [_c('span',[_vm._v(\" 开机自动启动 \")])]},proxy:true}])})],1)],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n ","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=59a6529a&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=59a6529a&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"59a6529a\",\n null\n \n)\n\nexport default component.exports","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-2f42023a.5b250698.js b/public/dist/js/chunk-2f42023a.5b250698.js new file mode 100644 index 0000000..843a1eb --- /dev/null +++ b/public/dist/js/chunk-2f42023a.5b250698.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f42023a"],{"254e":function(e,t,o){},"27be":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-socket-ipc"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-list",{attrs:{bordered:""}},[o("a-input-search",{on:{search:e.helloHandle},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}},[o("a-button",{attrs:{slot:"enterButton"},slot:"enterButton"},[e._v(" send ")])],1)],1)],1),e._m(1),o("div",{staticClass:"one-block-2"},[o("a-list",{attrs:{bordered:""}},[o("a-input-search",{on:{search:e.executeJSHandle},model:{value:e.content2,callback:function(t){e.content2=t},expression:"content2"}},[o("a-button",{attrs:{slot:"enterButton"},slot:"enterButton"},[e._v(" send ")])],1)],1)],1),e._m(2),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:e.socketMsgStart}},[e._v("开始")]),o("a-button",{on:{click:e.socketMsgStop}},[e._v("结束")]),e._v(" 结果:"+e._s(e.socketMessageString)+" ")],1)],1)])},s=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 渲染进程与主进程IPC通信 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 2. 主进程API执行网页函数 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 3. 长消息: 服务端持续向前端页面发消息 ")])])}],l=o("a358"),a={data:function(){return{content:"hello",content2:"hello world",reply:"",socketMessageString:""}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.removeAllListeners(l["a"].socketMessageStart),this.$ipc.removeAllListeners(l["a"].socketMessageStop),this.$ipc.on(l["a"].socketMessageStart,(function(t,o){console.log("[ipcRenderer] [socketMsgStart] result:",o),e.socketMessageString=o})),this.$ipc.on(l["a"].socketMessageStop,(function(t,o){console.log("[ipcRenderer] [socketMsgStop] result:",o),e.socketMessageString=o}))},helloHandle:function(e){var t=this;this.$ipcCall(l["a"].hello,e).then((function(e){t.$message.info(e)}))},executeJSHandle:function(e){this.$ipcCall(l["a"].executeJS,e).then((function(e){console.log(e)}))},socketMsgStart:function(){this.$ipc.send(l["a"].socketMessageStart,"时间")},socketMsgStop:function(){this.$ipc.send(l["a"].socketMessageStop,"")}}},c=a,r=(o("ef68"),o("2877")),i=Object(r["a"])(c,n,s,!1,null,"19858933",null);t["default"]=i.exports},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return s}));o("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},s={appUpdater:"app.updater"}},ef68:function(e,t,o){"use strict";o("254e")}}]); +//# sourceMappingURL=chunk-2f42023a.5b250698.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-2f42023a.5b250698.js.map b/public/dist/js/chunk-2f42023a.5b250698.js.map new file mode 100644 index 0000000..ef88dab --- /dev/null +++ b/public/dist/js/chunk-2f42023a.5b250698.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/socket/Index.vue?1469","webpack:///src/views/base/socket/Index.vue","webpack:///./src/views/base/socket/Index.vue?4676","webpack:///./src/views/base/socket/Index.vue","webpack:///./src/api/main.js","webpack:///./src/views/base/socket/Index.vue?ec6a"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","on","helloHandle","model","value","callback","$$v","content","expression","slot","_v","executeJSHandle","content2","socketMsgStart","socketMsgStop","_s","socketMessageString","staticRenderFns","data","reply","mounted","init","methods","$ipc","removeAllListeners","socketMessageStart","socketMessageStop","console","self","$ipcCall","hello","then","executeJS","send","component","ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater"],"mappings":"kJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,wBAAwB,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,SAAS,CAACE,MAAM,CAAC,SAAW,KAAK,CAACF,EAAG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CACnBI,MAAO,2BACPE,UAAW,+BACXQ,gBAAiB,qCACjBC,kBAAmB,uCACnBC,aAAc,kCACdC,iBAAkB,sCAClBC,iBAAkB,sCAClBC,UAAW,+BACXC,aAAc,kCACdC,WAAY,gCACZC,SAAU,8BACVC,SAAU,8BACVC,gBAAiB,qCACjBC,YAAa,iCACbC,YAAa,iCACbC,WAAY,iCAGRC,EAAkB,CACtBC,WAAY,gB,kCC5Bd","file":"js/chunk-2f42023a.5b250698.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-socket-ipc\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-list',{attrs:{\"bordered\":\"\"}},[_c('a-input-search',{on:{\"search\":_vm.helloHandle},model:{value:(_vm.content),callback:function ($$v) {_vm.content=$$v},expression:\"content\"}},[_c('a-button',{attrs:{\"slot\":\"enterButton\"},slot:\"enterButton\"},[_vm._v(\" send \")])],1)],1)],1),_vm._m(1),_c('div',{staticClass:\"one-block-2\"},[_c('a-list',{attrs:{\"bordered\":\"\"}},[_c('a-input-search',{on:{\"search\":_vm.executeJSHandle},model:{value:(_vm.content2),callback:function ($$v) {_vm.content2=$$v},expression:\"content2\"}},[_c('a-button',{attrs:{\"slot\":\"enterButton\"},slot:\"enterButton\"},[_vm._v(\" send \")])],1)],1)],1),_vm._m(2),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":_vm.socketMsgStart}},[_vm._v(\"开始\")]),_c('a-button',{on:{\"click\":_vm.socketMsgStop}},[_vm._v(\"结束\")]),_vm._v(\" 结果:\"+_vm._s(_vm.socketMessageString)+\" \")],1)],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 渲染进程与主进程IPC通信 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 2. 主进程API执行网页函数 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 3. 长消息: 服务端持续向前端页面发消息 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=19858933&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=19858933&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"19858933\",\n null\n \n)\n\nexport default component.exports","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=19858933&lang=less&scoped=true&\""],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-3619a56a.3034aa50.js b/public/dist/js/chunk-3619a56a.3034aa50.js new file mode 100644 index 0000000..7af91b4 --- /dev/null +++ b/public/dist/js/chunk-3619a56a.3034aa50.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3619a56a"],{"7e0b":function(e,a,t){"use strict";t("b92b")},a358:function(e,a,t){"use strict";t.d(a,"a",(function(){return n})),t.d(a,"b",(function(){return o}));t("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},o={appUpdater:"app.updater"}},b0c0:function(e,a,t){var n=t("83ab"),o=t("5e77").EXISTS,l=t("e330"),s=t("9bf2").f,r=Function.prototype,c=l(r.toString),i=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,p=l(i.exec),u="name";n&&!o&&s(r,u,{configurable:!0,get:function(){try{return p(i,c(this))[1]}catch(e){return""}}})},b92b:function(e,a,t){},e091:function(e,a,t){"use strict";t.r(a);var n=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{attrs:{id:"app-base-db"}},[e._m(0),t("div",{staticClass:"one-block-2"},[t("a-row",[t("a-col",{attrs:{span:8}},[e._v(" • LowDB本地JSON数据库 ")]),t("a-col",{attrs:{span:8}},[e._v(" • 可使用lodash语法 ")]),t("a-col",{attrs:{span:8}})],1)],1),e._m(1),t("div",{staticClass:"one-block-2"},[t("a-row",[t("a-col",{attrs:{span:24}},[e._v(" "+e._s(e.all_list)+" ")])],1)],1),e._m(2),t("div",{staticClass:"one-block-2"},[t("a-row",[t("a-col",{attrs:{span:6}},[t("a-input",{attrs:{value:e.name,"addon-before":"姓名"},model:{value:e.name,callback:function(a){e.name=a},expression:"name"}})],1),t("a-col",{attrs:{span:3}}),t("a-col",{attrs:{span:6}},[t("a-input",{attrs:{value:e.age,"addon-before":"年龄"},model:{value:e.age,callback:function(a){e.age=a},expression:"age"}})],1),t("a-col",{attrs:{span:3}}),t("a-col",{attrs:{span:6}},[t("a-button",{on:{click:function(a){return e.dbOperation("add")}}},[e._v(" 添加 ")])],1)],1)],1),e._m(3),t("div",{staticClass:"one-block-2"},[t("a-row",[t("a-col",{attrs:{span:6}},[t("a-input",{attrs:{value:e.search_age,"addon-before":"年龄"},model:{value:e.search_age,callback:function(a){e.search_age=a},expression:"search_age"}})],1),t("a-col",{attrs:{span:3}}),t("a-col",{attrs:{span:6}}),t("a-col",{attrs:{span:3}}),t("a-col",{attrs:{span:6}},[t("a-button",{on:{click:function(a){return e.dbOperation("get")}}},[e._v(" 查找 ")])],1)],1),t("a-row",[t("a-col",{attrs:{span:24}},[e._v(" "+e._s(e.userList)+" ")])],1)],1),e._m(4),t("div",{staticClass:"one-block-2"},[t("a-row",[t("a-col",{attrs:{span:6}},[t("a-input",{attrs:{value:e.update_name,"addon-before":"姓名"},model:{value:e.update_name,callback:function(a){e.update_name=a},expression:"update_name"}})],1),t("a-col",{attrs:{span:3}}),t("a-col",{attrs:{span:6}},[t("a-input",{attrs:{value:e.update_age,"addon-before":"年龄"},model:{value:e.update_age,callback:function(a){e.update_age=a},expression:"update_age"}})],1),t("a-col",{attrs:{span:3}}),t("a-col",{attrs:{span:6}},[t("a-button",{on:{click:function(a){return e.dbOperation("update")}}},[e._v(" 更新 ")])],1)],1)],1),e._m(5),t("div",{staticClass:"one-block-2"},[t("a-row",[t("a-col",{attrs:{span:6}},[t("a-input",{attrs:{value:e.delete_name,"addon-before":"姓名"},model:{value:e.delete_name,callback:function(a){e.delete_name=a},expression:"delete_name"}})],1),t("a-col",{attrs:{span:3}}),t("a-col",{attrs:{span:6}}),t("a-col",{attrs:{span:3}}),t("a-col",{attrs:{span:6}},[t("a-button",{on:{click:function(a){return e.dbOperation("del")}}},[e._v(" 删除 ")])],1)],1)],1)])},o=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 1. 本地数据库 ")])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 2. 测试数据 (egg http服务) ")])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 3. 添加数据 ")])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 4. 获取数据 ")])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 5. 修改数据 ")])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 6. 删除数据 ")])])}],l=(t("b0c0"),t("a358")),s={data:function(){return{name:"张三",age:10,userList:["空"],search_age:10,update_name:"张三",update_age:21,delete_name:"张三",all_list:["空"]}},mounted:function(){this.getAllTestData()},methods:{getAllTestData:function(){var e=this,a={action:"all"};this.$ipcCall(l["a"].dbOperation,a).then((function(a){if(console.log("res:",a),0==a.all_list.length)return!1;e.all_list=a.all_list}))},dbOperation:function(e){var a=this,t={action:e,info:{name:this.name,age:parseInt(this.age)},search_age:parseInt(this.search_age),update_name:this.update_name,update_age:parseInt(this.update_age),delete_name:this.delete_name};"add"==e&&0==this.name.length&&a.$message.error("请填写数据"),this.$ipcCall(l["a"].dbOperation,t).then((function(t){if(console.log("res:",t),"get"==e){if(0==t.result.length)return void a.$message.error("没有数据");a.userList=t.result}0!=t.all_list.length&&(a.all_list=t.all_list,a.$message.success("success"))}))}}},r=s,c=(t("7e0b"),t("2877")),i=Object(c["a"])(r,n,o,!1,null,"2e0e3bf7",null);a["default"]=i.exports}}]); +//# sourceMappingURL=chunk-3619a56a.3034aa50.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-3619a56a.3034aa50.js.map b/public/dist/js/chunk-3619a56a.3034aa50.js.map new file mode 100644 index 0000000..91a3d75 --- /dev/null +++ b/public/dist/js/chunk-3619a56a.3034aa50.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/db/Index.vue?d6a1","webpack:///./src/api/main.js","webpack:///./node_modules/core-js/modules/es.function.name.js","webpack:///./src/views/base/db/Index.vue?ff0d","webpack:///src/views/base/db/Index.vue","webpack:///./src/views/base/db/Index.vue?0f48","webpack:///./src/views/base/db/Index.vue"],"names":["ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater","DESCRIPTORS","FUNCTION_NAME_EXISTS","EXISTS","uncurryThis","defineProperty","f","FunctionPrototype","Function","prototype","functionToString","toString","nameRE","regExpExec","exec","NAME","configurable","get","this","error","render","_vm","_h","$createElement","_c","_self","attrs","_m","staticClass","_v","_s","all_list","name","model","value","callback","$$v","expression","age","on","$event","search_age","userList","update_name","update_age","delete_name","staticRenderFns","data","mounted","getAllTestData","methods","action","$ipcCall","params","then","console","res","length","self","ac","info","result","component"],"mappings":"kHAAA,W,kCCAA,kFAEMA,EAAc,CAClBC,YAAa,iCACbC,mBAAoB,wCACpBC,aAAc,kCACdC,cAAe,mCACfC,mBAAoB,wCACpBC,kBAAmB,uCACnBC,MAAO,2BACPC,UAAW,+BACXC,gBAAiB,qCACjBC,kBAAmB,uCACnBC,aAAc,kCACdC,iBAAkB,sCAClBC,iBAAkB,sCAClBC,UAAW,+BACXC,aAAc,kCACdC,WAAY,gCACZC,SAAU,8BACVC,SAAU,8BACVC,gBAAiB,qCACjBC,YAAa,iCACbC,YAAa,iCACbC,WAAY,iCAGRC,EAAkB,CACtBC,WAAY,gB,qBC5Bd,IAAIC,EAAc,EAAQ,QACtBC,EAAuB,EAAQ,QAA8BC,OAC7DC,EAAc,EAAQ,QACtBC,EAAiB,EAAQ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UA,CAACA,OAGfiB,QAbF,WAcI9B,KAAK+B,kBAEPC,QAASA,CACPD,eADJ,WAEM,IAAN,OACA,GACQE,OAAQA,OAEVjC,KAAKkC,SAAS,OAAYvD,YAAawD,GAAQC,MAAK,SAA3B,GAEvB,GADAC,QAAQA,IAAIA,OAAQA,GACO,GAAvBC,EAAIzB,SAAS0B,OACf,OAAO,EAETC,EAAKA,SAAWA,EAAIA,aAGxB7D,YAdJ,SAcA8D,GACM,IAAN,OACA,GACQR,OAAQA,EACRS,KAAMA,CACJ5B,KAAMA,KAAKA,KACXM,IAAKA,SAASA,KAAKA,MAErBG,WAAYA,SAASA,KAAKA,YAC1BE,YAAaA,KAAKA,YAClBC,WAAYA,SAASA,KAAKA,YAC1BC,YAAaA,KAAKA,aAEV,OAANc,GAAmC,GAApBzC,KAAKc,KAAKyB,QAC3BC,EAAKA,SAASA,MAAMA,SAGtBxC,KAAKkC,SAAS,OAAYvD,YAAawD,GAAQC,MAAK,SAA3B,GAEvB,GADAC,QAAQA,IAAIA,OAAQA,GACV,OAANI,EAAa,CACf,GAAyB,GAArBH,EAAIK,OAAOJ,OAEb,YADAC,EAAKA,SAASA,MAAMA,QAGtBA,EAAKA,SAAWA,EAAIA,OAEK,GAAvBF,EAAIzB,SAAS0B,SAGjBC,EAAKA,SAAWA,EAAIA,SACpBA,EAAKA,SAASA,QAAQA,kBCpM+U,I,wBCQzWI,EAAY,eACd,EACA1C,EACA0B,GACA,EACA,KACA,WACA,MAIa,aAAAgB,E","file":"js/chunk-3619a56a.3034aa50.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=2e0e3bf7&lang=less&scoped=true&\"","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}","var DESCRIPTORS = require('../internals/descriptors');\nvar FUNCTION_NAME_EXISTS = require('../internals/function-name').EXISTS;\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar FunctionPrototype = Function.prototype;\nvar functionToString = uncurryThis(FunctionPrototype.toString);\nvar nameRE = /function\\b(?:\\s|\\/\\*[\\S\\s]*?\\*\\/|\\/\\/[^\\n\\r]*[\\n\\r]+)*([^\\s(/]*)/;\nvar regExpExec = uncurryThis(nameRE.exec);\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.es/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return regExpExec(nameRE, functionToString(this))[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-db\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-row',[_c('a-col',{attrs:{\"span\":8}},[_vm._v(\" • LowDB本地JSON数据库 \")]),_c('a-col',{attrs:{\"span\":8}},[_vm._v(\" • 可使用lodash语法 \")]),_c('a-col',{attrs:{\"span\":8}})],1)],1),_vm._m(1),_c('div',{staticClass:\"one-block-2\"},[_c('a-row',[_c('a-col',{attrs:{\"span\":24}},[_vm._v(\" \"+_vm._s(_vm.all_list)+\" \")])],1)],1),_vm._m(2),_c('div',{staticClass:\"one-block-2\"},[_c('a-row',[_c('a-col',{attrs:{\"span\":6}},[_c('a-input',{attrs:{\"value\":_vm.name,\"addon-before\":\"姓名\"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}})],1),_c('a-col',{attrs:{\"span\":3}}),_c('a-col',{attrs:{\"span\":6}},[_c('a-input',{attrs:{\"value\":_vm.age,\"addon-before\":\"年龄\"},model:{value:(_vm.age),callback:function ($$v) {_vm.age=$$v},expression:\"age\"}})],1),_c('a-col',{attrs:{\"span\":3}}),_c('a-col',{attrs:{\"span\":6}},[_c('a-button',{on:{\"click\":function($event){return _vm.dbOperation('add')}}},[_vm._v(\" 添加 \")])],1)],1)],1),_vm._m(3),_c('div',{staticClass:\"one-block-2\"},[_c('a-row',[_c('a-col',{attrs:{\"span\":6}},[_c('a-input',{attrs:{\"value\":_vm.search_age,\"addon-before\":\"年龄\"},model:{value:(_vm.search_age),callback:function ($$v) {_vm.search_age=$$v},expression:\"search_age\"}})],1),_c('a-col',{attrs:{\"span\":3}}),_c('a-col',{attrs:{\"span\":6}}),_c('a-col',{attrs:{\"span\":3}}),_c('a-col',{attrs:{\"span\":6}},[_c('a-button',{on:{\"click\":function($event){return _vm.dbOperation('get')}}},[_vm._v(\" 查找 \")])],1)],1),_c('a-row',[_c('a-col',{attrs:{\"span\":24}},[_vm._v(\" \"+_vm._s(_vm.userList)+\" \")])],1)],1),_vm._m(4),_c('div',{staticClass:\"one-block-2\"},[_c('a-row',[_c('a-col',{attrs:{\"span\":6}},[_c('a-input',{attrs:{\"value\":_vm.update_name,\"addon-before\":\"姓名\"},model:{value:(_vm.update_name),callback:function ($$v) {_vm.update_name=$$v},expression:\"update_name\"}})],1),_c('a-col',{attrs:{\"span\":3}}),_c('a-col',{attrs:{\"span\":6}},[_c('a-input',{attrs:{\"value\":_vm.update_age,\"addon-before\":\"年龄\"},model:{value:(_vm.update_age),callback:function ($$v) {_vm.update_age=$$v},expression:\"update_age\"}})],1),_c('a-col',{attrs:{\"span\":3}}),_c('a-col',{attrs:{\"span\":6}},[_c('a-button',{on:{\"click\":function($event){return _vm.dbOperation('update')}}},[_vm._v(\" 更新 \")])],1)],1)],1),_vm._m(5),_c('div',{staticClass:\"one-block-2\"},[_c('a-row',[_c('a-col',{attrs:{\"span\":6}},[_c('a-input',{attrs:{\"value\":_vm.delete_name,\"addon-before\":\"姓名\"},model:{value:(_vm.delete_name),callback:function ($$v) {_vm.delete_name=$$v},expression:\"delete_name\"}})],1),_c('a-col',{attrs:{\"span\":3}}),_c('a-col',{attrs:{\"span\":6}}),_c('a-col',{attrs:{\"span\":3}}),_c('a-col',{attrs:{\"span\":6}},[_c('a-button',{on:{\"click\":function($event){return _vm.dbOperation('del')}}},[_vm._v(\" 删除 \")])],1)],1)],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 本地数据库 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 2. 测试数据 (egg http服务) \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 3. 添加数据 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 4. 获取数据 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 5. 修改数据 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 6. 删除数据 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=2e0e3bf7&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=2e0e3bf7&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2e0e3bf7\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-490df4c2.783e1537.js b/public/dist/js/chunk-490df4c2.783e1537.js new file mode 100644 index 0000000..9daef98 --- /dev/null +++ b/public/dist/js/chunk-490df4c2.783e1537.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-490df4c2"],{"20e0":function(e,t,o){},"889f":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-window"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.createWindow(0)}}},[e._v("打开哔哩哔哩")])],1)],1),e._m(1),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.createWindow(1)}}},[e._v("打开html页面")])],1)],1)])},l=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 新窗口中加载web内容 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 2. 新窗口中加载html内容 ")])])}],r=o("a358"),a={data:function(){return{views:[{type:"web",content:"https://www.bilibili.com/"},{type:"html",content:"/public/html/view_example.html"}]}},methods:{createWindow:function(e){this.$ipcCall(r["a"].createWindow,this.views[e]).then((function(e){console.log(e)}))}}},c=a,i=(o("dbb9"),o("2877")),s=Object(i["a"])(c,n,l,!1,null,"a421017e",null);t["default"]=s.exports},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return l}));o("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},l={appUpdater:"app.updater"}},dbb9:function(e,t,o){"use strict";o("20e0")}}]); +//# sourceMappingURL=chunk-490df4c2.783e1537.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-490df4c2.783e1537.js.map b/public/dist/js/chunk-490df4c2.783e1537.js.map new file mode 100644 index 0000000..aaabc17 --- /dev/null +++ b/public/dist/js/chunk-490df4c2.783e1537.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/window/Index.vue?cf10","webpack:///src/views/base/window/Index.vue","webpack:///./src/views/base/window/Index.vue?6b58","webpack:///./src/views/base/window/Index.vue","webpack:///./src/api/main.js","webpack:///./src/views/base/window/Index.vue?0cb2"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","on","$event","createWindow","_v","staticRenderFns","data","views","type","content","methods","index","$ipcCall","then","console","component","ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","sendNotification","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater"],"mappings":"kJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,oBAAoB,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,UAAU,CAACA,EAAG,W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,SAAU,8BACVC,SAAU,8BACVC,gBAAiB,qCACjBC,YAAa,iCACbC,YAAa,iCACbC,WAAY,iCAGRC,EAAkB,CACtBC,WAAY,gB,kCC5Bd","file":"js/chunk-490df4c2.783e1537.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-window\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.createWindow(0)}}},[_vm._v(\"打开哔哩哔哩\")])],1)],1),_vm._m(1),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.createWindow(1)}}},[_vm._v(\"打开html页面\")])],1)],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 新窗口中加载web内容 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 2. 新窗口中加载html内容 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=a421017e&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=a421017e&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a421017e\",\n null\n \n)\n\nexport default component.exports","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=a421017e&lang=less&scoped=true&\""],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-4d0be246.8253a539.js b/public/dist/js/chunk-4d0be246.8253a539.js new file mode 100644 index 0000000..4a7088f --- /dev/null +++ b/public/dist/js/chunk-4d0be246.8253a539.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d0be246"],{1704:function(e,t,o){"use strict";o("aefe")},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return l}));o("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},l={appUpdater:"app.updater"}},ae87:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-window-view"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.loadViewContent(0)}}},[e._v("加载百度页面")]),o("a-button",{on:{click:function(t){return e.removeViewContent(0)}}},[e._v("移除百度页面")])],1)],1),e._m(1),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.loadViewContent(1)}}},[e._v("加载html页面")]),o("a-button",{on:{click:function(t){return e.removeViewContent(1)}}},[e._v("移除html页面")])],1)],1)])},l=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 嵌入web内容 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 2. 嵌入html内容 ")])])}],r=o("a358"),a={data:function(){return{views:[{type:"web",content:"https://www.baidu.com/"},{type:"html",content:"/public/html/view_example.html"}]}},methods:{loadViewContent:function(e){var t=this;t.$ipcCall(r["a"].loadViewContent,this.views[e]).then((function(e){console.log(e)}))},removeViewContent:function(e){var t=this;t.$ipcCall(r["a"].removeViewContent,t.views[e]).then((function(e){console.log(e)}))}}},c=a,i=(o("1704"),o("2877")),s=Object(i["a"])(c,n,l,!1,null,"5946c2ed",null);t["default"]=s.exports},aefe:function(e,t,o){}}]); +//# sourceMappingURL=chunk-4d0be246.8253a539.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-4d0be246.8253a539.js.map b/public/dist/js/chunk-4d0be246.8253a539.js.map new file mode 100644 index 0000000..4013b74 --- /dev/null +++ b/public/dist/js/chunk-4d0be246.8253a539.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/windowview/Index.vue?72b4","webpack:///./src/api/main.js","webpack:///./src/views/base/windowview/Index.vue?0229","webpack:///src/views/base/windowview/Index.vue","webpack:///./src/views/base/windowview/Index.vue?8214","webpack:///./src/views/base/windowview/Index.vue"],"names":["ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater","render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","on","$event","_v","staticRenderFns","data","views","type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,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,OAAO,CAACJ,EAAIW,GAAG,qBAAqB,WAAa,IAAIX,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,OAAO,CAACJ,EAAIW,GAAG,uB,YC4BnT,GACbE,KADF,WAEI,MAAO,CACLC,MAAOA,CACb,CACQC,KAARA,MACQC,QAARA,0BAEA,CACQD,KAARA,OACQC,QAARA,qCAKEC,QAASA,CACPlC,gBADJ,SACAmC,GACM,IAAN,OACMC,EAAKA,SAASA,OAAYA,gBAAiBA,KAAKA,MAAMA,IAAQA,MAAKA,SAA1CA,GACvBC,QAAQA,IAAIA,OAGhBpC,kBAPJ,SAOAkC,GACM,IAAN,OACMC,EAAKA,SAASA,OAAYA,kBAAmBA,EAAKA,MAAMA,IAAQA,MAAKA,SAA5CA,GACvBC,QAAQA,IAAIA,SCtDyV,I,wBCQzWC,EAAY,eACd,EACAtB,EACAa,GACA,EACA,KACA,WACA,MAIa,aAAAS,E","file":"js/chunk-4d0be246.8253a539.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=5946c2ed&lang=less&scoped=true&\"","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-window-view\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.loadViewContent(0)}}},[_vm._v(\"加载百度页面\")]),_c('a-button',{on:{\"click\":function($event){return _vm.removeViewContent(0)}}},[_vm._v(\"移除百度页面\")])],1)],1),_vm._m(1),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.loadViewContent(1)}}},[_vm._v(\"加载html页面\")]),_c('a-button',{on:{\"click\":function($event){return _vm.removeViewContent(1)}}},[_vm._v(\"移除html页面\")])],1)],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 嵌入web内容 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 2. 嵌入html内容 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=5946c2ed&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=5946c2ed&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5946c2ed\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-72d90f2a.4a4f637c.js b/public/dist/js/chunk-72d90f2a.4a4f637c.js new file mode 100644 index 0000000..8baeadf --- /dev/null +++ b/public/dist/js/chunk-72d90f2a.4a4f637c.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72d90f2a"],{"589e":function(e,t,o){},"666e":function(e,t,o){"use strict";o("589e")},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return n}));o("b775");var r={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},n={appUpdater:"app.updater"}},db5a:function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-screen"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.getTheme()}}},[e._v("获取模式")])],1),o("span",[e._v(" 结果:"+e._s(e.currentThemeMode)+" ")])],1),o("div",{staticClass:"one-block-1"},[e._v(" 2. 设置主题模式(请自行实现前端UI效果) ")]),o("div",{staticClass:"one-block-2"},[o("a-radio-group",{on:{change:e.setTheme},model:{value:e.currentThemeMode,callback:function(t){e.currentThemeMode=t},expression:"currentThemeMode"}},[o("a-radio",{attrs:{value:e.themeList[0]}},[e._v(" "+e._s(e.themeList[0])+" ")]),o("a-radio",{attrs:{value:e.themeList[1]}},[e._v(" "+e._s(e.themeList[1])+" ")]),o("a-radio",{attrs:{value:e.themeList[2]}},[e._v(" "+e._s(e.themeList[2])+" ")])],1)],1)])},n=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 系统主题模式 ")])])}],l=o("a358"),a={data:function(){return{currentThemeMode:"",themeList:["system","light","dark"]}},mounted:function(){},methods:{setTheme:function(e){var t=this;this.currentThemeMode=e.target.value,console.log("setTheme currentThemeMode:",this.currentThemeMode),this.$ipcCall(l["a"].setTheme,this.currentThemeMode).then((function(e){console.log("result:",e),t.currentThemeMode=e}))},getTheme:function(){var e=this;this.$ipcCall(l["a"].getTheme).then((function(t){console.log("result:",t),e.currentThemeMode=t}))}}},c=a,s=(o("666e"),o("2877")),i=Object(s["a"])(c,r,n,!1,null,"452151ab",null);t["default"]=i.exports}}]); +//# sourceMappingURL=chunk-72d90f2a.4a4f637c.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-72d90f2a.4a4f637c.js.map b/public/dist/js/chunk-72d90f2a.4a4f637c.js.map new file mode 100644 index 0000000..beff81e --- /dev/null +++ b/public/dist/js/chunk-72d90f2a.4a4f637c.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/theme/Index.vue?dfa9","webpack:///./src/api/main.js","webpack:///./src/views/base/theme/Index.vue?8ce4","webpack:///src/views/base/theme/Index.vue","webpack:///./src/views/base/theme/Index.vue?704e","webpack:///./src/views/base/theme/Index.vue"],"names":["ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater","render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","on","$event","_v","_s","currentThemeMode","model","value","callback","$$v","expression","themeList","staticRenderFns","data","mounted","methods","e","target","console","$ipcCall","then","self","component"],"mappings":"2IAAA,W,kCCAA,kFAEMA,EAAc,CAClBC,YAAa,iCACbC,mBAAoB,wCACpBC,aAAc,kCACdC,cAAe,mCACfC,mBAAoB,wCACpBC,kBAAmB,uCACnBC,MAAO,2BACPC,UAAW,+BACXC,gBAAiB,qCACjBC,kBAAmB,uCACnBC,aAAc,kCACdC,iBAA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,QAAQ,IAAI,MACl5BC,EAAkB,CAAC,WAAa,IAAIpB,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,OAAO,CAACJ,EAAIW,GAAG,qB,YCmCnJ,GACbU,KADF,WAEI,MAAO,CACLR,iBAAkBA,GAClBM,UAAWA,CACjB,SACA,QACA,UAIEG,QAXF,aAaEC,QAASA,CACPhC,SADJ,SACAiC,GACM,IAAN,OACMvB,KAAKY,iBAAmBW,EAAEC,OAAOV,MACjCW,QAAQA,IAAIA,6BAA8BA,KAAKA,kBAE/CzB,KAAK0B,SAAS,OAAYpC,SAAUU,KAAKY,kBAAkBe,MAAK,SAAvC,GACvBF,QAAQA,IAAIA,UAAWA,GACvBG,EAAKA,iBAAmBA,MAG5BrC,SAXJ,WAYM,IAAN,OACMS,KAAK0B,SAAS,OAAYnC,UAAUoC,MAAK,SAAhB,GACvBF,QAAQA,IAAIA,UAAWA,GACvBG,EAAKA,iBAAmBA,QChE6U,I,wBCQzWC,EAAY,eACd,EACA/B,EACAqB,GACA,EACA,KACA,WACA,MAIa,aAAAU,E","file":"js/chunk-72d90f2a.4a4f637c.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=452151ab&lang=less&scoped=true&\"","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-screen\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.getTheme()}}},[_vm._v(\"获取模式\")])],1),_c('span',[_vm._v(\" 结果:\"+_vm._s(_vm.currentThemeMode)+\" \")])],1),_c('div',{staticClass:\"one-block-1\"},[_vm._v(\" 2. 设置主题模式(请自行实现前端UI效果) \")]),_c('div',{staticClass:\"one-block-2\"},[_c('a-radio-group',{on:{\"change\":_vm.setTheme},model:{value:(_vm.currentThemeMode),callback:function ($$v) {_vm.currentThemeMode=$$v},expression:\"currentThemeMode\"}},[_c('a-radio',{attrs:{\"value\":_vm.themeList[0]}},[_vm._v(\" \"+_vm._s(_vm.themeList[0])+\" \")]),_c('a-radio',{attrs:{\"value\":_vm.themeList[1]}},[_vm._v(\" \"+_vm._s(_vm.themeList[1])+\" \")]),_c('a-radio',{attrs:{\"value\":_vm.themeList[2]}},[_vm._v(\" \"+_vm._s(_vm.themeList[2])+\" \")])],1)],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 系统主题模式 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=452151ab&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=452151ab&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"452151ab\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-9234b1da.374ed212.js b/public/dist/js/chunk-9234b1da.374ed212.js new file mode 100644 index 0000000..c87d36b --- /dev/null +++ b/public/dist/js/chunk-9234b1da.374ed212.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9234b1da"],{"03e3":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-notification"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.sendNotification(0)}}},[e._v("默认")]),o("a-button",{on:{click:function(t){return e.sendNotification(1)}}},[e._v("发出提示音")]),o("a-button",{on:{click:function(t){return e.sendNotification(2)}}},[e._v("点击通知触发事件")]),o("a-button",{on:{click:function(t){return e.sendNotification(3)}}},[e._v("关闭通知触发事件")])],1)],1)])},i=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 弹出桌面通知 ")])])}],l=(o("d3b7"),o("a358")),a={data:function(){return{views:[{type:"main",title:"通知标题",subtitle:"副标题",body:"这是通知内容-默认",silent:!0,icon:"/asset/images/tray_logo.png"},{type:"main",title:"提示音",subtitle:"副标题-提示音",body:"这是通知内容-提示音",silent:!1},{type:"main",title:"点击通知事件",subtitle:"副标题-点击通知事件",body:"这是通知内容-点击通知事件",clickEvent:!0},{type:"main",title:"关闭通知事件",subtitle:"副标题-关闭通知事件",body:"这是通知内容-点击通知事件",closeEvent:!0}]}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.removeAllListeners(l["a"].sendNotification),this.$ipc.on(l["a"].sendNotification,(function(t,o){"[object Object]"==Object.prototype.toString.call(o)&&e.$message.info(o.msg)}))},sendNotification:function(e){this.$ipc.send(l["a"].sendNotification,this.views[e])}}},r=a,c=(o("a437"),o("2877")),s=Object(c["a"])(r,n,i,!1,null,"eb783aa2",null);t["default"]=s.exports},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return i}));o("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},i={appUpdater:"app.updater"}},a437:function(e,t,o){"use strict";o("c737")},c737:function(e,t,o){}}]); +//# sourceMappingURL=chunk-9234b1da.374ed212.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-9234b1da.374ed212.js.map b/public/dist/js/chunk-9234b1da.374ed212.js.map new file mode 100644 index 0000000..ed79e81 --- /dev/null +++ b/public/dist/js/chunk-9234b1da.374ed212.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/notification/Index.vue?595f","webpack:///src/views/base/notification/Index.vue","webpack:///./src/views/base/notification/Index.vue?0cb9","webpack:///./src/views/base/notification/Index.vue","webpack:///./src/api/main.js","webpack:///./src/views/base/notification/Index.vue?5f9b"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","on","$event","sendNotification","_v","staticRenderFns","data","views","type","title","subtitle","body","silent","icon","clickEvent","closeEvent","mounted","init","methods","$ipc","removeAllListeners","Object","prototype","toString","call","result","self","index","send","component","ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","initPowerMonitor","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG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B,SAAnB,KACwB,mBAA1CkB,OAAOC,UAAUC,SAASC,KAAKC,IACjCC,EAAKA,SAASA,KAAKA,EAAOA,SAIhCvB,iBAXJ,SAWAwB,GACMlC,KAAK0B,KAAKS,KAAK,OAAYzB,iBAAkBV,KAAKc,MAAMoB,OCvE+S,I,wBCQzWE,EAAY,eACd,EACAtC,EACAc,GACA,EACA,KACA,WACA,MAIa,aAAAwB,E,2CCnBf,kFAEMC,EAAc,CAClBC,YAAa,iCACbC,mBAAoB,wCACpBC,aAAc,kCACdC,cAAe,mCACfC,mBAAoB,wCACpBC,kBAAmB,uCACnBC,MAAO,2BACPC,UAAW,+BACXC,gBAAiB,qCACjBC,kBAAmB,uCACnBC,aAAc,kCACdtC,iBAAkB,sCAClBuC,iBAAkB,sCAClBC,UAAW,+BACXC,aAAc,kCACdC,WAAY,gCACZC,SAAU,8BACVC,SAAU,8BACVC,gBAAiB,qCACjBC,YAAa,iCACbC,YAAa,iCACbC,WAAY,iCAGRC,EAAkB,CACtBC,WAAY,gB,kCC5Bd,W","file":"js/chunk-9234b1da.374ed212.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-notification\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.sendNotification(0)}}},[_vm._v(\"默认\")]),_c('a-button',{on:{\"click\":function($event){return _vm.sendNotification(1)}}},[_vm._v(\"发出提示音\")]),_c('a-button',{on:{\"click\":function($event){return _vm.sendNotification(2)}}},[_vm._v(\"点击通知触发事件\")]),_c('a-button',{on:{\"click\":function($event){return _vm.sendNotification(3)}}},[_vm._v(\"关闭通知触发事件\")])],1)],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 弹出桌面通知 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=eb783aa2&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=eb783aa2&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"eb783aa2\",\n null\n \n)\n\nexport default component.exports","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=eb783aa2&lang=less&scoped=true&\""],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-94d99d1e.25bdad89.js b/public/dist/js/chunk-94d99d1e.25bdad89.js new file mode 100644 index 0000000..197a3b5 --- /dev/null +++ b/public/dist/js/chunk-94d99d1e.25bdad89.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-94d99d1e"],{"0570":function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-software-open"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-list",{attrs:{bordered:"","data-source":e.data},scopedSlots:e._u([{key:"renderItem",fn:function(t){return o("a-list-item",{on:{click:function(o){return e.openSoft(t.id)}}},[e._v(" "+e._s(t.content)+" "),o("a-button",{attrs:{type:"link"}},[e._v(" 执行 ")])],1)}}])})],1)])},n=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 调用其它软件(exe、bash等可执行程序) ")]),o("p"),o("span",{staticClass:"sub-content"},[e._v(" 注:请先将【powershell.exe】复制到【electron-egg/build/extraResources】目录中 ")])])}],l=o("a358"),a=[{content:"powershell.exe",id:"powershell.exe"}],c={data:function(){return{data:a}},methods:{openSoft:function(e){var t=this;this.$ipcCall(l["a"].openSoftware,e).then((function(e){e||t.$message.error("程序不存在")}))}}},s=c,p=(o("3ae5"),o("2877")),i=Object(p["a"])(s,r,n,!1,null,"a899c27c",null);t["default"]=i.exports},"3ae5":function(e,t,o){"use strict";o("77c3")},"77c3":function(e,t,o){},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return n}));o("b775");var r={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},n={appUpdater:"app.updater"}}}]); +//# sourceMappingURL=chunk-94d99d1e.25bdad89.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-94d99d1e.25bdad89.js.map b/public/dist/js/chunk-94d99d1e.25bdad89.js.map new file mode 100644 index 0000000..65eef38 --- /dev/null +++ b/public/dist/js/chunk-94d99d1e.25bdad89.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/software/Index.vue?6f46","webpack:///src/views/base/software/Index.vue","webpack:///./src/views/base/software/Index.vue?b9e1","webpack:///./src/views/base/software/Index.vue","webpack:///./src/views/base/software/Index.vue?2884","webpack:///./src/api/main.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","data","scopedSlots","_u","key","fn","item","on","$event","openSoft","id","_v","_s","content","staticRenderFns","methods","$ipcCall","openSoftware","then","result","self","component","ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","getScreen","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,2BAA2B,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,SAAS,CAACE,MAAM,CAAC,SAAW,GAAG,cAAcN,EAAIS,MAAMC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,aAAaC,GAAG,SAASC,GAAM,OAAOV,EAAG,cAAc,CAACW,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOhB,EAAIiB,SAASH,EAAKI,OAAO,CAAClB,EAAImB,GAAG,IAAInB,EAAIoB,GAAGN,EAAKO,SAAS,KAAKjB,EAAG,WAAW,CAACE,MAAM,CAAC,KAAO,SAAS,CAACN,EAAImB,GAAG,WAAW,UAAU,MAC/eG,EAAkB,CAAC,WAAa,IAAItB,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,OAAO,CAACJ,EAAImB,GAAG,iCAAiCf,EAAG,KAAKA,EAAG,OAAO,CAACI,YAAY,eAAe,CAACR,EAAImB,GAAG,0E,YCyBzP,GACA,CACEE,QAAFA,iBACEH,GAAFA,mBAIe,GACbT,KADF,WAEI,MAAO,CACLA,KAANA,IAGEc,QAASA,CACPN,SADJ,SACAC,GACM,IAAN,OACMjB,KAAKuB,SAAS,OAAYC,aAAcP,GAAIQ,MAAK,SAAxB,GAClBC,GACHC,EAAKA,SAASA,MAAMA,eC5C+U,I,wBCQzWC,EAAY,eACd,EACA9B,EACAuB,GACA,EACA,KACA,WACA,MAIa,aAAAO,E,6CCnBf,W,2DCAA,kFAEMC,EAAc,CAClBC,YAAa,iCACbC,mBAAoB,wCACpBC,aAAc,kCACdC,cAAe,mCACfC,mBAAoB,wCACpBC,kBAAmB,uCACnBC,MAAO,2BACPC,UAAW,+BACXC,gBAAiB,qCACjBC,kBAAmB,uCACnBC,aAAc,kCACdC,iBAAkB,sCAClBC,iBAAkB,sCAClBC,UAAW,+BACXnB,aAAc,kCACdoB,WAAY,gCACZC,SAAU,8BACVC,SAAU,8BACVC,gBAAiB,qCACjBC,YAAa,iCACbC,YAAa,iCACbC,WAAY,iCAGRC,EAAkB,CACtBC,WAAY","file":"js/chunk-94d99d1e.25bdad89.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-software-open\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-list',{attrs:{\"bordered\":\"\",\"data-source\":_vm.data},scopedSlots:_vm._u([{key:\"renderItem\",fn:function(item){return _c('a-list-item',{on:{\"click\":function($event){return _vm.openSoft(item.id)}}},[_vm._v(\" \"+_vm._s(item.content)+\" \"),_c('a-button',{attrs:{\"type\":\"link\"}},[_vm._v(\" 执行 \")])],1)}}])})],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 调用其它软件(exe、bash等可执行程序) \")]),_c('p'),_c('span',{staticClass:\"sub-content\"},[_vm._v(\" 注:请先将【powershell.exe】复制到【electron-egg/build/extraResources】目录中 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=a899c27c&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=a899c27c&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a899c27c\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=a899c27c&lang=less&scoped=true&\"","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-b67071c4.1d279762.js b/public/dist/js/chunk-b67071c4.1d279762.js new file mode 100644 index 0000000..e2a8985 --- /dev/null +++ b/public/dist/js/chunk-b67071c4.1d279762.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b67071c4"],{"5bda":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-screen"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.getScreen(0)}}},[e._v("获取当前鼠标位置")]),o("a-button",{on:{click:function(t){return e.getScreen(1)}}},[e._v("获取主屏幕")]),o("a-button",{on:{click:function(t){return e.getScreen(2)}}},[e._v("获取所有屏幕")])],1)],1),e._m(1),o("div",{staticClass:"one-block-2"},[o("a-descriptions",{attrs:{title:""}},e._l(e.data,(function(t,n){return o("a-descriptions-item",{key:n,attrs:{label:t.title}},[e._v(" "+e._s(t.desc)+" ")])})),1)],1)])},r=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 屏幕信息 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 结果: ")])])}],l=o("a358"),a={data:function(){return{data:[]}},mounted:function(){},methods:{getScreen:function(e){var t=this;this.$ipcCall(l["a"].getScreen,e).then((function(e){t.data=e}))}}},c=a,i=(o("90d5"),o("2877")),s=Object(i["a"])(c,n,r,!1,null,"716fa21e",null);t["default"]=s.exports},"90d5":function(e,t,o){"use strict";o("d818")},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return r}));o("b775");var n={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},r={appUpdater:"app.updater"}},d818:function(e,t,o){}}]); +//# sourceMappingURL=chunk-b67071c4.1d279762.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-b67071c4.1d279762.js.map b/public/dist/js/chunk-b67071c4.1d279762.js.map new file mode 100644 index 0000000..3294e78 --- /dev/null +++ b/public/dist/js/chunk-b67071c4.1d279762.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/screen/Index.vue?c8f5","webpack:///src/views/base/screen/Index.vue","webpack:///./src/views/base/screen/Index.vue?f2ae","webpack:///./src/views/base/screen/Index.vue","webpack:///./src/views/base/screen/Index.vue?414d","webpack:///./src/api/main.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","on","$event","getScreen","_v","_l","info","index","key","title","_s","desc","staticRenderFns","data","mounted","methods","$ipcCall","then","self","component","ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","initPowerMonitor","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,oBAAoB,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,UAAU,CAACA,EAAG,WAAW,CAACK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,UAAU,MAAM,CAACX,EAAIY,GAAG,cAAcR,EAAG,WAAW,CAACK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,UAAU,MAAM,CAACX,EAAIY,GAAG,WAAWR,EAAG,WAAW,CAACK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,UAAU,MAAM,CAACX,EAAIY,GAAG,aAAa,IAAI,GAAGZ,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,iBAAiB,CAACE,MAAM,CAAC,MAAQ,KAAKN,EAAIa,GAAIb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m=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-screen\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('a-button',{on:{\"click\":function($event){return _vm.getScreen(0)}}},[_vm._v(\"获取当前鼠标位置\")]),_c('a-button',{on:{\"click\":function($event){return _vm.getScreen(1)}}},[_vm._v(\"获取主屏幕\")]),_c('a-button',{on:{\"click\":function($event){return _vm.getScreen(2)}}},[_vm._v(\"获取所有屏幕\")])],1)],1),_vm._m(1),_c('div',{staticClass:\"one-block-2\"},[_c('a-descriptions',{attrs:{\"title\":\"\"}},_vm._l((_vm.data),function(info,index){return _c('a-descriptions-item',{key:index,attrs:{\"label\":info.title}},[_vm._v(\" \"+_vm._s(info.desc)+\" \")])}),1)],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 屏幕信息 \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 结果: \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=716fa21e&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=716fa21e&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"716fa21e\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=716fa21e&lang=less&scoped=true&\"","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-b8ab1f0c.490535dc.js b/public/dist/js/chunk-b8ab1f0c.490535dc.js new file mode 100644 index 0000000..235e180 --- /dev/null +++ b/public/dist/js/chunk-b8ab1f0c.490535dc.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b8ab1f0c"],{3464:function(e,t,o){},"8a01":function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-powermonitor"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("p",[e._v("当前状态:"+e._s(e.currentStatus))])]),o("p",[e._v("* 拔掉电源,使用电池供电")]),o("p",[e._v("* 接入电源")]),o("p",[e._v("* 锁屏")]),o("p",[e._v("* 解锁")])],1)])},n=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 监控电源状态 ")])])}],l=(o("d3b7"),o("a358")),a={data:function(){return{currentStatus:"无"}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.removeAllListeners(l["a"].initPowerMonitor),e.$ipc.on(l["a"].initPowerMonitor,(function(t,o){"[object Object]"==Object.prototype.toString.call(o)&&(e.currentStatus=o.msg,e.$message.info(o.msg))})),this.$ipc.send(l["a"].initPowerMonitor,"")}}},c=a,i=(o("dff4"),o("2877")),s=Object(i["a"])(c,r,n,!1,null,"7dfd9413",null);t["default"]=s.exports},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return n}));o("b775");var r={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},n={appUpdater:"app.updater"}},dff4:function(e,t,o){"use strict";o("3464")}}]); +//# sourceMappingURL=chunk-b8ab1f0c.490535dc.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-b8ab1f0c.490535dc.js.map b/public/dist/js/chunk-b8ab1f0c.490535dc.js.map new file mode 100644 index 0000000..614156c --- /dev/null +++ b/public/dist/js/chunk-b8ab1f0c.490535dc.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/base/powermonitor/Index.vue?bd03","webpack:///src/views/base/powermonitor/Index.vue","webpack:///./src/views/base/powermonitor/Index.vue?1f29","webpack:///./src/views/base/powermonitor/Index.vue","webpack:///./src/api/main.js","webpack:///./src/views/base/powermonitor/Index.vue?f728"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_m","staticClass","_v","_s","currentStatus","staticRenderFns","data","mounted","init","methods","$ipc","removeAllListeners","initPowerMonitor","self","Object","prototype","toString","call","result","send","component","ipcApiRoute","messageShow","messageShowConfirm","selectFolder","openDirectory","socketMessageStart","socketMessageStop","hello","executeJS","loadViewContent","removeViewContent","createWindow","sendNotification","getScreen","openSoftware","autoLaunch","setTheme","getTheme","checkForUpdater","downloadApp","dbOperation","uploadFile","specialIpcRoute","appUpdater"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,M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,sCAClBsB,UAAW,+BACXC,aAAc,kCACdC,WAAY,gCACZC,SAAU,8BACVC,SAAU,8BACVC,gBAAiB,qCACjBC,YAAa,iCACbC,YAAa,iCACbC,WAAY,iCAGRC,EAAkB,CACtBC,WAAY,gB,kCC5Bd","file":"js/chunk-b8ab1f0c.490535dc.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-base-powermonitor\"}},[_vm._m(0),_c('div',{staticClass:\"one-block-2\"},[_c('a-space',[_c('p',[_vm._v(\"当前状态:\"+_vm._s(_vm.currentStatus))])]),_c('p',[_vm._v(\"* 拔掉电源,使用电池供电\")]),_c('p',[_vm._v(\"* 接入电源\")]),_c('p',[_vm._v(\"* 锁屏\")]),_c('p',[_vm._v(\"* 解锁\")])],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 1. 监控电源状态 \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=7dfd9413&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=7dfd9413&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7dfd9413\",\n null\n \n)\n\nexport default component.exports","import request from '@/utils/request'\n\nconst ipcApiRoute = {\n messageShow: 'controller.example.messageShow',\n messageShowConfirm: 'controller.example.messageShowConfirm',\n selectFolder: 'controller.example.selectFolder',\n openDirectory: 'controller.example.openDirectory',\n socketMessageStart: 'controller.example.socketMessageStart',\n socketMessageStop: 'controller.example.socketMessageStop',\n hello: 'controller.example.hello',\n executeJS: 'controller.example.executeJS',\n loadViewContent: 'controller.example.loadViewContent',\n removeViewContent: 'controller.example.removeViewContent',\n createWindow: 'controller.example.createWindow',\n sendNotification: 'controller.example.sendNotification',\n initPowerMonitor: 'controller.example.initPowerMonitor',\n getScreen: 'controller.example.getScreen',\n openSoftware: 'controller.example.openSoftware', \n autoLaunch: 'controller.example.autoLaunch',\n setTheme: 'controller.example.setTheme',\n getTheme: 'controller.example.getTheme',\n checkForUpdater: 'controller.example.checkForUpdater',\n downloadApp: 'controller.example.downloadApp',\n dbOperation: 'controller.example.dbOperation',\n uploadFile: 'controller.example.uploadFile',\n}\n\nconst specialIpcRoute = {\n appUpdater: 'app.updater' // 此频道在后端也有相同定义\n}\n\nexport {\n ipcApiRoute,\n specialIpcRoute\n}","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=7dfd9413&lang=less&scoped=true&\""],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/chunk-bc8b1b0c.6446aab8.js b/public/dist/js/chunk-bc8b1b0c.6446aab8.js new file mode 100644 index 0000000..0b01eaa --- /dev/null +++ b/public/dist/js/chunk-bc8b1b0c.6446aab8.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc8b1b0c"],{"0f0d":function(t,n,e){},2034:function(t,n,e){"use strict";e.r(n);var c=function(){var t=this,n=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"app-other"}},[e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 待开发... ")])]),e("div",{staticClass:"one-block-2"})])}],a={data:function(){return{}},methods:{test:function(){}}},i=a,o=(e("dfa9"),e("2877")),r=Object(o["a"])(i,c,s,!1,null,"041b2204",null);n["default"]=r.exports},dfa9:function(t,n,e){"use strict";e("0f0d")}}]); +//# sourceMappingURL=chunk-bc8b1b0c.6446aab8.js.map \ No newline at end of file diff --git a/public/dist/js/chunk-bc8b1b0c.6446aab8.js.map b/public/dist/js/chunk-bc8b1b0c.6446aab8.js.map new file mode 100644 index 0000000..42ad701 --- /dev/null +++ b/public/dist/js/chunk-bc8b1b0c.6446aab8.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/views/other/Index.vue?4847","webpack:///src/views/other/Index.vue","webpack:///./src/views/other/Index.vue?2b13","webpack:///./src/views/other/Index.vue","webpack:///./src/views/other/Index.vue?031e"],"names":["render","_vm","this","_h","$createElement","_self","_c","_m","staticRenderFns","attrs","staticClass","_v","data","methods","test","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAsBH,EAAII,MAAMC,GAAO,OAAOL,EAAIM,GAAG,IACnGC,EAAkB,CAAC,WAAa,IAAIP,EAAIC,KAASC,EAAGF,EAAIG,eAAmBE,EAAGL,EAAII,MAAMC,IAAIH,EAAG,OAAOG,EAAG,MAAM,CAACG,MAAM,CAAC,GAAK,cAAc,CAACH,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,OAAO,CAACL,EAAIU,GAAG,gBAAgBL,EAAG,MAAM,CAACI,YAAY,oBCY9N,GACbE,KADF,WAEI,MAAO,IAETC,QAASA,CACPC,KADJ,eCjB8V,I,wBCQ1VC,EAAY,eACd,EACAf,EACAQ,GACA,EACA,KACA,WACA,MAIa,aAAAO,E,2CCnBf","file":"js/chunk-bc8b1b0c.6446aab8.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-other\"}},[_c('div',{staticClass:\"one-block-1\"},[_c('span',[_vm._v(\" 待开发... \")])]),_c('div',{staticClass:\"one-block-2\"})])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=041b2204&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=041b2204&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"041b2204\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=041b2204&lang=less&scoped=true&\""],"sourceRoot":""} \ No newline at end of file