MCPcopy Index your code
hub / github.com/rapi-doc/RapiDoc / curlSyntaxTemplate

Method curlSyntaxTemplate

src/components/api-request.js:1024–1031  ·  view source on GitHub ↗
(display = 'flex')

Source from the content-addressed store, hash-verified

1022 }
1023
1024 curlSyntaxTemplate(display = 'flex') {
1025 return html`
1026 <div class="col m-markdown" style="flex:1; display:${display}; position:relative; max-width: 100%;">
1027 <button class="toolbar-btn" style = "position:absolute; top:12px; right:8px" @click='${(e) => { copyToClipboard(this.curlSyntax.trim().replace(/\\$/, ''), e); }}' part="btn btn-fill"> Copy </button>
1028 <pre style="white-space:pre"><code>${unsafeHTML(Prism.highlight(this.curlSyntax.trim().replace(/\\$/, ''), Prism.languages.shell, 'shell'))}</code></pre>
1029 </div>
1030 `;
1031 }
1032
1033 apiResponseTabTemplate() {
1034 let responseFormat = '';

Callers 2

apiCallTemplateMethod · 0.95

Calls 2

copyToClipboardFunction · 0.90
htmlFunction · 0.85

Tested by

no test coverage detected