Compare commits

...

4 Commits

Author SHA1 Message Date
lexx 57b0727788 fix image limit 2025-07-03 15:28:52 +03:00
lexx 58b047edd2 Merge pull request 'Fix gte' (#24) from Fixing-date-&-datetime-compare-bugs into dev
Reviewed-on: #24
2025-06-16 15:48:36 +00:00
arvanitakis a78b699a5e Fix 2025-06-16 18:23:14 +03:00
lexx e910ae9878 login 2025-05-16 13:53:41 +03:00
7 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
<div class="form"> <div class="form">
<h2 class="mb-5">Enter Lucent</h2> <h2 class="mb-5">Enter Lucent</h2>
<form hx-post="{{url('lucent/login')}}" > <form hx-post="{{config("lucent.url")}}/lucent/login" >
@csrf @csrf
<p>Submit your email address and you will receive a <b>login link</b> to your email</p> <p>Submit your email address and you will receive a <b>login link</b> to your email</p>
<p>Don't forget to check your spam folder</p> <p>Don't forget to check your spam folder</p>
+1 -1
View File
@@ -9,7 +9,7 @@
<div class="form"> <div class="form">
<h2 class="mb-5">Welcome to Lucent</h2> <h2 class="mb-5">Welcome to Lucent</h2>
<form hx-post="{{url('lucent/verify')}}" hx-redirect="{{url('lucent')}}" hx-target-error=".form-errors" > <form hx-post="{{config("lucent.url")}}/lucent/verify" hx-redirect="{{config("lucent.url")}}/lucent" hx-target-error=".form-errors" >
<input type="hidden" value="{{$email}}" name="email" /> <input type="hidden" value="{{$email}}" name="email" />
<input type="hidden" value="{{$token}}" name="token" /> <input type="hidden" value="{{$token}}" name="token" />
@csrf @csrf
+2 -1
View File
@@ -41,8 +41,9 @@ class RebuildThumbnails extends Command
public function rebuildThumbnails(FilesSchema $schema): void public function rebuildThumbnails(FilesSchema $schema): void
{ {
$this->info("Rebuilding thumbnails for ". $schema->name); $this->info("Rebuilding thumbnails for ". $schema->name);
$records = $this->query->limit(1000)->filter(["schema" => $schema->name])->run()->records; $records = $this->query->limit(0)->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{ try{
+1 -1
View File
@@ -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)) {
+1 -1
View File
@@ -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)) {