2017-02-08 14:36:28 +01:00
|
|
|
<div class="container-fluid">
|
2020-02-16 13:55:38 +01:00
|
|
|
<h3 class="page-header"><i class="fa fa-info-circle fa-fw"></i><span data-i18n="main_menu_about_token">About
|
|
|
|
Hyperion</span></h3>
|
2017-02-08 14:36:28 +01:00
|
|
|
<div class="row">
|
2019-07-13 10:09:02 +02:00
|
|
|
<div class="col-lg-12">
|
2017-02-08 14:36:28 +01:00
|
|
|
<div id="about_cont"></div>
|
2020-02-16 13:55:38 +01:00
|
|
|
|
2017-02-08 14:36:28 +01:00
|
|
|
</div>
|
2020-02-16 13:55:38 +01:00
|
|
|
<div id="danger_act" class="col-lg-6" style="display:none;padding-top:20px">
|
2017-03-24 10:17:36 +01:00
|
|
|
<h4>You found a hidden service menu!</h4>
|
|
|
|
<button id="reset_cache" class="btn btn-danger">Reset Browser Cache</button>
|
|
|
|
<button id="hyp_restart" class="btn btn-danger">Force Hyperion Restart</button>
|
|
|
|
</div>
|
2017-02-08 14:36:28 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
performTranslation();
|
2017-03-18 00:05:04 +01:00
|
|
|
|
|
|
|
var si = sysInfo.hyperion;
|
2020-10-26 01:21:09 +01:00
|
|
|
var libs = { "Bootstrap 3": "https://getbootstrap.com/", "JQuery": "https://jquery.com/", "Bootstrap Colorpicker": "https://itsjavi.com/bootstrap-colorpicker/", "Bootstrap Toggle": "https://www.bootstraptoggle.com/", "Bootstrap Select": "https://developer.snapappointments.com/bootstrap-select/", "JSON-Editor": "https://www.jeremydorn.com/json-editor", "jQuery.i18n": "https://github.com/wikimedia/jquery.i18n", "metisMenu": "https://mm.onokumus.com/index.html", "download.js": "https://github.com/rndme/download", "gijgo": "https://gijgo.com/" };
|
2017-02-08 14:36:28 +01:00
|
|
|
var libh = "";
|
|
|
|
var lang = [];
|
2017-03-24 10:17:36 +01:00
|
|
|
var dcount = 0;
|
2019-06-20 19:27:22 +02:00
|
|
|
|
2020-02-16 13:55:38 +01:00
|
|
|
for (var i = 0; i < availLang.length; i++)
|
|
|
|
lang.push($.i18n('general_speech_' + availLang[i]));
|
2020-08-03 09:52:26 +02:00
|
|
|
lang.sort();
|
2020-02-16 13:55:38 +01:00
|
|
|
for (key in libs)
|
|
|
|
libh += '<a href="' + libs[key] + '" target="_blank">' + key + '</a>, ';
|
|
|
|
libh += "<br/>" + $.i18n("about_credits");
|
|
|
|
lang = lang.toString().replace(/,/g, ", ");
|
|
|
|
|
2021-04-25 17:22:59 +02:00
|
|
|
// Github Issue bugreport infos
|
|
|
|
var sysInfo = getSystemInfo();
|
|
|
|
var info = '<pre>' + sysInfo + '</pre>';
|
2019-06-20 19:27:22 +02:00
|
|
|
|
2020-02-16 13:55:38 +01:00
|
|
|
var fc = ['<span id="danger_trig">' + $.i18n("about_version") + '<span>', $.i18n("about_build"), $.i18n("about_builddate"), $.i18n("about_translations"), $.i18n("about_resources", $.i18n("general_webui_title")), "System info (Github Issue)", $.i18n("about_3rd_party_licenses")];
|
|
|
|
var sc = [currentVersion, si.build, si.time, '(' + availLang.length + ')<p>' + lang + '</p><p><a href="https://github.com/hyperion-project/hyperion.ng" target="_blank">' + $.i18n("about_contribute") + '</a></p>', libh, info, '<pre><div id="3rdpartylicenses" style="overflow:scroll;max-height:400px"></div></pre>'];
|
2017-02-08 14:36:28 +01:00
|
|
|
|
2020-02-16 13:55:38 +01:00
|
|
|
createTable("", "atb", "about_cont");
|
|
|
|
for (var i = 0; i < fc.length; i++)
|
|
|
|
$('.atb').append(createTableRow([fc[i], sc[i]], "atb", false));
|
2019-06-20 19:27:22 +02:00
|
|
|
|
2020-02-16 13:55:38 +01:00
|
|
|
$('#danger_trig').off().on('click', function () {
|
2017-03-24 10:17:36 +01:00
|
|
|
dcount++;
|
2020-02-16 13:55:38 +01:00
|
|
|
if (dcount > 2)
|
2017-03-24 10:17:36 +01:00
|
|
|
$('#danger_act').toggle(true);
|
|
|
|
});
|
2019-06-20 19:27:22 +02:00
|
|
|
|
2020-02-16 13:55:38 +01:00
|
|
|
$('#reset_cache').off().on('click', function () {
|
2017-03-24 10:17:36 +01:00
|
|
|
localStorage.clear();
|
|
|
|
});
|
2019-06-20 19:27:22 +02:00
|
|
|
|
2020-02-16 13:55:38 +01:00
|
|
|
$('#hyp_restart').off().on('click', function () {
|
2017-03-24 10:17:36 +01:00
|
|
|
initRestart();
|
|
|
|
});
|
2019-07-13 10:09:02 +02:00
|
|
|
|
2019-08-15 23:48:13 +02:00
|
|
|
var url = 'https://raw.githubusercontent.com/hyperion-project/hyperion.ng/master/3RD_PARTY_LICENSES';
|
|
|
|
fetch(url)
|
2020-02-16 13:55:38 +01:00
|
|
|
.then(function (response) {
|
|
|
|
if (!response.ok) {
|
|
|
|
$("#3rdpartylicenses").html('<a href="' + url + '">' + $.i18n("about_3rd_party_licenses_error") + '</a>');
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
response.text().then(function (text) {
|
|
|
|
$("#3rdpartylicenses").html('<code>' + text + '</code>');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.catch(function (rejected) {
|
2019-08-15 23:48:13 +02:00
|
|
|
$("#3rdpartylicenses").html('<a href="' + url + '">' + $.i18n("about_3rd_party_licenses_error") + '</a>');
|
2020-02-16 13:55:38 +01:00
|
|
|
});
|
2019-08-15 23:48:13 +02:00
|
|
|
|
2019-07-13 10:09:02 +02:00
|
|
|
removeOverlay();
|
2020-05-12 19:56:06 +02:00
|
|
|
</script>
|