gaoshuaixing 3 years ago
parent
commit
271637368a
100 changed files with 168 additions and 397 deletions
  1. 2 0
      .gitignore
  2. 0 0
      app/common/constants.js
  3. 0 10
      app/const/statusCode.js
  4. 0 8
      app/const/storageKey.js
  5. 123 0
      app/controller/example.js
  6. 21 0
      app/controller/home.js
  7. 0 291
      app/controller/v1/example.js
  8. 0 38
      app/controller/v1/home.js
  9. 1 14
      app/extend/context.js
  10. 0 4
      app/lang/en.json
  11. 1 0
      app/public/css/app.a1b268da.css
  12. 0 1
      app/public/css/chunk-0077e808.c3b8cac0.css
  13. 0 1
      app/public/css/chunk-076bae15.0e63f560.css
  14. 0 1
      app/public/css/chunk-0836256a.f9eb0256.css
  15. 1 0
      app/public/css/chunk-0cf38b6e.6a9bab8f.css
  16. 0 1
      app/public/css/chunk-11be261c.ebd4d1e1.css
  17. 0 1
      app/public/css/chunk-1882667e.929cc0b0.css
  18. 0 1
      app/public/css/chunk-21264600.a03f25bd.css
  19. 1 0
      app/public/css/chunk-25a0809c.f5788196.css
  20. 1 0
      app/public/css/chunk-26100f41.7e4dabbe.css
  21. 1 0
      app/public/css/chunk-26360310.4b14b6bb.css
  22. 1 0
      app/public/css/chunk-26fcacb7.6c177387.css
  23. 0 1
      app/public/css/chunk-28594f30.f0a66429.css
  24. 1 0
      app/public/css/chunk-2f42023a.64a5cb0d.css
  25. 1 0
      app/public/css/chunk-30d91a2c.fc17c30a.css
  26. 1 0
      app/public/css/chunk-490df4c2.11e2850e.css
  27. 1 0
      app/public/css/chunk-4d0be246.94e812c5.css
  28. 0 1
      app/public/css/chunk-5ebbe05a.f54b3985.css
  29. 0 1
      app/public/css/chunk-6f5b76aa.8d2a6191.css
  30. 1 0
      app/public/css/chunk-72d90f2a.ffa3e4f4.css
  31. 0 1
      app/public/css/chunk-73a34e00.e9f0edb8.css
  32. 1 0
      app/public/css/chunk-7cfd4f10.82ba490a.css
  33. 1 0
      app/public/css/chunk-9234b1da.0f3904b9.css
  34. 1 0
      app/public/css/chunk-94d99d1e.8159476a.css
  35. 1 0
      app/public/css/chunk-b67071c4.a4424700.css
  36. 1 0
      app/public/css/chunk-b8ab1f0c.9e732e2f.css
  37. 0 1
      app/public/css/chunk-c3a37878.855045b3.css
  38. 0 1
      app/public/css/chunk-d08d7a24.35b85a67.css
  39. 0 1
      app/public/css/chunk-d82cf548.df6950da.css
  40. 0 1
      app/public/css/chunk-f6d2456a.5e5339e6.css
  41. 0 1
      app/public/css/chunk-fe0c189e.0fd43177.css
  42. 0 0
      app/public/css/chunk-vendors.f4913a35.css
  43. 1 1
      app/public/index.html
  44. 0 0
      app/public/js/app.809a3df2.js
  45. 0 0
      app/public/js/app.809a3df2.js.map
  46. 0 0
      app/public/js/chunk-0077e808.45699d1f.js
  47. 0 0
      app/public/js/chunk-0077e808.45699d1f.js.map
  48. 0 0
      app/public/js/chunk-076bae15.3f7e16cd.js
  49. 0 0
      app/public/js/chunk-076bae15.3f7e16cd.js.map
  50. 0 2
      app/public/js/chunk-0836256a.bd54b664.js
  51. 0 0
      app/public/js/chunk-0836256a.bd54b664.js.map
  52. 2 0
      app/public/js/chunk-0cf38b6e.954338de.js
  53. 0 0
      app/public/js/chunk-0cf38b6e.954338de.js.map
  54. 0 0
      app/public/js/chunk-11be261c.ee3ef6e9.js
  55. 0 0
      app/public/js/chunk-11be261c.ee3ef6e9.js.map
  56. 0 0
      app/public/js/chunk-1882667e.a92213d6.js
  57. 0 0
      app/public/js/chunk-1882667e.a92213d6.js.map
  58. 0 2
      app/public/js/chunk-21264600.12d6c454.js
  59. 0 0
      app/public/js/chunk-21264600.12d6c454.js.map
  60. 0 0
      app/public/js/chunk-25a0809c.098f3724.js
  61. 0 0
      app/public/js/chunk-25a0809c.098f3724.js.map
  62. 0 0
      app/public/js/chunk-26100f41.df27ff52.js
  63. 0 0
      app/public/js/chunk-26100f41.df27ff52.js.map
  64. 0 0
      app/public/js/chunk-26360310.92d29abe.js
  65. 0 0
      app/public/js/chunk-26360310.92d29abe.js.map
  66. 0 0
      app/public/js/chunk-26fcacb7.cfbe169b.js
  67. 0 0
      app/public/js/chunk-26fcacb7.cfbe169b.js.map
  68. 0 2
      app/public/js/chunk-28594f30.76724dcb.js
  69. 0 0
      app/public/js/chunk-28594f30.76724dcb.js.map
  70. 0 0
      app/public/js/chunk-2f42023a.306cd28f.js
  71. 0 0
      app/public/js/chunk-2f42023a.306cd28f.js.map
  72. 2 0
      app/public/js/chunk-30d91a2c.10859dc2.js
  73. 0 0
      app/public/js/chunk-30d91a2c.10859dc2.js.map
  74. 0 0
      app/public/js/chunk-490df4c2.2c1bd398.js
  75. 0 0
      app/public/js/chunk-490df4c2.2c1bd398.js.map
  76. 0 0
      app/public/js/chunk-4d0be246.6a854f74.js
  77. 0 0
      app/public/js/chunk-4d0be246.6a854f74.js.map
  78. 0 2
      app/public/js/chunk-5ebbe05a.560b208a.js
  79. 0 0
      app/public/js/chunk-5ebbe05a.560b208a.js.map
  80. 0 2
      app/public/js/chunk-6f5b76aa.4fe9bd4f.js
  81. 0 0
      app/public/js/chunk-6f5b76aa.4fe9bd4f.js.map
  82. 0 0
      app/public/js/chunk-72d90f2a.f39b231c.js
  83. 0 0
      app/public/js/chunk-72d90f2a.f39b231c.js.map
  84. 0 2
      app/public/js/chunk-73a34e00.b8ad79b7.js
  85. 0 0
      app/public/js/chunk-73a34e00.b8ad79b7.js.map
  86. 0 0
      app/public/js/chunk-7cfd4f10.afa37532.js
  87. 0 0
      app/public/js/chunk-7cfd4f10.afa37532.js.map
  88. 0 0
      app/public/js/chunk-9234b1da.9434b7b8.js
  89. 0 0
      app/public/js/chunk-9234b1da.9434b7b8.js.map
  90. 0 0
      app/public/js/chunk-94d99d1e.ea4a0c80.js
  91. 0 0
      app/public/js/chunk-94d99d1e.ea4a0c80.js.map
  92. 0 0
      app/public/js/chunk-b67071c4.61f6c0a0.js
  93. 0 0
      app/public/js/chunk-b67071c4.61f6c0a0.js.map
  94. 0 0
      app/public/js/chunk-b8ab1f0c.7842c660.js
  95. 0 0
      app/public/js/chunk-b8ab1f0c.7842c660.js.map
  96. 0 0
      app/public/js/chunk-c3a37878.42d55cc1.js
  97. 0 0
      app/public/js/chunk-c3a37878.42d55cc1.js.map
  98. 0 2
      app/public/js/chunk-d08d7a24.22b16454.js
  99. 0 0
      app/public/js/chunk-d08d7a24.22b16454.js.map
  100. 0 2
      app/public/js/chunk-d82cf548.4e60d99d.js

+ 2 - 0
.gitignore

@@ -4,3 +4,5 @@ logs/
 run/
 .idea/
 package-lock.json
+data/
+public/dist/

+ 0 - 0
app/lang/zh.json → app/common/constants.js


+ 0 - 10
app/const/statusCode.js

@@ -1,10 +0,0 @@
-'use strict';
-
-let StatusCode;
-(function(StatusCode) {
-  // 系统
-  StatusCode[(StatusCode.SUCCESS = 0)] = 'SUCCESS';
-  StatusCode[(StatusCode.SYS_API_ERROR = 10001)] = 'SYS_API_ERROR' // api错误
-})(StatusCode || (StatusCode = {}));
-
-module.exports = StatusCode;

+ 0 - 8
app/const/storageKey.js

@@ -1,8 +0,0 @@
-'use strict';
-
-module.exports = {
-  EGG_CONFIG: 'egg_config',
-  ELECTRON_IPC: 'electron_ipc',
-  PREFERENCES: 'preferences',
-  TEST_DATA: 'test_data'
-};

+ 123 - 0
app/controller/example.js

@@ -0,0 +1,123 @@
+'use strict';
+
+const BaseController = require('./base');
+const fs = require('fs');
+const path = require('path');
+const Utils = require('ee-core').Utils;
+
+class ExampleController extends BaseController {
+
+  /**
+   * test electron api
+   */
+  async test1() {
+    const { ctx, service } = this;
+    const body = ctx.request.body;
+    const id = body.id;
+    const data = {};
+
+    await service.example.test1(id);
+
+    this.sendSuccess(data);
+  }
+
+  /**
+   * 上传文件
+   */  
+  async uploadFile() {
+    const self = this;
+    const { ctx, service } = this;
+    let tmpDir = Utils.getLogDir();
+    const file = ctx.request.files[0];
+
+    try {
+      let tmpFile = fs.readFileSync(file.filepath)
+      fs.writeFileSync(path.join(tmpDir, file.filename), tmpFile)
+    } finally {
+      await fs.unlink(file.filepath, function(){});
+    }
+    const fileStream = fs.createReadStream(path.join(tmpDir, file.filename))
+    const uploadRes = await service.example.uploadFileToSMMS(fileStream);
+
+    self.sendData(uploadRes);
+  }
+
+  async uploadExtension() {
+    const self = this;
+    const { ctx, service } = this;
+    const data = {};
+    let tmpDir = Utils.getLogDir();
+
+    const file = ctx.request.files[0];
+    this.app.logger.info('file:', file);
+
+    try {
+      let tmpFile = fs.readFileSync(file.filepath)
+      fs.writeFileSync(path.join(tmpDir, file.filename), tmpFile)
+    } finally {
+      await fs.unlink(file.filepath, function(){});
+    }
+    
+    const filePath = path.join(tmpDir, file.filename);
+    await service.example.loadExtension(filePath);
+
+    self.sendData(data);
+  }
+
+  /**
+   * json数据库操作
+   */   
+  async dbOperation() {
+    const self = this;
+    const { ctx, service } = this;
+    const paramsObj = ctx.request.body;
+    const data = {
+      action: paramsObj.action,
+      result: null,
+      all_list: []
+    };
+    
+    switch (paramsObj.action) {
+      case 'add' :
+        data.result = await service.storage.addTestData(paramsObj.info);;
+        break;
+      case 'del' :
+        data.result = await service.storage.delTestData(paramsObj.delete_name);;
+        break;
+      case 'update' :
+        data.result = await service.storage.updateTestData(paramsObj.update_name, paramsObj.update_age);
+        break;
+      case 'get' :
+        data.result = await service.storage.getTestData(paramsObj.search_age);
+        break;
+    }
+
+    data.all_list = await service.storage.getAllTestData();
+
+    self.sendSuccess(data);
+  }
+
+  /**
+   * 显示消息对话框
+   */
+  async messageShow() {
+    const { service } = this;
+    const data = {};
+    await service.example.messageShow();
+
+    this.sendSuccess(data);
+  }
+
+  /**
+   * 显示消息对话框和确认
+   */
+  async messageShowConfirm() {
+    const { service } = this;
+    const data = {};
+    await service.example.messageShowConfirm();
+
+    this.sendSuccess(data);
+  }
+}
+
+module.exports = ExampleController;

+ 21 - 0
app/controller/home.js

@@ -0,0 +1,21 @@
+'use strict';
+
+const BaseController = require('./base');
+
+class HomeController extends BaseController {
+
+  /**
+   * 单页应用入口(vue、react等)
+   */
+  async index() {
+    const { ctx } = this;
+
+    const data = {
+      title: 'hello ee'
+    };
+
+    await ctx.render('index.ejs', data);
+  }
+}
+
+module.exports = HomeController;

+ 0 - 291
app/controller/v1/example.js

@@ -1,291 +0,0 @@
-'use strict';
-
-const BaseController = require('../base');
-const os = require('os');
-const fs = require('fs');
-const path = require('path');
-
-class ExampleController extends BaseController {
-
-  /**
-   * test electron api
-   */
-  async testElectronApi() {
-    const { ctx, service } = this;
-    const body = ctx.request.body;
-    const id = body.id;
-    const data = {};
-
-    await service.example.testElectronApi(id);
-
-    this.sendSuccess(data);
-  }
-
-  async openLocalDir() {
-    const self = this;
-    const { ctx, service } = this;
-    const body = ctx.request.body;
-    const id = body.id;
-    const data = {};
-    let dir = '';
-    switch (id) {
-      case 'download' :
-        dir = os.userInfo().homedir + '/Downloads';
-        break;
-      case 'picture' :
-        dir = os.userInfo().homedir + '/Pictures';
-        break;
-      case 'doc' :
-        dir = os.userInfo().homedir + '/Documents';
-        break;
-      case 'music' :
-        dir = os.userInfo().homedir + '/Music';
-        break;
-    }
-
-    await service.example.openLocalDir(dir);
-
-    self.sendSuccess(data);
-  }
-
-  async executeJS() {
-    const self = this;
-    const { ctx, service } = this;
-    const body = ctx.request.body;
-    const str = body.str;
-    let data = await service.example.executeJS(str);
-    self.sendSuccess(data);
-  }
-
-  async uploadFile() {
-    const self = this;
-    const { ctx, service } = this;
-    let tmpDir = service.storage.getStorageDir();
-    const file = ctx.request.files[0];
-
-    try {
-      let tmpFile = fs.readFileSync(file.filepath)
-      fs.writeFileSync(path.join(tmpDir, file.filename), tmpFile)
-    } finally {
-      await fs.unlink(file.filepath, function(){});
-    }
-    const fileStream = fs.createReadStream(path.join(tmpDir, file.filename))
-    const uploadRes = await service.example.uploadFileToSMMS(fileStream);
-
-    self.sendData(uploadRes);
-  }
-
-  async uploadExtension() {
-    const self = this;
-    const { ctx, service } = this;
-    const data = {};
-    let tmpDir = service.storage.getStorageDir();
-
-    const file = ctx.request.files[0];
-    this.app.logger.info('file:', file);
-
-    try {
-      let tmpFile = fs.readFileSync(file.filepath)
-      fs.writeFileSync(path.join(tmpDir, file.filename), tmpFile)
-    } finally {
-      await fs.unlink(file.filepath, function(){});
-    }
-    
-    const filePath = path.join(tmpDir, file.filename);
-    await service.example.loadExtension(filePath);
-
-    self.sendData(data);
-  }
-
-  async setShortcut() {
-    const self = this;
-    const { ctx, service } = this;
-    const shortcutObj = ctx.request.body;
-    const data = {};
-
-    if (!shortcutObj['id'] || !shortcutObj['name'] || !shortcutObj['cmd']) {
-      self.sendFail({}, 'param error', 100);
-      return;
-    }
-
-    await service.example.setShortcut(shortcutObj);
-
-    self.sendSuccess(data);
-  }
-
-  async getWsUrl() {
-    const self = this;
-    const { service } = this;
-    const data = {};
-
-    const addr = await service.socket.getWsUrl();
-    data.url = addr;
-
-    self.sendSuccess(data);
-  }
-
-  async dbOperation() {
-    const self = this;
-    const { ctx, service } = this;
-    const paramsObj = ctx.request.body;
-    const data = {
-      action: paramsObj.action,
-      result: null,
-      all_list: []
-    };
-    
-    switch (paramsObj.action) {
-      case 'add' :
-        data.result = await service.storage.addTestData(paramsObj.info);;
-        break;
-      case 'del' :
-        data.result = await service.storage.delTestData(paramsObj.delete_name);;
-        break;
-      case 'update' :
-        data.result = await service.storage.updateTestData(paramsObj.update_name, paramsObj.update_age);
-        break;
-      case 'get' :
-        data.result = await service.storage.getTestData(paramsObj.search_age);
-        break;
-    }
-
-    data.all_list = await service.storage.getAllTestData();
-
-    self.sendSuccess(data);
-  }
-
-  async addTestData() {
-    const self = this;
-    const { service } = this;
-    const data = {};
-
-    const userInfo = {
-      name: 'jame',
-      age: 18,
-      gender: 'man'
-    }
-    await service.storage.addTestData(userInfo);
-
-    self.sendSuccess(data);
-  }
-
-  async delTestData() {
-    const self = this;
-    const { service } = this;
-    const data = {};
-    const name = 'jame';
-    await service.storage.delTestData(name);
-
-    self.sendSuccess(data);
-  }
-
-  async updateTestData() {
-    const self = this;
-    const { service } = this;
-    const data = {};
-    const name = 'jame';
-    const age = 20;
-    await service.storage.updateTestData(name, age);
-
-    self.sendSuccess(data);
-  }
-
-  async getTestData() {
-    const self = this;
-    const { service } = this;
-    const data = {};
-    const name = 'jame';
-    const user = await service.storage.getTestData(name);
-    data.user = user;
-
-    self.sendSuccess(data);
-  }
-
-  async autoLaunchEnable() {
-    const { service } = this;
-
-    await service.example.autoLaunchEnable();
-    const data = {
-      isEnabled: true
-    };
-
-    this.sendSuccess(data);
-  }
-  
-  async autoLaunchDisable() {
-    const { service } = this;
-    
-    await service.example.autoLaunchDisable();
-    const data = {
-      isEnabled: false
-    };
-
-    this.sendSuccess(data);
-  }
-
-  async autoLaunchIsEnabled() {
-    const { service } = this;
-
-    const data = {
-      isEnabled: null
-    };
-
-    const isEnabled = await service.example.autoLaunchIsEnabled();
-    data.isEnabled = isEnabled;
-
-    this.sendSuccess(data);
-  }
-
-  /**
-   * 调用其它程序
-   */
-  async openSoftware() {
-    const { service } = this;
-    const data = {};
-    const openResult = await service.example.openSoftware('powershell.exe');
-    if (!openResult) {
-      this.sendFail({}, '程序不存在', 100);
-      return;
-    }
-    this.sendSuccess(data);
-  }
-
-  /**
-   * 选择文件夹目录
-   */
-  async selectFileDir() {
-    const { service } = this;
-
-    const data = {
-      dir: ''
-    };
-    const dir = await service.example.selectDir();
-    data.dir = dir;
-
-    this.sendSuccess(data);
-  }
-
-  /**
-   * 显示消息对话框
-   */
-  async messageShow() {
-    const { service } = this;
-    const data = {};
-    await service.example.messageShow();
-
-    this.sendSuccess(data);
-  }
-
-  /**
-   * 显示消息对话框和确认
-   */
-  async messageShowConfirm() {
-    const { service } = this;
-    const data = {};
-    await service.example.messageShowConfirm();
-
-    this.sendSuccess(data);
-  }
-}
-
-module.exports = ExampleController;

+ 0 - 38
app/controller/v1/home.js

@@ -1,38 +0,0 @@
-'use strict';
-
-const BaseController = require('../base');
-
-class HomeController extends BaseController {
-
-  async index() {
-    const { ctx } = this;
-
-    const data = {
-      title: 'hello electron-egg'
-    };
-
-    await ctx.render('index.ejs', data);
-  }
-  
-  async hello() {
-    const { ctx } = this;
-
-    const data = {
-      title: 'hello'
-    };
-
-    this.sendSuccess(data);
-  }
-
-  async helloPage() {
-    const { ctx } = this;
-
-    const data = {
-      title: 'hello'
-    };
-
-    await ctx.render('hello.ejs', data);
-  }
-}
-
-module.exports = HomeController;

+ 1 - 14
app/extend/context.js

@@ -4,16 +4,6 @@
  */
 'use strict';
 module.exports = {
-  isMobile() {
-    const deviceAgent = this.get('user-agent').toLowerCase();
-    const agentID = deviceAgent.match(/(iphone|ipod|ipad|android)/);
-    if (agentID) {
-      // 手机访问
-      return true;
-    }
-    // 电脑访问
-    return false;
-  },
   success(msg, data, total) {
     this.body = {
       success: true,
@@ -28,8 +18,5 @@ module.exports = {
       msg,
       result: data,
     };
-  },
-  async infoPage(msg) {
-    await this.render('500', { msg });
-  },
+  }
 };

+ 0 - 4
app/lang/en.json

@@ -1,4 +0,0 @@
-{
-  "SUCCESS": "",
-  "SYS_API_ERROR": ""
-}

+ 1 - 0
app/public/css/app.a1b268da.css

@@ -0,0 +1 @@
+#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50}#app,#app-layout-sider[data-v-9dbf58d6]{height:100%}#app-layout-sider .logo[data-v-9dbf58d6]{border-bottom:1px solid #e8e8e8}#app-layout-sider .pic-logo[data-v-9dbf58d6]{height:32px;margin:10px}#app-layout-sider .layout-sider[data-v-9dbf58d6]{border-top:1px solid #e8e8e8;border-right:1px solid #e8e8e8}#app-layout-sider .menu-item .ant-menu-item[data-v-9dbf58d6]{background-color:#fff;margin-top:0;margin-bottom:0;padding:0 0!important}#app-menu[data-v-a35da3fc]{height:100%;text-align:center}#app-menu .layout-sider[data-v-a35da3fc]{border-top:1px solid #e8e8e8;border-right:1px solid #e8e8e8;background-color:#fafafa;overflow:auto}

+ 0 - 1
app/public/css/chunk-0077e808.c3b8cac0.css

@@ -1 +0,0 @@
-#app-demo-socket-ipc[data-v-27c4a622]{padding:0 10px;text-align:left;width:100%}#app-demo-socket-ipc .one-block-1[data-v-27c4a622]{font-size:16px;padding-top:10px}#app-demo-socket-ipc .one-block-2[data-v-27c4a622]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-076bae15.0e63f560.css

@@ -1 +0,0 @@
-#app-demo-db[data-v-a5be7ac0]{padding:0 10px;text-align:left;width:100%}#app-demo-db .one-block-1[data-v-a5be7ac0]{font-size:16px;padding-top:10px}#app-demo-db .one-block-2[data-v-a5be7ac0]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-0836256a.f9eb0256.css

@@ -1 +0,0 @@
-#app-demo-notification[data-v-7aef99b8]{padding:0 10px;text-align:left;width:100%}#app-demo-notification .one-block-1[data-v-7aef99b8]{font-size:16px;padding-top:10px}#app-demo-notification .one-block-2[data-v-7aef99b8]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-0cf38b6e.6a9bab8f.css

@@ -0,0 +1 @@
+#app-other[data-v-041b2204]{padding:0 10px;text-align:left;width:100%}#app-other .one-block-1[data-v-041b2204]{font-size:16px;padding-top:10px}#app-other .one-block-2[data-v-041b2204]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-11be261c.ebd4d1e1.css

@@ -1 +0,0 @@
-#app-demo-software-open[data-v-8d1853f4]{padding:0 10px;text-align:left;width:100%}#app-demo-software-open .one-block-1[data-v-8d1853f4]{font-size:16px;padding-top:10px}#app-demo-software-open .one-block-1 .sub-content[data-v-8d1853f4]{font-size:14px}#app-demo-software-open .one-block-2[data-v-8d1853f4]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-1882667e.929cc0b0.css

@@ -1 +0,0 @@
-#app-demo-file[data-v-566bc58a]{padding:0 10px;text-align:left;width:100%}#app-demo-file .one-block-1[data-v-566bc58a]{font-size:16px;padding-top:10px}#app-demo-file .footer[data-v-566bc58a],#app-demo-file .one-block-2[data-v-566bc58a]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-21264600.a03f25bd.css

@@ -1 +0,0 @@
-#app-demo-window[data-v-141ac89c]{padding:0 10px;text-align:left;width:100%}#app-demo-window .one-block-1[data-v-141ac89c]{font-size:16px;padding-top:10px}#app-demo-window .one-block-2[data-v-141ac89c]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-25a0809c.f5788196.css

@@ -0,0 +1 @@
+#app-base-test-api[data-v-48ca31fa]{padding:0 10px;text-align:left;width:100%}#app-base-test-api .one-block-1[data-v-48ca31fa]{font-size:16px;padding-top:10px}#app-base-test-api .one-block-2[data-v-48ca31fa]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-26100f41.7e4dabbe.css

@@ -0,0 +1 @@
+#app-base-file[data-v-e16c22ca]{padding:0 10px;text-align:left;width:100%}#app-base-file .one-block-1[data-v-e16c22ca]{font-size:16px;padding-top:10px}#app-base-file .footer[data-v-e16c22ca],#app-base-file .one-block-2[data-v-e16c22ca]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-26360310.4b14b6bb.css

@@ -0,0 +1 @@
+#app-demo-window[data-v-cae527a6]{padding:0 10px;text-align:left;width:100%}#app-demo-window .one-block-1[data-v-cae527a6]{font-size:16px;padding-top:10px}#app-demo-window .one-block-2[data-v-cae527a6]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-26fcacb7.6c177387.css

@@ -0,0 +1 @@
+#app-base-system-launch[data-v-59a6529a]{padding:0 10px;text-align:left;width:100%}#app-base-system-launch .one-block-1[data-v-59a6529a]{font-size:16px;padding-top:10px}#app-base-system-launch .one-block-2[data-v-59a6529a]{padding-top:10px}#app-base-system-launch .set-auto .ant-list-item[data-v-59a6529a]:last-child{border-bottom:1px solid #e8e8e8}

+ 0 - 1
app/public/css/chunk-28594f30.f0a66429.css

@@ -1 +0,0 @@
-#app-demo-powermonitor[data-v-e8675844]{padding:0 10px;text-align:left;width:100%}#app-demo-powermonitor .one-block-1[data-v-e8675844]{font-size:16px;padding-top:10px}#app-demo-powermonitor .one-block-2[data-v-e8675844]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-2f42023a.64a5cb0d.css

@@ -0,0 +1 @@
+#app-base-socket-ipc[data-v-19858933]{padding:0 10px;text-align:left;width:100%}#app-base-socket-ipc .one-block-1[data-v-19858933]{font-size:16px;padding-top:10px}#app-base-socket-ipc .one-block-2[data-v-19858933]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-30d91a2c.fc17c30a.css

@@ -0,0 +1 @@
+#app-base-extension[data-v-3d9f484a]{padding:0 10px;text-align:left;width:100%}#app-base-extension .one-block-1[data-v-3d9f484a]{font-size:16px;padding-top:10px}#app-base-extension .one-block-2[data-v-3d9f484a]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-490df4c2.11e2850e.css

@@ -0,0 +1 @@
+#app-base-window[data-v-a421017e]{padding:0 10px;text-align:left;width:100%}#app-base-window .one-block-1[data-v-a421017e]{font-size:16px;padding-top:10px}#app-base-window .one-block-2[data-v-a421017e]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-4d0be246.94e812c5.css

@@ -0,0 +1 @@
+#app-base-window-view[data-v-5946c2ed]{padding:0 10px;text-align:left;width:100%}#app-base-window-view .one-block-1[data-v-5946c2ed]{font-size:16px;padding-top:10px}#app-base-window-view .one-block-2[data-v-5946c2ed]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-5ebbe05a.f54b3985.css

@@ -1 +0,0 @@
-#app-demo-screen[data-v-46883359]{padding:0 10px;text-align:left;width:100%}#app-demo-screen .one-block-1[data-v-46883359]{font-size:16px;padding-top:10px}#app-demo-screen .one-block-2[data-v-46883359]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-6f5b76aa.8d2a6191.css

@@ -1 +0,0 @@
-#app-other[data-v-7e208678]{padding:0 10px;text-align:left;width:100%}#app-other .one-block-1[data-v-7e208678]{font-size:16px;padding-top:10px}#app-other .one-block-2[data-v-7e208678]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-72d90f2a.ffa3e4f4.css

@@ -0,0 +1 @@
+#app-base-screen[data-v-452151ab]{padding:0 10px;text-align:left;width:100%}#app-base-screen .one-block-1[data-v-452151ab]{font-size:16px;padding-top:10px}#app-base-screen .one-block-2[data-v-452151ab]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-73a34e00.e9f0edb8.css

@@ -1 +0,0 @@
-#app-demo-test-api[data-v-3e0a3322]{padding:0 10px;text-align:left;width:100%}#app-demo-test-api .one-block-1[data-v-3e0a3322]{font-size:16px;padding-top:10px}#app-demo-test-api .one-block-2[data-v-3e0a3322]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-7cfd4f10.82ba490a.css

@@ -0,0 +1 @@
+#app-base-db[data-v-c25eb100]{padding:0 10px;text-align:left;width:100%}#app-base-db .one-block-1[data-v-c25eb100]{font-size:16px;padding-top:10px}#app-base-db .one-block-2[data-v-c25eb100]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-9234b1da.0f3904b9.css

@@ -0,0 +1 @@
+#app-base-notification[data-v-eb783aa2]{padding:0 10px;text-align:left;width:100%}#app-base-notification .one-block-1[data-v-eb783aa2]{font-size:16px;padding-top:10px}#app-base-notification .one-block-2[data-v-eb783aa2]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-94d99d1e.8159476a.css

@@ -0,0 +1 @@
+#app-base-software-open[data-v-a899c27c]{padding:0 10px;text-align:left;width:100%}#app-base-software-open .one-block-1[data-v-a899c27c]{font-size:16px;padding-top:10px}#app-base-software-open .one-block-1 .sub-content[data-v-a899c27c]{font-size:14px}#app-base-software-open .one-block-2[data-v-a899c27c]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-b67071c4.a4424700.css

@@ -0,0 +1 @@
+#app-base-screen[data-v-716fa21e]{padding:0 10px;text-align:left;width:100%}#app-base-screen .one-block-1[data-v-716fa21e]{font-size:16px;padding-top:10px}#app-base-screen .one-block-2[data-v-716fa21e]{padding-top:10px}

+ 1 - 0
app/public/css/chunk-b8ab1f0c.9e732e2f.css

@@ -0,0 +1 @@
+#app-base-powermonitor[data-v-7dfd9413]{padding:0 10px;text-align:left;width:100%}#app-base-powermonitor .one-block-1[data-v-7dfd9413]{font-size:16px;padding-top:10px}#app-base-powermonitor .one-block-2[data-v-7dfd9413]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-c3a37878.855045b3.css

@@ -1 +0,0 @@
-#app-demo-system-launch[data-v-3659912d]{padding:0 10px;text-align:left;width:100%}#app-demo-system-launch .one-block-1[data-v-3659912d]{font-size:16px;padding-top:10px}#app-demo-system-launch .one-block-2[data-v-3659912d]{padding-top:10px}#app-demo-system-launch .set-auto .ant-list-item[data-v-3659912d]:last-child{border-bottom:1px solid #e8e8e8}

+ 0 - 1
app/public/css/chunk-d08d7a24.35b85a67.css

@@ -1 +0,0 @@
-#app-demo-window-view[data-v-858949e6]{padding:0 10px;text-align:left;width:100%}#app-demo-window-view .one-block-1[data-v-858949e6]{font-size:16px;padding-top:10px}#app-demo-window-view .one-block-2[data-v-858949e6]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-d82cf548.df6950da.css

@@ -1 +0,0 @@
-#app-demo-screen[data-v-09fd3530]{padding:0 10px;text-align:left;width:100%}#app-demo-screen .one-block-1[data-v-09fd3530]{font-size:16px;padding-top:10px}#app-demo-screen .one-block-2[data-v-09fd3530]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-f6d2456a.5e5339e6.css

@@ -1 +0,0 @@
-#app-demo-shortcut[data-v-d8968e5a]{padding:0 10px;text-align:left;width:100%}#app-demo-shortcut .one-block-1[data-v-d8968e5a]{font-size:16px;padding-top:10px}#app-demo-shortcut .one-block-2[data-v-d8968e5a]{padding-top:10px}

+ 0 - 1
app/public/css/chunk-fe0c189e.0fd43177.css

@@ -1 +0,0 @@
-#app-demo-extension[data-v-69e95420]{padding:0 10px;text-align:left;width:100%}#app-demo-extension .one-block-1[data-v-69e95420]{font-size:16px;padding-top:10px}#app-demo-extension .one-block-2[data-v-69e95420]{padding-top:10px}

File diff suppressed because it is too large
+ 0 - 0
app/public/css/chunk-vendors.f4913a35.css


File diff suppressed because it is too large
+ 1 - 1
app/public/index.html


File diff suppressed because it is too large
+ 0 - 0
app/public/js/app.809a3df2.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/app.809a3df2.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-0077e808.45699d1f.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-0077e808.45699d1f.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-076bae15.3f7e16cd.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-076bae15.3f7e16cd.js.map


+ 0 - 2
app/public/js/chunk-0836256a.bd54b664.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0836256a"],{"6f98":function(t,n,i){},ded8:function(t,n,i){"use strict";i("6f98")},f35a:function(t,n,i){"use strict";i.r(n);var e=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{attrs:{id:"app-demo-notification"}},[t._m(0),i("div",{staticClass:"one-block-2"},[i("a-space",[i("a-button",{on:{click:function(n){return t.sendNotification(0)}}},[t._v("默认")]),i("a-button",{on:{click:function(n){return t.sendNotification(1)}}},[t._v("发出提示音")]),i("a-button",{on:{click:function(n){return t.sendNotification(2)}}},[t._v("点击通知触发事件")]),i("a-button",{on:{click:function(n){return t.sendNotification(3)}}},[t._v("关闭通知触发事件")])],1)],1)])},o=[function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticClass:"one-block-1"},[i("span",[t._v(" 1. 弹出桌面通知 ")])])}],c=(i("d3b7"),{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 t=this;t.$ipc.on("example.sendNotification",(function(n,i){"[object Object]"==Object.prototype.toString.call(i)&&t.$message.info(i.msg)}))},sendNotification:function(t){this.$ipc.send("example.sendNotification",this.views[t])}}}),s=c,a=(i("ded8"),i("2877")),u=Object(a["a"])(s,e,o,!1,null,"7aef99b8",null);n["default"]=u.exports}}]);
-//# sourceMappingURL=chunk-0836256a.bd54b664.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-0836256a.bd54b664.js.map


+ 2 - 0
app/public/js/chunk-0cf38b6e.954338de.js

@@ -0,0 +1,2 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0cf38b6e"],{"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-0cf38b6e.954338de.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-0cf38b6e.954338de.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-11be261c.ee3ef6e9.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-11be261c.ee3ef6e9.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-1882667e.a92213d6.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-1882667e.a92213d6.js.map


+ 0 - 2
app/public/js/chunk-21264600.12d6c454.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21264600"],{"46a8":function(t,e,n){"use strict";n.r(e);var c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app-demo-window"}},[t._m(0),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:function(e){return t.createWindow(0)}}},[t._v("打开哔哩哔哩")])],1)],1),t._m(1),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:function(e){return t.createWindow(1)}}},[t._v("打开html页面")])],1)],1)])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"one-block-1"},[n("span",[t._v(" 1. 新窗口中加载web内容 ")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"one-block-1"},[n("span",[t._v(" 2. 新窗口中加载html内容 ")])])}],a={data:function(){return{views:[{type:"web",content:"https://www.bilibili.com/"},{type:"html",content:"/asset/view_example.html"}]}},methods:{createWindow:function(t){var e=this;e.$ipcCallMain("example.createWindow",this.views[t]).then((function(t){console.log(t)}))}}},o=a,s=(n("4bff"),n("2877")),l=Object(s["a"])(o,c,i,!1,null,"141ac89c",null);e["default"]=l.exports},"4af7":function(t,e,n){},"4bff":function(t,e,n){"use strict";n("4af7")}}]);
-//# sourceMappingURL=chunk-21264600.12d6c454.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-21264600.12d6c454.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-25a0809c.098f3724.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-25a0809c.098f3724.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-26100f41.df27ff52.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-26100f41.df27ff52.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-26360310.92d29abe.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-26360310.92d29abe.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-26fcacb7.cfbe169b.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-26fcacb7.cfbe169b.js.map


+ 0 - 2
app/public/js/chunk-28594f30.76724dcb.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28594f30"],{7163:function(t,n,e){"use strict";e("df07")},c259:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"app-demo-powermonitor"}},[t._m(0),e("div",{staticClass:"one-block-2"},[e("a-space",[e("p",[t._v("当前状态:"+t._s(t.currentStatus))])]),e("p",[t._v("* 拔掉电源,使用电池供电")]),e("p",[t._v("* 接入电源")]),e("p",[t._v("* 锁屏")]),e("p",[t._v("* 解锁")])],1)])},o=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 1. 监控电源状态 ")])])}],c=(e("d3b7"),{data:function(){return{currentStatus:"无"}},mounted:function(){this.init()},methods:{init:function(){var t=this;t.$ipc.on("example.initPowerMonitor",(function(n,e){"[object Object]"==Object.prototype.toString.call(e)&&(t.currentStatus=e.msg,t.$message.info(e.msg))})),this.$ipc.send("example.initPowerMonitor","")}}}),s=c,r=(e("7163"),e("2877")),a=Object(r["a"])(s,i,o,!1,null,"e8675844",null);n["default"]=a.exports},df07:function(t,n,e){}}]);
-//# sourceMappingURL=chunk-28594f30.76724dcb.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-28594f30.76724dcb.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-2f42023a.306cd28f.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-2f42023a.306cd28f.js.map


+ 2 - 0
app/public/js/chunk-30d91a2c.10859dc2.js

@@ -0,0 +1,2 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30d91a2c"],{"105d":function(t,n,e){},"1cf8":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"app-base-extension"}},[t._m(0),e("div",{staticClass:"one-block-2"},[e("a-upload-dragger",{attrs:{name:"file",multiple:!0,action:t.action_url},on:{change:t.handleChange}},[e("p",{staticClass:"ant-upload-drag-icon"},[e("a-icon",{attrs:{type:"inbox"}})],1),e("p",{staticClass:"ant-upload-text"},[t._v(" 上传 ")]),e("p",{staticClass:"ant-upload-hint"})])],1),e("div",{staticClass:"one-block-1"},[t._v(" 2. chrome扩展商店(crx下载) ")]),e("div",{staticClass:"one-block-2"},[e("a-space",[t._v(" 极简插件:https://chrome.zzzmh.cn/ ")])],1)])},o=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 1. 上传扩展程序(crx文件格式) ")])])}],i=(e("b0c0"),{data:function(){return{action_url:"/api/example/uploadExtension"}},mounted:function(){this.init()},methods:{init:function(){},handleChange:function(t){var n=t.file.status;if("uploading"!==n&&console.log(t.file),"done"===n){var e=t.file.response;console.log("uploadRes:",e)}else"error"===n&&this.$message.error("".concat(t.file.name," file upload failed."))}}}),s=i,c=(e("e42d"),e("2877")),l=Object(c["a"])(s,a,o,!1,null,"3d9f484a",null);n["default"]=l.exports},b0c0:function(t,n,e){var a=e("83ab"),o=e("5e77").EXISTS,i=e("e330"),s=e("9bf2").f,c=Function.prototype,l=i(c.toString),r=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=i(r.exec),d="name";a&&!o&&s(c,d,{configurable:!0,get:function(){try{return u(r,l(this))[1]}catch(t){return""}}})},e42d:function(t,n,e){"use strict";e("105d")}}]);
+//# sourceMappingURL=chunk-30d91a2c.10859dc2.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-30d91a2c.10859dc2.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-490df4c2.2c1bd398.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-490df4c2.2c1bd398.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-4d0be246.6a854f74.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-4d0be246.6a854f74.js.map


+ 0 - 2
app/public/js/chunk-5ebbe05a.560b208a.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ebbe05a"],{1083:function(t,n,e){"use strict";e("c20f")},7595: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-demo-screen"}},[t._m(0),e("div",{staticClass:"one-block-2"},[e("a-space",[e("a-button",{on:{click:function(n){return t.getScreen(0)}}},[t._v("获取当前鼠标位置")]),e("a-button",{on:{click:function(n){return t.getScreen(1)}}},[t._v("获取主屏幕")]),e("a-button",{on:{click:function(n){return t.getScreen(2)}}},[t._v("获取所有屏幕")])],1)],1),t._m(1),e("div",{staticClass:"one-block-2"},[e("a-descriptions",{attrs:{title:""}},t._l(t.data,(function(n,c){return e("a-descriptions-item",{key:c,attrs:{label:n.title}},[t._v(" "+t._s(n.desc)+" ")])})),1)],1)])},i=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 1. 屏幕信息 ")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 结果: ")])])}],a={data:function(){return{data:[]}},mounted:function(){this.init()},methods:{init:function(){var t=this;t.$ipc.on("example.getScreen",(function(n,e){t.data=e}))},getScreen:function(t){this.$ipc.send("example.getScreen",t)}}},s=a,o=(e("1083"),e("2877")),r=Object(o["a"])(s,c,i,!1,null,"46883359",null);n["default"]=r.exports},c20f:function(t,n,e){}}]);
-//# sourceMappingURL=chunk-5ebbe05a.560b208a.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-5ebbe05a.560b208a.js.map


+ 0 - 2
app/public/js/chunk-6f5b76aa.4fe9bd4f.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f5b76aa"],{2034:function(e,a,t){"use strict";t.r(a);var n=function(){var e=this,a=e.$createElement;e._self._c;return e._m(0)},o=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{attrs:{id:"app-other"}},[t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 待开发... ")])]),t("div",{staticClass:"one-block-2"})])}],i=t("a358"),c={data:function(){return{}},methods:{test:function(){var e={};Object(i["a"])("openDir",e).then((function(e){if(0!==e.code)return!1})).catch((function(e){console.log("err:",e)}))}}},p=c,l=(t("39b0"),t("2877")),u=Object(l["a"])(p,n,o,!1,null,"7e208678",null);a["default"]=u.exports},"39b0":function(e,a,t){"use strict";t("6f7e")},"6f7e":function(e,a,t){},a358:function(e,a,t){"use strict";t.d(a,"a",(function(){return i}));var n=t("b775"),o={openDir:"/api/v1/example/openLocalDir",uploadFile:"/api/v1/example/uploadFile",executeJS:"/api/v1/example/executeJS",setShortcut:"/api/v1/example/setShortcut",autoLaunchEnable:"/api/v1/example/autoLaunchEnable",autoLaunchDisable:"/api/v1/example/autoLaunchDisable",autoLaunchIsEnabled:"/api/v1/example/autoLaunchIsEnabled",openSoftware:"/api/v1/example/openSoftware",selectFileDir:"/api/v1/example/selectFileDir",messageShow:"/api/v1/example/messageShow",messageShowConfirm:"/api/v1/example/messageShowConfirm",dbOperation:"/api/v1/example/dbOperation",testElectronApi:"/api/v1/example/testElectronApi"};function i(e,a){return Object(n["b"])({url:o[e],method:"post",data:a})}}}]);
-//# sourceMappingURL=chunk-6f5b76aa.4fe9bd4f.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-6f5b76aa.4fe9bd4f.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-72d90f2a.f39b231c.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-72d90f2a.f39b231c.js.map


+ 0 - 2
app/public/js/chunk-73a34e00.b8ad79b7.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73a34e00"],{"9e2e":function(e,a,t){"use strict";t("e4d0")},a358:function(e,a,t){"use strict";t.d(a,"a",(function(){return o}));var n=t("b775"),i={openDir:"/api/v1/example/openLocalDir",uploadFile:"/api/v1/example/uploadFile",executeJS:"/api/v1/example/executeJS",setShortcut:"/api/v1/example/setShortcut",autoLaunchEnable:"/api/v1/example/autoLaunchEnable",autoLaunchDisable:"/api/v1/example/autoLaunchDisable",autoLaunchIsEnabled:"/api/v1/example/autoLaunchIsEnabled",openSoftware:"/api/v1/example/openSoftware",selectFileDir:"/api/v1/example/selectFileDir",messageShow:"/api/v1/example/messageShow",messageShowConfirm:"/api/v1/example/messageShowConfirm",dbOperation:"/api/v1/example/dbOperation",testElectronApi:"/api/v1/example/testElectronApi"};function o(e,a){return Object(n["b"])({url:i[e],method:"post",data:a})}},b11e: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-demo-test-api"}},[e._m(0),t("div",{staticClass:"one-block-2"},[t("a-button",{on:{click:function(a){return e.exec(1)}}},[e._v(" 点击 ")])],1)])},i=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 1. 测试一些操作系统api ")])])}],o=t("a358"),c={data:function(){return{type:1}},methods:{exec:function(e){var a={id:e};Object(o["a"])("testElectronApi",a).then((function(e){if(0!==e.code)return!1})).catch((function(e){console.log("err:",e)}))}}},p=c,l=(t("9e2e"),t("2877")),u=Object(l["a"])(p,n,i,!1,null,"3e0a3322",null);a["default"]=u.exports},e4d0:function(e,a,t){}}]);
-//# sourceMappingURL=chunk-73a34e00.b8ad79b7.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-73a34e00.b8ad79b7.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-7cfd4f10.afa37532.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-7cfd4f10.afa37532.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-9234b1da.9434b7b8.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-9234b1da.9434b7b8.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-94d99d1e.ea4a0c80.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-94d99d1e.ea4a0c80.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-b67071c4.61f6c0a0.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-b67071c4.61f6c0a0.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-b8ab1f0c.7842c660.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-b8ab1f0c.7842c660.js.map


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-c3a37878.42d55cc1.js


File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-c3a37878.42d55cc1.js.map


+ 0 - 2
app/public/js/chunk-d08d7a24.22b16454.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d08d7a24"],{"253c4":function(t,n,e){"use strict";e("8d43")},"46ad":function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"app-demo-window-view"}},[t._m(0),e("div",{staticClass:"one-block-2"},[e("a-space",[e("a-button",{on:{click:function(n){return t.loadViewContent(0)}}},[t._v("加载百度页面")]),e("a-button",{on:{click:function(n){return t.removeViewContent(0)}}},[t._v("移除百度页面")])],1)],1),t._m(1),e("div",{staticClass:"one-block-2"},[e("a-space",[e("a-button",{on:{click:function(n){return t.loadViewContent(1)}}},[t._v("加载html页面")]),e("a-button",{on:{click:function(n){return t.removeViewContent(1)}}},[t._v("移除html页面")])],1)],1)])},i=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 1. 嵌入web内容 ")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 2. 嵌入html内容 ")])])}],c={data:function(){return{views:[{type:"web",content:"https://www.baidu.com/"},{type:"html",content:"/asset/view_example.html"}]}},methods:{loadViewContent:function(t){var n=this;n.$ipcCallMain("example.loadViewContent",this.views[t]).then((function(t){console.log(t)}))},removeViewContent:function(t){var n=this;n.$ipcCallMain("example.removeViewContent",n.views[t]).then((function(t){console.log(t)}))}}},a=c,l=(e("253c4"),e("2877")),s=Object(l["a"])(a,o,i,!1,null,"858949e6",null);n["default"]=s.exports},"8d43":function(t,n,e){}}]);
-//# sourceMappingURL=chunk-d08d7a24.22b16454.js.map

File diff suppressed because it is too large
+ 0 - 0
app/public/js/chunk-d08d7a24.22b16454.js.map


+ 0 - 2
app/public/js/chunk-d82cf548.4e60d99d.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d82cf548"],{"2b9f":function(e,t,n){},"2bde":function(e,t,n){"use strict";n("2b9f")},9772:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app-demo-screen"}},[e._m(0),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:function(t){return e.getTheme()}}},[e._v("获取模式")])],1),n("span",[e._v(" 结果:"+e._s(e.currentThemeMode)+" ")])],1),n("div",{staticClass:"one-block-1"},[e._v(" 2. 设置主题模式(请自行实现前端UI效果) ")]),n("div",{staticClass:"one-block-2"},[n("a-radio-group",{on:{change:e.setTheme},model:{value:e.currentThemeMode,callback:function(t){e.currentThemeMode=t},expression:"currentThemeMode"}},[n("a-radio",{attrs:{value:e.themeList[0]}},[e._v(" "+e._s(e.themeList[0])+" ")]),n("a-radio",{attrs:{value:e.themeList[1]}},[e._v(" "+e._s(e.themeList[1])+" ")]),n("a-radio",{attrs:{value:e.themeList[2]}},[e._v(" "+e._s(e.themeList[2])+" ")])],1)],1)])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 1. 系统主题模式 ")])])}],i={data:function(){return{currentThemeMode:"",themeList:["system","light","dark"]}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.on("example.setTheme",(function(t,n){console.log("result:",n),e.currentThemeMode=n})),this.$ipc.on("example.getTheme",(function(t,n){console.log("result:",n),e.currentThemeMode=n}))},setTheme:function(e){this.currentThemeMode=e.target.value,console.log("setTheme currentThemeMode:",this.currentThemeMode),this.$ipc.send("example.setTheme",this.currentThemeMode)},getTheme:function(){this.$ipc.send("example.getTheme","")}}},c=i,r=(n("2bde"),n("2877")),a=Object(r["a"])(c,s,o,!1,null,"09fd3530",null);t["default"]=a.exports}}]);
-//# sourceMappingURL=chunk-d82cf548.4e60d99d.js.map

Some files were not shown because too many files changed in this diff