refactor(web): useClipboard hook to reduce duplication (#31308)

Signed-off-by: SherlockShemol <shemol@163.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
This commit is contained in:
Shemol
2026-01-21 17:33:39 +08:00
committed by yyh
parent 463060ce52
commit b2071a4352
7 changed files with 86 additions and 95 deletions

27
web/pnpm-lock.yaml generated
View File

@ -183,6 +183,9 @@ importers:
fast-deep-equal:
specifier: 3.1.3
version: 3.1.3
foxact:
specifier: 0.2.52
version: 0.2.52(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
html-entities:
specifier: 2.6.0
version: 2.6.0
@ -5578,6 +5581,17 @@ packages:
engines: {node: '>=18.3.0'}
hasBin: true
foxact@0.2.52:
resolution: {integrity: sha512-cc3ydJkM/mYkof1/ofI4VlVAiRyfsSDsHRC4UIAXQcnUXCuo0rXM66Zy1ggdxAXL03ikHnh3bPnQ7AYuI/Yzow==}
peerDependencies:
react: '*'
react-dom: '*'
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
fraction.js@4.3.7:
resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
@ -7685,6 +7699,9 @@ packages:
resolution: {integrity: sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ==}
engines: {node: '>=10'}
server-only@0.0.1:
resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==}
serwist@9.5.0:
resolution: {integrity: sha512-wjrsPWHI5ZM20jIsVKZGN/uAdS2aKOgmIOE4dqUaFhK6SVIzgoJZjTnZ3v29T+NmneuD753jlhGui9eYypsj0A==}
peerDependencies:
@ -14421,6 +14438,14 @@ snapshots:
dependencies:
fd-package-json: 2.0.0
foxact@0.2.52(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
dependencies:
client-only: 0.0.1
server-only: 0.0.1
optionalDependencies:
react: 19.2.3
react-dom: 19.2.3(react@19.2.3)
fraction.js@4.3.7: {}
fs-constants@1.0.0:
@ -17035,6 +17060,8 @@ snapshots:
seroval@1.3.2: {}
server-only@0.0.1: {}
serwist@9.5.0(typescript@5.9.3):
dependencies:
'@serwist/utils': 9.5.0