add prettier

This commit is contained in:
Harvey Zack committed 2022-11-04 20:55:17 +08:00
1 parent 4092b51c4e
commit 1593a4a528
95 files changed
+25431 -25282

No files matched your search

+22 -28
View File
@@ -30,13 +30,7 @@ export default {
'videoTracks',
'volume',
],
methods: [
'addTextTrack',
'canPlayType',
'load',
'play',
'pause'
],
methods: ['addTextTrack', 'canPlayType', 'load', 'play', 'pause'],
events: [
'abort',
'canplay',
@@ -62,26 +56,26 @@ export default {
'waiting',
],
prototypes: [
"width",
"height",
"videoWidth",
"videoHeight",
"poster",
"webkitDecodedFrameCount",
"webkitDroppedFrameCount",
"playsInline",
"webkitSupportsFullscreen",
"webkitDisplayingFullscreen",
"onenterpictureinpicture",
"onleavepictureinpicture",
"disablePictureInPicture",
"cancelVideoFrameCallback",
"requestVideoFrameCallback",
"getVideoPlaybackQuality",
"requestPictureInPicture",
"webkitEnterFullScreen",
"webkitEnterFullscreen",
"webkitExitFullScreen",
"webkitExitFullscreen",
'width',
'height',
'videoWidth',
'videoHeight',
'poster',
'webkitDecodedFrameCount',
'webkitDroppedFrameCount',
'playsInline',
'webkitSupportsFullscreen',
'webkitDisplayingFullscreen',
'onenterpictureinpicture',
'onleavepictureinpicture',
'disablePictureInPicture',
'cancelVideoFrameCallback',
'requestVideoFrameCallback',
'getVideoPlaybackQuality',
'requestPictureInPicture',
'webkitEnterFullScreen',
'webkitEnterFullscreen',
'webkitExitFullScreen',
'webkitExitFullscreen',
],
};
+2 -2
View File
@@ -1,8 +1,8 @@
export default function close(option) {
return art => ({
return (art) => ({
...option,
html: art.i18n.get('Close'),
click: contextmenu => {
click: (contextmenu) => {
contextmenu.show = false;
},
});
+2 -2
View File
@@ -1,8 +1,8 @@
export default function info(option) {
return art => ({
return (art) => ({
...option,
html: art.i18n.get('Video Info'),
click: contextmenu => {
click: (contextmenu) => {
art.info.show = true;
contextmenu.show = false;
},
+1 -1
View File
@@ -35,4 +35,4 @@
"Jump Play": "Hra na skok",
"AirPlay": "AirPlay",
"AirPlay Not Available": "AirPlay není k dispozici"
}
}
+1 -1
View File
@@ -35,4 +35,4 @@
"Jump Play": "Saltar",
"AirPlay": "AirPlay",
"AirPlay Not Available": "AirPlay no disponible"
}
}
+1 -1
View File
@@ -35,4 +35,4 @@
"Jump Play": "جامپ پلی",
"AirPlay": "ایر پلی",
"AirPlay Not Available": "عدم پشتیبانی از ایرپلی"
}
}
+1 -1
View File
@@ -35,4 +35,4 @@
"Jump Play": "Skocz do gry",
"AirPlay": "AirPlay",
"AirPlay Not Available": "AirPlay nie jest dostępny"
}
}
+1 -1
View File
@@ -35,4 +35,4 @@
"Jump Play": "跳转播放",
"AirPlay": "隔空播放",
"AirPlay Not Available": "隔空播放不可用"
}
}
+1 -1
View File
@@ -35,4 +35,4 @@
"Jump Play": "跳轉播放",
"AirPlay": "隔空播放",
"AirPlay Not Available": "隔空播放不可用"
}
}
+4 -2
View File
@@ -19,7 +19,9 @@
touch-action: manipulation;
-ms-high-contrast-adjust: none;
*, *::before, *::after {
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
@@ -43,7 +45,7 @@
justify-content: center;
align-items: center;
line-height: 1.5;
svg {
fill: #fff;
}
+1 -1
View File
@@ -6,4 +6,4 @@
.art-video-player {
transition: all 0.2s ease;
}
}
}
+2 -2
View File
@@ -1,9 +1,9 @@
.art-video-player {
&[data-flip="horizontal"] .art-video{
&[data-flip='horizontal'] .art-video {
transform: scaleX(-1);
}
&[data-flip="vertical"] .art-video{
&[data-flip='vertical'] .art-video {
transform: scaleY(-1);
}
}
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -19,4 +19,4 @@
@import './flip.less';
@import './plugins.less';
@import './selector.less';
@import './hint.less';
@import './hint.less';
+2 -2
View File
@@ -10,8 +10,8 @@
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
pointer-events: none;
.art-layer {
pointer-events: auto;
}
+11 -1
View File
@@ -1,4 +1,14 @@
import { hasClass, addClass, removeClass, append, setStyles, tooltip, getStyle, inverseClass, createElement } from './dom';
import {
hasClass,
addClass,
removeClass,
append,
setStyles,
tooltip,
getStyle,
inverseClass,
createElement,
} from './dom';
import validator from 'option-validator';
import { ComponentOption } from '../scheme';
import { has, def } from './property';
+1 -1
View File
@@ -1,5 +1,5 @@
export function sleep(ms = 0) {
return new Promise(resolve => setTimeout(resolve, ms));
return new Promise((resolve) => setTimeout(resolve, ms));
}
export function debounce(func, wait, context) {