Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release/0.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
disoul committed May 8, 2016
2 parents 2b48b1a + 71ce68b commit 82b66cc
Show file tree
Hide file tree
Showing 47 changed files with 1,152 additions and 256 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
# NeteaseCloudMusic Electron

网易云音乐Electron版
`` 开发中 ``
[![devDependency Status](https://david-dm.org/disoul/electron-cloud-music/dev-status.svg)](https://david-dm.org/disoul/electron-cloud-music#info=devDependencies)
网易云音乐Electron版`` 开发中 ``

## 进度
目前只有基本功能

* 搜索歌曲+播放(版权歌曲无法播放
* 播放列表
* 手机登陆
* 个人歌单(创建,收藏
* [TODO] 歌曲界面
* [TODO] 主页推荐
* [TODO] 私人FM
![预览截图](http://7xn38i.com1.z0.glb.clouddn.com/snapshot5.png)
* 歌曲界面(滚动歌词
* 主页推荐
* 喜欢歌曲 && 自动向网易提交听歌记录
* [TODO] 私人FM

![预览截图](http://7xn38i.com1.z0.glb.clouddn.com/2016-05-07 14-32-14屏幕截图.png)
![预览截图](http://7xn38i.com1.z0.glb.clouddn.com/2016-05-07 14-32-41屏幕截图.png)

## 试用
目前打包了一个测试版本,[release](https://github.com/disoul/electron-cloud-music/releases/tag/0.0.1)

## Build
目前还没有打包,如果想预览开发效果可以按以下步骤自行构建

```bash
git clone https://github.com/disoul/electron-cloud-music && cd electron-cloud-music
Expand All @@ -25,7 +30,7 @@ npm install webpack-dev-server@2.0.0-beta -g
npm install electron-prebuilt -g
webpack-dev-server --inline --compress --content-base=./

// run cloudmusic in proj root path
// electron will load from 127.0.0.1:8080(webpack-dev-server
# run cloudmusic in proj root path
# electron will load from 127.0.0.1:8080(webpack-dev-server
electron ./
```
64 changes: 62 additions & 2 deletions app/actions/actions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
import { Search, Login, getPlayList, SonglistDetail } from '../server';
import { Search, Login, getPlayList, SonglistDetail, getLyric,playlistTracks } from '../server';
import lryicParser from '../libs/lrcparse';
export function play() {
return { type: 'PLAYER', state: 'PLAYER_PLAY' };
}
Expand Down Expand Up @@ -68,6 +69,14 @@ export function changeRule() {
return { type: 'SONG', state: 'CHANGERULE' }
}

export function removesongfromlist(index) {
return {type: 'SONG', state: 'REMOVEFROMLIST', payload: index}
}

export function removesonglist() {
return {type: 'SONG', state: 'REMOVELIST' }
}

export function showPlayList() {
return { type: 'SONG', state: 'SHOWPLAYLIST' }
}
Expand Down Expand Up @@ -142,7 +151,7 @@ export function push(content) {
}

export function pop() {
return { type: 'ROUTER', state: 'PUSH' }
return { type: 'ROUTER', state: 'POP' }
}

// 获取歌单内容
Expand Down Expand Up @@ -178,3 +187,54 @@ export function showplaycontentmini() {
export function hiddenplaycontentmini() {
return { type: 'PLAYCONTENT', state: 'HIDDENMINI' }
}

export function showplaycontentmax() {
return { type: 'PLAYCONTENT', state: 'SHOWMAX' }
}

export function hiddenplaycontentmax() {
return { type: 'PLAYCONTENT', state: 'HIDDENMAX' }
}

function fetchinglyric() {
return { type: 'PLAYCONTENT', state: 'LRCFETCH' }
}

function getlyric(res) {
return { type: 'PLAYCONTENT', state: 'LRCGET', payload: res }
}

function errorlyric(err) {
return { type: 'PLAYCONTENT', state: 'LRCERROR', payload: err }
}

export function lyric(id) {
return dispatch => {
dispatch(fetchinglyric());
getLyric(id).then( res => {
dispatch(getlyric(lryicParser(res)));
})
.catch( err => {
dispatch(errorlyric(err));
});
};
}

export function setlyric(index) {
return { type: 'PLAYCONTENT', state: 'LRCSET', payload: index }
}

function addToast(content) {
return { type: 'TOAST', state: 'ADD', payload: content }
}

function removeToast() {
return { type: 'TOAST', state: 'FINISH' }
}

export function toast(content) {
return dispatch => {
dispatch(addToast(content));
window.setTimeout(dispatch, 5000, removeToast());
}
}
Binary file added app/assets/icon.icns
Binary file not shown.
Binary file added app/assets/icon.ico
Binary file not shown.
Binary file modified app/assets/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/assets/icon/addall.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/assets/icon/back.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/assets/icon/remove.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/assets/icon/removeall.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/assets/icon/star.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 5 additions & 49 deletions app/assets/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 82b66cc

Please sign in to comment.