mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-01 05:57:50 +01:00
Code inspection fixes
This commit is contained in:
parent
d16c50669a
commit
1dc8e712d4
@ -22,8 +22,6 @@ import main.java.com.djrapitops.plan.utilities.Condition;
|
||||
*/
|
||||
public class ManageImportCommand extends SubCommand {
|
||||
|
||||
private final Plan plugin;
|
||||
|
||||
/**
|
||||
* Class Constructor.
|
||||
*
|
||||
@ -35,9 +33,6 @@ public class ManageImportCommand extends SubCommand {
|
||||
Permissions.MANAGE.getPermission(),
|
||||
Locale.get(Msg.CMD_USG_MANAGE_IMPORT).toString(),
|
||||
"<plugin>/list [import args]");
|
||||
|
||||
this.plugin = plugin;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -6,7 +6,6 @@ import com.maxmind.geoip2.DatabaseReader;
|
||||
import com.maxmind.geoip2.exception.GeoIp2Exception;
|
||||
import com.maxmind.geoip2.model.CountryResponse;
|
||||
import com.maxmind.geoip2.record.Country;
|
||||
import main.java.com.djrapitops.plan.api.exceptions.PlanEnableException;
|
||||
import main.java.com.djrapitops.plan.utilities.MiscUtils;
|
||||
|
||||
import java.io.File;
|
||||
@ -105,7 +104,7 @@ public class GeolocationCache {
|
||||
/**
|
||||
* Checks if the DB exists, if not, it downloads it
|
||||
*
|
||||
* @throws PlanEnableException when an error at download or saving the DB happens
|
||||
* @throws IOException when an error at download or saving the DB happens
|
||||
*/
|
||||
public static void checkDB() throws IOException {
|
||||
if (geolocationDB.exists()) {
|
||||
|
@ -88,7 +88,7 @@
|
||||
}
|
||||
|
||||
.tab {
|
||||
width: 0%;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
float: left;
|
||||
}
|
||||
@ -148,7 +148,7 @@
|
||||
}
|
||||
|
||||
.plugin p {
|
||||
padding: 5px 0px;
|
||||
padding: 5px 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
11
Plan/src/main/resources/web/css/materialize.css
vendored
11
Plan/src/main/resources/web/css/materialize.css
vendored
@ -209,11 +209,10 @@ form p:last-child {
|
||||
left: -5px;
|
||||
width: 12px;
|
||||
height: 22px;
|
||||
border-top: 2px solid transparent;
|
||||
border-left: 2px solid transparent;
|
||||
border-right: 2px solid #26a69a;
|
||||
border-bottom: 2px solid #26a69a;
|
||||
-webkit-transform: rotate(40deg);
|
||||
border: 2px solid transparent;
|
||||
border-right-color: #26a69a;
|
||||
border-bottom-color: #26a69a;
|
||||
-webkit-transform: rotate(40deg);
|
||||
transform: rotate(40deg);
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
@ -280,7 +279,7 @@ form p:last-child {
|
||||
width: 20px;
|
||||
background-color: transparent;
|
||||
border: 2px solid #5a5a5a;
|
||||
top: 0px;
|
||||
top: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
|
@ -1036,16 +1036,16 @@
|
||||
margin-bottom: -5px; }
|
||||
|
||||
.m-l-0 {
|
||||
margin-left: 0px; }
|
||||
margin-left: 0; }
|
||||
|
||||
.m-t-0 {
|
||||
margin-top: 0px; }
|
||||
margin-top: 0; }
|
||||
|
||||
.m-r-0 {
|
||||
margin-right: 0px; }
|
||||
margin-right: 0; }
|
||||
|
||||
.m-b-0 {
|
||||
margin-bottom: 0px; }
|
||||
margin-bottom: 0; }
|
||||
|
||||
.m-l-5 {
|
||||
margin-left: 5px; }
|
||||
@ -1351,16 +1351,16 @@
|
||||
margin: 0; }
|
||||
|
||||
.p-l-0 {
|
||||
padding-left: 0px; }
|
||||
padding-left: 0; }
|
||||
|
||||
.p-t-0 {
|
||||
padding-top: 0px; }
|
||||
padding-top: 0; }
|
||||
|
||||
.p-r-0 {
|
||||
padding-right: 0px; }
|
||||
padding-right: 0; }
|
||||
|
||||
.p-b-0 {
|
||||
padding-bottom: 0px; }
|
||||
padding-bottom: 0; }
|
||||
|
||||
.p-l-5 {
|
||||
padding-left: 5px; }
|
||||
@ -2480,7 +2480,7 @@ section.content {
|
||||
.btn-circle-lg i {
|
||||
font-size: 26px !important;
|
||||
position: relative !important;
|
||||
left: 0px !important;
|
||||
left: 0 !important;
|
||||
top: 6px !important; }
|
||||
|
||||
.btn:not(.btn-link):not(.btn-circle) {
|
||||
@ -7658,7 +7658,7 @@ fieldset[disabled] .form-control {
|
||||
font-size: 21px;
|
||||
height: 20px;
|
||||
top: -5px;
|
||||
right: 0px; }
|
||||
right: 0; }
|
||||
.sidebar .menu .list .ml-menu li .ml-menu li a {
|
||||
padding-left: 80px; }
|
||||
.sidebar .menu .list .ml-menu li .ml-menu .ml-menu li a {
|
||||
|
@ -18,7 +18,7 @@
|
||||
<i style="padding: 0; color: #fff; font-size: 100px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #348e0f; font-size: 95px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #fff; font-size: 60px;" class="fa fa-circle fa-stack-1x"></i>
|
||||
<div style="margin: 0px; padding: 0px; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<div style="margin: 0; padding: 0; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;" class="fa fa-bar-chart fa-stack-1x"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<i style="padding: 0; color: #fff; font-size: 100px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #348e0f; font-size: 95px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #fff; font-size: 60px;" class="fa fa-circle fa-stack-1x"></i>
|
||||
<div style="margin: 0px; padding: 0px; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<div style="margin: 0; padding: 0; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;" class="fa fa-bar-chart fa-stack-1x"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1029,7 +1029,7 @@
|
||||
}
|
||||
if (j == i) {
|
||||
navButtons[j].parentElement.classList.add('active');
|
||||
continue;
|
||||
|
||||
}
|
||||
}
|
||||
var percent = -100 / navButtons.length;
|
||||
|
@ -23,7 +23,7 @@
|
||||
<i style="padding: 0; color: #fff; font-size: 100px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #348e0f; font-size: 95px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #fff; font-size: 60px;" class="fa fa-circle fa-stack-1x"></i>
|
||||
<div style="margin: 0px; padding: 0px; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<div style="margin: 0; padding: 0; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;"
|
||||
class="fa fa-bar-chart fa-stack-1x"></i>
|
||||
</div>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<i style="padding: 0; color: #fff; font-size: 100px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #348e0f; font-size: 95px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #fff; font-size: 60px;" class="fa fa-circle fa-stack-1x"></i>
|
||||
<div style="margin: 0px; padding: 0px; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<div style="margin: 0; padding: 0; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;"
|
||||
class="fa fa-bar-chart fa-stack-1x"></i>
|
||||
</div>
|
||||
|
@ -173,7 +173,7 @@
|
||||
height: 15px;
|
||||
float: left;
|
||||
cursor: col-resize;
|
||||
margin-left: 0px;
|
||||
margin-left: 0;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-hue i,
|
||||
@ -186,7 +186,7 @@
|
||||
left: 0;
|
||||
width: 1px;
|
||||
border: none;
|
||||
margin-top: 0px;
|
||||
margin-top: 0;
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-hue {
|
||||
background-image: url("../img/bootstrap-colorpicker/hue-horizontal.png");
|
||||
|
@ -45,7 +45,7 @@
|
||||
}
|
||||
.bootstrap-tagsinput .tag [data-role="remove"]:after {
|
||||
content: "x";
|
||||
padding: 0px 2px;
|
||||
padding: 0 2px;
|
||||
}
|
||||
.bootstrap-tagsinput .tag [data-role="remove"]:hover {
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
|
@ -4715,7 +4715,7 @@ small {
|
||||
@media only screen and (max-width: 600px) {
|
||||
#toast-container {
|
||||
min-width: 100%;
|
||||
bottom: 0%;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4881,8 +4881,8 @@ small {
|
||||
border-radius: 0 0 50% 50%;
|
||||
background-color: #323232;
|
||||
z-index: -1;
|
||||
-webkit-transform-origin: 50% 0%;
|
||||
transform-origin: 50% 0%;
|
||||
-webkit-transform-origin: 50% 0;
|
||||
transform-origin: 50% 0;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
@ -5579,7 +5579,7 @@ button.btn-floating {
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 0% 15%;
|
||||
padding: 0 15%;
|
||||
height: 50px;
|
||||
z-index: 1000;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
@ -6322,7 +6322,7 @@ form p:last-child {
|
||||
width: 20px;
|
||||
background-color: transparent;
|
||||
border: 2px solid #5a5a5a;
|
||||
top: 0px;
|
||||
top: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
@ -7638,8 +7638,8 @@ input[type=range]:focus::-ms-fill-upper {
|
||||
perspective: 500px;
|
||||
-webkit-transform-style: preserve-3d;
|
||||
transform-style: preserve-3d;
|
||||
-webkit-transform-origin: 0% 50%;
|
||||
transform-origin: 0% 50%;
|
||||
-webkit-transform-origin: 0 50%;
|
||||
transform-origin: 0 50%;
|
||||
}
|
||||
|
||||
.carousel.carousel-slider {
|
||||
|
@ -64,7 +64,7 @@
|
||||
|
||||
.ms-container .ms-optgroup-label{
|
||||
margin: 0;
|
||||
padding: 5px 0px 0px 5px;
|
||||
padding: 5px 0 0 5px;
|
||||
cursor: pointer;
|
||||
color: #999;
|
||||
}
|
||||
|
@ -120,16 +120,16 @@
|
||||
}
|
||||
.waves-float {
|
||||
-webkit-mask-image: none;
|
||||
-webkit-box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12);
|
||||
box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12);
|
||||
-webkit-box-shadow: 0 1px 1.5px 1px rgba(0, 0, 0, 0.12);
|
||||
box-shadow: 0 1px 1.5px 1px rgba(0, 0, 0, 0.12);
|
||||
-webkit-transition: all 300ms;
|
||||
-moz-transition: all 300ms;
|
||||
-o-transition: all 300ms;
|
||||
transition: all 300ms;
|
||||
}
|
||||
.waves-float:active {
|
||||
-webkit-box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3);
|
||||
box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3);
|
||||
-webkit-box-shadow: 0 8px 20px 1px rgba(0, 0, 0, 0.3);
|
||||
box-shadow: 0 8px 20px 1px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.waves-block {
|
||||
display: block;
|
||||
|
@ -48,7 +48,7 @@
|
||||
i {
|
||||
font-size: 26px !important;
|
||||
position: relative !important;
|
||||
left: 0px !important;
|
||||
left: 0 !important;
|
||||
top: 6px !important;
|
||||
}
|
||||
}
|
||||
|
@ -226,7 +226,7 @@
|
||||
font-size: 21px;
|
||||
height: 20px;
|
||||
top: -5px;
|
||||
right: 0px;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1354,7 +1354,7 @@ $(function () {
|
||||
}
|
||||
if (j == i) {
|
||||
navButtons[j].parentElement.classList.add('active');
|
||||
continue;
|
||||
|
||||
}
|
||||
}
|
||||
var percent = - 100 / navButtons.length;
|
||||
|
@ -28,7 +28,7 @@
|
||||
<i style="padding: 0; color: #fff; font-size: 100px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #348e0f; font-size: 95px;" class="fa fa-square fa-stack-1x"></i>
|
||||
<i style="padding: 0; color: #fff; font-size: 60px;" class="fa fa-circle fa-stack-1x"></i>
|
||||
<div style="margin: 0px; padding: 0px; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<div style="margin: 0; padding: 0; width: 100%; height: 100%; position: relative; overflow: hidden; top: -6px;">
|
||||
<i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;"
|
||||
class="fa fa-bar-chart fa-stack-1x"></i>
|
||||
</div>
|
||||
@ -306,8 +306,8 @@
|
||||
<div id="tab-command-usage" class="tab">
|
||||
<div class="column">
|
||||
<div class="box-header">
|
||||
<h2 style="padding: 2px; margin: 0px;"><i class="fa fa-terminal"></i> Command Usage</h2>
|
||||
<p style="padding: 2px; margin: 0px;">Unique Commands: ${commandUniqueCount} • Total Command Count: ${commandCount}</p>
|
||||
<h2 style="padding: 2px; margin: 0;"><i class="fa fa-terminal"></i> Command Usage</h2>
|
||||
<p style="padding: 2px; margin: 0;">Unique Commands: ${commandUniqueCount} • Total Command Count: ${commandCount}</p>
|
||||
</div>
|
||||
<div class="box-footer scrollbar" style="padding: 2px;">
|
||||
<table class="sortable table">
|
||||
|
@ -589,8 +589,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="body bg-white">
|
||||
${healthNotes}
|
||||
</p>
|
||||
<p>${healthNotes} </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -936,6 +935,7 @@
|
||||
timezoneOffset: ${timeZone} * 60
|
||||
}
|
||||
});
|
||||
|
||||
// Data Variables
|
||||
var playersOnlineSeries = {
|
||||
name: 'Players Online',
|
||||
|
Loading…
Reference in New Issue
Block a user