diff --git a/README.md b/README.md index 8c103d64..02915a41 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ DNS and misc services. Despite what the name infers this self hosted web app isn't just for storing idling server information. By using a [YABS](https://github.com/masonr/yet-another-bench-script) output you can get disk & network speed values along with -GeekBench 5 scores to do easier comparing and sorting. +GeekBench 5 & 6 scores to do easier comparing and sorting. Ofcourse storing other services e.g. web hosting is possible and supported too. -[![Generic badge](https://img.shields.io/badge/version-2.3.1-blue.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/Laravel-10.0-red.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/PHP-8.1-purple.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/Bootstrap-5.2-pink.svg)](https://shields.io/) +[![Generic badge](https://img.shields.io/badge/version-2.3.2-blue.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/Laravel-10.0-red.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/PHP-8.1-purple.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/Bootstrap-5.2-pink.svg)](https://shields.io/) @@ -20,14 +20,22 @@ GeekBench 5 scores to do easier comparing and sorting. Currently seeking a project sponsor -## 2.3.1 changes (17th August 2023): +## 2.3.2 changes (26th September 2023): -* Updated resource files -* Updated composer.json -* Updated packages.json -* Fixed dashboard price summary including non active services +* Added tabs to the homepage for stats and avg summary cards +* Added Geekbench 6 columns to YABS table +* Added Geekbench 6 insert from YABS result +* Updated YABS insert to include Geekbench 5 results also +* Updated server show page and public show to display Geekbench 6 values +* Updated tests to pass +* Updated footer to only have one conditional check for the setting +* Updated homepage table to be rounded +* Fixed setting causing a fail with validation +* Fixed pricing cache not being refreshed +* Fixed object being accessed instead of array for certain models +* Removed unused Vue component -#### Please run the following if updating from existing install: +#### Please run the following if updating from an existing install: ```shell composer update @@ -116,7 +124,7 @@ Example yabs.sh call to POST the result: ## TODO -Add Geekbench 6 single and multi-core scores +Add Geekbench 6 single and multi-core scores (On dev branch) ## API endpoints diff --git a/app/Models/Labels.php b/app/Models/Labels.php index 8a2aa238..8d65968c 100644 --- a/app/Models/Labels.php +++ b/app/Models/Labels.php @@ -5,6 +5,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Cache; +use Mockery\Exception; class Labels extends Model { @@ -32,10 +33,14 @@ public static function insertLabelsAssigned(array $labels_array, string $service { for ($i = 1; $i <= 4; $i++) { if (!is_null($labels_array[($i - 1)])) { - LabelsAssigned::create([ - 'label_id' => $labels_array[($i - 1)], - 'service_id' => $service_id - ]); + try { + LabelsAssigned::create([ + 'label_id' => $labels_array[($i - 1)], + 'service_id' => $service_id + ]); + } catch (Exception $exception) { + + } } } } diff --git a/resources/views/servers/index.blade.php b/resources/views/servers/index.blade.php index 1657ccf0..5b2caa9d 100644 --- a/resources/views/servers/index.blade.php +++ b/resources/views/servers/index.blade.php @@ -47,10 +47,8 @@ @foreach($servers as $server)