mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve m3u channel list parsing
This commit is contained in:
parent
835ed1dfae
commit
dcb44815ed
9 changed files with 59 additions and 109 deletions
|
@ -200,65 +200,6 @@
|
|||
return html;
|
||||
}
|
||||
|
||||
function getStats(result) {
|
||||
var html = '';
|
||||
html += '<div class="detailSection" >';
|
||||
//html += '<div class="detailSectionHeader">If you like Africa Fever II, check these out...</div>';
|
||||
html += '<div class="detailSectionContent">';
|
||||
result.Groups.map(function (group) {
|
||||
//html += '<div class="card transparentCard detailPageSquareCard" style="vertical-align: top;">';
|
||||
//html += '<div class="card transparentCard horizontalBackdropCard" style="vertical-align: top;">';
|
||||
//html += '<div class="card transparentCard backdropCard" style="vertical-align: top;">';
|
||||
html += '<div class="card transparentCard bannerCard" style="vertical-align: top;">';
|
||||
//html += '<div class="card transparentCard cardImage" style="vertical-align: top;">';
|
||||
html += '<div class="visualCardBox">';
|
||||
html += '<div class="cardBox " >';
|
||||
|
||||
html += '<div class="detailSection">'
|
||||
html += '<div class="detailSectionHeader">';
|
||||
html += '<span>' + group.Header + ' ' + '</span>';
|
||||
html += '</div>';
|
||||
|
||||
html += '<div class="detailSectionContent">';
|
||||
html += '<div class="childrenItemsContainer itemsContainer" style="text-align: left;">';
|
||||
html += '<ul class="itemsListview ui-listview" >';
|
||||
|
||||
var l = group.Items.length - 1;
|
||||
for (var j = 0; j < topItems ; j++) {
|
||||
|
||||
html += '<li class="ui-li listItem ui-li-has-alt ui-first-child">';
|
||||
if (j <= l) {
|
||||
var rItem = group.Items[j];
|
||||
html += '<a class="item ui-btn"';
|
||||
if (rItem.Id > "")
|
||||
html += ' href="itemdetails.html?id=' + rItem.Id + '"';
|
||||
html += '>' + rItem.Name + ' ' + '</a>';
|
||||
html += '<a title="" class="listviewMenuButton ui-btn ui-btn-inline">' + rItem.Value + ' ' + '</a>';
|
||||
}
|
||||
else
|
||||
html += '<a class="item ui-btn">' + ' ' + '</a>';
|
||||
|
||||
html += '</li>';
|
||||
|
||||
}
|
||||
html += '</ul>';
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
});
|
||||
|
||||
|
||||
html += '</div>';
|
||||
//html += '</div>';
|
||||
html += '</div>';
|
||||
return html;
|
||||
}
|
||||
|
||||
function ExportReport(page, e) {
|
||||
|
||||
query.UserId = Dashboard.getCurrentUserId();
|
||||
|
@ -302,7 +243,7 @@
|
|||
window.scrollTo(0, 0);
|
||||
var html = '';
|
||||
|
||||
if (query.ReportView === "ReportData" || query.ReportView === "ReportStatistics") {
|
||||
if (query.ReportView === "ReportData") {
|
||||
$('#selectIncludeItemTypesBox', page).show();
|
||||
$('#tabFilter', page).show();
|
||||
}
|
||||
|
@ -380,25 +321,6 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
||||
$('.listTopPaging', page).html(pagingHtml).trigger('create');
|
||||
// page.querySelector('.listTopPaging').innerHTML = pagingHtml;
|
||||
|
||||
$('.listTopPaging', page).show();
|
||||
$('.listBottomPaging', page).hide();
|
||||
|
||||
$('.btnNextPage', page).hide();
|
||||
$('.btnPreviousPage', page).hide();
|
||||
|
||||
$('#btnReportExport', page).hide();
|
||||
$('#selectPageSizeBox', page).hide();
|
||||
$('#selectReportGroupingBox', page).hide();
|
||||
$('#grpReportsColumns', page).hide();
|
||||
|
||||
html += getStats(result);
|
||||
$('.reporContainer', page).html(html).trigger('create');
|
||||
}
|
||||
|
||||
$('#GroupStatus', page).hide();
|
||||
$('#GroupAirDays', page).hide();
|
||||
|
@ -429,11 +351,6 @@
|
|||
query.HasQueryLimit = true;
|
||||
url = ApiClient.getUrl("Reports/Items", query);
|
||||
break;
|
||||
case "ReportStatistics":
|
||||
query.TopItems = topItems;
|
||||
query.HasQueryLimit = false;
|
||||
url = ApiClient.getUrl("Reports/Statistics", query);
|
||||
break;
|
||||
case "ReportActivities":
|
||||
query.HasQueryLimit = true;
|
||||
url = ApiClient.getUrl("Reports/Activities", query);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue