refactor: use zustand store, rewrite log clearing logic

This commit is contained in:
huzibaca
2024-11-18 06:48:23 +08:00
parent 3b8147b6ad
commit 62eb070c1b
4 changed files with 87 additions and 21 deletions

30
pnpm-lock.yaml generated
View File

@@ -151,6 +151,9 @@ importers:
types-pac:
specifier: ^1.0.3
version: 1.0.3
zustand:
specifier: ^5.0.1
version: 5.0.1(@types/react@18.3.12)(react@18.3.1)(use-sync-external-store@1.2.2(react@18.3.1))
devDependencies:
"@actions/github":
specifier: ^5.1.1
@@ -4916,6 +4919,27 @@ packages:
engines: { node: ">= 14" }
hasBin: true
zustand@5.0.1:
resolution:
{
integrity: sha512-pRET7Lao2z+n5R/HduXMio35TncTlSW68WsYBq2Lg1ASspsNGjpwLAsij3RpouyV6+kHMwwwzP0bZPD70/Jx/w==,
}
engines: { node: ">=12.20.0" }
peerDependencies:
"@types/react": ">=18.0.0"
immer: ">=9.0.6"
react: ">=18.0.0"
use-sync-external-store: ">=1.2.0"
peerDependenciesMeta:
"@types/react":
optional: true
immer:
optional: true
react:
optional: true
use-sync-external-store:
optional: true
zwitch@2.0.4:
resolution:
{
@@ -8001,4 +8025,10 @@ snapshots:
yaml@2.6.0: {}
zustand@5.0.1(@types/react@18.3.12)(react@18.3.1)(use-sync-external-store@1.2.2(react@18.3.1)):
optionalDependencies:
"@types/react": 18.3.12
react: 18.3.1
use-sync-external-store: 1.2.2(react@18.3.1)
zwitch@2.0.4: {}