diff --git a/electron/controller/effect.js b/electron/controller/effect.js new file mode 100644 index 0000000..7aec32a --- /dev/null +++ b/electron/controller/effect.js @@ -0,0 +1,42 @@ +'use strict'; + + +/** + * 特效 - 功能demo + * @class + */ +class EffectController extends Controller { + + constructor(ctx) { + super(ctx); + } + + /** + * 所有方法接收两个参数 + * @param args 前端传的参数 + * @param event - ipc通信时才有值。详情见:控制器文档 + */ + + /** + * test + */ + async test () { + const result = await this.service.example.test('electron'); + + // let tmpDir = Ps.getLogDir(); + // Log.info('tmpDir:', tmpDir); + + let mid = await Utils.machineIdSync(true); + Log.info('mid 11111111:', mid); + + Utils.machineId().then((id) => { + Log.info('mid 222222222:', id); + }); + + return result; + } + +} + +EffectController.toString = () => '[class EffectController]'; +module.exports = EffectController; \ No newline at end of file diff --git a/electron/controller/framework.js b/electron/controller/framework.js new file mode 100644 index 0000000..1234411 --- /dev/null +++ b/electron/controller/framework.js @@ -0,0 +1,42 @@ +'use strict'; + + +/** + * electron-egg framework - 功能demo + * @class + */ +class FrameworkController extends Controller { + + constructor(ctx) { + super(ctx); + } + + /** + * 所有方法接收两个参数 + * @param args 前端传的参数 + * @param event - ipc通信时才有值。详情见:控制器文档 + */ + + /** + * test + */ + async test () { + const result = await this.service.example.test('electron'); + + // let tmpDir = Ps.getLogDir(); + // Log.info('tmpDir:', tmpDir); + + let mid = await Utils.machineIdSync(true); + Log.info('mid 11111111:', mid); + + Utils.machineId().then((id) => { + Log.info('mid 222222222:', id); + }); + + return result; + } + +} + +FrameworkController.toString = () => '[class FrameworkController]'; +module.exports = FrameworkController; \ No newline at end of file diff --git a/electron/controller/hardware.js b/electron/controller/hardware.js new file mode 100644 index 0000000..d9b88d0 --- /dev/null +++ b/electron/controller/hardware.js @@ -0,0 +1,42 @@ +'use strict'; + + +/** + * 硬件设备 - 功能demo + * @class + */ +class HardwareController extends Controller { + + constructor(ctx) { + super(ctx); + } + + /** + * 所有方法接收两个参数 + * @param args 前端传的参数 + * @param event - ipc通信时才有值。详情见:控制器文档 + */ + + /** + * test + */ + async test () { + const result = await this.service.example.test('electron'); + + // let tmpDir = Ps.getLogDir(); + // Log.info('tmpDir:', tmpDir); + + let mid = await Utils.machineIdSync(true); + Log.info('mid 11111111:', mid); + + Utils.machineId().then((id) => { + Log.info('mid 222222222:', id); + }); + + return result; + } + +} + +HardwareController.toString = () => '[class HardwareController]'; +module.exports = HardwareController; \ No newline at end of file diff --git a/electron/controller/os.js b/electron/controller/os.js new file mode 100644 index 0000000..0709680 --- /dev/null +++ b/electron/controller/os.js @@ -0,0 +1,42 @@ +'use strict'; + + +/** + * 操作系统 - 功能demo + * @class + */ +class OsController extends Controller { + + constructor(ctx) { + super(ctx); + } + + /** + * 所有方法接收两个参数 + * @param args 前端传的参数 + * @param event - ipc通信时才有值。详情见:控制器文档 + */ + + /** + * test + */ + async test () { + const result = await this.service.example.test('electron'); + + // let tmpDir = Ps.getLogDir(); + // Log.info('tmpDir:', tmpDir); + + let mid = await Utils.machineIdSync(true); + Log.info('mid 11111111:', mid); + + Utils.machineId().then((id) => { + Log.info('mid 222222222:', id); + }); + + return result; + } + +} + +OsController.toString = () => '[class OsController]'; +module.exports = OsController; \ No newline at end of file diff --git a/electron/service/effect.js b/electron/service/effect.js new file mode 100644 index 0000000..4fa1b2d --- /dev/null +++ b/electron/service/effect.js @@ -0,0 +1,30 @@ +'use strict'; + +const { Service } = require('ee-core'); + +/** + * effect(service层为单例) + * @class + */ +class EffectService extends Service { + + constructor(ctx) { + super(ctx); + } + + /** + * test + */ + async test(args) { + let obj = { + status:'ok', + params: args + } + + return obj; + } + +} + +EffectService.toString = () => '[class EffectService]'; +module.exports = EffectService; \ No newline at end of file diff --git a/electron/service/framework.js b/electron/service/framework.js new file mode 100644 index 0000000..60dc76f --- /dev/null +++ b/electron/service/framework.js @@ -0,0 +1,30 @@ +'use strict'; + +const { Service } = require('ee-core'); + +/** + * framework + * @class + */ +class FrameworkService extends Service { + + constructor(ctx) { + super(ctx); + } + + /** + * test + */ + async test(args) { + let obj = { + status:'ok', + params: args + } + + return obj; + } + +} + +FrameworkService.toString = () => '[class FrameworkService]'; +module.exports = FrameworkService; \ No newline at end of file diff --git a/electron/service/hardware.js b/electron/service/hardware.js new file mode 100644 index 0000000..e2671e7 --- /dev/null +++ b/electron/service/hardware.js @@ -0,0 +1,30 @@ +'use strict'; + +const { Service } = require('ee-core'); + +/** + * hardware(service层为单例) + * @class + */ +class HardwareService extends Service { + + constructor(ctx) { + super(ctx); + } + + /** + * test + */ + async test(args) { + let obj = { + status:'ok', + params: args + } + + return obj; + } + +} + +HardwareService.toString = () => '[class HardwareService]'; +module.exports = HardwareService; \ No newline at end of file diff --git a/electron/service/os.js b/electron/service/os.js new file mode 100644 index 0000000..a4ddc37 --- /dev/null +++ b/electron/service/os.js @@ -0,0 +1,30 @@ +'use strict'; + +const { Service } = require('ee-core'); + +/** + * os(service层为单例) + * @class + */ +class OsService extends Service { + + constructor(ctx) { + super(ctx); + } + + /** + * test + */ + async test(args) { + let obj = { + status:'ok', + params: args + } + + return obj; + } + +} + +OsService.toString = () => '[class OsService]'; +module.exports = OsService; \ No newline at end of file diff --git a/frontend/src/views/effect/video/Index.vue b/frontend/src/views/effect/video/Index.vue new file mode 100644 index 0000000..dddd05e --- /dev/null +++ b/frontend/src/views/effect/video/Index.vue @@ -0,0 +1,94 @@ + + + diff --git a/frontend/src/views/base/db/Index.vue b/frontend/src/views/framework/db/Index.vue similarity index 100% rename from frontend/src/views/base/db/Index.vue rename to frontend/src/views/framework/db/Index.vue diff --git a/frontend/src/views/other/java/Index.vue b/frontend/src/views/framework/java/Index.vue similarity index 100% rename from frontend/src/views/other/java/Index.vue rename to frontend/src/views/framework/java/Index.vue diff --git a/frontend/src/views/base/jobs/Index.vue b/frontend/src/views/framework/jobs/Index.vue similarity index 100% rename from frontend/src/views/base/jobs/Index.vue rename to frontend/src/views/framework/jobs/Index.vue diff --git a/frontend/src/views/base/socket/HttpServer.vue b/frontend/src/views/framework/socket/HttpServer.vue similarity index 100% rename from frontend/src/views/base/socket/HttpServer.vue rename to frontend/src/views/framework/socket/HttpServer.vue diff --git a/frontend/src/views/base/socket/Ipc.vue b/frontend/src/views/framework/socket/Ipc.vue similarity index 100% rename from frontend/src/views/base/socket/Ipc.vue rename to frontend/src/views/framework/socket/Ipc.vue diff --git a/frontend/src/views/base/socket/SocketServer.vue b/frontend/src/views/framework/socket/SocketServer.vue similarity index 100% rename from frontend/src/views/base/socket/SocketServer.vue rename to frontend/src/views/framework/socket/SocketServer.vue diff --git a/frontend/src/views/base/software/Index.vue b/frontend/src/views/framework/software/Index.vue similarity index 100% rename from frontend/src/views/base/software/Index.vue rename to frontend/src/views/framework/software/Index.vue diff --git a/frontend/src/views/base/sqlitedb/Index.vue b/frontend/src/views/framework/sqlitedb/Index.vue similarity index 100% rename from frontend/src/views/base/sqlitedb/Index.vue rename to frontend/src/views/framework/sqlitedb/Index.vue diff --git a/frontend/src/views/other/test/Index.vue b/frontend/src/views/framework/test/Index.vue similarity index 100% rename from frontend/src/views/other/test/Index.vue rename to frontend/src/views/framework/test/Index.vue diff --git a/frontend/src/views/base/testapi/Index.vue b/frontend/src/views/framework/testapi/Index.vue similarity index 100% rename from frontend/src/views/base/testapi/Index.vue rename to frontend/src/views/framework/testapi/Index.vue diff --git a/frontend/src/views/base/updater/Index.vue b/frontend/src/views/framework/updater/Index.vue similarity index 100% rename from frontend/src/views/base/updater/Index.vue rename to frontend/src/views/framework/updater/Index.vue diff --git a/frontend/src/views/hardware/printer/Index.vue b/frontend/src/views/hardware/printer/Index.vue new file mode 100644 index 0000000..5c26301 --- /dev/null +++ b/frontend/src/views/hardware/printer/Index.vue @@ -0,0 +1,99 @@ + + + diff --git a/frontend/src/views/base/extension/Index.vue b/frontend/src/views/os/extension/Index.vue similarity index 100% rename from frontend/src/views/base/extension/Index.vue rename to frontend/src/views/os/extension/Index.vue diff --git a/frontend/src/views/base/file/Index.vue b/frontend/src/views/os/file/Index.vue similarity index 100% rename from frontend/src/views/base/file/Index.vue rename to frontend/src/views/os/file/Index.vue diff --git a/frontend/src/views/os/launch/Index.vue b/frontend/src/views/os/launch/Index.vue new file mode 100644 index 0000000..fa2bfae --- /dev/null +++ b/frontend/src/views/os/launch/Index.vue @@ -0,0 +1,69 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/base/notification/Index.vue b/frontend/src/views/os/notification/Index.vue similarity index 100% rename from frontend/src/views/base/notification/Index.vue rename to frontend/src/views/os/notification/Index.vue diff --git a/frontend/src/views/base/powermonitor/Index.vue b/frontend/src/views/os/powermonitor/Index.vue similarity index 100% rename from frontend/src/views/base/powermonitor/Index.vue rename to frontend/src/views/os/powermonitor/Index.vue diff --git a/frontend/src/views/base/screen/Index.vue b/frontend/src/views/os/screen/Index.vue similarity index 100% rename from frontend/src/views/base/screen/Index.vue rename to frontend/src/views/os/screen/Index.vue diff --git a/frontend/src/views/base/subwindow/Ipc.vue b/frontend/src/views/os/subwindow/Ipc.vue similarity index 100% rename from frontend/src/views/base/subwindow/Ipc.vue rename to frontend/src/views/os/subwindow/Ipc.vue diff --git a/frontend/src/views/base/system/Index.vue b/frontend/src/views/os/system/Index.vue similarity index 100% rename from frontend/src/views/base/system/Index.vue rename to frontend/src/views/os/system/Index.vue diff --git a/frontend/src/views/base/theme/Index.vue b/frontend/src/views/os/theme/Index.vue similarity index 100% rename from frontend/src/views/base/theme/Index.vue rename to frontend/src/views/os/theme/Index.vue diff --git a/frontend/src/views/base/window/Index.vue b/frontend/src/views/os/window/Index.vue similarity index 100% rename from frontend/src/views/base/window/Index.vue rename to frontend/src/views/os/window/Index.vue diff --git a/frontend/src/views/base/windowview/Index.vue b/frontend/src/views/os/windowview/Index.vue similarity index 100% rename from frontend/src/views/base/windowview/Index.vue rename to frontend/src/views/os/windowview/Index.vue