mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 09:02:28 +01:00
Wording changes and fix of major fail last commit
This commit is contained in:
parent
86e7085396
commit
7a81c61ad8
@ -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;
|
||||
|
||||
|
@ -10,7 +10,7 @@ namespace Pterodactyl\Traits\Controllers;
|
||||
|
||||
use JavaScript;
|
||||
|
||||
class JavascriptStatisticsInjection
|
||||
trait JavascriptStatisticsInjection
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -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]
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user