From 6aca522a1e4742322b21beada9d95b89363c23b1 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Fri, 12 Apr 2019 16:11:04 +0530 Subject: [PATCH] Typescript (Optimize loading styles & register global shortcuts) (#629) * Typescript - Optimize loading styles and register global shortcuts * Typescript - Update version info logic to support BC * Typescript - Implement memory refresh logic * Typescript - Optimize memory refresh, devtools & appBridge code * Typescript - Mock window-handler to fix unit tests * Typescript - Change logic to remove if else and early exit --- demo/index.html | 195 +++++++++++++----- demo/win.html | 6 +- spec/activityDetection.spec.ts | 8 + src/app/activity-detection.ts | 4 + src/app/app-menu.ts | 29 +-- src/app/auto-launch-controller.ts | 8 +- src/app/main-api-handler.ts | 11 + src/app/main.ts | 4 +- src/app/memory-monitor.ts | 91 ++++++++ src/app/screen-snippet-handler.ts | 26 +-- src/app/window-actions.ts | 3 + src/app/window-handler.ts | 85 +++++++- src/app/window-utils.ts | 120 ++++++----- src/common/animation-queue.ts | 10 +- src/common/api-interface.ts | 2 + src/common/logger.ts | 13 +- src/renderer/app-bridge.ts | 13 +- src/renderer/components/windows-title-bar.tsx | 49 ++--- src/renderer/preload-main.ts | 9 + src/renderer/ssf-api.ts | 21 +- src/renderer/styles/snack-bar.less | 2 +- 21 files changed, 518 insertions(+), 191 deletions(-) create mode 100644 src/app/memory-monitor.ts diff --git a/demo/index.html b/demo/index.html index a2196214..8efeb5ce 100644 --- a/demo/index.html +++ b/demo/index.html @@ -68,13 +68,6 @@

-

- Crash Process: -

- -

-
-

@@ -147,6 +140,8 @@