mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add path help messages
This commit is contained in:
parent
2f69a6f07e
commit
aa2e4f3f67
8 changed files with 188 additions and 116 deletions
|
@ -25,14 +25,14 @@
|
|||
"web-component-tester": "*",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/iron-meta",
|
||||
"homepage": "https://github.com/polymerelements/iron-meta",
|
||||
"_release": "1.0.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.3",
|
||||
"commit": "91529259262b0d8f33fed44bc3fd47aedf35cb04"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-meta.git",
|
||||
"_source": "git://github.com/polymerelements/iron-meta.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-meta"
|
||||
"_originalSource": "polymerelements/iron-meta"
|
||||
}
|
|
@ -21,6 +21,15 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="itemTabs homeTabs" style="display: none;">
|
||||
<div class="libraryViewNav scopedLibraryViewNav">
|
||||
<a href="index.html" class="lnkHomeHome"><iron-icon icon="home"></iron-icon>${TabHome}</a>
|
||||
<a href="index.html?tab=1" class="lnkHomeNextUp"><iron-icon icon="navigate-next"></iron-icon>${TabNextUp}</a>
|
||||
<a href="index.html?tab=2" class="lnkHomeFavorites"><iron-icon icon="favorite"></iron-icon>${TabFavorites}</a>
|
||||
<a href="index.html?tab=3" class="lnkHomeUpcoming"><iron-icon icon="schedule"></iron-icon>${TabUpcoming}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="movieTabs" class="itemTabs" style="display: none;">
|
||||
<div class="libraryViewNav scopedLibraryViewNav">
|
||||
<a href="moviesrecommended.html"><iron-icon icon="info"></iron-icon>${TabSuggestions}</a>
|
||||
|
|
|
@ -70,11 +70,24 @@
|
|||
});
|
||||
}
|
||||
|
||||
window.DirectoryBrowser = function (page) {
|
||||
var systemInfo;
|
||||
function getSystemInfo() {
|
||||
|
||||
var self = this;
|
||||
var deferred = DeferredBuilder.Deferred();
|
||||
|
||||
self.show = function (options) {
|
||||
if (systemInfo) {
|
||||
deferred.resolveWith(null, [systemInfo]);
|
||||
} else {
|
||||
ApiClient.getSystemInfo().done(function (info) {
|
||||
systemInfo = info;
|
||||
deferred.resolveWith(null, [systemInfo]);
|
||||
});
|
||||
}
|
||||
|
||||
return deferred.promise();
|
||||
}
|
||||
|
||||
function show(directoryBrowser, page, options, systemInfo) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
|
@ -109,6 +122,16 @@
|
|||
html += Globalize.translate('MessageDirectoryPickerInstruction')
|
||||
.replace('{0}', '<b>\\\\server</b>')
|
||||
.replace('{1}', '<b>\\\\192.168.1.101</b>');
|
||||
|
||||
if (systemInfo.OperatingSystem.toLowerCase() == 'bsd') {
|
||||
|
||||
html += '<br/>';
|
||||
html += '<br/>';
|
||||
html += Globalize.translate('MessageDirectoryPickerBSDInstruction');
|
||||
html += '<br/>';
|
||||
html += '<a href="http://doc.freenas.org/9.3/freenas_jails.html#add-storage" target="_blank">' + Globalize.translate('ButtonMoreInformation') + '</a>';
|
||||
}
|
||||
|
||||
html += '</p>';
|
||||
|
||||
html += '<div style="margin:20px 0 0;">';
|
||||
|
@ -182,7 +205,17 @@
|
|||
});
|
||||
|
||||
refreshDirectoryBrowser(page, txtCurrentPath.val());
|
||||
}
|
||||
|
||||
window.DirectoryBrowser = function (page) {
|
||||
|
||||
var self = this;
|
||||
|
||||
self.show = function (options) {
|
||||
|
||||
getSystemInfo().done(function (systemInfo) {
|
||||
show(self, page, options, systemInfo);
|
||||
});
|
||||
};
|
||||
|
||||
self.close = function () {
|
||||
|
|
|
@ -81,7 +81,8 @@
|
|||
lazy: true,
|
||||
showDetailsMenu: true,
|
||||
centerText: section.centerText,
|
||||
overlayPlayButton: section.overlayPlayButton
|
||||
overlayPlayButton: section.overlayPlayButton,
|
||||
context: 'home-favorites'
|
||||
});
|
||||
|
||||
html += '</div>';
|
||||
|
|
|
@ -48,7 +48,8 @@
|
|||
showParentTitle: true,
|
||||
lazy: true,
|
||||
cardLayout: true,
|
||||
showDetailsMenu: true
|
||||
showDetailsMenu: true,
|
||||
context: 'home-nextup'
|
||||
});
|
||||
|
||||
} else if (view == 'Thumb') {
|
||||
|
@ -63,7 +64,8 @@
|
|||
preferThumb: true,
|
||||
showDetailsMenu: true,
|
||||
centerText: true,
|
||||
overlayPlayButton: AppInfo.enableAppLayouts
|
||||
overlayPlayButton: AppInfo.enableAppLayouts,
|
||||
context: 'home-nextup'
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -107,7 +107,8 @@
|
|||
preferThumb: true,
|
||||
lazy: true,
|
||||
showDetailsMenu: true,
|
||||
centerText: true
|
||||
centerText: true,
|
||||
context: 'home-upcoming'
|
||||
|
||||
});
|
||||
html += '</div>';
|
||||
|
|
|
@ -197,7 +197,31 @@
|
|||
LibraryMenu.setBackButtonVisible(true);
|
||||
LibraryMenu.setMenuButtonVisible(false);
|
||||
}
|
||||
if (context == 'photos' || context == 'photos-photos') {
|
||||
else if (context == 'home') {
|
||||
elem = $('.homeTabs', page).show();
|
||||
$('a', elem).removeClass('ui-btn-active');
|
||||
$('.lnkHomeHome', page).addClass('ui-btn-active');
|
||||
}
|
||||
else if (context == 'home-nextup') {
|
||||
elem = $('.homeTabs', page).show();
|
||||
$('a', elem).removeClass('ui-btn-active');
|
||||
$('.lnkHomeNextUp', page).addClass('ui-btn-active');
|
||||
}
|
||||
else if (context == 'home-favorites') {
|
||||
elem = $('.homeTabs', page).show();
|
||||
$('a', elem).removeClass('ui-btn-active');
|
||||
$('.lnkHomeFavorites', page).addClass('ui-btn-active');
|
||||
}
|
||||
else if (context == 'home-upcoming') {
|
||||
elem = $('.homeTabs', page).show();
|
||||
$('a', elem).removeClass('ui-btn-active');
|
||||
$('.lnkHomeUpcoming', page).addClass('ui-btn-active');
|
||||
}
|
||||
else if (context == 'home-latest') {
|
||||
elem = $('.homeTabs', page).show();
|
||||
$('a', elem).removeClass('ui-btn-active');
|
||||
}
|
||||
else if (context == 'photos' || context == 'photos-photos') {
|
||||
elem = $('.photoTabs', page).show();
|
||||
$('a', elem).removeClass('ui-btn-active');
|
||||
|
||||
|
|
|
@ -167,7 +167,8 @@
|
|||
cardLayout: cardLayout,
|
||||
showTitle: cardLayout,
|
||||
showYear: cardLayout,
|
||||
showDetailsMenu: true
|
||||
showDetailsMenu: true,
|
||||
context: 'home'
|
||||
});
|
||||
html += '</div>';
|
||||
}
|
||||
|
@ -310,7 +311,8 @@
|
|||
lazy: true,
|
||||
cardLayout: cardLayout,
|
||||
showDetailsMenu: true,
|
||||
overlayPlayButton: true
|
||||
overlayPlayButton: true,
|
||||
context: 'home'
|
||||
});
|
||||
html += '</div>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue