mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #4775 from thornbill/unused-privates
This commit is contained in:
commit
2c1167c193
3 changed files with 75 additions and 87 deletions
|
@ -65,6 +65,7 @@ module.exports = {
|
||||||
'no-trailing-spaces': ['error'],
|
'no-trailing-spaces': ['error'],
|
||||||
'no-unused-expressions': ['off'],
|
'no-unused-expressions': ['off'],
|
||||||
'@typescript-eslint/no-unused-expressions': ['error', { 'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true }],
|
'@typescript-eslint/no-unused-expressions': ['error', { 'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true }],
|
||||||
|
'no-unused-private-class-members': ['error'],
|
||||||
'no-useless-constructor': ['off'],
|
'no-useless-constructor': ['off'],
|
||||||
'@typescript-eslint/no-useless-constructor': ['error'],
|
'@typescript-eslint/no-useless-constructor': ['error'],
|
||||||
'no-var': ['error'],
|
'no-var': ['error'],
|
||||||
|
|
|
@ -129,22 +129,6 @@ class PluginManager {
|
||||||
.sort((p1, p2) => (p1.priority || 0) - (p2.priority || 0))[0];
|
.sort((p1, p2) => (p1.priority || 0) - (p2.priority || 0))[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
#mapRoute(plugin, route) {
|
|
||||||
if (typeof plugin === 'string') {
|
|
||||||
plugin = this.pluginsList.filter((p) => {
|
|
||||||
return (p.id || p.packageName) === plugin;
|
|
||||||
})[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
route = route.path || route;
|
|
||||||
|
|
||||||
if (route.toLowerCase().startsWith('http')) {
|
|
||||||
return route;
|
|
||||||
}
|
|
||||||
|
|
||||||
return '/plugins/' + plugin.id + '/' + route;
|
|
||||||
}
|
|
||||||
|
|
||||||
mapPath(plugin, path, addCacheParam) {
|
mapPath(plugin, path, addCacheParam) {
|
||||||
if (typeof plugin === 'string') {
|
if (typeof plugin === 'string') {
|
||||||
plugin = this.pluginsList.filter((p) => {
|
plugin = this.pluginsList.filter((p) => {
|
||||||
|
|
|
@ -278,10 +278,13 @@ export class HtmlVideoPlayer {
|
||||||
* @type {number | null | undefined}
|
* @type {number | null | undefined}
|
||||||
*/
|
*/
|
||||||
#currentTime;
|
#currentTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @private (used in other files)
|
||||||
* @type {any | undefined}
|
* @type {any | undefined}
|
||||||
*/
|
*/
|
||||||
#flvPlayer;
|
_flvPlayer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private (used in other files)
|
* @private (used in other files)
|
||||||
* @type {any | undefined}
|
* @type {any | undefined}
|
||||||
|
@ -407,7 +410,7 @@ export class HtmlVideoPlayer {
|
||||||
flvPlayer.attachMediaElement(elem);
|
flvPlayer.attachMediaElement(elem);
|
||||||
flvPlayer.load();
|
flvPlayer.load();
|
||||||
|
|
||||||
this.#flvPlayer = flvPlayer;
|
this._flvPlayer = flvPlayer;
|
||||||
|
|
||||||
// This is needed in setCurrentTrackElement
|
// This is needed in setCurrentTrackElement
|
||||||
this.#currentSrc = url;
|
this.#currentSrc = url;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue