From 3cf07e2b4509a232ab0ab588e561d686c21b1e38 Mon Sep 17 00:00:00 2001 From: riqo Date: Sun, 22 Nov 2020 11:49:25 -0600 Subject: [PATCH] add input animation + input item rafctor --- src/background.ts | 1 + src/components/UI/UIDetails/inputItem.vue | 64 ++----------------- src/composables/inputItem/useInputAnims.ts | 53 +++++++++++++++ src/composables/inputItem/useInputRenderer.ts | 58 +++++++++++++++++ .../keyDownHandler/useKeyDownHandler.ts | 1 - .../messageItem/useMessageItemAnims.ts | 4 +- src/types/vueRef/index.ts | 3 + 7 files changed, 121 insertions(+), 63 deletions(-) create mode 100644 src/composables/inputItem/useInputAnims.ts create mode 100644 src/composables/inputItem/useInputRenderer.ts create mode 100644 src/types/vueRef/index.ts diff --git a/src/background.ts b/src/background.ts index c14b71f..8bcbbe3 100644 --- a/src/background.ts +++ b/src/background.ts @@ -48,6 +48,7 @@ function createWindow() { if (process.env.WEBPACK_DEV_SERVER_URL) { // Load the url of the dev server if in development mode win.loadURL(process.env.WEBPACK_DEV_SERVER_URL as string); + // NOTE uncomment for dev tools on app launch // if (!process.env.IS_TEST) win.webContents.openDevTools(); } else { createProtocol("app"); diff --git a/src/components/UI/UIDetails/inputItem.vue b/src/components/UI/UIDetails/inputItem.vue index 693f1df..f8fbc64 100644 --- a/src/components/UI/UIDetails/inputItem.vue +++ b/src/components/UI/UIDetails/inputItem.vue @@ -1,5 +1,5 @@