mcopy/app/src/index.js

60 lines
1.5 KiB
JavaScript
Raw Normal View History

const mcopy = {};
const remote = require('@electron/remote');
const { ipcRenderer } = require('electron');
const { dialog } = remote;
const notifier = require('node-notifier');
const fs = require('fs');
const uuid = require('uuid').v4;
const moment = require('moment');
const path = require('path');
const humanizeDuration = require('humanize-duration');
const PACKAGE = require('./package.json');
const cfg = require('./data/cfg.json');
const gui = require('./lib/ui');
const grid = require('./lib/ui/grid.js');
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');
const filmout = require('./lib/ui/filmout.js');
const mse = require('./lib/ui/mscript.js');
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');
const { delay } = require('./lib/delay');
const alertObj = require('./lib/ui/alert.js');
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
};
//
2016-04-14 04:17:42 +00:00
async function init () {
'use strict';
log = await require('log')({})
nav.init();
2023-02-19 16:36:06 +00:00
gui.init();
grid.init();
mse.mscript.init();
mse.console.init();
devices.init();
filmout.init();
2016-04-13 04:06:19 +00:00
light.init();
proj.init();
2016-04-18 03:02:22 +00:00
cam.init();
seq.init();
capper.init();
alertObj.init();
2016-04-13 01:04:13 +00:00
};