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:
+14
-14
@@ -18,7 +18,7 @@
|
||||
|
||||
<script type="text/html" data-template-name="collabora-wopi">
|
||||
<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">
|
||||
@@ -38,26 +38,26 @@
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="collabora-wopi">
|
||||
<p>Inte filkonvertering — hälsokoll och WOPI-hjälp mot CODE.</p>
|
||||
<p>Not file conversion — health checks and WOPI helpers against CODE.</p>
|
||||
|
||||
<table style="width:100%; font-size:12px;">
|
||||
<tr><th>Operation</th><th>Du får</th></tr>
|
||||
<tr><td><code>capabilities</code></td><td>JSON: vad CODE kan (convert-to m.m.)</td></tr>
|
||||
<tr><td><code>discovery</code></td><td>XML: mime → editor-URL</td></tr>
|
||||
<tr><td><code>buildEditor</code></td><td><code>msg.editorUrl</code> från <code>msg.wopiSrc</code> + <code>msg.token</code></td></tr>
|
||||
<tr><td><code>checkFileInfo</code></td><td>JSON om filen (WOPI-host, oftast Nextcloud)</td></tr>
|
||||
<tr><td><code>getFile</code></td><td>filbytes via WOPI GET</td></tr>
|
||||
<tr><th>Operation</th><th>You get</th></tr>
|
||||
<tr><td><code>capabilities</code></td><td>JSON: what CODE supports (convert-to, etc.)</td></tr>
|
||||
<tr><td><code>discovery</code></td><td>XML: mime → editor URL</td></tr>
|
||||
<tr><td><code>buildEditor</code></td><td><code>msg.editorUrl</code> from <code>msg.wopiSrc</code> + <code>msg.token</code></td></tr>
|
||||
<tr><td><code>checkFileInfo</code></td><td>JSON about the file (WOPI host, usually Nextcloud)</td></tr>
|
||||
<tr><td><code>getFile</code></td><td>file bytes via WOPI GET</td></tr>
|
||||
</table>
|
||||
|
||||
<p><code>buildEditor</code> sätter ungefär:<br>
|
||||
<p><code>buildEditor</code> builds roughly:<br>
|
||||
<code>{collaboraPublicUrl}/browser/dist/cool.html?WOPISrc=...&access_token=...</code><br>
|
||||
Publik URL = Nextcloud/proxy (<code>https://cloud.hannesahlin.se</code>), inte intern CODE-IP.</p>
|
||||
Public URL = Nextcloud/proxy, not internal CODE IP.</p>
|
||||
|
||||
<h4>När</h4>
|
||||
<h4>When to use</h4>
|
||||
<ul>
|
||||
<li>Första test att CODE lever → <code>capabilities</code></li>
|
||||
<li>WOPI-token från <code>nc-office document:direct</code> → bygg iframe-URL</li>
|
||||
<li>Felsökning. Spara filer via WebDAV, inte WOPI PutFile.</li>
|
||||
<li>First test that CODE is up → <code>capabilities</code></li>
|
||||
<li>WOPI token from <code>nc-office document:direct</code> → build iframe URL</li>
|
||||
<li>Debugging. Save files via WebDAV, not WOPI PutFile.</li>
|
||||
</ul>
|
||||
|
||||
<pre>inject → collabora-wopi (capabilities) → debug</pre>
|
||||
|
||||
Reference in New Issue
Block a user