MCPcopy
hub / github.com/songquanpeng/one-api / copyText

Function copyText

web/air/src/components/MjLogsTable.js:371–378  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

369 };
370
371 const copyText = async (text) => {
372 if (await copy(text)) {
373 showSuccess('已复制:' + text);
374 } else {
375 // setSearchKeyword(text);
376 Modal.error({ title: '无法复制到剪贴板,请手动复制', content: text });
377 }
378 };
379
380 useEffect(() => {
381 refresh().then();

Callers 4

asyncFunction · 0.70
asyncFunction · 0.70
TokensTable.jsFile · 0.70

Calls 2

copyFunction · 0.90
showSuccessFunction · 0.90

Tested by

no test coverage detected