Bread has been achieved.

- Window now creates and loads properly (Due to config not being created halted vue)
- Foundation for app.ts created for functions to run in certain stages of the app (start/init, ready, exit)
- Electron-Store created in class ConfigStore. Store instance stored in ConfigStore.store. Gets a bit compilicated and might change the class or variable name later on.
This commit is contained in:
Core 2022-01-07 23:53:59 +00:00
parent 7cdb0afaa4
commit a7b5b36590
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
4 changed files with 196 additions and 35 deletions

View file

@ -12,28 +12,30 @@ import { app } from 'electron';
//
import {Win} from "./base/win";
import {ConfigStore} from "./base/store";
const Cider = new Win()
const config = new ConfigStore();
console.log(config)
app.on("ready", () => {
Cider.createWindow();
});
const Cider = new Win(app, config.store)
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* App Event Handlers
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
// app.on('ready', () => {
// if (app.isQuiting) { app.quit(); return; }
//
// console.log('[Cider] Application is Ready. Creating Window.')
// if (!app.isPackaged) {
// console.info('[Cider] Running in development mode.')
// require('vue-devtools').install()
// }
//
// // CiderBase.Start()
// });
app.on('ready', () => {
console.log('[Cider] Application is Ready. Creating Window.')
if (!app.isPackaged) {
console.info('[Cider] Running in development mode.')
require('vue-devtools').install()
}
Cider.createWindow();
// CiderBase.Start()
});
//
// app.on('before-quit', () => {
// app.isQuiting = true;