Merge remote-tracking branch 'duckie-temp/main' into duckie-merge-2026-04-21

# Conflicts:
#	src/components/room/widgets/chat-input/ChatInputView.tsx
#	src/components/toolbar/ToolbarView.tsx
#	src/css/chat/Chats.css
#	src/css/nitrocard/NitroCardView.css
#	src/css/purse/PurseView.css
#	src/css/room/RoomWidgets.css
This commit is contained in:
Lorenzune
2026-04-21 11:19:59 +02:00
43 changed files with 1453 additions and 293 deletions
-11
View File
@@ -1,4 +1,3 @@
import { GetConfigurationValue } from '../nitro/GetConfigurationValue';
import { LocalizeText } from './LocalizeText';
const allowedColours: Map<string, string> = new Map();
@@ -89,16 +88,6 @@ export const RoomChatFormatter = (content: string) =>
content = applyWiredTextMarkup(content);
//content = (joypixels.shortnameToUnicode(content) as string)
if(!GetConfigurationValue<boolean>('youtube.publish.disabled', false))
{
const labelShared = LocalizeText('widget.room.youtube.shared');
const labelOpen = LocalizeText('widget.room.youtube.open_video');
content = content.replace(
/(?:http:\/\/|https:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?.*v=|shorts\/)?([a-zA-Z0-9_-]{11})/g,
`<div style="margin:2px 0"><strong>&#x1F4FA; ${ labelShared }</strong></div><div><a href="https://youtu.be/$1" target="_blank" style="background-color:red;color:white;padding:3px 8px;border-radius:4px;text-decoration:none;font-size:12px">&#9654; ${ labelOpen }</a></div>`
);
}
if(content.startsWith('@') && content.indexOf('@', 1) > -1)
{
let match = null;