MCPcopy
hub / github.com/pocketbase/pocketbase / copy

Function copy

ui/src/base/copyButton.js:25–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 let activeTimeoutId;
24
25 function copy() {
26 let value = textOrFunc;
27 if (typeof value == "function") {
28 value = textOrFunc();
29 }
30
31 app.utils.copyToClipboard(value);
32
33 data.active = true;
34
35 clearTimeout(activeTimeoutId);
36 activeTimeoutId = setTimeout(() => {
37 data.active = false;
38 }, 500);
39 }
40
41 return t.button(
42 {

Callers 8

TestNewFunction · 0.85
TestSkipBootstrapFunction · 0.85
WriteAllMethod · 0.85
HexUnescapeFunction · 0.85
MarshalJSONMethod · 0.85
processInternalRequestFunction · 0.85
copyButton.jsFile · 0.85

Calls

no outgoing calls

Tested by 3

TestNewFunction · 0.68
TestSkipBootstrapFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…