diff --git a/.umirc.ts b/.umirc.ts index 6bfd8cd..546097c 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -45,7 +45,7 @@ export default defineConfig({ 'process.env.HOST_CN': 'rl.algoux.cn', 'process.env.BEIAN': '鲁ICP备18021776号-5', 'process.env.LIVE_POLLING_INTERVAL': '10000', - 'process.env.X_PHOTO_BASE': 'https://share-bj-1252277595.cos.ap-beijing.myqcloud.com/', + 'process.env.X_PHOTO_BASE': 'https://share-bj-1252277595.cos.ap-beijing.myqcloud.com/srk-storage', 'GTAG': siteAlias === 'cn' ? 'G-D4PSNCRQJC' : 'G-D6CVTJBDZT', }, ssr: { diff --git a/src/components/StyledRanklistRenderer.tsx b/src/components/StyledRanklistRenderer.tsx index b5b5901..86ad625 100644 --- a/src/components/StyledRanklistRenderer.tsx +++ b/src/components/StyledRanklistRenderer.tsx @@ -282,15 +282,17 @@ export default function StyledRanklistRenderer({ const renderHeader = () => { const startAt = new Date(staticData.contest.startAt).getTime(); const endAt = startAt + formatSrkTimeDuration(staticData.contest.duration, 'ms'); - const metaBlock = !meta ? null : ( + const metaBlock = (
- - {meta.viewCnt || '-'} - + {meta && ( + + {meta.viewCnt || '-'} + + )} {() => ( <> - + = 980 ? 960 : clientWidth - 20, - content: , + content: , }; }} /> @@ -467,7 +469,7 @@ export default function StyledRanklistRenderer({
{showFooter && (
-

© 2022-2023 algoUX. All Rights Reserved.

+

© 2022-present algoUX. All Rights Reserved.

Find us on{' '} diff --git a/src/components/UserInfoModal.tsx b/src/components/UserInfoModal.tsx index a9a69c4..dfa9b59 100644 --- a/src/components/UserInfoModal.tsx +++ b/src/components/UserInfoModal.tsx @@ -10,10 +10,11 @@ export interface IUserInfoModalProps { row: srk.RanklistRow; index: number; ranklist: srk.Ranklist; + assetsScope: string; } export default function UserInfoModal(props: IUserInfoModalProps) { - const { user, row, ranklist } = props; + const { user, row, ranklist, assetsScope } = props; const rankTimeData = useContext(RankTimeDataContext); // @ts-ignore const mainSegmentIndex = row.rankValues[0]?.segmentIndex; @@ -56,7 +57,7 @@ export default function UserInfoModal(props: IUserInfoModalProps) { 选手照片['items'][number]; diff --git a/src/pages/live/[id].tsx b/src/pages/live/[id].tsx index eec471a..0f11df4 100644 --- a/src/pages/live/[id].tsx +++ b/src/pages/live/[id].tsx @@ -14,7 +14,6 @@ import { parseRealtimeSolutionBuffer } from '@/utils/realtime-solutions.util'; import ScrollSolution from '@/components/plugins/ScrollSolution/ScrollSolution'; import { useRemainingHeight } from '@/hooks/use-remaining-height'; import { useClientWidthHeight } from '@/hooks/use-client-wh'; -import UserInfoModal from '@/components/UserInfoModal'; const POLL_RANKLIST_INTERVAL = Number(process.env.LIVE_POLLING_INTERVAL); diff --git a/src/pages/ranklist/[id].tsx b/src/pages/ranklist/[id].tsx index b78f538..c42d490 100644 --- a/src/pages/ranklist/[id].tsx +++ b/src/pages/ranklist/[id].tsx @@ -7,7 +7,6 @@ import { api } from '@/services/api'; import { Button, Spin } from 'antd'; import { LogicException, LogicExceptionKind } from '@/services/api/logic.exception'; import { formatTitle } from '@/utils/title-format.util'; -import UserInfoModal from '@/components/UserInfoModal'; import { useClientWidthHeight } from '@/hooks/use-client-wh'; export default function RanklistPage(props: IRanklistPageProps) {