Feature: emoji editor (#2411)

* Custom emoji editor: implement backend

This reuses the logo upload code

* Implement emoji edit admin interface

Again reuse base64 logic from the logo upload

* Allow toggling between uploaded and default emojis

* Add route that always serves uploaded emojis

This is needed for the admin emoji interface,
as otherwise the emojis will 404 if custom emojis are disabled

* Fix linter warnings

* Remove custom/uploaded emoji logic

* Reset timer after emoji deletion

* Setup: copy built-in emojis to emoji directory
This commit is contained in:
Philipp
2022-12-12 17:40:43 +01:00
committed by GitHub
parent 592425bfc9
commit dc54dfe363
13 changed files with 439 additions and 87 deletions

View File

@ -143,6 +143,10 @@ export const MainLayout: FC<MainLayoutProps> = ({ children }) => {
label: <Link href="/admin/chat/users">Users</Link>,
key: 'chat-users',
},
{
label: <Link href="/admin/chat/emojis">Emojis</Link>,
key: 'emojis',
},
];
const utilitiesMenu = [