mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix typos
This commit is contained in:
parent
dd9a18aca3
commit
721eef2806
@ -16,53 +16,55 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready( function(error) {
|
$(document).ready(function (error) {
|
||||||
performTranslation();
|
performTranslation();
|
||||||
getReleases(function (callback){
|
getReleases(function (callback) {
|
||||||
|
|
||||||
if(callback)
|
if (callback) {
|
||||||
{
|
|
||||||
var matches = 0;
|
var matches = 0;
|
||||||
for (var key in window.gitHubVersionList)
|
for (var key in window.gitHubVersionList) {
|
||||||
{
|
|
||||||
|
|
||||||
if(window.gitHubVersionList[key].name == null || window.gitHubVersionList[key].tag_name.includes('rc') || (window.serverConfig.general.watchedVersionBranch == "Stable" && (window.gitHubVersionList[key].tag_name.includes('beta') || window.gitHubVersionList[key].tag_name.includes('alpha'))) || (window.serverConfig.general.watchedVersionBranch == "Beta" && window.gitHubVersionList[key].tag_name.includes('alpha')))
|
if (window.gitHubVersionList[key].name == null ||
|
||||||
{
|
window.gitHubVersionList[key].tag_name.includes('rc') ||
|
||||||
|
(window.serverConfig.general.watchedVersionBranch == "Stable" &&
|
||||||
|
(window.gitHubVersionList[key].tag_name.includes('beta') ||
|
||||||
|
window.gitHubVersionList[key].tag_name.includes('alpha')
|
||||||
|
)
|
||||||
|
) ||
|
||||||
|
(window.serverConfig.general.watchedVersionBranch == "Beta"
|
||||||
|
&& window.gitHubVersionList[key].tag_name.includes('Alpha')
|
||||||
|
)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var danger;
|
var danger;
|
||||||
var type;
|
var type;
|
||||||
|
|
||||||
if (window.gitHubVersionList[key].tag_name.includes('beta'))
|
if (window.gitHubVersionList[key].tag_name.includes('beta')) {
|
||||||
{
|
|
||||||
danger = 'warning';
|
danger = 'warning';
|
||||||
type = 'Beta';
|
type = 'Beta';
|
||||||
}
|
}
|
||||||
else if (window.gitHubVersionList[key].tag_name.includes('alpha'))
|
else if (window.gitHubVersionList[key].tag_name.includes('alpha')) {
|
||||||
{
|
|
||||||
danger = 'danger';
|
danger = 'danger';
|
||||||
type = 'Alpha';
|
type = 'Alpha';
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
danger = 'default';
|
danger = 'default';
|
||||||
type = 'Stable';
|
type = 'Stable';
|
||||||
}
|
}
|
||||||
|
|
||||||
matches++;
|
matches++;
|
||||||
$('#versionlist').append('<div class="col-lg-6"><div class="panel panel-'+ danger +'"><div class="panel-heading"><i class="fa fa-television fa-fw"></i>Hyperion V'+window.gitHubVersionList[key].tag_name+'</div><div class="panel-body"><p><span style="font-weight:bold;">'+$.i18n('update_label_type') + '</span> ' + type + '</p><p><span id="desc" style="font-weight:bold;">'+$.i18n('update_label_description')+'</span> '+DOMPurify.sanitize(marked.parse(window.gitHubVersionList[key].body))+'</p><hr><a class="btn btn-primary" href="'+ window.gitHubVersionList[key].html_url +'" target="_blank"><i class="fa fa-list fa-fw"></i><span style="font-weight:bold;">'+$.i18n('update_button_changelog')+'</span></a><button type="button" class="btn btn-warning pull-right" ' + (window.gitHubVersionList[key].tag_name == window.currentVersion ? "disabled":"disabled") + '><i class="fa fa-download fa-fw"></i>'+$.i18n('update_button_install')+'</button></div></div></div>');
|
$('#versionlist').append('<div class="col-lg-6"><div class="panel panel-' + danger + '"><div class="panel-heading"><i class="fa fa-television fa-fw"></i>Hyperion V' + window.gitHubVersionList[key].tag_name + '</div><div class="panel-body"><p><span style="font-weight:bold;">' + $.i18n('update_label_type') + '</span> ' + type + '</p><p><span id="desc" style="font-weight:bold;">' + $.i18n('update_label_description') + '</span> ' + DOMPurify.sanitize(marked.parse(window.gitHubVersionList[key].body)) + '</p><hr><a class="btn btn-primary" href="' + window.gitHubVersionList[key].html_url + '" target="_blank"><i class="fa fa-list fa-fw"></i><span style="font-weight:bold;">' + $.i18n('update_button_changelog') + '</span></a><button type="button" class="btn btn-warning pull-right" ' + (window.gitHubVersionList[key].tag_name == window.currentVersion ? "disabled" : "disabled") + '><i class="fa fa-download fa-fw"></i>' + $.i18n('update_button_install') + '</button></div></div></div>');
|
||||||
}
|
}
|
||||||
$('#update_currver').append($.i18n('update_versreminder', currentVersion));
|
$('#update_currver').append($.i18n('update_versreminder', currentVersion));
|
||||||
|
|
||||||
if (matches == 0)
|
if (matches == 0)
|
||||||
$('#versionlist').append($.i18n('update_no_updates_for_branch'));
|
$('#versionlist').append($.i18n('update_no_updates_for_branch'));
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
$('#versionlist').append($.i18n('update_error_getting_versions'));
|
$('#versionlist').append($.i18n('update_error_getting_versions'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
removeOverlay();
|
removeOverlay();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -360,7 +360,7 @@ int LedDevice::rewriteLEDs()
|
|||||||
|
|
||||||
int LedDevice::writeBlack(int numberOfWrites)
|
int LedDevice::writeBlack(int numberOfWrites)
|
||||||
{
|
{
|
||||||
Debug(_log, "Set LED strip to black to switch of LEDs");
|
Debug(_log, "Set LED strip to black to switch LEDs off");
|
||||||
return writeColor(ColorRgb::BLACK, numberOfWrites);
|
return writeColor(ColorRgb::BLACK, numberOfWrites);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1301,7 +1301,7 @@ QJsonObject LedDevicePhilipsHueBridge::discover(const QJsonObject& /*params*/)
|
|||||||
);
|
);
|
||||||
#else
|
#else
|
||||||
QString discoveryMethod("ssdp");
|
QString discoveryMethod("ssdp");
|
||||||
deviceList = discover();
|
deviceList = discoverSsdp();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
devicesDiscovered.insert("discoveryMethod", discoveryMethod);
|
devicesDiscovered.insert("discoveryMethod", discoveryMethod);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user