first commit
This commit is contained in:
1
home/favorites.js
Normal file
1
home/favorites.js
Normal file
File diff suppressed because one or more lines are too long
10
home/home.html
Normal file
10
home/home.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="view flex flex-direction-column withTabs">
|
||||
|
||||
<div class="tabContent tabContent-positioned flex flex-grow" data-index="0" data-swapnode="sectionstab">
|
||||
|
||||
</div>
|
||||
<div class="tabContent tabContent-positioned flex flex-grow" data-index="1" data-swapnode="sectionstab">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
1
home/home.js
Normal file
1
home/home.js
Normal file
@@ -0,0 +1 @@
|
||||
define(["exports","./../modules/tabbedview/tabbedview.js","./../modules/common/globalize.js","./../modules/maintabsmanager.js","./../modules/layoutmanager.js","./../modules/common/usersettings/usersettings.js","./../modules/emby-elements/emby-scroller/emby-scroller.js","./../modules/emby-elements/emby-button/emby-button.js"],function(_exports,_tabbedview,_globalize,_maintabsmanager,_layoutmanager,_usersettings,_embyScroller,_embyButton){function HomeView(view,params){_tabbedview.default.apply(this,arguments),this.enableBackMenu=!0}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(HomeView.prototype,_tabbedview.default.prototype),HomeView.prototype.getTabs=function(){return[{name:_globalize.default.translate("Home"),id:"home"},{name:_globalize.default.translate("Favorites"),id:"favorites"}]},HomeView.prototype.getAutoBackdropItemTypes=function(){return["Movie","Series","Game","Book"]},HomeView.prototype.setTitle=function(){},HomeView.prototype.supportsHorizontalTabScroll=function(){return!0},HomeView.prototype.tabScrollDirection=function(){return this.supportsHorizontalTabScroll()&&_layoutmanager.default.tv&&"horizontal"===_usersettings.default.tvHome()?"x":"y"},HomeView.prototype.onPause=function(){_tabbedview.default.prototype.onPause.call(this)},HomeView.prototype.destroy=function(){_tabbedview.default.prototype.destroy.apply(this,arguments)},HomeView.prototype.loadTabController=function(id){switch(id){case"home":return Emby.importModule("./home/hometab.js");case"favorites":return Emby.importModule("./home/favorites.js");default:throw new Error("tab not found: "+id)}},HomeView.prototype.onWindowInputCommand=function(e){"home"===e.detail.command?(_maintabsmanager.default.selectedTabIndex(0),e.preventDefault()):_tabbedview.default.prototype.onWindowInputCommand.apply(this,arguments)};_exports.default=HomeView});
|
||||
1
home/hometab.js
Normal file
1
home/hometab.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user