mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
declare dependency
This commit is contained in:
parent
f6b71369e3
commit
a1d3c595d0
38 changed files with 155 additions and 138 deletions
|
@ -31,14 +31,14 @@
|
||||||
"web-component-tester": "*",
|
"web-component-tester": "*",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polymerelements/iron-icon",
|
"homepage": "https://github.com/PolymerElements/iron-icon",
|
||||||
"_release": "1.0.7",
|
"_release": "1.0.7",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.7",
|
"tag": "v1.0.7",
|
||||||
"commit": "6f4d152dc3998a6cc12a5a585a654f893dc99381"
|
"commit": "6f4d152dc3998a6cc12a5a585a654f893dc99381"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-icon"
|
"_originalSource": "PolymerElements/iron-icon"
|
||||||
}
|
}
|
|
@ -40,7 +40,7 @@
|
||||||
"tag": "v1.0.5",
|
"tag": "v1.0.5",
|
||||||
"commit": "39da54afbc17af343d1f95e62c5c0c477492677a"
|
"commit": "39da54afbc17af343d1f95e62c5c0c477492677a"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-icons.git",
|
"_source": "git://github.com/PolymerElements/iron-icons.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-icons"
|
"_originalSource": "PolymerElements/iron-icons"
|
||||||
}
|
}
|
|
@ -45,7 +45,7 @@
|
||||||
"tag": "v1.0.10",
|
"tag": "v1.0.10",
|
||||||
"commit": "4b244a542af2c6c271498dfb98b00ed284df1d6a"
|
"commit": "4b244a542af2c6c271498dfb98b00ed284df1d6a"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-behaviors.git",
|
"_source": "git://github.com/polymerelements/paper-behaviors.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/paper-behaviors"
|
"_originalSource": "polymerelements/paper-behaviors"
|
||||||
}
|
}
|
|
@ -37,7 +37,7 @@
|
||||||
"tag": "v1.0.4",
|
"tag": "v1.0.4",
|
||||||
"commit": "05f3800d37f8c5cad63ac2cf279f01bffb7d4fe8"
|
"commit": "05f3800d37f8c5cad63ac2cf279f01bffb7d4fe8"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-material.git",
|
"_source": "git://github.com/polymerelements/paper-material.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/paper-material"
|
"_originalSource": "polymerelements/paper-material"
|
||||||
}
|
}
|
|
@ -32,14 +32,14 @@
|
||||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||||
},
|
},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "https://github.com/PolymerElements/paper-ripple",
|
"homepage": "https://github.com/polymerelements/paper-ripple",
|
||||||
"_release": "1.0.5",
|
"_release": "1.0.5",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.5",
|
"tag": "v1.0.5",
|
||||||
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
|
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-ripple.git",
|
"_source": "git://github.com/polymerelements/paper-ripple.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/paper-ripple"
|
"_originalSource": "polymerelements/paper-ripple"
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
<title>Emby</title>
|
<title>Emby</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="boxsetsPage" data-role="page" class="page libraryPage backdropPage collectionEditorPage noSecondaryNavPage" data-backdroptype="movie,boxset" data-require="scripts/moviecollections">
|
<div id="boxsetsPage" data-role="page" class="page libraryPage backdropPage collectionEditorPage noSecondaryNavPage" data-backdroptype="movie,boxset" data-require="scripts/moviecollections,paper-fab">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="viewSettings">
|
<div class="viewSettings">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['components/paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-input'], function () {
|
define(['components/paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-input', 'paper-fab'], function () {
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['components/paperdialoghelper', 'paper-item', 'paper-input'], function () {
|
define(['components/paperdialoghelper', 'paper-item', 'paper-input', 'paper-fab'], function () {
|
||||||
|
|
||||||
var systemInfo;
|
var systemInfo;
|
||||||
function getSystemInfo() {
|
function getSystemInfo() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['components/paperdialoghelper', 'paper-checkbox', 'paper-dialog'], function () {
|
define(['components/paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-fab'], function () {
|
||||||
|
|
||||||
var currentItemId;
|
var currentItemId;
|
||||||
var currentItemType;
|
var currentItemType;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['components/paperdialoghelper', 'css!css/metadataeditor.css'], function () {
|
define(['components/paperdialoghelper', 'css!css/metadataeditor.css', 'paper-fab'], function () {
|
||||||
|
|
||||||
var currentItem;
|
var currentItem;
|
||||||
var currentDeferred;
|
var currentDeferred;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['components/paperdialoghelper', 'paper-dialog', 'paper-input'], function () {
|
define(['components/paperdialoghelper', 'paper-dialog', 'paper-input', 'paper-fab'], function () {
|
||||||
|
|
||||||
var currentDeferred;
|
var currentDeferred;
|
||||||
var hasChanges;
|
var hasChanges;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['components/paperdialoghelper'], function () {
|
define(['components/paperdialoghelper', 'paper-fab'], function () {
|
||||||
|
|
||||||
var currentDeferred;
|
var currentDeferred;
|
||||||
var hasChanges;
|
var hasChanges;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['components/paperdialoghelper', 'paper-dialog', 'paper-input'], function () {
|
define(['components/paperdialoghelper', 'paper-dialog', 'paper-input', 'paper-fab'], function () {
|
||||||
|
|
||||||
var lastPlaylistId = '';
|
var lastPlaylistId = '';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['components/paperdialoghelper'], function () {
|
define(['components/paperdialoghelper', 'paper-fab'], function () {
|
||||||
|
|
||||||
var currentItem;
|
var currentItem;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title></title>
|
<title></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="itemDetailPage" data-role="page" class="page libraryPage itemDetailPage noSecondaryNavPage" data-theme="b" data-require="scripts/itemdetailpage,tileitemcss,scripts/livetvcomponents">
|
<div id="itemDetailPage" data-role="page" class="page libraryPage itemDetailPage noSecondaryNavPage" data-theme="b" data-require="scripts/itemdetailpage,tileitemcss,scripts/livetvcomponents,paper-fab">
|
||||||
|
|
||||||
<div id="tvShowsTabs" class="itemTabs" style="display: none;">
|
<div id="tvShowsTabs" class="itemTabs" style="display: none;">
|
||||||
<div class="libraryViewNav scopedLibraryViewNav">
|
<div class="libraryViewNav scopedLibraryViewNav">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>${TitleLiveTV}</title>
|
<title>${TitleLiveTV}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="liveTvStatusPage" data-role="page" class="page type-interior liveTvSettingsPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Live%20TV" data-require="scripts/livetvstatus,scripts/taskbutton">
|
<div id="liveTvStatusPage" data-role="page" class="page type-interior liveTvSettingsPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Live%20TV" data-require="scripts/livetvstatus,scripts/taskbutton,paper-fab">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>Emby</title>
|
<title>Emby</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="moviesPage" data-role="page" data-dom-cache="true" class="page libraryPage backdropPage pageWithAbsoluteTabs collectionEditorPage" data-backdroptype="movie" data-require="jqmpanel,jqmcollapsible,scripts/moviesrecommended,paper-tabs,neon-animated-pages,paper-checkbox">
|
<div id="moviesPage" data-role="page" data-dom-cache="true" class="page libraryPage backdropPage pageWithAbsoluteTabs collectionEditorPage" data-backdroptype="movie" data-require="jqmpanel,jqmcollapsible,scripts/moviesrecommended,paper-tabs,neon-animated-pages,paper-checkbox,paper-fab">
|
||||||
|
|
||||||
<div class="libraryViewNav libraryViewNavWithMinHeight">
|
<div class="libraryViewNav libraryViewNavWithMinHeight">
|
||||||
<paper-tabs hidescrollbuttons noink>
|
<paper-tabs hidescrollbuttons noink>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<title>Emby</title>
|
<title>Emby</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="homeScreenPreferencesPage" data-role="page" class="page libraryPage userPreferencesPage noSecondaryNavPage" data-title="${HeaderHomeScreenSettings}" data-require="scripts/mypreferenceshome,paper-checkbox" data-backbutton="true" data-menubutton="false">
|
<div id="homeScreenPreferencesPage" data-role="page" class="page libraryPage userPreferencesPage noSecondaryNavPage" data-title="${HeaderHomeScreenSettings}" data-require="scripts/mypreferenceshome,paper-checkbox,paper-fab" data-backbutton="true" data-menubutton="false">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<form class="homeScreenPreferencesForm userProfileSettingsForm" style="margin: 0 auto;">
|
<form class="homeScreenPreferencesForm userProfileSettingsForm" style="margin: 0 auto;">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<title>Emby</title>
|
<title>Emby</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="myPreferencesMenuPage" data-role="page" class="page libraryPage userPreferencesPage noSecondaryNavPage" data-contextname="${HeaderSettings}" data-require="scripts/mypreferencescommon">
|
<div id="myPreferencesMenuPage" data-role="page" class="page libraryPage userPreferencesPage noSecondaryNavPage" data-contextname="${HeaderSettings}" data-require="scripts/mypreferencescommon,paper-fab">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="readOnlyContent" style="margin: 0 auto;">
|
<div class="readOnlyContent" style="margin: 0 auto;">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>${TitleSync}</title>
|
<title>${TitleSync}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="mySyncActivityPage" data-role="page" class="page libraryPage syncActivityPage mySyncPage noSecondaryNavPage" data-contextname="${TitleSync}" data-require="scripts/syncactivity,scripts/taskbutton,scripts/mysync,paper-spinner">
|
<div id="mySyncActivityPage" data-role="page" class="page libraryPage syncActivityPage mySyncPage noSecondaryNavPage" data-contextname="${TitleSync}" data-require="scripts/syncactivity,scripts/taskbutton,scripts/mysync,paper-spinner,paper-fab">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>${TitleSync}</title>
|
<title>${TitleSync}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="mySyncJobPage" data-role="page" class="page libraryPage syncJobPage mySyncPage noSecondaryNavPage" data-contextname="${TitleSync}" data-require="jqmcollapsible,scripts/syncjob" data-backbutton="true" data-menubutton="false">
|
<div id="mySyncJobPage" data-role="page" class="page libraryPage syncJobPage mySyncPage noSecondaryNavPage" data-contextname="${TitleSync}" data-require="jqmcollapsible,scripts/syncjob,paper-fab" data-backbutton="true" data-menubutton="false">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>Emby</title>
|
<title>Emby</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="nowPlayingPage" data-role="page" class="page libraryPage nowPlayingPage noSecondaryNavPage" data-contextname="${TitleRemoteControl}" data-theme="b" data-require="jqmcollapsible,scripts/nowplayingpage,buttonenabled,paper-slider,paper-tabs,neon-animated-pages">
|
<div id="nowPlayingPage" data-role="page" class="page libraryPage nowPlayingPage noSecondaryNavPage" data-contextname="${TitleRemoteControl}" data-theme="b" data-require="jqmcollapsible,scripts/nowplayingpage,buttonenabled,paper-slider,paper-tabs,neon-animated-pages,paper-fab">
|
||||||
|
|
||||||
<div class="libraryViewNav hide">
|
<div class="libraryViewNav hide">
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -88,7 +88,9 @@
|
||||||
|
|
||||||
})).then(function (result) {
|
})).then(function (result) {
|
||||||
|
|
||||||
load(page, result.Items);
|
require(['paper-fab'], function() {
|
||||||
|
load(page, result.Items);
|
||||||
|
});
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
});
|
});
|
||||||
|
|
|
@ -27,7 +27,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var url = getUrl(name, culture);
|
var url = getUrl(name, culture);
|
||||||
var requestUrl = url + "?v=" + window.dashboardVersion;
|
|
||||||
|
var requestUrl = url + "?v=" + AppInfo.appVersion;
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('GET', requestUrl, true);
|
xhr.open('GET', requestUrl, true);
|
||||||
|
|
|
@ -1,96 +1,102 @@
|
||||||
(function () {
|
(function () {
|
||||||
|
|
||||||
function getTimersHtml(timers) {
|
function getTimersHtml(timers) {
|
||||||
var html = '';
|
|
||||||
|
|
||||||
var index = '';
|
return new Promise(function (resolve, reject) {
|
||||||
|
|
||||||
for (var i = 0, length = timers.length; i < length; i++) {
|
require(['paper-fab'], function () {
|
||||||
|
var html = '';
|
||||||
|
|
||||||
var timer = timers[i];
|
var index = '';
|
||||||
|
|
||||||
var startDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(timer.StartDate, { toLocal: true }));
|
for (var i = 0, length = timers.length; i < length; i++) {
|
||||||
|
|
||||||
if (startDateText != index) {
|
var timer = timers[i];
|
||||||
|
|
||||||
if (index) {
|
var startDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(timer.StartDate, { toLocal: true }));
|
||||||
|
|
||||||
|
if (startDateText != index) {
|
||||||
|
|
||||||
|
if (index) {
|
||||||
|
html += '</div>';
|
||||||
|
html += '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
html += '<div class="homePageSection">';
|
||||||
|
html += '<h1>' + startDateText + '</h1>';
|
||||||
|
html += '<div class="paperList">';
|
||||||
|
index = startDateText;
|
||||||
|
}
|
||||||
|
|
||||||
|
html += '<paper-icon-item>';
|
||||||
|
|
||||||
|
var program = timer.ProgramInfo || {};
|
||||||
|
var imgUrl;
|
||||||
|
|
||||||
|
if (program.ImageTags && program.ImageTags.Primary) {
|
||||||
|
|
||||||
|
imgUrl = ApiClient.getScaledImageUrl(program.Id, {
|
||||||
|
height: 80,
|
||||||
|
tag: program.ImageTags.Primary,
|
||||||
|
type: "Primary"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (imgUrl) {
|
||||||
|
html += '<paper-fab mini class="blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||||
|
}
|
||||||
|
else if (program.IsKids) {
|
||||||
|
html += '<paper-fab mini style="background:#2196F3;" icon="person" item-icon></paper-fab>';
|
||||||
|
}
|
||||||
|
else if (program.IsSports) {
|
||||||
|
html += '<paper-fab mini style="background:#8BC34A;" icon="person" item-icon></paper-fab>';
|
||||||
|
}
|
||||||
|
else if (program.IsMovie) {
|
||||||
|
html += '<paper-fab mini icon="movie" item-icon></paper-fab>';
|
||||||
|
}
|
||||||
|
else if (program.IsNews) {
|
||||||
|
html += '<paper-fab mini style="background:#673AB7;" icon="new-releases" item-icon></paper-fab>';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
html += '<paper-fab mini class="blue" icon="live-tv" item-icon></paper-fab>';
|
||||||
|
}
|
||||||
|
|
||||||
|
html += '<paper-item-body two-line>';
|
||||||
|
html += '<a class="clearLink" href="livetvtimer.html?id=' + timer.Id + '">';
|
||||||
|
|
||||||
|
html += '<div>';
|
||||||
|
html += timer.Name;
|
||||||
|
html += '</div>';
|
||||||
|
|
||||||
|
html += '<div secondary>';
|
||||||
|
html += LibraryBrowser.getDisplayTime(timer.StartDate);
|
||||||
|
html += ' - ' + LibraryBrowser.getDisplayTime(timer.EndDate);
|
||||||
|
html += '</div>';
|
||||||
|
|
||||||
|
html += '</a>';
|
||||||
|
html += '</paper-item-body>';
|
||||||
|
|
||||||
|
if (timer.SeriesTimerId) {
|
||||||
|
html += '<div class="ui-li-aside" style="right:0;">';
|
||||||
|
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||||
|
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||||
|
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||||
|
html += '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
html += '<paper-icon-button icon="cancel" data-timerid="' + timer.Id + '" title="' + Globalize.translate('ButonCancelRecording') + '" class="btnDeleteTimer"></paper-icon-button>';
|
||||||
|
|
||||||
|
html += '</paper-icon-item>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (timers.length) {
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
html += '<div class="homePageSection">';
|
resolve(html);
|
||||||
html += '<h1>' + startDateText + '</h1>';
|
});
|
||||||
html += '<div class="paperList">';
|
});
|
||||||
index = startDateText;
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<paper-icon-item>';
|
|
||||||
|
|
||||||
var program = timer.ProgramInfo || {};
|
|
||||||
var imgUrl;
|
|
||||||
|
|
||||||
if (program.ImageTags && program.ImageTags.Primary) {
|
|
||||||
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(program.Id, {
|
|
||||||
height: 80,
|
|
||||||
tag: program.ImageTags.Primary,
|
|
||||||
type: "Primary"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (imgUrl) {
|
|
||||||
html += '<paper-fab mini class="blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
|
||||||
}
|
|
||||||
else if (program.IsKids) {
|
|
||||||
html += '<paper-fab mini style="background:#2196F3;" icon="person" item-icon></paper-fab>';
|
|
||||||
}
|
|
||||||
else if (program.IsSports) {
|
|
||||||
html += '<paper-fab mini style="background:#8BC34A;" icon="person" item-icon></paper-fab>';
|
|
||||||
}
|
|
||||||
else if (program.IsMovie) {
|
|
||||||
html += '<paper-fab mini icon="movie" item-icon></paper-fab>';
|
|
||||||
}
|
|
||||||
else if (program.IsNews) {
|
|
||||||
html += '<paper-fab mini style="background:#673AB7;" icon="new-releases" item-icon></paper-fab>';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
html += '<paper-fab mini class="blue" icon="live-tv" item-icon></paper-fab>';
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<paper-item-body two-line>';
|
|
||||||
html += '<a class="clearLink" href="livetvtimer.html?id=' + timer.Id + '">';
|
|
||||||
|
|
||||||
html += '<div>';
|
|
||||||
html += timer.Name;
|
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
html += '<div secondary>';
|
|
||||||
html += LibraryBrowser.getDisplayTime(timer.StartDate);
|
|
||||||
html += ' - ' + LibraryBrowser.getDisplayTime(timer.EndDate);
|
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
html += '</a>';
|
|
||||||
html += '</paper-item-body>';
|
|
||||||
|
|
||||||
if (timer.SeriesTimerId) {
|
|
||||||
html += '<div class="ui-li-aside" style="right:0;">';
|
|
||||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
|
||||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
|
||||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
|
||||||
html += '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<paper-icon-button icon="cancel" data-timerid="' + timer.Id + '" title="' + Globalize.translate('ButonCancelRecording') + '" class="btnDeleteTimer"></paper-icon-button>';
|
|
||||||
|
|
||||||
html += '</paper-icon-item>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (timers.length) {
|
|
||||||
html += '</div>';
|
|
||||||
html += '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
return html;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.LiveTvHelpers = {
|
window.LiveTvHelpers = {
|
||||||
|
|
|
@ -109,8 +109,9 @@
|
||||||
|
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
|
|
||||||
renderRecordingGroups(page, result.Items);
|
require(['paper-fab'], function () {
|
||||||
|
renderRecordingGroups(page, result.Items);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,15 +141,15 @@
|
||||||
|
|
||||||
var timers = result.Items;
|
var timers = result.Items;
|
||||||
|
|
||||||
var html = LiveTvHelpers.getTimersHtml(timers);
|
LiveTvHelpers.getTimersHtml(timers).then(function(html) {
|
||||||
|
var elem = $('.scheduleTab', page).html(html);
|
||||||
|
|
||||||
var elem = $('.scheduleTab', page).html(html);
|
$('.btnDeleteTimer', elem).on('click', function () {
|
||||||
|
|
||||||
$('.btnDeleteTimer', elem).on('click', function () {
|
var id = this.getAttribute('data-timerid');
|
||||||
|
|
||||||
var id = this.getAttribute('data-timerid');
|
deleteTimer(page, id);
|
||||||
|
});
|
||||||
deleteTimer(page, id);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,9 @@
|
||||||
|
|
||||||
ApiClient.getLiveTvSeriesTimers(query).then(function (result) {
|
ApiClient.getLiveTvSeriesTimers(query).then(function (result) {
|
||||||
|
|
||||||
renderTimers(page, result.Items);
|
require(['paper-fab'], function() {
|
||||||
|
renderTimers(page, result.Items);
|
||||||
|
});
|
||||||
|
|
||||||
LibraryBrowser.setLastRefreshed(page);
|
LibraryBrowser.setLastRefreshed(page);
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,18 +21,18 @@
|
||||||
|
|
||||||
function renderTimers(page, timers) {
|
function renderTimers(page, timers) {
|
||||||
|
|
||||||
var html = LiveTvHelpers.getTimersHtml(timers);
|
LiveTvHelpers.getTimersHtml(timers).then(function (html) {
|
||||||
|
var elem = $('#items', page).html(html);
|
||||||
|
|
||||||
var elem = $('#items', page).html(html);
|
$('.btnDeleteTimer', elem).on('click', function () {
|
||||||
|
|
||||||
$('.btnDeleteTimer', elem).on('click', function () {
|
var id = this.getAttribute('data-timerid');
|
||||||
|
|
||||||
var id = this.getAttribute('data-timerid');
|
deleteTimer(page, id);
|
||||||
|
});
|
||||||
|
|
||||||
deleteTimer(page, id);
|
Dashboard.hideLoadingMsg();
|
||||||
});
|
});
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function reload(page) {
|
function reload(page) {
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
require(['humanedate'], function() {
|
require(['humanedate', 'paper-fab'], function () {
|
||||||
for (var i = 0, length = list.length; i < length; i++) {
|
for (var i = 0, length = list.length; i < length; i++) {
|
||||||
|
|
||||||
var notification = list[i];
|
var notification = list[i];
|
||||||
|
|
|
@ -66,7 +66,9 @@
|
||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
|
|
||||||
reload(page);
|
require(['paper-fab'], function () {
|
||||||
|
reload(page);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery, window);
|
})(jQuery, window);
|
|
@ -97,7 +97,7 @@
|
||||||
|
|
||||||
function showPlaybackOverlay(deferred) {
|
function showPlaybackOverlay(deferred) {
|
||||||
|
|
||||||
require(['components/paperdialoghelper'], function () {
|
require(['components/paperdialoghelper', 'paper-fab'], function () {
|
||||||
|
|
||||||
var dlg = PaperDialogHelper.createDialog({});
|
var dlg = PaperDialogHelper.createDialog({});
|
||||||
|
|
||||||
|
|
|
@ -279,7 +279,10 @@
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
startInterval();
|
startInterval();
|
||||||
reloadList(page);
|
|
||||||
|
require(['paper-fab', 'paper-progress'], function () {
|
||||||
|
reloadList(page);
|
||||||
|
});
|
||||||
|
|
||||||
$(ApiClient).on("websocketmessage", onWebSocketMessage).on("websocketopen", onWebSocketConnectionOpen);
|
$(ApiClient).on("websocketmessage", onWebSocketMessage).on("websocketopen", onWebSocketConnectionOpen);
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ var Dashboard = {
|
||||||
importCss: function (url) {
|
importCss: function (url) {
|
||||||
|
|
||||||
var originalUrl = url;
|
var originalUrl = url;
|
||||||
url += "?v=" + window.dashboardVersion;
|
url += "?v=" + AppInfo.appVersion;
|
||||||
|
|
||||||
if (!Dashboard.importedCss) {
|
if (!Dashboard.importedCss) {
|
||||||
Dashboard.importedCss = [];
|
Dashboard.importedCss = [];
|
||||||
|
@ -1826,6 +1826,7 @@ var AppInfo = {};
|
||||||
define("scale-up-animation", ["html!bower_components/neon-animation/animations/scale-up-animation.html"]);
|
define("scale-up-animation", ["html!bower_components/neon-animation/animations/scale-up-animation.html"]);
|
||||||
define("paper-dialog", ["html!bower_components/paper-dialog/paper-dialog.html"]);
|
define("paper-dialog", ["html!bower_components/paper-dialog/paper-dialog.html"]);
|
||||||
define("paper-fab", ["html!bower_components/paper-fab/paper-fab.html"]);
|
define("paper-fab", ["html!bower_components/paper-fab/paper-fab.html"]);
|
||||||
|
define("paper-progress", ["html!bower_components/paper-progress/paper-progress.html"]);
|
||||||
define("paper-input", ["html!bower_components/paper-input/paper-input.html"]);
|
define("paper-input", ["html!bower_components/paper-input/paper-input.html"]);
|
||||||
define("paper-icon-item", ["html!bower_components/paper-item/paper-icon-item.html"]);
|
define("paper-icon-item", ["html!bower_components/paper-item/paper-icon-item.html"]);
|
||||||
define("paper-item-body", ["html!bower_components/paper-item/paper-item-body.html"]);
|
define("paper-item-body", ["html!bower_components/paper-item/paper-item-body.html"]);
|
||||||
|
@ -2005,7 +2006,6 @@ var AppInfo = {};
|
||||||
deps.push('paper-icon-button');
|
deps.push('paper-icon-button');
|
||||||
|
|
||||||
// TODO: These need to be removed
|
// TODO: These need to be removed
|
||||||
deps.push('paper-fab');
|
|
||||||
deps.push('paper-icon-item');
|
deps.push('paper-icon-item');
|
||||||
deps.push('paper-item-body');
|
deps.push('paper-item-body');
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,7 @@
|
||||||
|
|
||||||
function showSyncMenuInternal(options) {
|
function showSyncMenuInternal(options) {
|
||||||
|
|
||||||
require(['components/paperdialoghelper'], function () {
|
require(['components/paperdialoghelper', 'paper-fab'], function () {
|
||||||
|
|
||||||
var userId = Dashboard.getCurrentUserId();
|
var userId = Dashboard.getCurrentUserId();
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>Emby</title>
|
<title>Emby</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="selectServerPage" data-role="page" class="page libraryPage noSecondaryNavPage" data-theme="b" data-require="scripts/selectserver">
|
<div id="selectServerPage" data-role="page" class="page libraryPage noSecondaryNavPage" data-theme="b" data-require="scripts/selectserver,paper-fab">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<br />
|
<br />
|
||||||
<div class="noServersMessage" style="display:none;padding-left:5px;">
|
<div class="noServersMessage" style="display:none;padding-left:5px;">
|
||||||
${MessageNoServersAvailableToConnect}
|
${MessageNoServersAvailableToConnect}
|
||||||
<br/><br />
|
<br /><br />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="addServer" style="margin:0 0 1em;">
|
<div class="addServer" style="margin:0 0 1em;">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>Emby</title>
|
<title>Emby</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="publicSharedItemPage" data-role="page" class="page standalonePage noSecondaryNavPage" data-theme="b" data-require="scripts/shared,scripts/itemdetailpage,tileitemcss,scripts/livetvcomponents">
|
<div id="publicSharedItemPage" data-role="page" class="page standalonePage noSecondaryNavPage" data-theme="b" data-require="scripts/shared,scripts/itemdetailpage,tileitemcss,scripts/livetvcomponents,paper-fab">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#publicSharedItemPage .header {
|
#publicSharedItemPage .header {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>${TitleSync}</title>
|
<title>${TitleSync}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="syncJobPage" data-role="page" class="page type-interior syncConfigurationPage syncJobPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync" data-require="jqmcontrolgroup,scripts/syncjob">
|
<div id="syncJobPage" data-role="page" class="page type-interior syncConfigurationPage syncJobPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync" data-require="jqmcontrolgroup,scripts/syncjob,paper-fab">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue