diff --git a/src/api/play-url.test.ts b/src/api/play-url.test.ts index 68f2c51..df36ddc 100644 --- a/src/api/play-url.test.ts +++ b/src/api/play-url.test.ts @@ -2,7 +2,7 @@ import { test } from 'vitest' import request from './fetcher' import { PlayUrlResponseSchema } from './play-url.schema' - +// import fs from 'node:fs' test('get-play-url', async () => { const res = await request( '/x/player/wbi/playurl?bvid=BV1Av421r7Ur&cid=1454646853&type=mp4&qn=64&fnval=1&platform=pc&high_quality=1', @@ -23,3 +23,15 @@ test('get-play-url-html5', async () => { ) PlayUrlResponseSchema.parse(res) }) + +// test('aaa', async () => { +// const qn = [32, 64, 74, 80, 112, 116] +// const list = {} +// for (const q of qn) { +// const res = await request( +// `/x/player/wbi/playurl?bvid=BV1HH4y1h7eh&cid=1432196942&qn=${q}&fnval=16&platform=pc&high_quality=1`, +// ) +// list[q] = res +// } +// fs.writeFileSync('listaaa3.json', JSON.stringify(list, null, 2)) +// }) diff --git a/src/components/CommentList.tsx b/src/components/CommentList.tsx index 3a11159..f931afd 100644 --- a/src/components/CommentList.tsx +++ b/src/components/CommentList.tsx @@ -1,5 +1,6 @@ import { Icon, Skeleton, Text } from '@rneui/themed' import { FlashList } from '@shopify/flash-list' +import clsx from 'clsx' import React from 'react' import { TouchableOpacity, View } from 'react-native' @@ -8,7 +9,6 @@ import { colors } from '@/constants/colors.tw' import { type CommentItemType, useComments } from '../api/comments' import { Comment } from './Comment' import ReplyList from './ReplyList' -import clsx from 'clsx' function Loading() { return ( @@ -72,7 +72,11 @@ export default function CommentList( color={tw(colors.gray6.text).color} /> - {allCount ? allCount + '条评论' : '暂无评论'} + {allCount + ? allCount + '条评论' + : isLoading + ? '加载中' + : '暂无评论'} diff --git a/src/routes/About/Statement.tsx b/src/routes/About/Statement.tsx index af2b723..7c73388 100644 --- a/src/routes/About/Statement.tsx +++ b/src/routes/About/Statement.tsx @@ -44,10 +44,12 @@ function Statement() { - 感谢你使用这款应用 ❤ + 感谢你使用这款应用(MiniBili) ❤ - 本应用完全开源并且所有数据均为B站官网公开,不涉及任何个人隐私数据,仅供学习交流! + 本应用完全开源并且所有数据均为B站官网公开,不涉及任何个人隐私数据, + *仅供* + 个人使用及学习交流! 有问题欢迎使用意见反馈或者在 @@ -61,7 +63,7 @@ function Statement() { 中提出 😀 - ⚠️ 切勿频繁刷新数据!🙏 + ⚠️ 切勿频繁刷新数据!🙏