Translate user-facing docs and node help to English
README, NODES.md, install scripts, palette help text, and example flows — node .js logic unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
<script type="text/html" data-template-name="collabora-convert">
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Namn</label>
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-input-name">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
@@ -42,26 +42,24 @@
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="collabora-convert">
|
||||
<p><strong>Gör om filen till annat format.</strong> Skickar dokument till CODE och får tillbaka binär data (pdf, png, docx, odt, html, xlsx, pptx …). Sparar inte i Nextcloud — resultatet ligger i <code>msg.payload</code> som Buffer.</p>
|
||||
<p><strong>Convert a file to another format.</strong> Sends a document to CODE and returns binary data (pdf, png, docx, odt, html, xlsx, pptx …). Does not save to Nextcloud — result is <code>msg.payload</code> as a Buffer.</p>
|
||||
|
||||
<h4>Varifrån</h4>
|
||||
<p>Filinnehåll, i ordning:</p>
|
||||
<h4>Input</h4>
|
||||
<p>File content, in order:</p>
|
||||
<ol>
|
||||
<li><code>msg.payload</code> om det redan är Buffer/text</li>
|
||||
<li>annars WebDAV GET av <code>msg.ncPath</code></li>
|
||||
<li><code>msg.payload</code> if it's already a Buffer or text</li>
|
||||
<li>otherwise WebDAV GET of <code>msg.ncPath</code></li>
|
||||
</ol>
|
||||
<p>Valfritt: <code>msg.templateNcPath</code> (mall), <code>msg.compareNcPath</code> (jämförelsefil).</p>
|
||||
<p>Optional: <code>msg.templateNcPath</code> (template), <code>msg.compareNcPath</code> (compare file).</p>
|
||||
|
||||
<h4>Vart</h4>
|
||||
<p>POST multipart → <code>/cool/convert-to/<format></code> på CODE. Fält: <code>data</code> = källfilen.</p>
|
||||
|
||||
<h4>Ut</h4>
|
||||
<h4>Output</h4>
|
||||
<p>POST multipart to CODE <code>/cool/convert-to/<format></code>. Field: <code>data</code> = source file.</p>
|
||||
<p><code>msg.payload</code>, <code>msg.filename</code>, <code>msg.format</code>, <code>msg.contentType</code>, <code>msg.statusCode</code></p>
|
||||
|
||||
<h4>När</h4>
|
||||
<p>När du själv styr nästa steg: spara med WebDAV/OCS, mejla, Talk, eller skicka vidare. Vill du ha PDF i Nextcloud direkt — använd <code>collabora-bridge</code> (<code>ncFileToPdf</code>).</p>
|
||||
<h4>When to use</h4>
|
||||
<p>When you control the next step: save via WebDAV/OCS, email, Talk, or pass on in the flow. For "file in NC → PDF in NC" use <code>collabora-bridge</code> (<code>ncFileToPdf</code>).</p>
|
||||
|
||||
<pre>inject { ncPath: "/Dokument/avtal.docx", format: "pdf" }
|
||||
<pre>inject { ncPath: "/Documents/contract.docx", format: "pdf" }
|
||||
→ collabora-convert
|
||||
→ debug (payload = PDF-bytes)</pre>
|
||||
→ debug (payload = PDF bytes)</pre>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user