Initial copy of shop partner app.

This commit is contained in:
Patrick Fic
2025-12-01 05:43:59 -08:00
commit 267ef714a7
193 changed files with 32199 additions and 0 deletions

40
src/main/store/store.ts Normal file
View File

@@ -0,0 +1,40 @@
import Store from "electron-store";
const store = new Store({
defaults: {
settings: {
runOnStartup: true,
filepaths: [],
ppcFilePath: null,
emsOutFilePath: null,
qbFilePath: "",
runWatcherOnStartup: true,
enableMemDebug: false,
polling: {
enabled: false,
interval: 30000,
},
},
app: {
windowBounds: {
width: 800,
height: 600,
x: undefined,
y: undefined,
},
user: null,
isTest: false,
bodyshop: {},
masterdata: {
opcodes: null,
},
},
},
});
// store.onDidAnyChange((newValue, oldValue) => {
// const mainWindow = BrowserWindow.getAllWindows()[0];
// mainWindow?.webContents.send(ipcTypes.toRenderer.store.didChange, newValue);
// });
export default store;