mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove most of Dashboard global window usage
This commit is contained in:
parent
4e88835382
commit
923d53bb71
58 changed files with 65 additions and 26 deletions
|
@ -9,6 +9,7 @@ import loading from './loading/loading';
|
|||
import page from 'page';
|
||||
import viewManager from './viewManager/viewManager';
|
||||
import AppInfo from './AppInfo';
|
||||
import Dashboard from '../scripts/clientUtils';
|
||||
|
||||
class AppRouter {
|
||||
allRoutes = [];
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
import dom from '../scripts/dom';
|
||||
import { appRouter } from './appRouter';
|
||||
import { ConnectionManager } from 'jellyfin-apiclient';
|
||||
import Dashboard from '../scripts/clientUtils';
|
||||
|
||||
function onGroupedCardClick(e, card) {
|
||||
const itemId = card.getAttribute('data-id');
|
||||
|
|
|
@ -10,6 +10,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
|||
import '../../elements/emby-scroller/emby-scroller';
|
||||
import '../../elements/emby-button/emby-button';
|
||||
import './homesections.css';
|
||||
import Dashboard from '../../scripts/clientUtils';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ import '../../elements/emby-button/paper-icon-button-light';
|
|||
import '../../elements/emby-select/emby-select';
|
||||
import '../../elements/emby-button/emby-button';
|
||||
import '../../assets/css/flexstyles.css';
|
||||
import Dashboard from '../../scripts/clientUtils';
|
||||
|
||||
export default function (page, providerId, options) {
|
||||
function reload() {
|
||||
|
|
|
@ -5,6 +5,7 @@ import '../../elements/emby-checkbox/emby-checkbox';
|
|||
import '../../elements/emby-input/emby-input';
|
||||
import '../listview/listview.css';
|
||||
import '../../elements/emby-button/paper-icon-button-light';
|
||||
import Dashboard from '../../scripts/clientUtils';
|
||||
|
||||
export default function (page, providerId, options) {
|
||||
function getListingProvider(config, id) {
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import './viewManager/viewContainer.css';
|
||||
import Dashboard from '../scripts/clientUtils';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
function setControllerClass(view, options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue