Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Sep 8, 2024
1 parent 29bdc88 commit 836c738
Show file tree
Hide file tree
Showing 4 changed files with 838 additions and 1,124 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
},
"dependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@types/node": "^20.14.14",
"@types/react": "^18.3.3",
"@types/node": "^20.16.5",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"babel-loader": "^9.1.3",
"bulma": "^0.9.4",
Expand All @@ -31,7 +31,7 @@
"react-hot-toast": "^2.4.1",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4",
"wouter": "^3.3.1"
"wouter": "^3.3.5"
},
"devDependencies": {
"@svgr/webpack": "^8.1.0",
Expand All @@ -45,20 +45,20 @@
"esbuild-loader": "^4.2.2",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.6.0",
"mini-css-extract-plugin": "^2.9.0",
"postcss": "^8.4.41",
"mini-css-extract-plugin": "^2.9.1",
"postcss": "^8.4.45",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^8.1.1",
"postcss-preset-env": "^9.6.0",
"resolve-url-loader": "^5.0.0",
"sass": "^1.77.8",
"sass": "^1.78.0",
"sass-loader": "^14.2.1",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.93.0",
"webpack": "^5.94.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"webpack-dev-server": "^5.1.0",
"webpack-merge": "^5.10.0"
},
"repository": {
Expand Down
34 changes: 18 additions & 16 deletions packages/index/src/pages/index/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react'
import { Helmet } from 'react-helmet'
import RankList from '../../components/rank-list'
// import RankList from '../../components/rank-list'
import ListSection from '../../components/list-section'

import recommends from '../../mock/recommends.json'
Expand All @@ -17,22 +17,24 @@ const indexConfig = [
title: 'Recommends',
query: 'type=recommends&title=recommends',
icon: require('../../assets/recommend.svg').default,
remote: recommends,
},
{
title: `❤️‍🔥MISS U`,
remote: `/posts?status=public&sort=&tag=恋爱&page=1&pageSize=24`,
query: `tag=恋爱&title=❤️‍🔥`,
},
{
title: '✨Latest Releases',
remote: `/posts?status=&sort=&tag=&uid=&page=1&pageSize=24`,
query: 'tag=all&title=Latest Releases',
},
remote: recommends
}
// {
// title: `❤️‍🔥MISS U`,
// remote: `/posts?status=public&sort=&tag=恋爱&page=1&pageSize=24`,
// query: `tag=恋爱&title=❤️‍🔥`,
// },
// {
// title: '✨Latest Releases',
// remote: `/posts?status=&sort=&tag=&uid=&page=1&pageSize=24`,
// query: 'tag=all&title=Latest Releases',
// },
]

export default function IndexPage() {
const [state, setState] = useState<R.Post[][] | null[]>(Array.from({ length: indexConfig.length }, () => null))
const [state, setState] = useState<R.Post[][] | null[]>(
Array.from({ length: indexConfig.length }, () => null)
)

// https://cors.moopa.my.id/?url=
// https://techz-cors-bypass.herokuapp.com/${res.url}
Expand Down Expand Up @@ -66,8 +68,8 @@ export default function IndexPage() {
icon={config.icon}
title={config.title}
moreUrl={`/pv/tag?${config.query}`}
aside={index == 0 && <RankList />}
asideTitle={(index == 0 && 'Ranks') as any}
// aside={index == 0 && <RankList />}
// asideTitle={(index == 0 && 'Ranks') as any}
/>
)
})}
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"@oplayer/react": "^1.2.10",
"@oplayer/ui": "latest",
"anime4k.js": "^0.0.4",
"devtools-detector": "^2.0.20",
"devtools-detector": "^2.0.22",
"github-markdown-css": "^5.6.1",
"hls.js": "1.5.8",
"lru-cache": "^10.4.3",
"m3u8-parser": "^7.1.0",
"m3u8-parser": "^7.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown-editor-lite": "^1.3.4",
Expand Down
Loading

0 comments on commit 836c738

Please sign in to comment.