2023-11-03 20:41:23 +00:00
|
|
|
{% extends ../base.html %}
|
|
|
|
|
|
|
|
{% block meta %}
|
|
|
|
{% end %}
|
|
|
|
|
|
|
|
{% block title %}Crafty Controller Starting{% end %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="content-wrapper">
|
2023-11-30 02:21:28 +00:00
|
|
|
<div class="card-header justify-content-between align-items-center" style="border: none;">
|
2023-11-03 20:41:23 +00:00
|
|
|
<div id="image-div" style="width: 100%;">
|
|
|
|
<img class="img-center" id="logo-animate" src="../static/assets/images/crafty-logo-square-1024.png"
|
2023-12-07 11:29:18 +00:00
|
|
|
alt="Crafty Logo, Crafty is loading" width="20%" style="clear: both;">
|
2023-11-03 20:41:23 +00:00
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</br>
|
|
|
|
<div id="text-div" style="width: 100%; text-align: center;">
|
2023-11-30 17:14:09 +00:00
|
|
|
<h2 id="status" style="display: block;" data-init="{{ translate('startup', 'serverInit', data['lang']) }}"
|
|
|
|
data-server="{{ translate('startup', 'server', data['lang']) }}"
|
|
|
|
data-internet="{{ translate('startup', 'internet', data['lang']) }}"
|
|
|
|
data-tasks="{{ translate('startup', 'tasks', data['lang']) }}"
|
|
|
|
data-internals="{{ translate('startup', 'internals', data['lang']) }}"
|
2024-05-09 21:36:56 +00:00
|
|
|
data-almost="{{ translate('startup', 'almost', data['lang']) }}"
|
|
|
|
data-cache="{{ translate('startup', 'cache', data['lang'])}}">
|
2023-11-30 17:14:09 +00:00
|
|
|
{{ translate('startup', 'starting', data['lang']) }}</h2>
|
2023-11-03 20:41:23 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.img-center {
|
|
|
|
display: block;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
function rotateImage(degree) {
|
|
|
|
$('#logo-animate').animate({ transform: degree }, {
|
|
|
|
step: function (now, fx) {
|
|
|
|
$(this).css({
|
|
|
|
'-webkit-transform': 'rotate(' + now + 'deg)',
|
|
|
|
'-moz-transform': 'rotate(' + now + 'deg)',
|
|
|
|
'transform': 'rotate(' + now + 'deg)'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
setTimeout(function () {
|
|
|
|
rotateImage(360);
|
|
|
|
}, 2000);
|
|
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
rotateImage(360);
|
|
|
|
}, 2000);
|
|
|
|
if (webSocket) {
|
|
|
|
webSocket.on('update', function (data) {
|
2023-11-30 17:14:09 +00:00
|
|
|
if ("server" in data) {
|
|
|
|
$("#status").html(`${$("#status").data(data.section)} ${data.server}...`);
|
|
|
|
} else {
|
|
|
|
$("#status").html($("#status").data(data.section));
|
|
|
|
}
|
2023-11-03 20:41:23 +00:00
|
|
|
});
|
|
|
|
webSocket.on('send_start_reload', function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
location.href = '/panel/dashboard'
|
|
|
|
}, 5000);
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
2024-05-09 21:36:56 +00:00
|
|
|
{% end %}
|