mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
remove subtitle control
This commit is contained in:
1 parent
de9005cf20
commit
d540b7f32e
13 files changed
+48
-116
No files matched your search
@@ -5,7 +5,6 @@ import fullscreenWeb from './fullscreenWeb';
|
||||
import pip from './pip';
|
||||
import playAndPause from './playAndPause';
|
||||
import progress from './progress';
|
||||
import subtitle from './subtitle';
|
||||
import time from './time';
|
||||
import volume from './volume';
|
||||
import setting from './setting';
|
||||
@@ -117,21 +116,12 @@ export default class Control extends Component {
|
||||
}),
|
||||
);
|
||||
|
||||
this.add(
|
||||
subtitle({
|
||||
name: 'subtitle',
|
||||
disable: !option.subtitle.url,
|
||||
position: 'right',
|
||||
index: 30,
|
||||
}),
|
||||
);
|
||||
|
||||
this.add(
|
||||
setting({
|
||||
name: 'setting',
|
||||
disable: !option.setting,
|
||||
position: 'right',
|
||||
index: 40,
|
||||
index: 30,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -140,7 +130,7 @@ export default class Control extends Component {
|
||||
name: 'pip',
|
||||
disable: !option.pip,
|
||||
position: 'right',
|
||||
index: 50,
|
||||
index: 40,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -149,7 +139,7 @@ export default class Control extends Component {
|
||||
name: 'fullscreenWeb',
|
||||
disable: !option.fullscreenWeb,
|
||||
position: 'right',
|
||||
index: 60,
|
||||
index: 50,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -158,7 +148,7 @@ export default class Control extends Component {
|
||||
name: 'fullscreen',
|
||||
disable: !option.fullscreen,
|
||||
position: 'right',
|
||||
index: 70,
|
||||
index: 60,
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
import { append, tooltip } from '../utils';
|
||||
|
||||
export default function subtitle(option) {
|
||||
return (art) => ({
|
||||
...option,
|
||||
tooltip: art.i18n.get('Hide Subtitle'),
|
||||
mounted: ($control) => {
|
||||
const {
|
||||
events: { proxy },
|
||||
icons,
|
||||
i18n,
|
||||
subtitle,
|
||||
} = art;
|
||||
|
||||
append($control, icons.subtitle);
|
||||
|
||||
proxy($control, 'click', () => {
|
||||
subtitle.toggle = true;
|
||||
});
|
||||
|
||||
art.on('subtitle', (value) => {
|
||||
tooltip($control, i18n.get(value ? 'Hide Subtitle' : 'Show Subtitle'));
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -11,8 +11,6 @@
|
||||
"Horizontal": "Horizontálně",
|
||||
"Vertical": "Vertikálně",
|
||||
"Reconnect": "Opětovné připojení",
|
||||
"Hide Subtitle": "Skrýt titulky",
|
||||
"Show Subtitle": "Ukázat titulky",
|
||||
"Show Setting": "Zobrazit nastavení",
|
||||
"Hide Setting": "Skrýt nastavení",
|
||||
"Screenshot": "Snímek obrazovky",
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
"Horizontal": "Pozioma",
|
||||
"Vertical": "Pionowa",
|
||||
"Reconnect": "Połącz ponownie",
|
||||
"Hide Subtitle": "Ukryj napisy",
|
||||
"Show Subtitle": "Pokaż napisy",
|
||||
"Show Setting": "Pokaż ustawienia",
|
||||
"Hide Setting": "Ukryj ustawienia",
|
||||
"Screenshot": "Zrzut ekranu",
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
"Horizontal": "水平",
|
||||
"Vertical": "垂直",
|
||||
"Reconnect": "重新连接",
|
||||
"Hide Subtitle": "隐藏字幕",
|
||||
"Show Subtitle": "显示字幕",
|
||||
"Show Setting": "显示设置",
|
||||
"Hide Setting": "隐藏设置",
|
||||
"Screenshot": "截图",
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
"Horizontal": "水平",
|
||||
"Vertical": "垂直",
|
||||
"Reconnect": "重新連接",
|
||||
"Hide Subtitle": "隱藏字幕",
|
||||
"Show Subtitle": "顯示字幕",
|
||||
"Show Setting": "顯示设置",
|
||||
"Hide Setting": "隱藏设置",
|
||||
"Screenshot": "截圖",
|
||||
|
||||
@@ -6,7 +6,6 @@ import play from 'bundle-text:./play.svg';
|
||||
import pause from 'bundle-text:./pause.svg';
|
||||
import volume from 'bundle-text:./volume.svg';
|
||||
import volumeClose from 'bundle-text:./volume-close.svg';
|
||||
import subtitle from 'bundle-text:./subtitle.svg';
|
||||
import screenshot from 'bundle-text:./screenshot.svg';
|
||||
import setting from 'bundle-text:./setting.svg';
|
||||
import arrowLeft from 'bundle-text:./arrow-left.svg';
|
||||
@@ -34,7 +33,6 @@ export default class Icons {
|
||||
check,
|
||||
volume,
|
||||
volumeClose,
|
||||
subtitle,
|
||||
screenshot,
|
||||
setting,
|
||||
pip,
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
.art-info,
|
||||
.art-layers,
|
||||
.art-notice,
|
||||
.art-setting,
|
||||
.art-settings,
|
||||
.art-subtitle {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user