From e4103b23e3d339a09cdefd5b9558add88219989f Mon Sep 17 00:00:00 2001 From: Lu Ken Date: Wed, 25 Dec 2024 13:51:58 +0800 Subject: [PATCH] store: add store for render web (#12) Signed-off-by: Lu Ken --- src/GenTradeAgent/package.json | 3 +- .../src/renderer/src/components/StatusBar.vue | 1 + .../src/components/TradingChatAgent.vue | 7 +-- .../src/components/TradingDashboard.vue | 37 +++-------- .../renderer/src/components/TradingMain.vue | 62 +++++++++++++------ src/GenTradeAgent/src/renderer/src/const.ts | 17 ----- src/GenTradeAgent/src/renderer/src/main.ts | 7 +++ src/GenTradeAgent/src/renderer/src/store.ts | 52 ++++++++++++++++ 8 files changed, 114 insertions(+), 72 deletions(-) delete mode 100644 src/GenTradeAgent/src/renderer/src/const.ts create mode 100644 src/GenTradeAgent/src/renderer/src/store.ts diff --git a/src/GenTradeAgent/package.json b/src/GenTradeAgent/package.json index 5a80bba..da96800 100644 --- a/src/GenTradeAgent/package.json +++ b/src/GenTradeAgent/package.json @@ -22,7 +22,8 @@ }, "dependencies": { "@electron-toolkit/preload": "^3.0.0", - "@electron-toolkit/utils": "^3.0.0" + "@electron-toolkit/utils": "^3.0.0", + "vuex": "^4.0.2" }, "devDependencies": { "@electron-toolkit/eslint-config": "^1.0.2", diff --git a/src/GenTradeAgent/src/renderer/src/components/StatusBar.vue b/src/GenTradeAgent/src/renderer/src/components/StatusBar.vue index ff24eeb..64cfdd2 100644 --- a/src/GenTradeAgent/src/renderer/src/components/StatusBar.vue +++ b/src/GenTradeAgent/src/renderer/src/components/StatusBar.vue @@ -20,6 +20,7 @@