移除多余文件

This commit is contained in:
Harvey committed 2021-11-24 14:07:39 +08:00
1 parent c5c4cf73eb
commit 74bc297e8f
39 files changed
+76 -16934

No files matched your search

@@ -4,7 +4,6 @@ import playbackRate from './playbackRate';
import aspectRatio from './aspectRatio';
import info from './info';
import version from './version';
import light from './light';
import close from './close';
export default class Contextmenu extends Component {
@@ -54,14 +53,6 @@ export default class Contextmenu extends Component {
}),
);
this.add(
light({
disable: !option.light,
name: 'light',
index: 50,
}),
);
this.add(
close({
disable: false,
@@ -1,18 +0,0 @@
export default function light(option) {
return art => {
const { i18n, player } = art;
return {
...option,
html: i18n.get('Light Off'),
click: contextmenu => {
player.light = !player.light;
contextmenu.show = false;
},
mounted: $menu => {
art.on('light', value => {
$menu.innerText = i18n.get(value ? 'Light On' : 'Light Off');
});
},
};
};
}
-2
View File
@@ -1,8 +1,6 @@
{
"Video info": "统计信息",
"Close": "关闭",
"Light Off": "关灯",
"Light On": "开灯",
"Video load failed": "加载失败",
"Volume": "音量",
"Play": "播放",
-2
View File
@@ -1,8 +1,6 @@
{
"Video info": "統計訊息",
"Close": "關閉",
"Light Off": "關燈",
"Light On": "開燈",
"Video load failed": "載入失敗",
"Volume": "音量",
"Play": "播放",
-1
View File
@@ -126,7 +126,6 @@ export default class Artplayer extends Emitter {
hotkey: true,
pip: false,
mutex: true,
light: false,
backdrop: true,
fullscreen: false,
fullscreenWeb: false,
-2
View File
@@ -23,7 +23,6 @@ import playingMix from './playingMix';
import autoSizeMix from './autoSizeMix';
import rectMix from './rectMix';
import flipMix from './flipMix';
import lightMix from './lightMix';
import miniMix from './miniMix';
import loopMin from './loopMin';
import rotateMix from './rotateMix';
@@ -57,7 +56,6 @@ export default class Player {
autoSizeMix(art, this);
rectMix(art, this);
flipMix(art, this);
lightMix(art, this);
miniMix(art, this);
loopMin(art, this);
rotateMix(art, this);
-15
View File
@@ -1,15 +0,0 @@
import { def, getStyle, setStyle } from '../utils';
export default function lightMix(art, player) {
const { $undercover } = art.template;
def(player, 'light', {
get() {
return getStyle($undercover, 'display', false) !== 'none';
},
set(value) {
setStyle($undercover, 'display', value ? 'block' : 'none');
art.emit('light', value);
},
});
}
+1 -2
View File
@@ -48,7 +48,6 @@ export default {
hotkey: b,
pip: b,
mutex: b,
light: b,
backdrop: b,
fullscreen: b,
fullscreenWeb: b,
@@ -66,7 +65,7 @@ export default {
{
...component,
position: (value, type, paths) => {
const position = ['top', 'left', 'right'];
const position = ['top', 'left', 'right', 'middle'];
return errorHandle(
position.includes(value),
`${paths.join('.')} only accept ${position.toString()} as parameters`,
@@ -1,15 +1,3 @@
.art-undercover {
background: #000;
position: fixed;
top: 0;
left: 0;
display: none;
height: 100%;
width: 100%;
opacity: 0.9;
z-index: 10;
}
.art-video-player {
display: flex;
position: relative;
+5 -7
View File
@@ -25,7 +25,6 @@ export default class Template {
static get html() {
return `
<div class="art-undercover"></div>
<div class="art-video-player art-subtitle-show art-layer-show">
<video class="art-video"></video>
<div class="art-poster"></div>
@@ -39,6 +38,7 @@ export default class Template {
<div class="art-progress"></div>
<div class="art-controls">
<div class="art-controls-left"></div>
<div class="art-controls-middle"></div>
<div class="art-controls-right"></div>
</div>
</div>
@@ -102,7 +102,6 @@ export default class Template {
this.$container.innerHTML = Template.html;
}
this.$undercover = this.query('.art-undercover');
this.$player = this.query('.art-video-player');
this.$video = this.query('.art-video');
this.$poster = this.query('.art-poster');
@@ -112,6 +111,7 @@ export default class Template {
this.$progress = this.query('.art-progress');
this.$controls = this.query('.art-controls');
this.$controlsLeft = this.query('.art-controls-left');
this.$controlsMiddle = this.query('.art-controls-middle');
this.$controlsRight = this.query('.art-controls-right');
this.$layer = this.query('.art-layers');
this.$loading = this.query('.art-loading');
@@ -135,9 +135,7 @@ export default class Template {
if (backdrop) {
addClass(this.$settingInner, 'art-backdrop-filter');
addClass(this.$contextmenu, 'art-backdrop-filter');
if (this.$info) {
addClass(this.$info, 'art-backdrop-filter');
}
addClass(this.$info, 'art-backdrop-filter');
}
if (this.art.isMobile) {
@@ -155,8 +153,8 @@ export default class Template {
this.$video = this.query('.art-video');
}
destroy(remove) {
if (remove) {
destroy(removeHtml) {
if (removeHtml) {
this.$container.innerHTML = '';
} else {
addClass(this.$player, 'art-destroy');