From f7ac311563f3081ea4a807daa5e41c5126188ae3 Mon Sep 17 00:00:00 2001 From: Kirigaya <1193466151@qq.com> Date: Thu, 17 Oct 2024 15:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=9F=BA=E7=A1=80=E7=9A=84?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- public/{ondark.css => onedark.css} | 0 public/test.vcd.view | Bin 278 -> 3861 bytes src/App.vue | 1 - src/api/index.js | 4 +- src/components/toolbar/signal-modal.vue | 8 +++ .../toolbar/signal-value-format.vue | 8 +++ src/hook/recover.js | 53 +++++++++++++++--- vue.config.js | 4 ++ 9 files changed, 68 insertions(+), 12 deletions(-) rename public/{ondark.css => onedark.css} (100%) diff --git a/public/index.html b/public/index.html index 07e97b3..09c18f8 100644 --- a/public/index.html +++ b/public/index.html @@ -7,7 +7,7 @@ Vcd Viewer - + diff --git a/public/ondark.css b/public/onedark.css similarity index 100% rename from public/ondark.css rename to public/onedark.css diff --git a/public/test.vcd.view b/public/test.vcd.view index 7bc5a6ec04f1b274710f1157cf877de260e17f85..ce9bdcb4c21106861a00a6cf7d5357f5d48aa27b 100644 GIT binary patch literal 3861 zcmcInOK;Oa5FX+JAO?u}7G>AvV<792^ZDQ52t+f-k{3Z?vQ6%7w z_!ayXWjEXK>Kh8=kW-xh4vW+`)BVZ!dhYlZ!=0=DOxkbCe>A-5|a zFPLuvhn0oL(-=;!Wy37G#lI0)gT+V?tI`DW7az2LBH=V`{?dkz;60<4J$ z=TQcJUx8=8G@Q^61$nKa?XxK6=yIyHz2iu(unRg<&v#LPa4}nB=la?BleSDPiRKDg zs>KlJY_szj_0@Bi(8`#?DXmrfVx9L#gP{vW>?E>g*OR0=@Cm=nhx9qFiQ6@_&O(aq zl-QMPy+j{3s41WyBydg#y7|gDWC6u4ON>jjVwok*y_VCbLGiP&scdwObS&6HX;ak z+WNcth7RkvJ0+{{5mnz8M9T|#PwgYCFL#9!!}3>dy@Bn*wQ!!b zBL4<~>QF_gdeo|DA&Y<2qx96#UarTDTI+EDB?Lr+OnCv3zdlkOIoN`aGP$`HuKzB` z3eyu4@m?!Vf_5d!Ep)Ae@-}>xz&XlNpwtvDqjfrk5#P$g8*y(UP95Bba3XAF9lS^IT>|HL>q%4Y$x@mjiF) { // 根据 recoverConfig 完成现场回复 recoverSession(VcdInfo.topModules); - console.log(VcdInfo.topModules); }); }); diff --git a/src/api/index.js b/src/api/index.js index a5b4e01..6cd68fc 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -17,8 +17,8 @@ export async function saveView(file, payload) { } if (mode === 'debug') { const res = await axios.post('http://localhost:3000/save-view', { file, payload }); + // const res = await axios.get('http://localhost:3000'); console.log(res); - } else { vscode.postMessage({ command: 'save-view', @@ -27,4 +27,4 @@ export async function saveView(file, payload) { } } -export const saveViewApi = debounceWrapper(saveView, 2000); \ No newline at end of file +export const saveViewApi = debounceWrapper(saveView, 1000); \ No newline at end of file diff --git a/src/components/toolbar/signal-modal.vue b/src/components/toolbar/signal-modal.vue index 0fe72d3..b4d0a35 100644 --- a/src/components/toolbar/signal-modal.vue +++ b/src/components/toolbar/signal-modal.vue @@ -41,7 +41,9 @@