trim polymer usage
This commit is contained in:
parent
1fd4ea266c
commit
8ff44e06a3
9 changed files with 78 additions and 84 deletions
|
@ -1,21 +1,21 @@
|
|||
define(['scripts/livetvcomponents', 'emby-button'], function () {
|
||||
define(['scripts/livetvcomponents', 'emby-button', 'listViewStyle'], function () {
|
||||
|
||||
function getRecordingGroupHtml(group) {
|
||||
|
||||
var html = '';
|
||||
|
||||
html += '<paper-icon-item>';
|
||||
html += '<div class="listItem">';
|
||||
|
||||
html += '<button type="button" is="emby-button" class="fab mini autoSize blue" item-icon><i class="md-icon">live_tv</i></button>';
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
html += '<div class="listItemBody">';
|
||||
html += '<a href="livetvrecordinglist.html?groupid=' + group.Id + '" class="clearLink">';
|
||||
|
||||
html += '<div>';
|
||||
html += group.Name;
|
||||
html += '</div>';
|
||||
|
||||
html += '<div secondary>';
|
||||
html += '<div class="secondary">';
|
||||
if (group.RecordingCount == 1) {
|
||||
html += Globalize.translate('ValueItemCount', group.RecordingCount);
|
||||
} else {
|
||||
|
@ -24,8 +24,8 @@
|
|||
html += '</div>';
|
||||
|
||||
html += '</a>';
|
||||
html += '</paper-item-body>';
|
||||
html += '</paper-icon-item>';
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
@ -177,9 +177,7 @@
|
|||
|
||||
}).then(function (result) {
|
||||
|
||||
require(['paper-item-body', 'paper-icon-item'], function () {
|
||||
renderRecordingGroups(context, result.Items);
|
||||
});
|
||||
renderRecordingGroups(context, result.Items);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -161,8 +161,6 @@
|
|||
case 2:
|
||||
document.body.classList.remove('autoScrollY');
|
||||
depends.push('scripts/livetvchannels');
|
||||
depends.push('paper-icon-item');
|
||||
depends.push('paper-item-body');
|
||||
break;
|
||||
case 3:
|
||||
document.body.classList.remove('autoScrollY');
|
||||
|
|
|
@ -290,8 +290,6 @@
|
|||
break;
|
||||
case 4:
|
||||
depends.push('scripts/songs');
|
||||
depends.push('paper-icon-item');
|
||||
depends.push('paper-item-body');
|
||||
break;
|
||||
case 5:
|
||||
depends.push('scripts/musicgenres');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define([], function () {
|
||||
define(['listViewStyle'], function () {
|
||||
|
||||
function renderViews(page, user, result) {
|
||||
|
||||
|
@ -68,17 +68,17 @@
|
|||
|
||||
var currentHtml = '';
|
||||
|
||||
currentHtml += '<paper-icon-item class="viewItem" data-viewid="' + view.Id + '">';
|
||||
currentHtml += '<div class="listItem viewItem" data-viewid="' + view.Id + '">';
|
||||
|
||||
currentHtml += '<paper-fab mini style="background-color:#444;" icon="folder-open" item-icon></paper-fab>';
|
||||
currentHtml += '<button type="button" is="emby-button" class="fab mini autoSize" item-icon><i class="md-icon">folder_open</i></button>';
|
||||
|
||||
currentHtml += '<paper-item-body>';
|
||||
currentHtml += '<div class="listItemBody">';
|
||||
|
||||
currentHtml += '<div>';
|
||||
currentHtml += view.Name;
|
||||
currentHtml += '</div>';
|
||||
|
||||
currentHtml += '</paper-item-body>';
|
||||
currentHtml += '</div>';
|
||||
|
||||
if (index > 0) {
|
||||
|
||||
|
@ -90,7 +90,7 @@
|
|||
}
|
||||
|
||||
|
||||
currentHtml += '</paper-icon-item>';
|
||||
currentHtml += '</div>';
|
||||
|
||||
index++;
|
||||
return currentHtml;
|
||||
|
|
|
@ -25,11 +25,11 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += '<paper-icon-item class="serverItem" data-id="' + server.Id + '">';
|
||||
html += '<div class="listItem serverItem" data-id="' + server.Id + '">';
|
||||
|
||||
html += '<paper-fab mini class="blue lnkServer" icon="wifi" item-icon></paper-fab>';
|
||||
html += '<button type="button" is="emby-button" class="fab mini autoSize blue lnkServer" item-icon><i class="md-icon">wifi</i></button>';
|
||||
|
||||
html += '<paper-item-body class="lnkServer" two-line>';
|
||||
html += '<div class="listItemBody lnkServer">';
|
||||
html += '<a class="clearLink" href="#">';
|
||||
|
||||
html += '<div>';
|
||||
|
@ -41,13 +41,13 @@
|
|||
//html += '</div>';
|
||||
|
||||
html += '</a>';
|
||||
html += '</paper-item-body>';
|
||||
html += '</div>';
|
||||
|
||||
if (server.Id) {
|
||||
html += '<button is="paper-icon-button-light" class="btnServerMenu autoSize"><i class="md-icon">' + AppInfo.moreIcon.replace('-', '_') + '</i></button>';
|
||||
}
|
||||
|
||||
html += '</paper-icon-item>';
|
||||
html += '</div>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
@ -268,21 +268,21 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += '<paper-icon-item class="inviteItem" data-id="' + invite.Id + '">';
|
||||
html += '<div class="listItem inviteItem" data-id="' + invite.Id + '">';
|
||||
|
||||
html += '<paper-fab mini class="blue lnkServer" icon="wifi" item-icon></paper-fab>';
|
||||
html += '<button type="button" is="emby-button" class="fab mini autoSize blue lnkServer" item-icon><i class="md-icon">wifi</i></button>';
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
html += '<div class="listItemBody">';
|
||||
|
||||
html += '<div>';
|
||||
html += invite.Name;
|
||||
html += '</div>';
|
||||
|
||||
html += '</paper-item-body>';
|
||||
html += '</div>';
|
||||
|
||||
html += '<button is="paper-icon-button-light" class="btnInviteMenu autoSize"><i class="md-icon">' + AppInfo.moreIcon.replace('-','_') + '</i></button>';
|
||||
|
||||
html += '</paper-icon-item>';
|
||||
html += '</div>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
|
|
@ -2760,7 +2760,7 @@ var AppInfo = {};
|
|||
|
||||
defineRoute({
|
||||
path: '/mypreferenceshome.html',
|
||||
dependencies: ['emby-checkbox', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'emby-button'],
|
||||
dependencies: ['emby-checkbox', 'emby-button'],
|
||||
autoFocus: false,
|
||||
transition: 'fade',
|
||||
controller: 'scripts/mypreferenceshome'
|
||||
|
@ -2912,7 +2912,7 @@ var AppInfo = {};
|
|||
|
||||
defineRoute({
|
||||
path: '/selectserver.html',
|
||||
dependencies: ['paper-fab', 'paper-item-body', 'paper-icon-item', 'emby-button'],
|
||||
dependencies: ['listViewStyle', 'emby-button'],
|
||||
autoFocus: false,
|
||||
anonymous: true,
|
||||
controller: 'scripts/selectserver'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue