HomePhorge

Makes extension usable with configured alternative file domain

Description

Makes extension usable with configured alternative file domain

Summary:

  • adds library map
  • updates readme to
    • use specific draw.io version
    • install extension in another dir than phorge (because that is the cleaner approach)
  • reworks the js/css
    • use celerity to load the files from the alternative file domain
    • use javelin behavior to load the diagram data (loadJsExtension route is not needed anymore)
    • adds the toolbar button js/css with javascript from the phorge parent window
  • with the last point there is no reason to reverse engineer the contents of the index.html of the draw.io app. We just pass-through the contents from the original index.html and add the toolbar assets from the parent window.
  • dumps base64 image data directly while remarkup rendering and adds js/css files for remarkup object rule

Fixes T15782

Test Plan: Install it like described in the readme and test it.

Reviewers: mturdus

Reviewed By: mturdus

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Tags: Diagrams (Extension)

Maniphest Tasks: T15782

Differential Revision: https://we.phorge.it/D25577

Details

Provenance
bekayAuthored on Apr 14 2024, 18:49
bekayPushed on Apr 16 2024, 07:14
Reviewer
mturdus
Differential Revision
D25577: Makes extension usable with configured alternative file domain
Parents
R5:91dd43de7dee: T15781: arc liberate throws exception
Branches
Unknown
Tags
Unknown
Tasks
T15782: Diagrams Extension is not installable/usable in its current form