mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make import paths ES6-compatible
This commit is contained in:
parent
1a635e2f81
commit
bfb8c7c1f6
245 changed files with 2073 additions and 1995 deletions
|
@ -1,4 +1,4 @@
|
|||
import loading from 'loading';
|
||||
import loading from '../../../components/loading/loading';
|
||||
|
||||
function onFinish() {
|
||||
loading.show();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import loading from 'loading';
|
||||
import 'emby-checkbox';
|
||||
import 'emby-button';
|
||||
import 'emby-select';
|
||||
import loading from '../../../components/loading/loading';
|
||||
import '../../../elements/emby-checkbox/emby-checkbox';
|
||||
import '../../../elements/emby-button/emby-button';
|
||||
import '../../../elements/emby-select/emby-select';
|
||||
|
||||
function save(page) {
|
||||
loading.show();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import loading from 'loading';
|
||||
import 'emby-checkbox';
|
||||
import 'emby-button';
|
||||
import 'emby-select';
|
||||
import loading from '../../../components/loading/loading';
|
||||
import '../../../elements/emby-checkbox/emby-checkbox';
|
||||
import '../../../elements/emby-button/emby-button';
|
||||
import '../../../elements/emby-select/emby-select';
|
||||
|
||||
function save(page) {
|
||||
loading.show();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import $ from 'jQuery';
|
||||
import loading from 'loading';
|
||||
import 'emby-button';
|
||||
import 'emby-select';
|
||||
import 'jquery';
|
||||
import loading from '../../../components/loading/loading';
|
||||
import '../../../elements/emby-button/emby-button';
|
||||
import '../../../elements/emby-select/emby-select';
|
||||
|
||||
function loadPage(page, config, languageOptions) {
|
||||
$('#selectLocalizationLanguage', page).html(languageOptions.map(function (l) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import loading from 'loading';
|
||||
import globalize from 'globalize';
|
||||
import 'dashboardcss';
|
||||
import 'emby-input';
|
||||
import 'emby-button';
|
||||
import loading from '../../../components/loading/loading';
|
||||
import globalize from '../../../scripts/globalize';
|
||||
import '../../../assets/css/dashboard.css';
|
||||
import '../../../elements/emby-input/emby-input';
|
||||
import '../../../elements/emby-button/emby-button';
|
||||
|
||||
function getApiClient() {
|
||||
return ApiClient;
|
||||
|
@ -36,7 +36,7 @@ function onSubmit(e) {
|
|||
const form = this;
|
||||
|
||||
if (form.querySelector('#txtManualPassword').value != form.querySelector('#txtPasswordConfirm').value) {
|
||||
import('toast').then(({default: toast}) => {
|
||||
import('../../../components/toast/toast').then((toast) => {
|
||||
toast(globalize.translate('PasswordMatchError'));
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue