Review main Abandoned

67180[WIP][TASK] Migrate backend context menu to lit-html

Oliver Hader CR 0 V 0 Hard +565 −304 updated 04/08/23, 09:42

Commit message

Migrates backend UI component `ContextMenu` to be based on `lit-html`
and `lit-element`.

This also marks the `record` property and fetch() and show() methods as public,
as LegacyTree and SvgTree use these as API.

The ContextMenu is mirated to use shadow dom, that means no global
styles are used, just local ones.
Therefore the bootstrap classes are being removed and the new
IconElement custom component is used which allows to use full shadow
dom for the entire context menu.

TODO:
 * Include something https://www.npmjs.com/package/minify-html-literals
   as additonal minifier, as terser can't minify inline html and css
 * Fix submenus (disappear on hover)

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 9