MCPcopy
hub / github.com/electerm/electerm / copy

Function copy

src/client/common/clipboard.js:22–29  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

20}
21
22export const copy = (str) => {
23 message.success({
24 content: window.translate('copied'),
25 duation: 2,
26 key: 'copy-message'
27 })
28 window.pre.writeClipboard(str)
29}
30
31export const cut = (str, itemTitle = '') => {
32 message.success('Cutted ' + itemTitle, 2)

Callers 15

handleCopyFunction · 0.90
handleCopyCommandFunction · 0.90
TermClass · 0.90
copyEditorContentFunction · 0.90
copyValueFunction · 0.90
ErrorBoundaryClass · 0.90
handleCopyFunction · 0.90
copyToClipboardFunction · 0.90
handleCopyFunction · 0.90
handleCopyFunction · 0.90
handleCopyFunction · 0.90
handleCopyFunction · 0.90

Calls

no outgoing calls

Tested by 1

testFunction · 0.40