Commit e6c4ec4a authored by Chunchi Che's avatar Chunchi Che

update small

parent 8d69c4a7
Pipeline #23636 passed with stages
in 13 minutes and 41 seconds
......@@ -18,6 +18,7 @@
"profileUrl":"https://accounts.moecube.com/profiles",
"athleticWatchUrl":"wss://tiramisu.moecube.com:8923",
"entertainWatchUrl":"wss://tiramisu.moecube.com:7923",
"avatarApi": "https://sapi.moecube.com:444/avatar/avatar/{username}/120/1.png",
"streamInterval":20,
"startDelay":1000,
"ui":{
......
......@@ -18,6 +18,7 @@
"profileUrl":"https://accounts.moecube.com/profiles",
"athleticWatchUrl":"wss://tiramisu.moecube.com:8923",
"entertainWatchUrl":"wss://tiramisu.moecube.com:7923",
"avatarApi": "https://sapi.moecube.com:444/avatar/avatar/{username}/120/1.png",
"streamInterval":20,
"startDelay":1000,
"ui":{
......
import { App, List } from "antd";
import { App, Avatar, List } from "antd";
import React, { useState } from "react";
import useWebSocket, { ReadyState } from "react-use-websocket";
import { useConfig } from "@/config";
const { athleticWatchUrl } = useConfig();
const { athleticWatchUrl, avatarApi } = useConfig();
interface Info {
event: "init" | "create" | "update" | "delete";
......@@ -101,6 +101,14 @@ export const WatchModal: React.FC = () => {
renderItem={(room) => (
<List.Item key={room.id}>
<List.Item.Meta
avatar={
<Avatar
src={avatarApi.replace(
"{username}",
room.users?.at(0)?.username ?? "?",
)}
/>
}
title={`${room.users?.at(0)?.username} 与 ${room.users?.at(1)
?.username} 的决斗`}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment