Page MenuHomePhorge

Diagrams (Extension)Project
ActivePublic

Watchers

  • This project does not have any watchers.
  • View All

Details

Description

A draw.io integration in Phorge

Owns R5

Recent Activity

Jun 20 2024

mturdus accepted D25612: Use more css and phorge standard elements for application view.
Jun 20 2024, 16:06 · Diagrams (Extension)

May 24 2024

bekay added a comment to D25612: Use more css and phorge standard elements for application view.

@mturdus Can you spare some time to review this diff?

May 24 2024, 08:13 · Diagrams (Extension)

May 2 2024

bekay added a comment to T15806: Use drawio viewer for rendering of diagrams.

I have a nice working version here, which renders the diagram with the drawio viewer javascript component:

May 2 2024, 13:40 · Diagrams (Extension)
bekay added a project to D25612: Use more css and phorge standard elements for application view: Diagrams (Extension).
May 2 2024, 13:33 · Diagrams (Extension)

May 1 2024

bekay updated subscribers of T15806: Use drawio viewer for rendering of diagrams.
May 1 2024, 16:09 · Diagrams (Extension)

Apr 30 2024

bekay created T15806: Use drawio viewer for rendering of diagrams.
Apr 30 2024, 14:56 · Diagrams (Extension)

Apr 17 2024

valerio.bozzolan reassigned T15745: Cannot install extension "Diagrams" (Failed to load symbol "DiagramTransactionType") from valerio.bozzolan to bekay.

(Credit to bekay indeed)

Apr 17 2024, 08:05 · Diagrams (Extension)
valerio.bozzolan closed T15745: Cannot install extension "Diagrams" (Failed to load symbol "DiagramTransactionType") as Resolved.

Nice :) Thanks

Apr 17 2024, 08:04 · Diagrams (Extension)
valerio.bozzolan added a member for Diagrams (Extension): valerio.bozzolan.
Apr 17 2024, 08:01

Apr 16 2024

bekay added a comment to T15787: Diagrams: avoid double slash in the URL after Saving.

Yeah, there are some malformed URLs we should tackle for sure.

Apr 16 2024, 20:45 · Diagrams (Extension)
valerio.bozzolan triaged T15787: Diagrams: avoid double slash in the URL after Saving as Low priority.
Apr 16 2024, 20:21 · Diagrams (Extension)
valerio.bozzolan added a revision to T15745: Cannot install extension "Diagrams" (Failed to load symbol "DiagramTransactionType"): D25593: README: run upgrade after installation.
Apr 16 2024, 20:19 · Diagrams (Extension)
valerio.bozzolan added a comment to T15745: Cannot install extension "Diagrams" (Failed to load symbol "DiagramTransactionType").

Thanks! It worked now! As mentioned in the chat, I'm quite sure that point n.3 and n.4 should be swapped in the README

Apr 16 2024, 20:19 · Diagrams (Extension)
bekay added a comment to T15745: Cannot install extension "Diagrams" (Failed to load symbol "DiagramTransactionType").

@valerio.bozzolan Could you try again to install it? There is a readme with new instructions.

Apr 16 2024, 07:16 · Diagrams (Extension)
bekay closed T15782: Diagrams Extension is not installable/usable in its current form as Resolved by committing R5:6fa25e4097aa: Makes extension usable with configured alternative file domain.
Apr 16 2024, 07:14 · Diagrams (Extension)
bekay closed D25577: Makes extension usable with configured alternative file domain.
Apr 16 2024, 07:14 · Diagrams (Extension)
bekay added a revision to T15782: Diagrams Extension is not installable/usable in its current form: D25577: Makes extension usable with configured alternative file domain.
Apr 16 2024, 07:11 · Diagrams (Extension)
bekay updated the summary of D25577: Makes extension usable with configured alternative file domain.
Apr 16 2024, 07:11 · Diagrams (Extension)
avivey retitled D25577: Makes extension usable with configured alternative file domain from [WIP] Makes extension usable with configured alternative file domain
Apr 16 2024, 06:28 · Diagrams (Extension)

Apr 15 2024

mturdus accepted D25577: Makes extension usable with configured alternative file domain.
Apr 15 2024, 20:41 · Diagrams (Extension)
bekay added a comment to D25577: Makes extension usable with configured alternative file domain.

Now it's working!

Apr 15 2024, 19:13 · Diagrams (Extension)
mturdus added a comment to D25577: Makes extension usable with configured alternative file domain.

Now it's working!

Apr 15 2024, 16:58 · Diagrams (Extension)

Apr 14 2024

bekay added a comment to D25577: Makes extension usable with configured alternative file domain.

@mturdus right, I don't have the whole picture of this little bit wild codebase 😁 Thanks for the pointer. As far as I can see, this image and the DOMContentLoaded event handler serves no purpose anymore. All is working without it. I have renamed the main js and some functions in it for clarity. Would love if you could give it a try.

Apr 14 2024, 19:00 · Diagrams (Extension)
bekay updated the diff for D25577: Makes extension usable with configured alternative file domain.
  • Renames behavior and some functions and gets rid of unnecessary image proxy
Apr 14 2024, 18:56 · Diagrams (Extension)
mturdus added a comment to D25577: Makes extension usable with configured alternative file domain.

This is the console log I got when running in Firefox:

Navigated to http://phorge.blackbird.turdus.local/diagram/
diagram-extension behavior called with config: 
Object { loadJsExtensionArgs: (4) […], toolbarCss: "http://phorge.blackbird.turdus.local/res/diagram-resources/35ad6f49/iframe-toolbtn.css", toolbarJs: "http://phorge.blackbird.turdus.local/res/diagram-resources/26d75a35/iframe-toolbtn.js" }
​
loadJsExtensionArgs: Array(4) [ "", "", "", … ]
​​
0: ""
​​
1: ""
​​
2: ""
​​
3: ""
​​
length: 4
​​
<prototype>: Array []
​
toolbarCss: "http://phorge.blackbird.turdus.local/res/diagram-resources/35ad6f49/iframe-toolbtn.css"
​
toolbarJs: "http://phorge.blackbird.turdus.local/res/diagram-resources/26d75a35/iframe-toolbtn.js"
​
<prototype>: Object { … }
phorge_extension.js:8:11
loadJsExtension called with args: <empty string> <empty string> <empty string> <empty string> phorge_extension.js:95:13
Apr 14 2024, 18:24 · Diagrams (Extension)
bekay closed T15781: arc liberate throws exception as Resolved.

Fixed by R5:91dd43de7dee: T15781: arc liberate throws exception

Apr 14 2024, 08:59 · Diagrams (Extension)
bekay updated subscribers of T15782: Diagrams Extension is not installable/usable in its current form.
Apr 14 2024, 08:58 · Diagrams (Extension)
bekay updated subscribers of T15784: Add title and project tags to diagram.
Apr 14 2024, 08:57 · Diagrams (Extension)
bekay updated subscribers of T15784: Add title and project tags to diagram.
Apr 14 2024, 08:57 · Diagrams (Extension)
bekay created T15784: Add title and project tags to diagram.
Apr 14 2024, 08:54 · Diagrams (Extension)
bekay added a comment to D25577: Makes extension usable with configured alternative file domain.

@mturdus I have added some console logs in the js code (so patch and purge the caches on <phorge-base>config/cache/!)

Apr 14 2024, 08:43 · Diagrams (Extension)
bekay updated the diff for D25577: Makes extension usable with configured alternative file domain.
  • Caches draw.io assets, uses base64 method of diagram and adds some console logs for js debugging
Apr 14 2024, 08:39 · Diagrams (Extension)
bekay added a member for Diagrams (Extension): bekay.
Apr 14 2024, 08:14
bekay added a project to D25577: Makes extension usable with configured alternative file domain: Diagrams (Extension).
Apr 14 2024, 07:39 · Diagrams (Extension)

Apr 13 2024

bekay added a comment to T15782: Diagrams Extension is not installable/usable in its current form.

@mturdus Just test this if you like. I think this is a first step in the right direction: D25577

Apr 13 2024, 16:16 · Diagrams (Extension)
bekay added a comment to T15782: Diagrams Extension is not installable/usable in its current form.

Well I have worked the entire day on this (and I see your mentioned issues)... main problem is: extension is not working with security.alternate-file-domain. That I have fixed at least for the creation/editing of diagrams. I have changed pretty much and would love to send a diff.

Apr 13 2024, 15:49 · Diagrams (Extension)
mturdus added a comment to T15782: Diagrams Extension is not installable/usable in its current form.

The reason why I did not put all the draw.io js and css files in the repo is because

  1. draw.io is a very large repo

and 2) the draw.io people commit a lot (as in more than once a week).

Apr 13 2024, 15:43 · Diagrams (Extension)

Apr 12 2024

bekay added a comment to T15782: Diagrams Extension is not installable/usable in its current form.

(Working on fixing it...)

Apr 12 2024, 20:00 · Diagrams (Extension)

Apr 11 2024

bekay updated the task description for T15782: Diagrams Extension is not installable/usable in its current form.
Apr 11 2024, 18:13 · Diagrams (Extension)
bekay created T15782: Diagrams Extension is not installable/usable in its current form.
Apr 11 2024, 18:08 · Diagrams (Extension)
bekay assigned T15781: arc liberate throws exception to mturdus.
Apr 11 2024, 16:41 · Diagrams (Extension)
bekay created T15781: arc liberate throws exception.
Apr 11 2024, 16:40 · Diagrams (Extension)

Feb 28 2024

aklapper added a comment to T15745: Cannot install extension "Diagrams" (Failed to load symbol "DiagramTransactionType").

@valerio.bozzolan Are there any prehistoric traces that this extension has been successfully used in the past? :P

Feb 28 2024, 11:08 · Diagrams (Extension)

Feb 27 2024

valerio.bozzolan created T15745: Cannot install extension "Diagrams" (Failed to load symbol "DiagramTransactionType").
Feb 27 2024, 10:52 · Diagrams (Extension)

Jul 4 2023

avivey added a member for Diagrams (Extension): mturdus.
Jul 4 2023, 19:36
avivey edited Description on Diagrams (Extension).
Jul 4 2023, 18:56
avivey set the color for Diagrams (Extension) to Yellow.
Jul 4 2023, 18:56
avivey created Diagrams (Extension).
Jul 4 2023, 18:55