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:
parent
7cdb0afaa4
commit
a7b5b36590
4 changed files with 196 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue