1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

updated nuget

This commit is contained in:
Luke Pulverenti 2014-07-27 18:01:29 -04:00
parent 2384a7e088
commit b89707f7b9
14 changed files with 260 additions and 60 deletions

View file

@ -10,6 +10,119 @@
return target ? target.Name : 'Unknown Device';
}
function getSyncJobHtml(job) {
var html = '';
html += "<div class='card card-1-1'>";
html += '<div class="cardBox visualCardBox">';
html += '<div class="cardScalable">';
html += '<div class="cardPadder"></div>';
html += '<div class="cardContent">';
var imgUrl;
if (job.PrimaryImageItemId) {
imgUrl = ApiClient.getScaledImageUrl(job.PrimaryImageItemId, {
type: "Primary",
width: 400,
tag: job.PrimaryImageTag
});
}
if (imgUrl) {
html += '<div class="cardImage coveredCardImage lazy" data-src="' + imgUrl + '">';
html += "</div>";
}
if (job.Status == 'Completed') {
html += '<div class="playedIndicator"><div class="ui-icon-check ui-btn-icon-notext"></div></div>';
}
else if (job.Status == 'Queued') {
html += '<div class="playedIndicator" style="background-color:#38c;"><div class="ui-icon-clock ui-btn-icon-notext"></div></div>';
}
else if (job.Status == 'Transcoding' || job.Status == 'Transferring') {
html += '<div class="playedIndicator"><div class="ui-icon-refresh ui-btn-icon-notext"></div></div>';
}
else if (job.Status == 'Cancelled') {
html += '<div class="playedIndicator" style="background-color:#FF6A00;"><div class="ui-icon-minus ui-btn-icon-notext"></div></div>';
}
else if (job.Status == 'TranscodingFailed') {
html += '<div class="playedIndicator" style="background-color:#cc0000;"><div class="ui-icon-delete ui-btn-icon-notext"></div></div>';
}
// cardContent
html += "</div>";
// cardScalable
html += "</div>";
html += '<div class="cardFooter">';
var textLines = [];
if (job.ParentName) {
textLines.push(job.ParentName);
}
textLines.push(job.Name);
if (job.ItemCount == 1) {
textLines.push(job.ItemCount + ' item');
} else {
textLines.push(job.ItemCount + ' items');
}
if (!job.ParentName) {
textLines.push('&nbsp;');
}
for (var i = 0, length = textLines.length; i < length; i++) {
html += "<div class='cardText'>";
html += textLines[i];
html += "</div>";
}
//if (!plugin.isExternal) {
// html += "<div class='cardText packageReviewText'>";
// html += plugin.price > 0 ? "$" + plugin.price.toFixed(2) : Globalize.translate('LabelFree');
// html += RatingHelpers.getStoreRatingHtml(plugin.avgRating, plugin.id, plugin.name);
// html += "<span class='storeReviewCount'>";
// html += " " + Globalize.translate('LabelNumberReviews').replace("{0}", plugin.totalRatings);
// html += "</span>";
// html += "</div>";
//}
//var installedPlugin = plugin.isApp ? null : installedPlugins.filter(function (ip) {
// return ip.Name == plugin.name;
//})[0];
//html += "<div class='cardText'>";
//if (installedPlugin) {
// html += Globalize.translate('LabelVersionInstalled').replace("{0}", installedPlugin.Version);
//} else {
// html += '&nbsp;';
//}
//html += "</div>";
// cardFooter
html += "</div>";
// cardBox
html += "</div>";
// card
html += "</div>";
return html;
}
function loadData(page, jobs, targets) {
var html = '';
@ -25,6 +138,8 @@
lastTargetName = targetName;
}
html += getSyncJobHtml(job);
}
$('.syncActivity', page).html(html).trigger('create');

View file

@ -75,7 +75,8 @@
$('#txtIconMaxHeight', page).val(profile.MaxIconHeight || '');
$('#chkIgnoreTranscodeByteRangeRequests', page).checked(profile.IgnoreTranscodeByteRangeRequests).checkboxradio('refresh');
$('#txtMaxAllowedBitrate', page).val(profile.MaxBitrate || '');
$('#txtMaxAllowedBitrate', page).val(profile.MaxStreamingBitrate || '');
$('#txtMaxStaticBitrate', page).val(profile.MaxStaticBitrate || '');
$('#chkRequiresPlainFolders', page).checked(profile.RequiresPlainFolders).checkboxradio('refresh');
$('#chkRequiresPlainVideoItems', page).checked(profile.RequiresPlainVideoItems).checkboxradio('refresh');
@ -346,6 +347,8 @@
$('#txtTranscodingContainer', popup).val(transcodingProfile.Container || '');
$('#txtTranscodingAudioCodec', popup).val(transcodingProfile.AudioCodec || '');
$('#txtTranscodingVideoCodec', popup).val(transcodingProfile.VideoCodec || '');
$('#selectTranscodingProtocol', popup).val(transcodingProfile.Protocol || 'Http').selectmenu('refresh');
$('#selectTranscodingContext', popup).val(transcodingProfile.Context || 'Streaming').selectmenu('refresh');
$('#txtTranscodingVideoProfile', popup).val(transcodingProfile.VideoProfile || '');
$('#chkEnableMpegtsM2TsMode', popup).checked(transcodingProfile.EnableMpegtsM2TsMode || false).checkboxradio('refresh');
@ -371,6 +374,8 @@
currentSubProfile.Container = $('#txtTranscodingContainer', page).val();
currentSubProfile.AudioCodec = $('#txtTranscodingAudioCodec', page).val();
currentSubProfile.VideoCodec = $('#txtTranscodingVideoCodec', page).val();
currentSubProfile.Protocol = $('#selectTranscodingProtocol', page).val();
currentSubProfile.Context = $('#selectTranscodingContext', page).val();
currentSubProfile.VideoProfile = $('#txtTranscodingVideoProfile', page).val();
currentSubProfile.EnableMpegtsM2TsMode = $('#chkEnableMpegtsM2TsMode', page).checked();
@ -777,7 +782,8 @@
profile.RequiresPlainVideoItems = $('#chkRequiresPlainVideoItems', page).checked();
profile.IgnoreTranscodeByteRangeRequests = $('#chkIgnoreTranscodeByteRangeRequests', page).checked();
profile.MaxBitrate = $('#txtMaxAllowedBitrate', page).val();
profile.MaxStreamingBitrate = $('#txtMaxAllowedBitrate', page).val();
profile.MaxStaticBitrate = $('#LabelMaxStaticBitrateHelp', page).val();
profile.ProtocolInfo = $('#txtProtocolInfo', page).val();
profile.XDlnaCap = $('#txtXDlnaCap', page).val();
@ -819,10 +825,12 @@
if (this.value == 'Video') {
$('#fldTranscodingVideoCodec', page).show();
$('#fldTranscodingProtocol', page).show();
$('#fldEnableMpegtsM2TsMode', page).show();
$('#fldVideoProfile', page).show();
} else {
$('#fldTranscodingVideoCodec', page).hide();
$('#fldTranscodingProtocol', page).hide();
$('#fldEnableMpegtsM2TsMode', page).hide();
$('#fldVideoProfile', page).hide();
}

View file

@ -416,16 +416,17 @@
var select = $('#selectOfficialRating', page);
populateRatings(result, select);
populateRatings(result, select, item.OfficialRating);
select.val(item.OfficialRating || "").selectmenu('refresh');
select = $('#selectCustomRating', page);
populateRatings(result, select);
populateRatings(result, select, item.CustomRating);
select.val(item.CustomRating || "").selectmenu('refresh');
});
var selectStatus = $('#selectStatus', page);
populateStatus(selectStatus);
selectStatus.val(item.Status || "").selectmenu('refresh');
@ -652,7 +653,7 @@
populatePeople(page, currentItem.People);
}
function populateRatings(allParentalRatings, select) {
function populateRatings(allParentalRatings, select, currentValue) {
var html = "";
@ -661,11 +662,21 @@
var ratings = [];
var i, length, rating;
var currentValueFound = false;
for (i = 0, length = allParentalRatings.length; i < length; i++) {
rating = allParentalRatings[i];
ratings.push({ Name: rating.Name, Value: rating.Name });
if (rating.Name == currentValue) {
currentValueFound = true;
}
}
if (currentValue && !currentValueFound) {
ratings.push({ Name: currentValue, Value: currentValue });
}
for (i = 0, length = ratings.length; i < length; i++) {

View file

@ -11,7 +11,7 @@
return {
getDefaultPageSize: function () {
var saved = store.getItem('pagesize_');
var saved = store.getItem('pagesize__');
if (saved) {
return parseInt(saved);
@ -1522,7 +1522,7 @@
if (limit && options.updatePageSizeSetting !== false) {
try {
store.setItem('pagesize_', limit);
store.setItem('pagesize__', limit);
} catch (e) {
}
@ -1598,7 +1598,7 @@
if (query.Limit && updatePageSizeSetting !== false) {
try {
store.setItem('pagesize_', query.Limit);
store.setItem('pagesize__', query.Limit);
} catch (e) {
}

View file

@ -9,11 +9,19 @@
//html += '</a>';
html += '<button type="button" data-role="none" title="Menu" class="headerButton dashboardMenuButton barsMenuButton headerButtonLeft">';
html += '<img src="css/images/menu.png" />';
html += '<div class="barMenuInner">';
html += '<span class="icon-bar"></span>';
html += '<span class="icon-bar"></span>';
html += '<span class="icon-bar"></span>';
html += '</div>';
html += '</button>';
html += '<button type="button" data-role="none" title="Menu" class="headerButton libraryMenuButton barsMenuButton headerButtonLeft">';
html += '<img src="css/images/menu.png" />';
html += '<div class="barMenuInner">';
html += '<span class="icon-bar"></span>';
html += '<span class="icon-bar"></span>';
html += '<span class="icon-bar"></span>';
html += '</div>';
html += '</button>';
html += '<div class="libraryMenuButtonText headerButton"><span>MEDIA</span><span class="mediaBrowserAccent">BROWSER</span></div>';

View file

@ -12,13 +12,13 @@
$('.noLiveTvServices', page).show();
}
$('#selectGuideDays', page).val(config.LiveTvOptions.GuideDays || '').selectmenu('refresh');
$('#selectGuideDays', page).val(config.GuideDays || '').selectmenu('refresh');
var serviceOptions = liveTvInfo.Services.map(function (s) {
return '<option value="' + s.Name + '">' + s.Name + '</option>';
});
$('#selectActiveService', page).html(serviceOptions).val(config.LiveTvOptions.ActiveService || '').selectmenu('refresh');
$('#selectActiveService', page).html(serviceOptions).val(config.ActiveService || '').selectmenu('refresh');
Dashboard.hideLoadingMsg();
}
@ -29,7 +29,7 @@
var page = this;
var promise1 = ApiClient.getServerConfiguration();
var promise1 = ApiClient.getNamedConfiguration("livetv");
var promise2 = ApiClient.getLiveTvInfo();
@ -49,13 +49,13 @@
var form = this;
ApiClient.getServerConfiguration().done(function (config) {
ApiClient.getNamedConfiguration("livetv").done(function (config) {
config.LiveTvOptions.GuideDays = $('#selectGuideDays', form).val() || null;
config.LiveTvOptions.ActiveService = $('#selectActiveService', form).val() || null;
config.GuideDays = $('#selectGuideDays', form).val() || null;
config.ActiveService = $('#selectActiveService', form).val() || null;
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
ApiClient.updateNamedConfiguration("livetv", config).done(Dashboard.processServerConfigurationUpdateResult);
});
// Disable default form submission