Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a78b699a5e |
@@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||||
<title>@yield('title') - Lucent Data Platform</title>
|
<title>@yield('title') - Lucent Data Platform</title>
|
||||||
<meta name="htmx-config" content='{"selfRequestsOnly": false}' />
|
|
||||||
@if(config("lucent.env") === "production")
|
@if(config("lucent.env") === "production")
|
||||||
<!-- if production -->
|
<!-- if production -->
|
||||||
<link rel="stylesheet" href="{{url('vendor/lucent/dist/'.$manifest['main.js']["css"][0])}}"/>
|
<link rel="stylesheet" href="{{url('vendor/lucent/dist/'.$manifest['main.js']["css"][0])}}"/>
|
||||||
|
|||||||
@@ -45,12 +45,7 @@ class RebuildThumbnails extends Command
|
|||||||
$records = $this->query->filter(["schema" => $schema->name])->run()->records;
|
$records = $this->query->filter(["schema" => $schema->name])->run()->records;
|
||||||
$disk = $this->fileService->loadDisk($schema->disk);
|
$disk = $this->fileService->loadDisk($schema->disk);
|
||||||
foreach ($records as $record) {
|
foreach ($records as $record) {
|
||||||
try{
|
$this->fileService->createTemplates($disk, $record->_file->path);
|
||||||
|
|
||||||
$this->fileService->createTemplates($disk, $record->_file->path);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo "File ". $record->_file->originalName . " could not be rebuilt \n" ;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ readonly class GreaterThan implements IBuilderConverter
|
|||||||
return $builder->orWhere($this->argument->field, ">", $this->formatValue());
|
return $builder->orWhere($this->argument->field, ">", $this->formatValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
private function formatValue(): int|float
|
private function formatValue(): int|float|string
|
||||||
{
|
{
|
||||||
$value = trim($this->argument->value);
|
$value = trim($this->argument->value);
|
||||||
if (is_numeric($value)) {
|
if (is_numeric($value)) {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ readonly class GreaterThanEquals implements IBuilderConverter
|
|||||||
return $builder->orWhere($this->argument->field, ">=", $this->formatValue());
|
return $builder->orWhere($this->argument->field, ">=", $this->formatValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
private function formatValue(): int|float
|
private function formatValue(): int|float|string
|
||||||
{
|
{
|
||||||
$value = trim($this->argument->value);
|
$value = trim($this->argument->value);
|
||||||
if (is_numeric($value)) {
|
if (is_numeric($value)) {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ readonly class LessThan implements IBuilderConverter
|
|||||||
return $builder->orWhere($this->argument->field, "<", $this->formatValue());
|
return $builder->orWhere($this->argument->field, "<", $this->formatValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
private function formatValue(): int|float
|
private function formatValue(): int|float|string
|
||||||
{
|
{
|
||||||
$value = trim($this->argument->value);
|
$value = trim($this->argument->value);
|
||||||
if (is_numeric($value)) {
|
if (is_numeric($value)) {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ readonly class LessThanEquals implements IBuilderConverter
|
|||||||
return $builder->orWhere($this->argument->field, "<=", $this->formatValue());
|
return $builder->orWhere($this->argument->field, "<=", $this->formatValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
private function formatValue(): int|float
|
private function formatValue(): int|float|string
|
||||||
{
|
{
|
||||||
$value = trim($this->argument->value);
|
$value = trim($this->argument->value);
|
||||||
if (is_numeric($value)) {
|
if (is_numeric($value)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user