2018-02-01 19:53:26 +00:00
|
|
|
const mcopy = {};
|
|
|
|
|
2022-06-04 15:11:23 +00:00
|
|
|
const remote = require('@electron/remote');
|
|
|
|
const { ipcRenderer } = require('electron');
|
|
|
|
const { dialog } = remote;
|
2018-02-01 19:53:26 +00:00
|
|
|
const notifier = require('node-notifier');
|
|
|
|
const fs = require('fs');
|
2019-04-20 14:15:28 +00:00
|
|
|
const uuid = require('uuid').v4;
|
2018-02-01 19:53:26 +00:00
|
|
|
const moment = require('moment');
|
2019-07-07 04:02:01 +00:00
|
|
|
const path = require('path');
|
2018-02-01 19:53:26 +00:00
|
|
|
const humanizeDuration = require('humanize-duration');
|
2019-03-22 01:32:33 +00:00
|
|
|
const PACKAGE = require('./package.json');
|
2019-03-21 19:47:07 +00:00
|
|
|
const cfg = require('./data/cfg.json');
|
2018-02-01 19:53:26 +00:00
|
|
|
const gui = require('./lib/ui');
|
2019-03-22 01:02:28 +00:00
|
|
|
const grid = require('./lib/ui/grid.js');
|
2018-02-01 19:53:26 +00:00
|
|
|
const light = require('./lib/ui/light.js');
|
|
|
|
const proj = require('./lib/ui/proj.js');
|
|
|
|
const cam = require('./lib/ui/cam.js');
|
|
|
|
const nav = require('./lib/ui/nav.js');
|
|
|
|
const seq = require('./lib/ui/seq.js');
|
|
|
|
const cmd = require('./lib/ui/cmd.js');
|
|
|
|
const devices = require('./lib/ui/devices.js');
|
2019-06-18 19:40:09 +00:00
|
|
|
const filmout = require('./lib/ui/filmout.js');
|
2018-03-05 04:55:31 +00:00
|
|
|
const mse = require('./lib/ui/mscript.js');
|
2022-07-13 19:21:26 +00:00
|
|
|
const capper = require('./lib/ui/capper.js');
|
2023-02-28 19:30:17 +00:00
|
|
|
const timing = require('./lib/ui/timing.js');
|
2018-06-17 03:19:58 +00:00
|
|
|
const Mscript = require('./lib/mscript');
|
2020-01-09 23:06:18 +00:00
|
|
|
const { delay } = require('./lib/delay');
|
2022-08-03 13:02:47 +00:00
|
|
|
const alertObj = require('./lib/ui/alert.js');
|
2021-02-24 15:05:45 +00:00
|
|
|
|
2019-03-21 19:47:07 +00:00
|
|
|
let log;
|
2017-12-20 03:54:39 +00:00
|
|
|
|
2016-04-14 04:17:42 +00:00
|
|
|
/******
|
|
|
|
State shared by ALL interfaces
|
|
|
|
*******/
|
|
|
|
mcopy.state = {
|
2019-04-02 14:21:01 +00:00
|
|
|
version : PACKAGE.version //use for file compatibility check
|
2016-04-14 04:17:42 +00:00
|
|
|
};
|
2019-03-21 19:47:07 +00:00
|
|
|
//
|
2016-04-14 04:17:42 +00:00
|
|
|
|
2019-03-21 19:47:07 +00:00
|
|
|
async function init () {
|
2016-04-13 07:26:35 +00:00
|
|
|
'use strict';
|
2019-03-21 19:47:07 +00:00
|
|
|
|
|
|
|
log = await require('log')({})
|
|
|
|
|
2016-04-13 07:26:35 +00:00
|
|
|
nav.init();
|
2023-02-19 16:36:06 +00:00
|
|
|
gui.init();
|
2019-03-22 01:02:28 +00:00
|
|
|
grid.init();
|
2018-03-05 04:55:31 +00:00
|
|
|
mse.mscript.init();
|
|
|
|
mse.console.init();
|
2019-03-21 19:47:07 +00:00
|
|
|
|
2016-04-19 03:44:51 +00:00
|
|
|
devices.init();
|
2019-06-25 01:11:14 +00:00
|
|
|
filmout.init();
|
2016-04-13 04:06:19 +00:00
|
|
|
light.init();
|
2016-04-18 02:22:18 +00:00
|
|
|
proj.init();
|
2016-04-18 03:02:22 +00:00
|
|
|
cam.init();
|
2019-03-24 01:58:22 +00:00
|
|
|
seq.init();
|
2022-07-13 19:21:26 +00:00
|
|
|
capper.init();
|
2022-08-03 13:02:47 +00:00
|
|
|
alertObj.init();
|
2016-04-13 01:04:13 +00:00
|
|
|
};
|