Migrate HickLab3D dashboard and add production auto deployment
Deploy HickLab3D Dashboard / Deploy to production (push) Failing after 19s

This commit is contained in:
Hickmeister
2026-10-10 18:51:23 +01:00
parent 8410a50f26
commit 88dd00551f
974 changed files with 14609 additions and 162573 deletions
+10
View File
@@ -0,0 +1,10 @@
@extends('layouts.app')
@section('title', 'Filament tracker')
@section('content')
<div class="flex flex-wrap items-end justify-between gap-4"><div><h2 class="text-2xl font-bold">Filament prices</h2><p class="mt-1 text-slate-400">Recent prices and offers from tracked listings.</p></div>@if(auth()->user()->role === 'admin')<a href="{{ route('filaments.create') }}" class="rounded-xl bg-brand px-4 py-3 text-sm font-semibold text-slate-950">Track filament</a>@endif</div>
<div class="overflow-x-auto rounded-2xl border border-slate-800 bg-slate-900"><table class="w-full min-w-[700px] text-left text-sm"><thead class="border-b border-slate-800 text-xs uppercase tracking-widest text-slate-500"><tr><th class="p-5">Filament</th><th class="p-5">Material</th><th class="p-5">Latest price</th><th class="p-5">Discount</th><th class="p-5">Updated</th><th class="p-5"></th></tr></thead><tbody class="divide-y divide-slate-800">@forelse($filaments as $filament)
@php $latest = $filament->prices->first(); $discount = $latest?->currentDiscount['discount']['value'] ?? 0; @endphp
<tr><td class="p-5"><a href="{{ $filament->amazonUrl }}" target="_blank" rel="noopener noreferrer" class="font-semibold text-brand hover:underline">{{ $filament->filamentName }} ↗</a><p class="mt-1 text-slate-400">{{ $filament->brand ?: 'Unknown brand' }} · {{ $filament->color ?: 'Colour unknown' }}</p></td><td class="p-5">{{ $filament->material ?: '—' }}</td><td class="p-5 font-semibold">{{ $latest ? '£'.number_format($latest->price, 2) : 'Pending' }}</td><td class="p-5">{{ $discount ? $discount.'%' : '—' }}</td><td class="p-5 text-slate-400">{{ $latest?->recordedAt?->diffForHumans() ?? '—' }}</td><td class="p-5">@if(auth()->user()->role === 'admin')<form method="post" action="{{ route('filaments.destroy', $filament) }}" onsubmit="return confirm('Stop tracking this filament?')">@csrf @method('DELETE')<button class="text-rose-400">Remove</button></form>@endif</td></tr>
@empty<tr><td colspan="6" class="p-8 text-center text-slate-400">No filament is being tracked yet.</td></tr>@endforelse</tbody></table></div>
{{ $filaments->links() }}
@endsection