Überarbeitung Dashboard
This commit is contained in:
1 parent
8bef4b9621
commit
a5a21fb925
10 files changed
+242
-95
No files matched your search
@@ -8,11 +8,6 @@ use Illuminate\Support\Facades\Http;
|
||||
class Api
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static function get(string $path, string $query = ''): ?array
|
||||
{
|
||||
|
||||
@@ -20,7 +15,7 @@ class Api
|
||||
$request = $endpoint.$path;
|
||||
|
||||
if (Cache::has($request)) {
|
||||
return Cache::get($request);
|
||||
// return Cache::get($request);
|
||||
}
|
||||
|
||||
$get = Http::timeout(1600)->get($request);
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace App;
|
||||
class Chart
|
||||
{
|
||||
public static function colors(int $count = 5){
|
||||
$colors = ['#fff7fb','#ece7f2','#d0d1e6','#a6bddb','#74a9cf','#3690c0','#0570b0','#045a8d','#023858'];
|
||||
$colors = ['#bfd3e6','#8c96c6','#88419d','#810f7c','#4d004b'];
|
||||
return json_encode($colors);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user