production refactor

This commit is contained in:
Andrew Gundersen 2021-10-16 09:39:10 -05:00
commit 41528e7e27
115 changed files with 20719 additions and 22107 deletions

15
src/utils/emitter.js Normal file
View file

@ -0,0 +1,15 @@
const EventEmitter = require('events');
class BackgroundMitt extends EventEmitter { }
const backgroundMitt = new BackgroundMitt();
const ipcEmit = (channel, payload) =>
{
backgroundMitt.emit('ipc-renderer', {
channel,
payload
});
};
module.exports.backgroundMitt = backgroundMitt;
module.exports.ipcEmit = ipcEmit;

5
src/utils/store.js Normal file
View file

@ -0,0 +1,5 @@
const Store = require("electron-store");
module.exports = new Store({
encryptionKey: "super user test"
});