forked from qier222/YesPlayMusic
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e4ba16b
Showing
102 changed files
with
19,066 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 qier222 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<br /> | ||
<p align="center"> | ||
<a href="https://music.bluepill.one" target="blank"> | ||
<img src="images/logo.png" alt="Logo" width="156" height="156"> | ||
</a> | ||
<h2 align="center" style="font-weight: 600">YesPlayMusic</h2> | ||
|
||
<p align="center"> | ||
可能是最好看的第三方网易云播放器 | ||
<br /> | ||
<a href="https://music.bluepill.one" target="blank"><strong>⏩️ 访问 DEMO ⏪</strong></a> | ||
<br /> | ||
<br /> | ||
</p> | ||
</p> | ||
|
||
[![Library][library-screenshot]](https://music.bluepill.one) | ||
|
||
## ✨ 特性 | ||
|
||
- ✅ 使用 Vue.js 全家桶开发 | ||
- ⭐ 简洁美观的 UI | ||
- ⏭️ 支持 MediaSession API,可以使用系统快捷键操作上一首下一首 | ||
- 😾 不能播放的歌曲会显示为灰色 | ||
- 🖥️ 支持 PWA,可在 Chrome/Edge 里点击地址栏右边的 ➕ 安装到电脑 | ||
- 🙉 支持显示歌曲和专辑的 Explicit 标志 | ||
- 🚫🤝 无任何社交功能 | ||
- 🛠 更多特性开发中 | ||
|
||
## ⚙️ 部署 | ||
|
||
1. 部署网易云 API,详情参见 [Binaryify/NeteaseCloudMusicApi](https://github.com/Binaryify/NeteaseCloudMusicApi) | ||
2. 克隆本仓库 | ||
|
||
```sh | ||
git clone https://github.com/qier222/YesPlayMusic.git | ||
``` | ||
|
||
3. 安装依赖 | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
4. 替换 `/src/utils/request.js` 里面 `baseURL` 的值为网易云 API 地址 | ||
|
||
```JS | ||
baseURL: "http://example.com", | ||
``` | ||
|
||
5. 编译打包 | ||
|
||
```sh | ||
npm build | ||
``` | ||
|
||
6. 将 `/dist` 目录下的文件上传到你的 Web 服务器 | ||
|
||
## ☑️ Todo | ||
|
||
- 中文支持 | ||
- MV 播放 | ||
- Dark Mode | ||
- 网易云账号登录(真·登录) | ||
- 私人 FM | ||
- 播放记录 | ||
- 无限播放模式(播放完列表后自动播放相似歌曲) | ||
|
||
欢迎提 issue 和 pull request。 | ||
|
||
## 📜 开源许可 | ||
|
||
基于 [MIT license](https://opensource.org/licenses/MIT) 许可进行开源。 | ||
|
||
## 🖼️ 截图 | ||
|
||
[![artist][artist-screenshot]](https://music.bluepill.one) | ||
[![album][album-screenshot]](https://music.bluepill.one) | ||
[![playlist][playlist-screenshot]](https://music.bluepill.one) | ||
[![explore][explore-screenshot]](https://music.bluepill.one) | ||
[![search][search-screenshot]](https://music.bluepill.one) | ||
[![home][home-screenshot]](https://music.bluepill.one) | ||
|
||
<!-- MARKDOWN LINKS & IMAGES --> | ||
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --> | ||
|
||
[album-screenshot]: images/album.png | ||
[artist-screenshot]: images/artist.png | ||
[explore-screenshot]: images/explore.png | ||
[home-screenshot]: images/home.png | ||
[library-screenshot]: images/library.png | ||
[playlist-screenshot]: images/playlist.png | ||
[search-screenshot]: images/search.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "music-app", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.20.0", | ||
"core-js": "^3.6.5", | ||
"dayjs": "^1.8.36", | ||
"howler": "^2.2.0", | ||
"nprogress": "^0.2.0", | ||
"register-service-worker": "^1.7.1", | ||
"svg-sprite-loader": "^5.0.0", | ||
"vue": "^2.6.11", | ||
"vue-analytics": "^5.22.1", | ||
"vue-global-events": "^1.2.1", | ||
"vue-router": "^3.4.3", | ||
"vue-slider-component": "^3.2.5", | ||
"vuex": "^3.4.0" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "~4.5.0", | ||
"@vue/cli-plugin-eslint": "~4.5.0", | ||
"@vue/cli-plugin-pwa": "~4.5.0", | ||
"@vue/cli-plugin-vuex": "~4.5.0", | ||
"@vue/cli-service": "~4.5.0", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^6.7.2", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"sass": "^1.26.11", | ||
"sass-loader": "^10.0.2", | ||
"vue-template-compiler": "^2.6.11" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"plugin:vue/essential", | ||
"eslint:recommended" | ||
], | ||
"parserOptions": { | ||
"parser": "babel-eslint" | ||
}, | ||
"rules": {} | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not dead" | ||
] | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
</head> | ||
|
||
<body> | ||
<noscript> | ||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. | ||
Please enable it to continue.</strong> | ||
</noscript> | ||
<div id="app"></div> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
User-agent: * | ||
Disallow: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<template> | ||
<div id="app"> | ||
<Navbar /> | ||
<main> | ||
<keep-alive> | ||
<router-view v-if="$route.meta.keepAlive"></router-view> | ||
</keep-alive> | ||
<router-view v-if="!$route.meta.keepAlive"></router-view> | ||
</main> | ||
<transition name="slide-up"> | ||
<BottomBar v-if="this.$store.state.player.enable" ref="player" | ||
/></transition> | ||
<GlobalEvents | ||
:filter="(event, handler, eventName) => event.target.tagName !== 'INPUT'" | ||
@keydown.space="play" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Navbar from "./components/Navbar.vue"; | ||
import BottomBar from "./components/BottomBar.vue"; | ||
import GlobalEvents from "vue-global-events"; | ||
import { mapState } from "vuex"; | ||
export default { | ||
name: "App", | ||
components: { | ||
Navbar, | ||
BottomBar, | ||
GlobalEvents, | ||
}, | ||
computed: { | ||
...mapState(["loading"]), | ||
}, | ||
methods: { | ||
play(e) { | ||
e.preventDefault(); | ||
this.$refs.player.play(); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,500;0,600;0,700;0,800;0,900;1,500;1,600;1,700;1,800;1,900&display=swap"); | ||
#app { | ||
font-family: "Barlow", -apple-system, BlinkMacSystemFont, Helvetica Neue, | ||
PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, | ||
WenQuanYi Micro Hei, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
// margin-top: 60px; | ||
width: 100%; | ||
} | ||
html { | ||
overflow-y: overlay; | ||
min-width: 1000px; | ||
} | ||
main { | ||
margin-top: 96px; | ||
margin-bottom: 96px; | ||
padding: { | ||
right: 10vw; | ||
left: 10vw; | ||
} | ||
} | ||
button { | ||
background: none; | ||
border: none; | ||
cursor: pointer; | ||
} | ||
input, | ||
button { | ||
font-family: "Barlow", sans-serif; | ||
&:focus { | ||
outline: none; | ||
} | ||
} | ||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
/* Let's get this party started */ | ||
::-webkit-scrollbar { | ||
width: 8px; | ||
} | ||
::-webkit-scrollbar-track { | ||
background: transparent; | ||
} | ||
::-webkit-scrollbar-thumb { | ||
-webkit-border-radius: 10px; | ||
border-radius: 10px; | ||
background: rgb(216, 216, 216); | ||
} | ||
.slide-up-enter-active, | ||
.slide-up-leave-active { | ||
transition: all 0.4s; | ||
} | ||
.slide-up-enter, .slide-up-leave-to /* .fade-leave-active below version 2.1.8 */ { | ||
transform: translateY(100%); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import request from "@/utils/request"; | ||
|
||
export function getAlbum(id) { | ||
return request({ | ||
url: "/album", | ||
method: "get", | ||
params: { | ||
id, | ||
}, | ||
}); | ||
} | ||
|
||
export function newAlbums(params) { | ||
// limit : 返回数量 , 默认为 30 | ||
// offset : 偏移数量,用于分页 , 如 :( 页数 -1)*30, 其中 30 为 limit 的值 , 默认为 0 | ||
// area : ALL:全部,ZH:华语,EA:欧美,KR:韩国,JP:日本 | ||
return request({ | ||
url: "/album/new", | ||
method: "get", | ||
params, | ||
}); | ||
} |
Oops, something went wrong.