Appease Sonar

This commit is contained in:
Silversthorn 2024-08-14 23:03:00 +02:00
parent da04ee1459
commit 4430b8794c
6 changed files with 6 additions and 87 deletions

View File

@ -247,7 +247,7 @@ body {
} }
.gray { .gray {
color: gray !important; color: var(--gray) !important;
} }
.disk-usage { .disk-usage {

View File

@ -42,84 +42,6 @@ button>i.refresh-class {
overflow-y: auto; overflow-y: auto;
} }
.menu-btn {
font-size: 0.9em;
padding: 2px 10px;
}
.menu {
padding-top: 10px;
z-index: 200;
margin-top: 4px;
position: absolute;
background-color: var(--card-banner-bg);
}
.menu-option {
padding: 6px 20px 6px;
color: white;
}
#overlay {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index: 100;
}
/* Remove default bullets */
.tree-view,
.tree-nested {
list-style-type: none;
margin: 0;
padding: 0;
margin-left: 10px;
}
/* Style the items */
.tree-item,
.files-tree-title {
cursor: pointer;
user-select: none;
/* Prevent text selection */
}
/* Create the caret/arrow with a unicode, and style it */
.tree-caret .fa-folder {
display: inline-block;
}
.tree-caret .fa-folder-open {
display: none;
}
/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.tree-caret-down .fa-folder {
display: none;
}
.tree-caret-down .fa-folder-open {
display: inline-block;
}
/* Hide the nested list */
.tree-nested {
display: none;
}
#op_logo {
position: relative;
top: 50%;
transform: translateY(-50%);
}
.scroll {
max-height: 12em;
overflow-y: auto;
}
#overlay { #overlay {
position: absolute; position: absolute;
top: 0px; top: 0px;

View File

@ -46,7 +46,6 @@
{% for theme in data['themes'] %} {% for theme in data['themes'] %}
<link rel="stylesheet" href="/static/assets/css/themes/{{ theme }}.css"> <link rel="stylesheet" href="/static/assets/css/themes/{{ theme }}.css">
{% end %} {% end %}
<!--<link rel="stylesheet" href="/static/assets/css/dark/style.css">-->
<link rel="stylesheet" href="/static/assets/css/base-style.css"> <link rel="stylesheet" href="/static/assets/css/base-style.css">
<link rel="stylesheet" href="/static/assets/css/crafty.css"> <link rel="stylesheet" href="/static/assets/css/crafty.css">
<!-- End Layout styles --> <!-- End Layout styles -->

View File

@ -32,7 +32,6 @@
{% for theme in data['themes'] %} {% for theme in data['themes'] %}
<link rel="stylesheet" href="/static/assets/css/themes/{{ theme }}.css"> <link rel="stylesheet" href="/static/assets/css/themes/{{ theme }}.css">
{% end %} {% end %}
<!--<link rel="stylesheet" href="/static/assets/css/dark/style.css">-->
<link rel="stylesheet" href="/static/assets/css/base-style.css"> <link rel="stylesheet" href="/static/assets/css/base-style.css">
<link rel="stylesheet" href="/static/assets/css/crafty.css"> <link rel="stylesheet" href="/static/assets/css/crafty.css">
<!-- End Layout styles --> <!-- End Layout styles -->

View File

@ -31,7 +31,7 @@
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-hover" id="audit_table" width="100%"> <table class="table table-hover w-100" id="audit_table">
<thead> <thead>
<tr class="rounded"> <tr class="rounded">
<th>Time</th> <th>Time</th>
@ -44,8 +44,7 @@
<tbody> <tbody>
<tr> <tr>
<td colspan="5" id="image-div" class="text-center"> <!-- Center image within table --> <td colspan="5" id="image-div" class="text-center"> <!-- Center image within table -->
<img class="img-center" id="logo-animate" src="../static/assets/images/crafty-logo-square-1024.png" <img class="img-center" id="logo-animate" src="../static/assets/images/crafty-logo-square-1024.png" alt="Crafty Logo, Crafty is loading" width="20%"><br><br>{{ translate('datatables',
alt="Crafty Logo, Crafty is loading" width="20%"><br><br>{{ translate('datatables',
'loadingRecords', data['lang'])}} 'loadingRecords', data['lang'])}}
</td> </td>
</tr> </tr>

View File

@ -18,7 +18,7 @@
<div class="content-wrapper col-md login-modal d-none d-sm-block bg-dropdown"> <div class="content-wrapper col-md login-modal d-none d-sm-block bg-dropdown">
<div class="row text-center"> <div class="row text-center">
<div class="col-12"> <div class="col-12">
<img src="/static/assets/images/logo_long.png" class="w-25"> <img src="/static/assets/images/logo_long.png" class="w-25" alt="Crafty Logo">
</div> </div>
</div> </div>
<hr /> <hr />
@ -94,7 +94,7 @@
<!-- View for Small screen --> <!-- View for Small screen -->
<div class="row justify-content-center align-items-sm-center"> <div class="row justify-content-center align-items-sm-center">
<div class="content-wrapper login-modal d-sm-none d-block bg-dropdown"> <div class="content-wrapper login-modal d-sm-none d-block bg-dropdown">
<img src="/static/assets/images/logo_long.png" class="w-100"> <img src="/static/assets/images/logo_long.png" class="w-100" alt="Crafty Logo">
<hr /> <hr />
<div class="accordion" id="accordionServers"> <div class="accordion" id="accordionServers">
{% for server in data['servers'] %} {% for server in data['servers'] %}
@ -210,7 +210,7 @@
m_motd = `<img class="w-25 mr-3" src="/static/assets/images/pack.png" alt="icon" /> `; m_motd = `<img class="w-25 mr-3" src="/static/assets/images/pack.png" alt="icon" /> `;
} }
desc_motd = `<span id="input_motd_` + server.id + `" class="input_motd align-middle">` + server.desc + `</span> <br />`; var desc_motd = `<span id="input_motd_` + server.id + `" class="input_motd align-middle">` + server.desc + `</span> <br />`;
m_motd = m_motd + `<div class="media-body"><span id="m_input_motd_` + server.id + `" class="input_motd align-middle">` + server.desc + `</span></div>`; m_motd = m_motd + `<div class="media-body"><span id="m_input_motd_` + server.id + `" class="input_motd align-middle">` + server.desc + `</span></div>`;
motd = `<div class="row"><div class="col-auto">` + img_motd + `</div><div class="col-auto text-left align-items-center align-content-center">` + desc_motd + `</div></div>`; motd = `<div class="row"><div class="col-auto">` + img_motd + `</div><div class="col-auto text-left align-items-center align-content-center">` + desc_motd + `</div></div>`;