mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 00:06:17 -08:00
Refactor utility functions for improved readability and consistency - Updated compatibility.js to use consistent line endings and formatting. - Refactored component.js for better readability and structure, including consistent use of arrow functions and binding. - Simplified dom.js functions with consistent formatting and improved readability. - Enhanced emitter.js with consistent formatting and arrow function usage. - Streamlined error.js for improved readability and consistency. - Refactored file.js to use consistent formatting and improved readability. - Improved format.js functions for better readability and consistency. - Updated index.js to maintain consistent export formatting. - Refactored property.js for improved readability and consistency. - Enhanced subtitle.js with consistent formatting and improved readability. - Refactored time.js for better readability and consistent formatting. fix: update lint script to target only source files for consistency Revert "fix: restore export statements for various plugins and update type definitions for better clarity" This reverts commit b5e969d81ec765cd8a34b06e6ef4f232ef25087f. fix: restore export statements for various plugins and update type definitions for better clarity Refactor type definitions to use interfaces instead of type aliases for better extensibility and clarity across i18n, icons, option, player, quality, setting, subtitle, template, and utils modules.
76 lines
2.0 KiB
JavaScript
76 lines
2.0 KiB
JavaScript
import airplayMix from './airplayMix'
|
|
import aspectRatioMix from './aspectRatioMix'
|
|
import attrMix from './attrMix'
|
|
import autoHeightMix from './autoHeightMix'
|
|
import autoSizeMix from './autoSizeMix'
|
|
import cssVarMix from './cssVarMix'
|
|
import currentTimeMix from './currentTimeMix'
|
|
import durationMix from './durationMix'
|
|
import eventInit from './eventInit'
|
|
import flipMix from './flipMix'
|
|
import fullscreenMix from './fullscreenMix'
|
|
import fullscreenWebMix from './fullscreenWebMix'
|
|
import loadedMix from './loadedMix'
|
|
import miniMix from './miniMix'
|
|
import optionInit from './optionInit'
|
|
import pauseMix from './pauseMix'
|
|
import pipMix from './pipMix'
|
|
import playbackRateMix from './playbackRateMix'
|
|
import playedMix from './playedMix'
|
|
import playingMix from './playingMix'
|
|
import playMix from './playMix'
|
|
import posterMix from './posterMix'
|
|
import qualityMix from './qualityMix'
|
|
import rectMix from './rectMix'
|
|
import screenshotMix from './screenshotMix'
|
|
import seekMix from './seekMix'
|
|
import stateMix from './stateMix'
|
|
import subtitleOffsetMix from './subtitleOffsetMix'
|
|
import switchMix from './switchMix'
|
|
import themeMix from './themeMix'
|
|
import thumbnailsMix from './thumbnailsMix'
|
|
import toggleMix from './toggleMix'
|
|
import typeMix from './typeMix'
|
|
import urlMix from './urlMix'
|
|
import volumeMix from './volumeMix'
|
|
|
|
export default class Player {
|
|
constructor(art) {
|
|
urlMix(art)
|
|
attrMix(art)
|
|
playMix(art)
|
|
pauseMix(art)
|
|
toggleMix(art)
|
|
seekMix(art)
|
|
volumeMix(art)
|
|
currentTimeMix(art)
|
|
durationMix(art)
|
|
switchMix(art)
|
|
playbackRateMix(art)
|
|
aspectRatioMix(art)
|
|
screenshotMix(art)
|
|
fullscreenMix(art)
|
|
fullscreenWebMix(art)
|
|
pipMix(art)
|
|
loadedMix(art)
|
|
playedMix(art)
|
|
playingMix(art)
|
|
autoSizeMix(art)
|
|
rectMix(art)
|
|
flipMix(art)
|
|
miniMix(art)
|
|
posterMix(art)
|
|
autoHeightMix(art)
|
|
cssVarMix(art)
|
|
themeMix(art)
|
|
typeMix(art)
|
|
stateMix(art)
|
|
subtitleOffsetMix(art)
|
|
airplayMix(art)
|
|
qualityMix(art)
|
|
thumbnailsMix(art)
|
|
eventInit(art)
|
|
optionInit(art)
|
|
}
|
|
}
|