Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some improvements #24

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ import { defineConfig } from 'umi';

export default defineConfig({
title: '李志 BB 音乐作品播放器',
nodeModulesTransform: {
type: 'none',
},
favicon: '/favico.png',
favicons: ['/favico.png'],
hash: true,
history: {
type: 'hash',
},
routes: [
{ path: '/', component: 'index' },
{ path: '/about', component: 'about' },
{ path: '/download', component: 'download' },
{ path: '/star', component: 'star' },
{ path: '/video', component: 'video' },
{ path: '/album/:id', component: 'album/index' },
],
metas: [
{
name: 'keywords',
Expand All @@ -20,6 +25,7 @@ export default defineConfig({
content: '全网最好用的李志(逼哥)音乐作品专属播放器',
},
],

analytics: {
baidu: '023e4ef604935de6708edb9e61f17191',
},
Expand All @@ -46,5 +52,7 @@ export default defineConfig({
}));
`,
],
fastRefresh: {},

fastRefresh: true,
tailwindcss: {},
});
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
},
"license": "MIT",
"scripts": {
"start": "umi dev",
"build": "umi build",
"start": "max dev",
"build": "max build",
"tw": "npx tailwindcss -i ./src/input.css -o ./public/tailwind.css --watch",
"postinstall": "umi generate tmp",
"postinstall": "max setup",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"test": "umi-test",
"test:coverage": "umi-test --coverage"
Expand All @@ -43,19 +43,19 @@
"@ant-design/pro-layout": "^6.5.0",
"hls.js": "^1.2.9",
"react": "17.x",
"react-cmdk": "^1.3.6",
"react-cmdk": "^1.3.9",
"react-dom": "17.x",
"react-jinke-music-player": "^4.24.2",
"umi": "^3.5.21"
"react-svg": "^16.1.34"
},
"devDependencies": {
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@umijs/preset-react": "1.x",
"@umijs/max": "^4.0.0",
"@umijs/test": "^3.5.21",
"lint-staged": "^10.0.7",
"prettier": "^2.2.0",
"tailwindcss": "^3.1.8",
"tailwindcss": "^3",
"typescript": "^4.1.2",
"yorkie": "^2.0.0"
}
Expand Down
146 changes: 146 additions & 0 deletions src/assets/albumInfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
[
{
"name": "梵高先生",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/梵高先生/cover.png",
"year": 2005,
"publisher": "口袋唱片"
},
{
"name": "被禁忌的游戏",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/被禁忌的游戏/cover.png",
"year": 2006,
"publisher": "口袋唱片"
},
{
"name": "这个世界会好吗",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/这个世界会好吗/cover.png",
"year": 2006,
"publisher": "独立发行"
},
{
"name": "工体东路没有人",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/工体东路没有人/cover.png",
"year": 2009,
"publisher": "独立发行"
},
{
"name": "你好,郑州",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/你好,郑州/cover.png",
"year": 2010,
"publisher": "独立发行"
},
{
"name": "我爱南京",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/我爱南京/cover.png",
"year": 2010,
"publisher": "独立发行"
},
{
"name": "F",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/F/cover.png",
"year": 2011,
"publisher": "独立发行"
},
{
"name": "Imagine-2011",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/Imagine-2011/cover.png",
"year": 2011,
"publisher": "独立发行"
},
{
"name": "108个关键词",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/108个关键词/cover.png",
"year": 2012,
"publisher": "独立发行"
},
{
"name": "勾三搭四",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/勾三搭四/cover.png",
"year": 2013,
"publisher": "独立发行"
},
{
"name": "1701",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/1701/cover.png",
"year": 2014,
"publisher": "独立发行"
},
{
"name": "看见",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/看见/cover.png",
"year": 2015,
"publisher": "独立发行"
},
{
"name": "io",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/io/cover.png",
"year": 2015,
"publisher": "独立发行"
},
{
"name": "北京不插电",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/北京不插电/cover.png",
"year": 2016,
"publisher": "独立发行"
},
{
"name": "8",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/8/cover.png",
"year": 2016,
"publisher": "独立发行"
},
{
"name": "在每一条伤心的应天大街上",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/在每一条伤心的应天大街上/cover.png",
"year": 2016,
"publisher": "独立发行"
},
{
"name": "动静",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/动静/cover.png",
"year": 2016,
"publisher": "独立发行"
},
{
"name": "家",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/家/cover.png",
"year": 2016,
"publisher": "独立发行"
},
{
"name": "电声与管弦乐",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/电声与管弦乐/cover.png",
"year": 2017,
"publisher": "独立发行"
},
{
"name": "电声与管弦乐II",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/电声与管弦乐II/cover.png",
"year": 2017,
"publisher": "独立发行"
},
{
"name": "广场合集",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/广场合集/cover.png",
"year": null,
"publisher": ""
},
{
"name": "我们也爱南京",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/我们也爱南京/cover.png",
"year": null,
"publisher": ""
},
{
"name": "二零零九年十月十六日事件",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/二零零九年十月十六日事件/cover.png",
"year": null,
"publisher": ""
},
{
"name": "零碎",
"cover": "https://testingcf.jsdelivr.net/gh/nj-lizhi/song@master/audio/零碎/cover.png",
"year": null,
"publisher": ""
}
]
14 changes: 14 additions & 0 deletions src/assets/back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/assets/linux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions src/assets/loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions src/assets/mac.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading