Compare commits
3 Commits
6158c9d9e0
...
49d9be5aae
| Author | SHA1 | Date | |
|---|---|---|---|
| 49d9be5aae | |||
| fca645cd0f | |||
| 4c28cf50bf |
@ -27,7 +27,7 @@ class CameraCapture extends Component
|
||||
Storage::disk('public')->delete($job->image_path);
|
||||
$job->delete();
|
||||
|
||||
$this->status = "Job #{$jobId} deleted";
|
||||
$this->status = "Photo #{$jobId} gelöscht";
|
||||
}
|
||||
|
||||
public function capture(string $imageData): void
|
||||
@ -51,7 +51,7 @@ class CameraCapture extends Component
|
||||
|
||||
ConvertToComic::dispatch($job);
|
||||
|
||||
$this->status = "Processing photo…";
|
||||
$this->status = "Verarbeite Foto…";
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
||||
@ -34,14 +34,14 @@
|
||||
@disabled($hasProcessing)
|
||||
class="mt-8 px-10 py-4 bg-white text-gray-950 font-semibold text-lg rounded-full shadow-lg hover:bg-gray-200 active:scale-95 transition-all duration-150 disabled:opacity-50 disabled:cursor-not-allowed">
|
||||
<span wire:loading.remove>{{ $hasProcessing ? 'Erstelle Bild...' : 'Foto aufnehmen' }}</span>
|
||||
<span wire:loading>Saving…</span>
|
||||
<span wire:loading>Speichere…</span>
|
||||
</button>
|
||||
|
||||
<div class="mt-4 text-sm text-gray-400 h-6">{{ $status }}</div>
|
||||
|
||||
@if ($recentPhotos->isNotEmpty())
|
||||
<div class="mt-10 w-full max-w-2xl">
|
||||
<h2 class="text-sm font-medium text-gray-400 mb-3 tracking-wide uppercase">Recent Photos</h2>
|
||||
<h2 class="text-sm font-medium text-gray-400 mb-3 tracking-wide uppercase">Fotos</h2>
|
||||
<div class="grid grid-cols-5 gap-2" @if($hasProcessing) wire:poll.2000ms @endif>
|
||||
@foreach ($recentPhotos as $photo)
|
||||
<div class="relative">
|
||||
@ -112,7 +112,7 @@
|
||||
const CAMERA_STORAGE_KEY = 'photobox_camera_id';
|
||||
|
||||
function videoConstraints(deviceId) {
|
||||
const base = { width: { ideal: 4096 }, height: { ideal: 2160 } };
|
||||
const base = { width: { ideal: 2048 }, height: { ideal: 1080 } };
|
||||
return deviceId ? { ...base, deviceId: { exact: deviceId } } : base;
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user