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

update lists

This commit is contained in:
Luke Pulverenti 2016-02-07 16:16:02 -05:00
parent dd1b33021d
commit 1121dd8ae4
22 changed files with 192 additions and 761 deletions

View file

@ -501,7 +501,7 @@
$('#chkEstimateContentLength', popup).checked(transcodingProfile.EstimateContentLength || false).checkboxradio('refresh');
$('#chkReportByteRangeRequests', popup).checked(transcodingProfile.TranscodeSeekInfo == 'Bytes').checkboxradio('refresh');
$('.radioTabButton:first', popup).checked(true).checkboxradio('refresh').trigger('change');
$('.radioTabButton:first', popup).trigger('click');
popup.popup('open');
}
@ -617,7 +617,7 @@
$('#selectContainerProfileType', popup).val(containerProfile.Type || 'Video').trigger('change');
$('#txtContainerProfileContainer', popup).val(containerProfile.Container || '');
$('.radioTabButton:first', popup).checked(true).checkboxradio('refresh').trigger('change');
$('.radioTabButton:first', popup).trigger('click');
popup.popup('open');
}
@ -719,7 +719,7 @@
$('#selectCodecProfileType', popup).val(codecProfile.Type || 'Video').trigger('change');
$('#txtCodecProfileCodec', popup).val(codecProfile.Codec || '');
$('.radioTabButton:first', popup).checked(true).checkboxradio('refresh').trigger('change');
$('.radioTabButton:first', popup).trigger('click');
popup.popup('open');
}
@ -827,7 +827,7 @@
$('#txtResponseProfileAudioCodec', popup).val(responseProfile.AudioCodec || '');
$('#txtResponseProfileVideoCodec', popup).val(responseProfile.VideoCodec || '');
$('.radioTabButton:first', popup).checked(true).checkboxradio('refresh').trigger('change');
$('.radioTabButton:first', popup).trigger('click');
popup.popup('open');
}
@ -944,9 +944,12 @@
var page = this;
$('.radioTabButton', page).on('change', function () {
$('.radioTabButton', page).on('click', function () {
var elem = $('.' + this.value, page);
$(this).siblings().removeClass('ui-btn-active');
$(this).addClass('ui-btn-active');
var elem = $('.' + this.getAttribute('data-value'), page);
elem.siblings('.tabContent').hide();
elem.show();
@ -1070,8 +1073,7 @@
var page = this;
$('.radioTabButton', page).checked(false).checkboxradio('refresh');
$('#radioInfo', page).checked(true).checkboxradio('refresh').trigger('change');
$('#radioInfo', page).trigger('click');
loadProfile(page);
});

View file

@ -4,47 +4,60 @@
var page = this;
var apiClient = ApiClient;
apiClient.getJSON(apiClient.getUrl('System/Logs')).then(function (logs) {
require(['paper-fab', 'paper-progress', 'paper-item-body', 'paper-icon-item'], function () {
var html = '';
var apiClient = ApiClient;
html += '<ul data-role="listview" data-inset="true">';
apiClient.getJSON(apiClient.getUrl('System/Logs')).then(function (logs) {
html += logs.map(function (log) {
var html = '';
var logUrl = apiClient.getUrl('System/Logs/Log', {
name: log.Name
});
html += '<div class="paperList">';
logUrl += "&api_key=" + apiClient.accessToken();
html += logs.map(function (log) {
var logHtml = '<li><a href="' + logUrl + '" target="_blank">';
var logUrl = apiClient.getUrl('System/Logs/Log', {
name: log.Name
});
logHtml += '<h3>';
logHtml += log.Name;
logHtml += '</h3>';
logUrl += "&api_key=" + apiClient.accessToken();
var date = parseISO8601Date(log.DateModified, { toLocal: true });
var logHtml = '';
logHtml += '<paper-icon-item>';
var text = date.toLocaleDateString();
logHtml += '<a item-icon class="clearLink" href="' + logUrl + '" target="_blank">';
logHtml += '<paper-fab mini icon="schedule" class="blue" item-icon></paper-fab>';
logHtml += "</a>";
text += ' ' + LibraryBrowser.getDisplayTime(date);
logHtml += '<paper-item-body two-line>';
logHtml += '<a class="clearLink" href="' + logUrl + '" target="_blank">';
logHtml += '<p>' + text + '</p>';
logHtml += "<div>" + log.Name + "</div>";
logHtml += '</li>';
var date = parseISO8601Date(log.DateModified, { toLocal: true });
return logHtml;
var text = date.toLocaleDateString();
})
.join('');
text += ' ' + LibraryBrowser.getDisplayTime(date);
html += '</ul>';
logHtml += '<div secondary>' + text + '</div>';
$('.serverLogs', page).html(html).trigger('create');
logHtml += "</a>";
logHtml += '</paper-item-body>';
logHtml += '</paper-icon-item>';
return logHtml;
})
.join('');
html += '</div>';
$('.serverLogs', page).html(html).trigger('create');
});
});
});

View file

@ -134,10 +134,16 @@
if (showNoPluginsMessage) {
html += '<div style="padding:5px;">';
html += '<p>' + Globalize.translate('MessageNoPluginsInstalled') + '</p>';
html += '<p><a href="plugincatalog.html">';
html += Globalize.translate('BrowsePluginCatalogMessage');
html += '</a></p>';
if (AppInfo.enableAppStorePolicy) {
html += '<p>' + Globalize.translate('MessageNoPluginsDueToAppStore') + '</p>';
} else {
html += '<p>' + Globalize.translate('MessageNoPluginsInstalled') + '</p>';
html += '<p><a href="plugincatalog.html">';
html += Globalize.translate('BrowsePluginCatalogMessage');
html += '</a></p>';
}
html += '</div>';
}

View file

@ -1639,7 +1639,15 @@ var AppInfo = {};
function initializeApiClient(apiClient) {
apiClient.enableAppStorePolicy = AppInfo.enableAppStorePolicy;
if (AppInfo.enableAppStorePolicy) {
apiClient.getAvailablePlugins = function() {
return Promise.resolve([]);
};
apiClient.getInstalledPlugins = function () {
return Promise.resolve([]);
};
}
apiClient.getDefaultImageQuality = Dashboard.getDefaultImageQuality;
apiClient.normalizeImageOptions = Dashboard.normalizeImageOptions;
@ -1973,7 +1981,7 @@ var AppInfo = {};
define("jqmlistview", ['css!thirdparty/jquerymobile-1.4.5/jqm.listview.css']);
define("jqmcontrolgroup", ["thirdparty/jquerymobile-1.4.5/jqm.controlgroup", 'css!thirdparty/jquerymobile-1.4.5/jqm.controlgroup.css']);
define("jqmcontrolgroup", ['css!thirdparty/jquerymobile-1.4.5/jqm.controlgroup.css']);
define("jqmcollapsible", ["jqmicons", "thirdparty/jquerymobile-1.4.5/jqm.collapsible", 'css!thirdparty/jquerymobile-1.4.5/jqm.collapsible.css']);

View file

@ -78,7 +78,7 @@
return new Promise(function (resolve, reject) {
require(['paper-checkbox', 'paper-input'], function () {
require(['paper-checkbox', 'paper-input', 'jqmcollapsible'], function () {
renderFormInternal(options);
resolve();
});