mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Migrate networking.js, playback.js, serveractivity.js to ES6 modules
This commit is contained in:
parent
1f8ce6e6f4
commit
1ac3ecbfa7
4 changed files with 28 additions and 11 deletions
|
@ -124,6 +124,9 @@
|
||||||
"src/components/settingshelper.js",
|
"src/components/settingshelper.js",
|
||||||
"src/components/subtitlesettings/subtitlesettings.js",
|
"src/components/subtitlesettings/subtitlesettings.js",
|
||||||
"src/components/subtitlesettings/subtitleappearancehelper.js",
|
"src/components/subtitlesettings/subtitleappearancehelper.js",
|
||||||
|
"src/controllers/dashboard/playback.js",
|
||||||
|
"src/controllers/dashboard/serveractivity.js",
|
||||||
|
"src/controllers/dashboard/networking.js",
|
||||||
"src/components/shortcuts.js",
|
"src/components/shortcuts.js",
|
||||||
"src/components/syncPlay/groupSelectionMenu.js",
|
"src/components/syncPlay/groupSelectionMenu.js",
|
||||||
"src/components/syncPlay/playbackPermissionManager.js",
|
"src/components/syncPlay/playbackPermissionManager.js",
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
define(['loading', 'libraryMenu', 'globalize', 'emby-checkbox', 'emby-select'], function (loading, libraryMenu, globalize) {
|
import loading from 'loading';
|
||||||
'use strict';
|
import libraryMenu from 'libraryMenu';
|
||||||
|
import globalize from 'globalize';
|
||||||
|
import 'emby-checkbox';
|
||||||
|
import 'emby-select';
|
||||||
|
|
||||||
|
/* eslint-disable indent */
|
||||||
|
|
||||||
function onSubmit(e) {
|
function onSubmit(e) {
|
||||||
var form = this;
|
var form = this;
|
||||||
|
@ -97,7 +102,7 @@ define(['loading', 'libraryMenu', 'globalize', 'emby-checkbox', 'emby-select'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return function (view, params) {
|
export default function (view, params) {
|
||||||
function loadPage(page, config) {
|
function loadPage(page, config) {
|
||||||
page.querySelector('#txtPortNumber').value = config.HttpServerPortNumber;
|
page.querySelector('#txtPortNumber').value = config.HttpServerPortNumber;
|
||||||
page.querySelector('#txtPublicPort').value = config.PublicPort;
|
page.querySelector('#txtPublicPort').value = config.PublicPort;
|
||||||
|
@ -159,4 +164,5 @@ define(['loading', 'libraryMenu', 'globalize', 'emby-checkbox', 'emby-select'],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
});
|
|
||||||
|
/* eslint-enable indent */
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
define(['jQuery', 'loading', 'libraryMenu', 'globalize'], function ($, loading, libraryMenu, globalize) {
|
import $ from 'jQuery';
|
||||||
'use strict';
|
import loading from 'loading';
|
||||||
|
import libraryMenu from 'libraryMenu';
|
||||||
|
import globalize from 'globalize';
|
||||||
|
|
||||||
|
/* eslint-disable indent */
|
||||||
|
|
||||||
function loadPage(page, config) {
|
function loadPage(page, config) {
|
||||||
$('#txtMinResumePct', page).val(config.MinResumePct);
|
$('#txtMinResumePct', page).val(config.MinResumePct);
|
||||||
|
@ -45,4 +49,5 @@ define(['jQuery', 'loading', 'libraryMenu', 'globalize'], function ($, loading,
|
||||||
loadPage(page, config);
|
loadPage(page, config);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
/* eslint-enable indent */
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
define(['components/activitylog', 'globalize'], function (ActivityLog, globalize) {
|
import ActivityLog from 'components/activitylog';
|
||||||
'use strict';
|
import globalize from 'globalize';
|
||||||
|
|
||||||
return function (view, params) {
|
/* eslint-disable indent */
|
||||||
|
|
||||||
|
export default function (view, params) {
|
||||||
var activityLog;
|
var activityLog;
|
||||||
|
|
||||||
if (params.useractivity !== 'false') {
|
if (params.useractivity !== 'false') {
|
||||||
|
@ -28,4 +30,5 @@ define(['components/activitylog', 'globalize'], function (ActivityLog, globalize
|
||||||
activityLog = null;
|
activityLog = null;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
});
|
|
||||||
|
/* eslint-ensable indent */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue