hhmx.de

Peter Hormanns

Föderation DE Mi 26.02.2025 16:01:31

Ich bin begeistert von und . Es hat mich einen längeren Abend gekostet, aus webxdc.js und jspreadsheet.js eine funktionierende App zum Teilen einer Tabelle in @delta zu bauen.
Mein Anteil: 50 Zeilen HTML mit etwas JavaScript
codeberg.org/phormanns/shareta

Delta Chat

Föderation DE Mi 26.02.2025 16:48:14

@peter we tested a bit -- seems that synchronization (when multiple people edit concurrently) is not quite working. Did you read webxdc.org/docs/shared_state/i ?

Peter Hormanns

Föderation EN Mi 26.02.2025 17:40:09

@delta
I know that there are problems when several people make changes at the same time. The last change wins because the complete document is always overwritten. Nevertheless, I am impressed by the simplicity. Synchronizing the changes will still need some code. Or does a library solve the problem with just a few lines?

Delta Chat

Föderation EN Mi 26.02.2025 17:51:06

@peter you can try the YJS library, it is used in the editor.xdc for example: codeberg.org/webxdc/editor/
automerge is another library, used here: codeberg.org/webxdc/checklist/