refactor(web): migrate local storage access to react hook (#36888)

This commit is contained in:
yyh
2026-06-01 15:57:54 +08:00
committed by GitHub
parent becccbf288
commit 21711bebeb
20 changed files with 584 additions and 208 deletions
-25
View File
@@ -142,11 +142,6 @@
"count": 1
}
},
"web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx": {
"ts/no-explicit-any": {
"count": 1
}
},
"web/app/(humanInputLayout)/form/[token]/form.tsx": {
"react/set-state-in-effect": {
"count": 1
@@ -2651,11 +2646,6 @@
"count": 4
}
},
"web/app/components/header/header-wrapper.tsx": {
"ts/no-explicit-any": {
"count": 1
}
},
"web/app/components/plugins/card/index.tsx": {
"ts/no-non-null-asserted-optional-chain": {
"count": 1
@@ -3503,11 +3493,6 @@
"count": 1
}
},
"web/app/components/workflow/index.tsx": {
"ts/no-explicit-any": {
"count": 1
}
},
"web/app/components/workflow/nodes/_base/components/add-variable-popup-with-position.tsx": {
"ts/no-explicit-any": {
"count": 2
@@ -4770,11 +4755,6 @@
"count": 1
}
},
"web/app/components/workflow/store/workflow/workflow-slice.ts": {
"ts/no-explicit-any": {
"count": 1
}
},
"web/app/components/workflow/types.ts": {
"erasable-syntax-only/enums": {
"count": 16
@@ -4895,11 +4875,6 @@
"count": 1
}
},
"web/app/education-apply/hooks.ts": {
"react/set-state-in-effect": {
"count": 5
}
},
"web/app/education-apply/search-input.tsx": {
"no-restricted-imports": {
"count": 1