From 9f221727c7a23f177d3cdf1e56caf5760921288c Mon Sep 17 00:00:00 2001 From: frostime Date: Fri, 13 Sep 2024 11:49:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20refactor:=20Dock=20=E6=A0=8F?= =?UTF-8?q?=E7=9B=AE=E4=BD=BF=E7=94=A8=E6=9F=A5=E8=AF=A2=E6=96=B9=E6=A1=88?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=A2=84=E7=BA=A6=EF=BC=9B=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20reservation=20=E5=AF=B9=E8=B1=A1=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - dock 栏点击刷新没有查询到最新的 reservation close #193 - 重构 reservation #197 --- package.json | 1 + pnpm-lock.yaml | 9 +++++++++ src/components/dock-reserve.svelte | 30 +++++++++++++++++++++++++----- src/func/reserve/retrieve.ts | 16 +++++++++++++--- 4 files changed, 48 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index e401920..c00661a 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "rollup-plugin-livereload": "^2.0.5", "sass": "^1.72.0", "siyuan": "1.0.2", + "siyuan-plugin-cli": "^1.2.0", "svelte": "^4.2.19", "sy-plugin-changelog": "^0.0.7", "ts-node": "^10.9.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ae9e32e..c0a03dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,6 +45,9 @@ importers: siyuan: specifier: 1.0.2 version: 1.0.2 + siyuan-plugin-cli: + specifier: ^1.2.0 + version: 1.2.0 svelte: specifier: ^4.2.19 version: 4.2.19 @@ -697,6 +700,10 @@ packages: setimmediate@1.0.5: resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} + siyuan-plugin-cli@1.2.0: + resolution: {integrity: sha512-8Xg42Jd0zvfnwkVsPUCNbcAEZnyllT1JGaKzNGXNMwM0R/qdClJuoBiPmSrj5M03EHVGwhSzEYRRO0qc1uMr4g==} + hasBin: true + siyuan@1.0.2: resolution: {integrity: sha512-78qonqi/X+VC5HBtqmkm6HZho6GVcXTBYvdWfu3uB3WkWzYeu3PqKw2514PZn2uZpydljjZ4DP5aSV9w9IlBbA==} @@ -1402,6 +1409,8 @@ snapshots: setimmediate@1.0.5: {} + siyuan-plugin-cli@1.2.0: {} + siyuan@1.0.2: {} source-map-js@1.0.2: {} diff --git a/src/components/dock-reserve.svelte b/src/components/dock-reserve.svelte index d2e6be2..64cfb82 100644 --- a/src/components/dock-reserve.svelte +++ b/src/components/dock-reserve.svelte @@ -1,12 +1,12 @@