Code inspection fixes

This commit is contained in:
Rsl1122 2017-11-19 12:15:16 +02:00
parent d16c50669a
commit 1dc8e712d4
20 changed files with 46 additions and 53 deletions

View File

@ -22,8 +22,6 @@ import main.java.com.djrapitops.plan.utilities.Condition;
*/ */
public class ManageImportCommand extends SubCommand { public class ManageImportCommand extends SubCommand {
private final Plan plugin;
/** /**
* Class Constructor. * Class Constructor.
* *
@ -35,9 +33,6 @@ public class ManageImportCommand extends SubCommand {
Permissions.MANAGE.getPermission(), Permissions.MANAGE.getPermission(),
Locale.get(Msg.CMD_USG_MANAGE_IMPORT).toString(), Locale.get(Msg.CMD_USG_MANAGE_IMPORT).toString(),
"<plugin>/list [import args]"); "<plugin>/list [import args]");
this.plugin = plugin;
} }
@Override @Override

View File

@ -6,7 +6,6 @@ import com.maxmind.geoip2.DatabaseReader;
import com.maxmind.geoip2.exception.GeoIp2Exception; import com.maxmind.geoip2.exception.GeoIp2Exception;
import com.maxmind.geoip2.model.CountryResponse; import com.maxmind.geoip2.model.CountryResponse;
import com.maxmind.geoip2.record.Country; import com.maxmind.geoip2.record.Country;
import main.java.com.djrapitops.plan.api.exceptions.PlanEnableException;
import main.java.com.djrapitops.plan.utilities.MiscUtils; import main.java.com.djrapitops.plan.utilities.MiscUtils;
import java.io.File; import java.io.File;
@ -105,7 +104,7 @@ public class GeolocationCache {
/** /**
* Checks if the DB exists, if not, it downloads it * 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 { public static void checkDB() throws IOException {
if (geolocationDB.exists()) { if (geolocationDB.exists()) {

View File

@ -88,7 +88,7 @@
} }
.tab { .tab {
width: 0%; width: 0;
height: 100%; height: 100%;
float: left; float: left;
} }
@ -148,7 +148,7 @@
} }
.plugin p { .plugin p {
padding: 5px 0px; padding: 5px 0;
margin: 0; margin: 0;
} }

View File

@ -209,10 +209,9 @@ form p:last-child {
left: -5px; left: -5px;
width: 12px; width: 12px;
height: 22px; height: 22px;
border-top: 2px solid transparent; border: 2px solid transparent;
border-left: 2px solid transparent; border-right-color: #26a69a;
border-right: 2px solid #26a69a; border-bottom-color: #26a69a;
border-bottom: 2px solid #26a69a;
-webkit-transform: rotate(40deg); -webkit-transform: rotate(40deg);
transform: rotate(40deg); transform: rotate(40deg);
-webkit-backface-visibility: hidden; -webkit-backface-visibility: hidden;
@ -280,7 +279,7 @@ form p:last-child {
width: 20px; width: 20px;
background-color: transparent; background-color: transparent;
border: 2px solid #5a5a5a; border: 2px solid #5a5a5a;
top: 0px; top: 0;
z-index: 0; z-index: 0;
} }

View File

@ -1036,16 +1036,16 @@
margin-bottom: -5px; } margin-bottom: -5px; }
.m-l-0 { .m-l-0 {
margin-left: 0px; } margin-left: 0; }
.m-t-0 { .m-t-0 {
margin-top: 0px; } margin-top: 0; }
.m-r-0 { .m-r-0 {
margin-right: 0px; } margin-right: 0; }
.m-b-0 { .m-b-0 {
margin-bottom: 0px; } margin-bottom: 0; }
.m-l-5 { .m-l-5 {
margin-left: 5px; } margin-left: 5px; }
@ -1351,16 +1351,16 @@
margin: 0; } margin: 0; }
.p-l-0 { .p-l-0 {
padding-left: 0px; } padding-left: 0; }
.p-t-0 { .p-t-0 {
padding-top: 0px; } padding-top: 0; }
.p-r-0 { .p-r-0 {
padding-right: 0px; } padding-right: 0; }
.p-b-0 { .p-b-0 {
padding-bottom: 0px; } padding-bottom: 0; }
.p-l-5 { .p-l-5 {
padding-left: 5px; } padding-left: 5px; }
@ -2480,7 +2480,7 @@ section.content {
.btn-circle-lg i { .btn-circle-lg i {
font-size: 26px !important; font-size: 26px !important;
position: relative !important; position: relative !important;
left: 0px !important; left: 0 !important;
top: 6px !important; } top: 6px !important; }
.btn:not(.btn-link):not(.btn-circle) { .btn:not(.btn-link):not(.btn-circle) {
@ -7658,7 +7658,7 @@ fieldset[disabled] .form-control {
font-size: 21px; font-size: 21px;
height: 20px; height: 20px;
top: -5px; top: -5px;
right: 0px; } right: 0; }
.sidebar .menu .list .ml-menu li .ml-menu li a { .sidebar .menu .list .ml-menu li .ml-menu li a {
padding-left: 80px; } padding-left: 80px; }
.sidebar .menu .list .ml-menu li .ml-menu .ml-menu li a { .sidebar .menu .list .ml-menu li .ml-menu .ml-menu li a {

View File

@ -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: #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: #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> <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> <i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;" class="fa fa-bar-chart fa-stack-1x"></i>
</div> </div>
</div> </div>

View File

@ -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: #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: #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> <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> <i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;" class="fa fa-bar-chart fa-stack-1x"></i>
</div> </div>
</div> </div>

View File

@ -1029,7 +1029,7 @@
} }
if (j == i) { if (j == i) {
navButtons[j].parentElement.classList.add('active'); navButtons[j].parentElement.classList.add('active');
continue;
} }
} }
var percent = -100 / navButtons.length; var percent = -100 / navButtons.length;

View File

@ -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: #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: #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> <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;" <i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;"
class="fa fa-bar-chart fa-stack-1x"></i> class="fa fa-bar-chart fa-stack-1x"></i>
</div> </div>

View File

@ -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: #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: #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> <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;" <i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;"
class="fa fa-bar-chart fa-stack-1x"></i> class="fa fa-bar-chart fa-stack-1x"></i>
</div> </div>

View File

@ -173,7 +173,7 @@
height: 15px; height: 15px;
float: left; float: left;
cursor: col-resize; cursor: col-resize;
margin-left: 0px; margin-left: 0;
margin-bottom: 4px; margin-bottom: 4px;
} }
.colorpicker.colorpicker-horizontal .colorpicker-hue i, .colorpicker.colorpicker-horizontal .colorpicker-hue i,
@ -186,7 +186,7 @@
left: 0; left: 0;
width: 1px; width: 1px;
border: none; border: none;
margin-top: 0px; margin-top: 0;
} }
.colorpicker.colorpicker-horizontal .colorpicker-hue { .colorpicker.colorpicker-horizontal .colorpicker-hue {
background-image: url("../img/bootstrap-colorpicker/hue-horizontal.png"); background-image: url("../img/bootstrap-colorpicker/hue-horizontal.png");

View File

@ -45,7 +45,7 @@
} }
.bootstrap-tagsinput .tag [data-role="remove"]:after { .bootstrap-tagsinput .tag [data-role="remove"]:after {
content: "x"; content: "x";
padding: 0px 2px; padding: 0 2px;
} }
.bootstrap-tagsinput .tag [data-role="remove"]:hover { .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); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);

View File

@ -4715,7 +4715,7 @@ small {
@media only screen and (max-width: 600px) { @media only screen and (max-width: 600px) {
#toast-container { #toast-container {
min-width: 100%; min-width: 100%;
bottom: 0%; bottom: 0;
} }
} }
@ -4881,8 +4881,8 @@ small {
border-radius: 0 0 50% 50%; border-radius: 0 0 50% 50%;
background-color: #323232; background-color: #323232;
z-index: -1; z-index: -1;
-webkit-transform-origin: 50% 0%; -webkit-transform-origin: 50% 0;
transform-origin: 50% 0%; transform-origin: 50% 0;
-webkit-transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
@ -5579,7 +5579,7 @@ button.btn-floating {
bottom: 0; bottom: 0;
width: 100%; width: 100%;
text-align: center; text-align: center;
padding: 0% 15%; padding: 0 15%;
height: 50px; height: 50px;
z-index: 1000; z-index: 1000;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@ -6322,7 +6322,7 @@ form p:last-child {
width: 20px; width: 20px;
background-color: transparent; background-color: transparent;
border: 2px solid #5a5a5a; border: 2px solid #5a5a5a;
top: 0px; top: 0;
z-index: 0; z-index: 0;
} }
@ -7638,8 +7638,8 @@ input[type=range]:focus::-ms-fill-upper {
perspective: 500px; perspective: 500px;
-webkit-transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
transform-style: preserve-3d; transform-style: preserve-3d;
-webkit-transform-origin: 0% 50%; -webkit-transform-origin: 0 50%;
transform-origin: 0% 50%; transform-origin: 0 50%;
} }
.carousel.carousel-slider { .carousel.carousel-slider {

View File

@ -64,7 +64,7 @@
.ms-container .ms-optgroup-label{ .ms-container .ms-optgroup-label{
margin: 0; margin: 0;
padding: 5px 0px 0px 5px; padding: 5px 0 0 5px;
cursor: pointer; cursor: pointer;
color: #999; color: #999;
} }

View File

@ -120,16 +120,16 @@
} }
.waves-float { .waves-float {
-webkit-mask-image: none; -webkit-mask-image: none;
-webkit-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: 0px 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; -webkit-transition: all 300ms;
-moz-transition: all 300ms; -moz-transition: all 300ms;
-o-transition: all 300ms; -o-transition: all 300ms;
transition: all 300ms; transition: all 300ms;
} }
.waves-float:active { .waves-float:active {
-webkit-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: 0px 8px 20px 1px rgba(0, 0, 0, 0.3); box-shadow: 0 8px 20px 1px rgba(0, 0, 0, 0.3);
} }
.waves-block { .waves-block {
display: block; display: block;

View File

@ -48,7 +48,7 @@
i { i {
font-size: 26px !important; font-size: 26px !important;
position: relative !important; position: relative !important;
left: 0px !important; left: 0 !important;
top: 6px !important; top: 6px !important;
} }
} }

View File

@ -226,7 +226,7 @@
font-size: 21px; font-size: 21px;
height: 20px; height: 20px;
top: -5px; top: -5px;
right: 0px; right: 0;
} }
} }
} }

View File

@ -1354,7 +1354,7 @@ $(function () {
} }
if (j == i) { if (j == i) {
navButtons[j].parentElement.classList.add('active'); navButtons[j].parentElement.classList.add('active');
continue;
} }
} }
var percent = - 100 / navButtons.length; var percent = - 100 / navButtons.length;

View File

@ -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: #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: #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> <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;" <i style="position: absolute; left: -4px; top: 8px; color: #348e0f; font-size: 40px;"
class="fa fa-bar-chart fa-stack-1x"></i> class="fa fa-bar-chart fa-stack-1x"></i>
</div> </div>
@ -306,8 +306,8 @@
<div id="tab-command-usage" class="tab"> <div id="tab-command-usage" class="tab">
<div class="column"> <div class="column">
<div class="box-header"> <div class="box-header">
<h2 style="padding: 2px; margin: 0px;"><i class="fa fa-terminal"></i> Command Usage</h2> <h2 style="padding: 2px; margin: 0;"><i class="fa fa-terminal"></i> Command Usage</h2>
<p style="padding: 2px; margin: 0px;">Unique Commands: ${commandUniqueCount} &#x2022; Total Command Count: ${commandCount}</p> <p style="padding: 2px; margin: 0;">Unique Commands: ${commandUniqueCount} &#x2022; Total Command Count: ${commandCount}</p>
</div> </div>
<div class="box-footer scrollbar" style="padding: 2px;"> <div class="box-footer scrollbar" style="padding: 2px;">
<table class="sortable table"> <table class="sortable table">

View File

@ -589,8 +589,7 @@
</div> </div>
</div> </div>
<div class="body bg-white"> <div class="body bg-white">
${healthNotes} <p>${healthNotes} </p>
</p>
</div> </div>
</div> </div>
</div> </div>
@ -936,6 +935,7 @@
timezoneOffset: ${timeZone} * 60 timezoneOffset: ${timeZone} * 60
} }
}); });
// Data Variables // Data Variables
var playersOnlineSeries = { var playersOnlineSeries = {
name: 'Players Online', name: 'Players Online',