1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-26 02:52:30 +01:00

Wording changes and fix of major fail last commit

This commit is contained in:
stanjg 2018-05-26 21:02:47 +02:00
parent 86e7085396
commit 7a81c61ad8
No known key found for this signature in database
GPG Key ID: 27D9DF9D28935303
4 changed files with 7 additions and 8 deletions

View File

@ -4,7 +4,6 @@ namespace Pterodactyl\Http\Controllers\Admin;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use JavaScript;
use Pterodactyl\Contracts\Repository\AllocationRepositoryInterface;
use Pterodactyl\Contracts\Repository\DatabaseRepositoryInterface;
use Pterodactyl\Contracts\Repository\EggRepositoryInterface;
@ -13,11 +12,11 @@ use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
use Pterodactyl\Http\Controllers\Controller;
use Pterodactyl\Services\DaemonKeys\DaemonKeyProviderService;
use Pterodactyl\Traits\Controllers\JavascriptInjection;
use Pterodactyl\Traits\Controllers\JavascriptStatisticsInjection;
class StatisticsController extends Controller
{
use JavascriptInjection;
use JavascriptStatisticsInjection;
private $allocationRepository;

View File

@ -10,7 +10,7 @@ namespace Pterodactyl\Traits\Controllers;
use JavaScript;
class JavascriptStatisticsInjection
trait JavascriptStatisticsInjection
{
/**

View File

@ -5,7 +5,7 @@ let diskChart = new Chart($('#disk_chart'), {
labels: ['Free Disk', 'Used Disk'],
datasets: [
{
label: 'Disk in MBs',
label: 'Disk (in MB)',
backgroundColor: ['#51B060', '#ff0000'],
data: [freeDisk, Pterodactyl.totalServerDisk]
}
@ -20,7 +20,7 @@ let ramChart = new Chart($('#ram_chart'), {
labels: ['Free RAM', 'Used RAM'],
datasets: [
{
label: 'RAM in MBs',
label: 'Memory (in MB)',
backgroundColor: ['#51B060', '#ff0000'],
data: [freeRam, Pterodactyl.totalServerRam]
}

View File

@ -41,14 +41,14 @@
<div class="info-box bg-blue">
<span class="info-box-icon"><i class="ion ion-ios-barcode-outline"></i></span>
<div class="info-box-content number-info-box-content">
<span class="info-box-text">Total used RAM</span>
<span class="info-box-text">Total used Memory (in MB)</span>
<span class="info-box-number">{{ $totalServerRam }}MB</span>
</div>
</div>
<div class="info-box bg-blue">
<span class="info-box-icon"><i class="ion ion-stats-bars"></i></span>
<div class="info-box-content number-info-box-content">
<span class="info-box-text">Total used disk space</span>
<span class="info-box-text">Total used Disk (in MB)</span>
<span class="info-box-number">{{ $totalServerDisk }}MB</span>
</div>
</div>