Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Feb 13, 2025
1 parent 7fbed37 commit 1837d20
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 495 deletions.
6 changes: 3 additions & 3 deletions packages/index/src/components/comment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface CommentProps {
onFocus?: FocusEventHandler<HTMLTextAreaElement>
onBlur?: FocusEventHandler<HTMLTextAreaElement>
comments?: any[]
player: { current: Player }
player?: { current: Player }
setMetaInfo: any
}

Expand All @@ -27,7 +27,7 @@ const Comment = ({ comments, onFocus, onBlur, postId, player, setMetaInfo }: Com
setLoading(true)
oaii
.post(`/biu`, {
data: { content: comment, post_id: `${postId}`, video_time: player.current.currentTime }
data: { content: comment, post_id: `${postId}`, video_time: player?.current.currentTime || 0 }
})
.then((_) => {
setLoading(false)
Expand Down Expand Up @@ -75,7 +75,7 @@ const Comment = ({ comments, onFocus, onBlur, postId, player, setMetaInfo }: Com
<div className="comment-item__head">
<img className="comment-item__avatar" src={'/ic_launcher_round.png'} alt="" />
<div>
<span className="comment-item__name"># {comments.length - i}</span>
<span className="comment-item__name">#{comments.length - i}</span>
<p className="comment-item__time">{getTimeDistance(item.createdAt)}</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/index/src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export default function Header() {
<Link href="/" className="navbar-item">
Home
</Link>
<a className="navbar-item" href="/anime/index" target="_blank">
{/* <a className="navbar-item" href="/anime/index" target="_blank">
Schedule
</a>
</a> */}
<a
className="navbar-item"
href="https://cdn.jsdelivr.net/gh/upvorg/cdn@master/apk/app-arm64-v8a-release.apk"
Expand Down
39 changes: 0 additions & 39 deletions packages/index/src/mock/post/0.json

This file was deleted.

39 changes: 0 additions & 39 deletions packages/index/src/mock/post/10.json

This file was deleted.

39 changes: 0 additions & 39 deletions packages/index/src/mock/post/4.json

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"data": {
"ID": "131478f2-31cd-446a-9cb2-15158b8c3efe",
"ID": "_1314",
"Cover": "https://static.iyf.tv/upload/video/201609071605010586376.gif?w=216&h=309&format=jpg&mode=stretch",
"Title": "花束般的恋爱",
"Content": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"data": {
"ID": "9",
"ID": "_520",
"Cover": "https://p.upyun.com/demo/tmp/jjJWPHMZ.webp",
"Title": "秒速5厘米",
"Content": "",
Expand Down

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion packages/index/src/mock/posts.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"data": [
{
"ID": "a7a1345e-1bc8-4793-9650-a0ee89b6d74b",
"ID": "qq",
"Cover": "",
"Title": "新 QQ 群",
"Content": "点击链接加入群聊【月色真美】:[https://jq.qq.com/?_wv=1027\u0026k=EFpgexC8](https://jq.qq.com/?_wv=1027\u0026k=EFpgexC8)",
Expand Down
6 changes: 3 additions & 3 deletions packages/index/src/mock/recommends.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"data": [
{
"ID": "a7a1345e-1bc8-4793-9650-a0ee89b6d74b",
"ID": "qq",
"Title": "QQ 群",
"Content": "",
"Tags": "其他",
Expand Down Expand Up @@ -31,7 +31,7 @@
}
},
{
"ID": "9",
"ID": "_520",
"Cover": "https://p.upyun.com/demo/tmp/jjJWPHMZ.webp",
"Title": "秒速5厘米",
"Content": "",
Expand Down Expand Up @@ -62,7 +62,7 @@
}
},
{
"ID": "131478f2-31cd-446a-9cb2-15158b8c3efe",
"ID": "_1314",
"Cover": "https://pic.cyol.com/img/20220307/img_96d0b6d39b4fb401a5b9ad295ef957fdbd_c.jpg",
"Title": "花束般的恋爱",
"Content": "",
Expand Down
46 changes: 0 additions & 46 deletions packages/index/src/mock/video/0.json

This file was deleted.

Loading

0 comments on commit 1837d20

Please sign in to comment.