mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
stub out channel mapping
This commit is contained in:
parent
36a0eb43e4
commit
a2dbad16f4
21 changed files with 160 additions and 105 deletions
|
@ -257,9 +257,9 @@
|
|||
});
|
||||
|
||||
if (result.TotalRecordCount) {
|
||||
$('.btnClearLog', page).show();
|
||||
page.querySelector('.btnClearLog').classList.remove('hide');
|
||||
} else {
|
||||
$('.btnClearLog', page).hide();
|
||||
page.querySelector('.btnClearLog').classList.add('hide');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -312,7 +312,7 @@
|
|||
$('.btnOrganize', page).taskButton({
|
||||
mode: 'on',
|
||||
progressElem: page.querySelector('.organizeProgress'),
|
||||
panel: $('.organizeTaskPanel', page),
|
||||
panel: page.querySelector('.organizeTaskPanel'),
|
||||
taskKey: 'AutoOrganize'
|
||||
});
|
||||
|
||||
|
|
|
@ -1313,29 +1313,24 @@
|
|||
|
||||
})(jQuery, document, window);
|
||||
|
||||
(function () {
|
||||
pageClassOn('pageshow', "type-interior", function () {
|
||||
|
||||
$(document).on('pageshow', ".type-interior", function () {
|
||||
var page = this;
|
||||
|
||||
var page = this;
|
||||
Dashboard.getPluginSecurityInfo().then(function (pluginSecurityInfo) {
|
||||
|
||||
Dashboard.getPluginSecurityInfo().then(function (pluginSecurityInfo) {
|
||||
if (!page.querySelector('.customSupporterPromotion')) {
|
||||
|
||||
if (!$('.customSupporterPromotion', page).length) {
|
||||
$('.supporterPromotion', page).remove();
|
||||
$('.supporterPromotion', page).remove();
|
||||
|
||||
if (!pluginSecurityInfo.IsMBSupporter && AppInfo.enableSupporterMembership) {
|
||||
if (!pluginSecurityInfo.IsMBSupporter && AppInfo.enableSupporterMembership) {
|
||||
|
||||
var html = '<div class="supporterPromotion"><a class="clearLink" href="http://emby.media/premiere" target="_blank"><button is="emby-button" type="button" class="raised block" style="text-transform:none;background-color:#52B54B;color:#fff;"><div>' + Globalize.translate('HeaderSupportTheTeam') + '</div><div style="font-weight:normal;margin-top:5px;">' + Globalize.translate('TextEnjoyBonusFeatures') + '</div></button></a></div>';
|
||||
var html = '<div class="supporterPromotionContainer"><div class="supporterPromotion"><a class="clearLink" href="http://emby.media/premiere" target="_blank"><button is="emby-button" type="button" class="raised block" style="text-transform:none;background-color:#52B54B;color:#fff;"><div>' + Globalize.translate('HeaderSupportTheTeam') + '</div><div style="font-weight:normal;margin-top:5px;">' + Globalize.translate('TextEnjoyBonusFeatures') + '</div></button></a></div></div>';
|
||||
|
||||
$('.content-primary', page).append(html);
|
||||
}
|
||||
page.querySelector('.content-primary').insertAdjacentHTML('afterbegin', html);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
});
|
||||
});
|
|
@ -260,7 +260,8 @@
|
|||
});
|
||||
|
||||
self.alphaPicker = new alphaPicker({
|
||||
element: alphaPickerElement
|
||||
element: alphaPickerElement,
|
||||
valueChangeEvent: 'click'
|
||||
});
|
||||
|
||||
$(view).on('click', '.mediaItem', onListItemClick);
|
||||
|
|
|
@ -316,7 +316,7 @@
|
|||
|
||||
html += '</a>';
|
||||
html += '</paper-item-body>';
|
||||
html += '<button type="button" is="paper-icon-button-light" class="btnDelete" data-id="' + provider.Id + '" title="' + Globalize.translate('ButtonDelete') + '"><iron-icon icon="delete"></iron-icon></button>';
|
||||
html += '<button type="button" is="paper-icon-button-light" class="btnOptions" data-id="' + provider.Id + '"><iron-icon icon="more-vert"></iron-icon></button>';
|
||||
html += '</paper-icon-item>';
|
||||
}
|
||||
|
||||
|
@ -325,11 +325,49 @@
|
|||
|
||||
var elem = $('.providerList', page).html(html);
|
||||
|
||||
$('.btnDelete', elem).on('click', function () {
|
||||
$('.btnOptions', elem).on('click', function () {
|
||||
|
||||
var id = this.getAttribute('data-id');
|
||||
|
||||
deleteProvider(page, id);
|
||||
showProviderOptions(page, id, this);
|
||||
});
|
||||
}
|
||||
|
||||
function showProviderOptions(page, id, button) {
|
||||
|
||||
var items = [];
|
||||
|
||||
items.push({
|
||||
name: Globalize.translate('ButtonDelete'),
|
||||
id: 'delete'
|
||||
});
|
||||
|
||||
items.push({
|
||||
name: Globalize.translate('MapChannels'),
|
||||
id: 'map'
|
||||
});
|
||||
|
||||
require(['actionsheet'], function (actionsheet) {
|
||||
|
||||
actionsheet.show({
|
||||
items: items,
|
||||
positionTo: button
|
||||
|
||||
}).then(function (id) {
|
||||
|
||||
switch (id) {
|
||||
|
||||
case 'delete':
|
||||
deleteProvider(page, id);
|
||||
break;
|
||||
case 'map':
|
||||
alert('coming soon');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -285,7 +285,8 @@
|
|||
});
|
||||
|
||||
self.alphaPicker = new alphaPicker({
|
||||
element: alphaPickerElement
|
||||
element: alphaPickerElement,
|
||||
valueChangeEvent: 'click'
|
||||
});
|
||||
|
||||
context.querySelector('.itemsContainer').addEventListener('needsrefresh', function () {
|
||||
|
|
|
@ -174,7 +174,8 @@
|
|||
});
|
||||
|
||||
self.alphaPicker = new alphaPicker({
|
||||
element: alphaPickerElement
|
||||
element: alphaPickerElement,
|
||||
valueChangeEvent: 'click'
|
||||
});
|
||||
|
||||
tabContent.querySelector('.itemsContainer').addEventListener('needsrefresh', function () {
|
||||
|
|
|
@ -169,7 +169,8 @@
|
|||
});
|
||||
|
||||
self.alphaPicker = new alphaPicker({
|
||||
element: alphaPickerElement
|
||||
element: alphaPickerElement,
|
||||
valueChangeEvent: 'click'
|
||||
});
|
||||
|
||||
self.renderTab = function () {
|
||||
|
|
|
@ -222,7 +222,8 @@
|
|||
});
|
||||
|
||||
self.alphaPicker = new alphaPicker({
|
||||
element: alphaPickerElement
|
||||
element: alphaPickerElement,
|
||||
valueChangeEvent: 'click'
|
||||
});
|
||||
|
||||
self.renderTab = function () {
|
||||
|
|
|
@ -169,7 +169,8 @@
|
|||
});
|
||||
|
||||
self.alphaPicker = new alphaPicker({
|
||||
element: alphaPickerElement
|
||||
element: alphaPickerElement,
|
||||
valueChangeEvent: 'click'
|
||||
});
|
||||
|
||||
self.renderTab = function () {
|
||||
|
|
|
@ -205,7 +205,7 @@
|
|||
|
||||
var html = '';
|
||||
html += '<div>';
|
||||
html += '<h1>Try Emby Theater<button is="paper-icon-button-light" style="margin-left:1em;" onclick="jQuery(this.parentNode.parentNode).remove();"><iron-icon icon="close"></iron-icon></button></h1>';
|
||||
html += '<h1>Try Emby Theater<button is="paper-icon-button-light" style="margin-left:1em;" onclick="this.parentNode.parentNode.remove();"><iron-icon icon="close"></iron-icon></button></h1>';
|
||||
|
||||
var nameText = AppInfo.isNativeApp ? 'Emby Theater' : '<a href="https://emby.media/download" target="_blank">Emby Theater</a>';
|
||||
html += '<p>A beautiful app for your TV and large screen tablet. ' + nameText + ' runs on Windows, Xbox One, Google Chrome, FireFox, Microsoft Edge and Opera.</p>';
|
||||
|
@ -223,7 +223,7 @@
|
|||
|
||||
var html = '';
|
||||
html += '<div>';
|
||||
html += '<h1>Try Emby Premiere<button is="paper-icon-button-light" style="margin-left:1em;" onclick="jQuery(this.parentNode.parentNode).remove();"><iron-icon icon="close"></iron-icon></button></h1>';
|
||||
html += '<h1>Try Emby Premiere<button is="paper-icon-button-light" style="margin-left:1em;" onclick="this.parentNode.parentNode.remove();"><iron-icon icon="close"></iron-icon></button></h1>';
|
||||
|
||||
var learnMoreText = AppInfo.isNativeApp ? '' : '<a href="https://emby.media/premiere" target="_blank">Learn more</a>';
|
||||
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
if (options.panel) {
|
||||
if (task) {
|
||||
$(options.panel).show();
|
||||
options.panel.classList.remove('hide');
|
||||
} else {
|
||||
$(options.panel).hide();
|
||||
options.panel.classList.add('hide');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,7 @@
|
|||
}
|
||||
|
||||
if (options.panel) {
|
||||
$(options.panel).hide();
|
||||
options.panel.classList.add('hide');
|
||||
}
|
||||
|
||||
if (options.mode == 'off') {
|
||||
|
|
|
@ -202,7 +202,8 @@
|
|||
});
|
||||
|
||||
self.alphaPicker = new alphaPicker({
|
||||
element: alphaPickerElement
|
||||
element: alphaPickerElement,
|
||||
valueChangeEvent: 'click'
|
||||
});
|
||||
|
||||
tabContent.querySelector('.btnFilter').addEventListener('click', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue