Overhauled the trophy badges
authorAlexander Ebert <ebert@woltlab.com>
Mon, 22 Aug 2022 13:50:07 +0000 (15:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 22 Aug 2022 13:50:07 +0000 (15:50 +0200)
commitafd474ba07ab0d49d8a2a6714f5368c6e42a9a83
tree8084fdd62199b17901acda03ccb017f8a0e699cf
parent3ff6ced9e876f1c4fa833bbe984fd4c8caf5c647
Overhauled the trophy badges

This commit includes a few different changes that are tied together:
(1) Changed the icon data format from `<string>\0<boolean>` to `<string>;<boolean>`, because browser refuse to submit null bytes.
(2) Completely rewrote the badge editor to use inline buttons instead of a dialog (avoids bad a11y caused by dialogs in dialogs).
20 files changed:
com.woltlab.wcf/templates/trophyBadge.tpl
ts/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.ts
ts/WoltLabSuite/Core/Acp/Ui/Trophy/Editor.ts [new file with mode: 0644]
ts/WoltLabSuite/Core/Ui/Color/Picker.ts
wcfsetup/install/files/acp/templates/trophyAdd.tpl
wcfsetup/install/files/acp/templates/trophyBadge.tpl
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.js
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Trophy/Editor.js [new file with mode: 0644]
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Color/Picker.js
wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php
wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php
wcfsetup/install/files/lib/data/trophy/Trophy.class.php
wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php
wcfsetup/install/files/lib/system/style/exception/InvalidIconFormat.class.php
wcfsetup/install/files/lib/system/template/plugin/ObjectActionFunctionTemplatePlugin.class.php
wcfsetup/install/files/style/ui/listSortable.scss
wcfsetup/install/files/style/ui/trophy.scss
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml