mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
commit
941a2d0269
File diff suppressed because one or more lines are too long
@ -6,9 +6,12 @@
|
||||
<div class="emby-button-foreground">${TabHome}</div>
|
||||
</button>
|
||||
<button is="emby-button" class="emby-tab-button" data-index="1">
|
||||
<div class="emby-button-foreground">${TabFavorites}</div>
|
||||
<div class="emby-button-foreground">${TabNextUp}</div>
|
||||
</button>
|
||||
<button is="emby-button" class="emby-tab-button" data-index="2">
|
||||
<div class="emby-button-foreground">${TabFavorites}</div>
|
||||
</button>
|
||||
<button is="emby-button" class="emby-tab-button" data-index="3">
|
||||
<div class="emby-button-foreground">${TabUpcoming}</div>
|
||||
</button>
|
||||
</div>
|
||||
@ -23,10 +26,23 @@
|
||||
|
||||
<div class="sections"></div>
|
||||
</div>
|
||||
<div class="pageTabContent ehsContent fullWidth" id="favoritesTab" data-index="1">
|
||||
<div class="pageTabContent ehsContent fullWidth" id="nextUpTab" data-index="1">
|
||||
<div class="homePageSection">
|
||||
<div>
|
||||
<h1 class="listHeader nextUpHeader" style="display: inline-block; vertical-align: middle;">${HeaderNextUp}</h1>
|
||||
<button is="emby-button" type="button" class="raised submit mini categorySyncButton button-accent" data-category="NextUp">
|
||||
<span>${ButtonSync}</span>
|
||||
</button>
|
||||
</div>
|
||||
<div is="emby-itemscontainer" id="nextUpItems" class="itemsContainer vertical-wrap">
|
||||
</div>
|
||||
</div>
|
||||
<p class="noNextUpItems hide">${NoNextUpItemsMessage}</p>
|
||||
</div>
|
||||
<div class="pageTabContent ehsContent fullWidth" id="favoritesTab" data-index="2">
|
||||
<div class="favoriteSections"></div>
|
||||
</div>
|
||||
<div class="pageTabContent ehsContent fullWidth" id="upcomingTab" data-index="2">
|
||||
<div class="pageTabContent ehsContent fullWidth" id="upcomingTab" data-index="3">
|
||||
<div id="upcomingItems">
|
||||
</div>
|
||||
<div class="noItemsMessage hide">
|
||||
|
1
dashboard-ui/scripts/homenextup.js
Normal file
1
dashboard-ui/scripts/homenextup.js
Normal file
@ -0,0 +1 @@
|
||||
define(["components/categorysyncbuttons","cardBuilder","apphost","imageLoader","emby-itemscontainer"],function(categorysyncbuttons,cardBuilder,appHost,imageLoader){"use strict";function getNextUpPromise(){var query={Limit:24,Fields:"PrimaryImageAspectRatio,SeriesInfo,DateCreated,BasicSyncInfo",UserId:Dashboard.getCurrentUserId(),ImageTypeLimit:1,EnableImageTypes:"Primary,Backdrop,Thumb"};return ApiClient.getNextUpEpisodes(query)}function loadNextUp(page,promise){promise.then(function(result){result.Items.length?page.querySelector(".noNextUpItems").classList.add("hide"):page.querySelector(".noNextUpItems").classList.remove("hide");var html="",supportsImageAnalysis=appHost.supports("imageanalysis");html+=cardBuilder.getCardsHtml({items:result.Items,shape:"backdrop",showTitle:!0,showParentTitle:!0,overlayText:!1,lazy:!0,preferThumb:!0,showDetailsMenu:!0,centerText:!supportsImageAnalysis,overlayPlayButton:!0,context:"home-nextup",cardLayout:supportsImageAnalysis,vibrant:supportsImageAnalysis});var elem=page.querySelector("#nextUpItems");elem.innerHTML=html,imageLoader.lazyChildren(elem),Dashboard.hideLoadingMsg()})}return function(view,params,tabContent){var nextUpPromise,self=this;categorysyncbuttons.init(view),self.preRender=function(){nextUpPromise=getNextUpPromise()},self.renderTab=function(){Dashboard.showLoadingMsg(),loadNextUp(view,nextUpPromise)}}});
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user