]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
add tag related helpers
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 15 Nov 2022 13:02:34 +0000 (14:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 13:48:44 +0000 (14:48 +0100)
commit23968741806db0ea5d1eb0e6a81fc4f0500ab9d9
tree30612440b65e30d66dfbb9e957e41e4b4f060316
parent121bbf57bf17d7d0ca09fa71af2918ddc827ccbf
add tag related helpers

helpers to
* generate a color from a string consistently
* generate a html tag for a tag
* related css classes

contrast is calculated according to SAPC draft:
https://github.com/Myndex/SAPC-APCA

which is likely to become a w3c guideline in the future and seems
to be a better algorithm for this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/Utils.js
src/css/ext6-pmx.css