Skip to content

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Aug 14, 2017
1 parent 1995ba5 commit c86c799
Show file tree
Hide file tree
Showing 16 changed files with 68 additions and 31 deletions.
2 changes: 1 addition & 1 deletion dist/cplayer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cplayer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/appcache/manifest.appcache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CACHE MANIFEST
#ver:8/13/2017, 9:47:13 PM
#ver:8/14/2017, 10:42:32 AM
#plugin:4.8.3

CACHE:
Expand Down
2 changes: 1 addition & 1 deletion example/cplayerexample.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/cplayerexample.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta charset="UTF-8"/><title>CPlayer</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#f8f8f8"/><script type="text/javascript" src="cplayerexample.js?7e9fb9a627ad13331502"></script></head><body><div class="neko-container neko-no-gutters"><div class="center"><h1 class="title">cPlayer</h1><div class="neko-m-v-2" id="app"></div></div><div class="neko-m-v-2 btn-line center"><button class="neko-btn outline neko-color-blue" id="add163">从网易云添加音乐</button> <button class="neko-btn outline neko-color-blue" id="openplaylist">打开播放列表</button> <button class="neko-btn outline neko-color-blue" id="closeplaylist">关闭播放列表</button> <button class="neko-btn outline neko-color-blue" id="remove">删除一首歌曲</button> <a href="https://github.com/MoePlayer/cPlayer/blob/next/src/example.ts" rel="noopener" target="_blank"><button class="neko-btn outline neko-color-blue">查看 demo 源代码</button></a></div><div class="neko-m-v-2 center"><h1>Get Start</h1><pre class="getstart neko-helper-center"><code class="html">&lt;div id="app"&gt;&lt;/div&gt;
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>CPlayer</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#f8f8f8"/><script type="text/javascript" src="cplayerexample.js?422059613ebda9978976"></script></head><body><div class="neko-container neko-no-gutters"><div class="center"><h1 class="title">cPlayer</h1><div class="neko-m-v-2" id="app"></div></div><div class="neko-m-v-2 btn-line center"><button class="neko-btn outline neko-color-blue" id="add163">从网易云添加音乐</button> <button class="neko-btn outline neko-color-blue" id="openplaylist">打开播放列表</button> <button class="neko-btn outline neko-color-blue" id="closeplaylist">关闭播放列表</button> <button class="neko-btn outline neko-color-blue" id="remove">删除一首歌曲</button> <a href="https://github.com/MoePlayer/cPlayer/blob/next/src/example.ts" rel="noopener" target="_blank"><button class="neko-btn outline neko-color-blue">查看 demo 源代码</button></a></div><div class="neko-m-v-2 center"><h1>Get Start</h1><pre class="getstart neko-helper-center"><code class="html">&lt;div id="app"&gt;&lt;/div&gt;
&lt;!-- 加载 cplayer 脚本 --&gt;
&lt;script src="https://cdn.jsdelivr.net/gh/MoePlayer/cPlayer/dist/cplayer.js"&gt;&lt;/script&gt;
&lt;script&gt;
Expand Down
2 changes: 1 addition & 1 deletion example/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/helper/parseHTML.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default function parseHTML(elem: string): DocumentFragment;
export default function parseHTML(elem: string): DocumentFragment;
1 change: 0 additions & 1 deletion lib/lib/helper/parseHTML.d.ts

This file was deleted.

5 changes: 4 additions & 1 deletion lib/lib/view.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export interface ICplayerViewOption {
deleteElementAfterGenerate?: boolean;
zoomOutKana?: boolean;
showPlaylist?: boolean;
width?: string;
size?: string;
style?: string;
}
export default class cplayerView extends EventEmitter {
private elementLinks;
Expand All @@ -15,7 +18,7 @@ export default class cplayerView extends EventEmitter {
private dropDownMenuShowInfo;
private options;
constructor(player: cplayer, options: ICplayerViewOption);
getRootElement(): Element;
getRootElement(): HTMLElement;
private getPlayListLinks(rootElement?);
private getElementLinks(rootElement?);
private setPlayIcon(paused);
Expand Down
5 changes: 4 additions & 1 deletion lib/view.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export interface ICplayerViewOption {
deleteElementAfterGenerate?: boolean;
zoomOutKana?: boolean;
showPlaylist?: boolean;
width?: string;
size?: string;
style?: string;
}
export default class cplayerView extends EventEmitter {
private elementLinks;
Expand All @@ -15,7 +18,7 @@ export default class cplayerView extends EventEmitter {
private dropDownMenuShowInfo;
private options;
constructor(player: cplayer, options: ICplayerViewOption);
getRootElement(): Element;
getRootElement(): HTMLElement;
private getPlayListLinks(rootElement?);
private getElementLinks(rootElement?);
private setPlayIcon(paused);
Expand Down
55 changes: 47 additions & 8 deletions lib/view.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c86c799

Please sign in to comment.