feat: integrate customer service chat functionality and add socket.io-client dependency

- Implemented a customer service chat interface in the application.
- Added socket.io-client for real-time communication.
- Updated language files to include customer service related translations.
- Modified navigation to direct users to the customer service page.
- Enhanced UI elements for better user experience in chat interactions.
This commit is contained in:
li
2026-01-29 03:04:52 +08:00
parent 14c8cbffcc
commit 322cc24208
12 changed files with 1629 additions and 72 deletions
+16
View File
@@ -85,6 +85,7 @@ var tl = {
user: "ผู้ใช้",
userBalance: "ยอด",
customerService: "บริการลูกค้า",
logout: "ออกจากระบบ",
tip: "คำแนะนำ",
logoutTip: "คุณต้องการออกจากระบบหรือไม่",
@@ -173,6 +174,21 @@ var tl = {
chooseCoin: "โปรดเลือกสกุลเงิน",
flagshipHall: "แฟล็กชิปฮอลล์",
liveHall: "ฮอลล์สด",
// บริการลูกค้า
csConnected: "เชื่อมต่อแล้ว",
csConnecting: "กำลังเชื่อมต่อ...",
csWelcome: "ยินดีต้อนรับสู่บริการลูกค้า",
csBusy: "เจ้าหน้าที่กำลังยุ่ง กรุณารอสักครู่...",
csInputTip: "กรุณาใส่คำถามของคุณ",
csInputPlaceholder: "พิมพ์ข้อความและส่ง...",
csSend: "ส่ง",
csMe: "ฉัน",
csAgent: "เจ้าหน้าที่",
csSessionEnded: "เซสชันสิ้นสุด",
csAgentServing: "กำลังให้บริการคุณ",
csAgentJoined: "ได้เข้าร่วม",
csConnectFailed: "เชื่อมต่อไม่สำเร็จ",
};
export { tl };