mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add more device options
This commit is contained in:
parent
9ae5d347c1
commit
029b0d464f
6 changed files with 76 additions and 6 deletions
|
@ -50,8 +50,7 @@
|
||||||
<li>
|
<li>
|
||||||
<label for="txtDownloadSizeLimit">${LabelChannelDownloadSizeLimit}</label>
|
<label for="txtDownloadSizeLimit">${LabelChannelDownloadSizeLimit}</label>
|
||||||
<input type="number" id="txtDownloadSizeLimit" pattern="[0-9]*" min="0.1" step=".1" data-mini="true" />
|
<input type="number" id="txtDownloadSizeLimit" pattern="[0-9]*" min="0.1" step=".1" data-mini="true" />
|
||||||
<div class="fieldDescription">${LabelChannelDownloadSizeLimitHelp}</div>
|
<div class="fieldDescription">${LabelChannelDownloadSizeLimitHelpText}</div>
|
||||||
<div class="fieldDescription"><a href="supporter.html">${ButtonLearnMore}</a></div>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtDownloadAge">${LabelChannelDownloadAge}</label>
|
<label for="txtDownloadAge">${LabelChannelDownloadAge}</label>
|
||||||
|
|
50
dashboard-ui/device.html
Normal file
50
dashboard-ui/device.html
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>${TitleDevices}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="devicePage" data-role="page" class="page type-interior devicesPage">
|
||||||
|
|
||||||
|
<div data-role="content">
|
||||||
|
<div class="content-primary">
|
||||||
|
|
||||||
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
|
<a href="devices.html" data-role="button" class="ui-btn-active">${TabDevices}</a>
|
||||||
|
<a href="devicesupload.html" data-role="button">${TabCameraUpload}</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="readOnlyContent">
|
||||||
|
|
||||||
|
<form class="deviceForm">
|
||||||
|
|
||||||
|
<ul data-role="listview" class="ulForm">
|
||||||
|
<li>
|
||||||
|
<label for="txtUploadPath">${LabelCameraUploadPath}</label>
|
||||||
|
<div style="display: inline-block; width: 92%;">
|
||||||
|
<input type="text" id="txtUploadPath" data-mini="true" />
|
||||||
|
</div>
|
||||||
|
<button id="btnSelectUploadPath" type="button" data-icon="search" data-iconpos="notext" data-inline="true">${ButtonSelectDirectory}</button>
|
||||||
|
<div class="fieldDescription">${LabelCameraUploadPathHelp}</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul><br />
|
||||||
|
<ul data-role="listview" class="ulForm">
|
||||||
|
<li>
|
||||||
|
<button type="submit" data-theme="b" data-icon="check">
|
||||||
|
${ButtonSave}
|
||||||
|
</button>
|
||||||
|
<button type="button" onclick="Dashboard.navigate('devices.html');" data-icon="delete">
|
||||||
|
${ButtonCancel}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -31,12 +31,17 @@
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<label for="txtUploadPath">${LabelUploadPath}</label>
|
<label for="txtUploadPath">${LabelCameraUploadPath}</label>
|
||||||
<div style="display: inline-block; width: 92%;">
|
<div style="display: inline-block; width: 92%;">
|
||||||
<input type="text" id="txtUploadPath" data-mini="true" />
|
<input type="text" id="txtUploadPath" data-mini="true" />
|
||||||
</div>
|
</div>
|
||||||
<button id="btnSelectUploadPath" type="button" data-icon="search" data-iconpos="notext" data-inline="true">${ButtonSelectDirectory}</button>
|
<button id="btnSelectUploadPath" type="button" data-icon="search" data-iconpos="notext" data-inline="true">${ButtonSelectDirectory}</button>
|
||||||
<div class="fieldDescription">${LabelUploadPathHelp}</div>
|
<div class="fieldDescription">${LabelCameraUploadPathHelp}</div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="chkSubfolder">${LabelCreateCameraUploadSubfolder}</label>
|
||||||
|
<input type="checkbox" id="chkSubfolder" data-mini="true" />
|
||||||
|
<div class="fieldDescription">${LabelCreateCameraUploadSubfolderHelp}</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul><br />
|
</ul><br />
|
||||||
|
@ -45,7 +50,7 @@
|
||||||
<button type="submit" data-theme="b" data-icon="check">
|
<button type="submit" data-theme="b" data-icon="check">
|
||||||
${ButtonSave}
|
${ButtonSave}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" onclick="Dashboard.navigate('dashboard.html');" data-icon="delete">
|
<button type="button" onclick="Dashboard.navigate('devices.html');" data-icon="delete">
|
||||||
${ButtonCancel}
|
${ButtonCancel}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
1
dashboard-ui/scripts/device.js
Normal file
1
dashboard-ui/scripts/device.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -34,12 +34,18 @@
|
||||||
var deviceHtml = '';
|
var deviceHtml = '';
|
||||||
deviceHtml += '<li>';
|
deviceHtml += '<li>';
|
||||||
|
|
||||||
deviceHtml += '<a href="#">';
|
deviceHtml += '<a href="device.html?id=' + d.Id + '">';
|
||||||
|
|
||||||
deviceHtml += '<h3>';
|
deviceHtml += '<h3>';
|
||||||
deviceHtml += d.Name;
|
deviceHtml += d.Name;
|
||||||
deviceHtml += '</h3>';
|
deviceHtml += '</h3>';
|
||||||
|
|
||||||
|
if (d.AppName) {
|
||||||
|
deviceHtml += '<p style="color:blue;">';
|
||||||
|
deviceHtml += d.AppName;
|
||||||
|
deviceHtml += '</p>';
|
||||||
|
}
|
||||||
|
|
||||||
if (d.LastUserName) {
|
if (d.LastUserName) {
|
||||||
deviceHtml += '<p style="color:green;">';
|
deviceHtml += '<p style="color:green;">';
|
||||||
deviceHtml += Globalize.translate('DeviceLastUsedByUserName', d.LastUserName);
|
deviceHtml += Globalize.translate('DeviceLastUsedByUserName', d.LastUserName);
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
|
|
||||||
$('#txtUploadPath', page).val(config.CameraUploadPath || '');
|
$('#txtUploadPath', page).val(config.CameraUploadPath || '');
|
||||||
|
|
||||||
|
$('#chkSubfolder', page).checked(config.EnableCameraUploadSubfolders).checkboxradio('refresh');
|
||||||
|
|
||||||
loadDeviceList(page, devices, config);
|
loadDeviceList(page, devices, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +36,11 @@
|
||||||
|
|
||||||
deviceHtml += '<label for="' + id + '">';
|
deviceHtml += '<label for="' + id + '">';
|
||||||
deviceHtml += d.Name;
|
deviceHtml += d.Name;
|
||||||
|
|
||||||
|
if (d.AppName) {
|
||||||
|
deviceHtml += '<br/><span>' + d.AppName + '</span>';
|
||||||
|
}
|
||||||
|
|
||||||
deviceHtml += '</label>';
|
deviceHtml += '</label>';
|
||||||
|
|
||||||
var isChecked = config.EnabledCameraUploadDevices.indexOf(d.Id) != -1;
|
var isChecked = config.EnabledCameraUploadDevices.indexOf(d.Id) != -1;
|
||||||
|
@ -88,6 +95,8 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
config.EnableCameraUploadSubfolders = $('#chkSubfolder', page).checked();
|
||||||
|
|
||||||
ApiClient.updateNamedConfiguration("devices", config).done(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateNamedConfiguration("devices", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue