added workspaces layout, more refactoring

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-08 17:22:53 +03:00
1 parent b9089a7c5e
commit 4a06f65cb8
31 files changed
+555 -329

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ export class Cluster implements ClusterModel {
@observable version: string;
@observable distribution: string;
@observable isAdmin: boolean;
@observable eventCount: number;
@observable eventCount: number; // todo: auto-fetch every 3s and push updates to client (?)
@observable preferences: ClusterPreferences = {};
@observable features: FeatureStatusMap = {};
+8 -9
View File
@@ -39,7 +39,6 @@ if (app.commandLine.getSwitchValue("proxy-server") !== "") {
async function main() {
shellSync(app.getLocale());
// todo: check other usages .getPath("userData") and enable "lazy-evaluation"
const workingDir = path.join(app.getPath("appData"), appName);
app.setName(appName);
app.setPath("userData", workingDir);
@@ -83,7 +82,7 @@ async function main() {
}
// manage lens windows
windowManager = new WindowManager();
windowManager = new WindowManager({showSplash: true});
windowManager.showMain(vmURL)
}
@@ -98,13 +97,13 @@ app.on('window-all-closed', function () {
if (clusterManager) clusterManager.stop()
}
})
app.on("activate", () => {
if (!windowManager) {
logger.debug("activate main window")
windowManager = new WindowManager({ showSplash: false })
windowManager.showMain(vmURL)
}
})
// app.on("activate", () => {
// if (!windowManager) {
// logger.debug("activate main window")
// windowManager = new WindowManager({ showSplash: false })
// windowManager.showMain(vmURL)
// }
// })
app.on("will-quit", async (event) => {
event.preventDefault(); // To allow mixpanel sending to be executed
if (clusterManager) clusterManager.stop()