Merge pull request #343 from IceToast/development

style: 🚚 Renamed divided cpu by 100 and renamed unit to vCores -> more realistic naming
This commit is contained in:
Dennis 2021-12-23 09:55:32 +01:00 committed by GitHub
commit ae3cb3fd7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,14 +6,14 @@
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>{{__('Servers')}}</h1>
<h1>{{ __('Servers') }}</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{__('Dashboard')}}</a></li>
<li class="breadcrumb-item"><a href="{{ route('servers.index') }}">{{__('Servers')}}</a>
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
<li class="breadcrumb-item"><a href="{{ route('servers.index') }}">{{ __('Servers') }}</a>
<li class="breadcrumb-item"><a class="text-muted"
href="{{ route('servers.create') }}">{{__('Create')}}</a>
href="{{ route('servers.create') }}">{{ __('Create') }}</a>
</li>
</ol>
</div>
@ -163,7 +163,8 @@
<li class="d-flex justify-content-between">
<span class="d-inline-block"><i class="fas fa-microchip"></i>
{{ __('CPU') }}</span>
<span class=" d-inline-block" x-text="product.cpu + ' %'"></span>
<span class=" d-inline-block"
x-text="product.cpu + ' {{ __('vCores') }}'"></span>
</li>
<li class="d-flex justify-content-between">
<span class="d-inline-block"><i class="fas fa-memory"></i>
@ -347,7 +348,12 @@
this.fetchedProducts = true;
// TODO: Sortable by user chosen property (cpu, ram, disk...)
this.products = response.data.sort((p1, p2) => p1.price > p2.price && 1 || -1 )
this.products = response.data.sort((p1, p2) => p1.price > p2.price && 1 || -1)
//divide cpu by 100 for each product
this.products.forEach(product => {
product.cpu = product.cpu / 100;
})
this.loading = false;