MCPcopy Create free account
hub / github.com/error311/FileRise / downloadText

Function downloadText

public/js/adminPanel.js:3546–3556  ·  view source on GitHub ↗
({ filename, text, mime = 'text/plain;charset=utf-8' })

Source from the content-addressed store, hash-verified

3544 };
3545
3546 const downloadText = ({ filename, text, mime = 'text/plain;charset=utf-8' }) => {
3547 const blob = new Blob([String(text || '')], { type: mime });
3548 const url = URL.createObjectURL(blob);
3549 const a = document.createElement('a');
3550 a.href = url;
3551 a.download = filename;
3552 document.body.appendChild(a);
3553 a.click();
3554 a.remove();
3555 URL.revokeObjectURL(url);
3556 };
3557
3558 const buildMcpTemplateSnippets = ({ mcpUrl, token, folder, openAiModel }) => {
3559 const safeToken = token || 'PASTE_MCP_TOKEN';

Callers 1

initGatewaysSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected