mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
Merge pull request #214 from simoleo89/fix/chat-text-mode-and-pixi-tsconfig
fix(client): restore chat-input TEXT mode + align tsconfig resolution with vite alias
This commit is contained in:
@@ -5,6 +5,7 @@ export class RoomWidgetUpdateChatInputContentEvent extends RoomWidgetUpdateEvent
|
|||||||
public static CHAT_INPUT_CONTENT: string = 'RWUCICE_CHAT_INPUT_CONTENT';
|
public static CHAT_INPUT_CONTENT: string = 'RWUCICE_CHAT_INPUT_CONTENT';
|
||||||
public static WHISPER: string = 'whisper';
|
public static WHISPER: string = 'whisper';
|
||||||
public static SHOUT: string = 'shout';
|
public static SHOUT: string = 'shout';
|
||||||
|
public static TEXT: string = 'text';
|
||||||
|
|
||||||
private _chatMode: string = '';
|
private _chatMode: string = '';
|
||||||
private _userName: string = '';
|
private _userName: string = '';
|
||||||
|
|||||||
@@ -236,6 +236,10 @@ export const ChatInputView: FC<{}> = props =>
|
|||||||
{
|
{
|
||||||
switch(event.chatMode)
|
switch(event.chatMode)
|
||||||
{
|
{
|
||||||
|
case RoomWidgetUpdateChatInputContentEvent.TEXT:
|
||||||
|
setChatValue(event.userName);
|
||||||
|
inputRef.current?.focus();
|
||||||
|
return;
|
||||||
case RoomWidgetUpdateChatInputContentEvent.WHISPER: {
|
case RoomWidgetUpdateChatInputContentEvent.WHISPER: {
|
||||||
setChatValue(`${ chatModeIdWhisper } ${ event.userName } `);
|
setChatValue(`${ chatModeIdWhisper } ${ event.userName } `);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -25,6 +25,15 @@
|
|||||||
],
|
],
|
||||||
"@/*": [
|
"@/*": [
|
||||||
"./src/*"
|
"./src/*"
|
||||||
|
],
|
||||||
|
"pixi.js": [
|
||||||
|
"../Nitro_Render_V3/node_modules/pixi.js"
|
||||||
|
],
|
||||||
|
"@nitrots/nitro-renderer": [
|
||||||
|
"../Nitro_Render_V3/index.ts"
|
||||||
|
],
|
||||||
|
"@nitrots/*": [
|
||||||
|
"../Nitro_Render_V3/packages/*/src/index.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user