feat: sync mixly root files and common folder

This commit is contained in:
yczpf2019
2026-01-24 16:12:04 +08:00
parent 93e17c00ae
commit c8c5fcf726
2920 changed files with 186461 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
goog.loadJs('electron', () => {
goog.require('Mixly.Command');
goog.require('Mixly.Config');
goog.require('Mixly.Electron');
goog.provide('Mixly.Electron.Events');
const { Command, Config, Electron } = Mixly;
const { Events } = Electron;
const { SOFTWARE } = Config;
const electron = Mixly.require('electron');
const ipcRenderer = electron.ipcRenderer;
ipcRenderer.on('command', (event, message) => {
if (SOFTWARE.debug) {
console.log('receive -> ', message);
}
const commandObj = Command.parse(message);
Command.run(commandObj);
});
});