移除多余文件

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');
});
},
};
};
}