From 0b8ade3f6d171481b2b1b1800a42c14099610ed4 Mon Sep 17 00:00:00 2001 From: Zhigang Wang Date: Thu, 20 Jun 2024 20:02:53 -0700 Subject: [PATCH] add websocket framework --- frontend/src/pages/user/workspace/Home.vue | 342 ++++++++------------- frontend/src/utils/backend/index.js | 1 + frontend/src/utils/backend/websocket.js | 14 + frontend/src/utils/index.js | 3 +- frontend/vite.config.js | 7 + 5 files changed, 146 insertions(+), 221 deletions(-) create mode 100644 frontend/src/utils/backend/websocket.js diff --git a/frontend/src/pages/user/workspace/Home.vue b/frontend/src/pages/user/workspace/Home.vue index 6c6de4b..c26a39b 100644 --- a/frontend/src/pages/user/workspace/Home.vue +++ b/frontend/src/pages/user/workspace/Home.vue @@ -2,22 +2,13 @@
-
+

-

-
+
-
+
-
+

-

-
+
- -
@@ -134,12 +99,9 @@
-
+

@@ -172,12 +134,9 @@

-
+

{{ stage.amount }} {{ stage.currency }}

@@ -193,45 +152,27 @@
-
+
- -
+
- +
-
@@ -240,14 +181,9 @@

-

-
+
-
+

@@ -325,21 +254,17 @@

-
-
@@ -349,14 +274,8 @@

-

-
+
-
@@ -407,14 +317,9 @@

-

-
+
- -
+
-