mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Initial commit: Rails port of Simple Aircraft Manager
Rails 8.1 + SQLite rewrite of marbindrakon/simple-aircraft-manager, designed to self-host as a single container (Solid Queue/Cache/Cable, Active Storage on disk, Hotwire + importmap, Tailwind). - Airworthiness engine ported from health/services.py (ADs, grounding squawks, inspection recurrency, component replacement) - Hours updates and flight logs cascading to in-service components, optional airworthiness enforcement - Components, squawks, ADs, inspections, logbook, documents, major records, oil/fuel consumption stats and charts, activity log - Admin/owner/pilot RBAC and public share links (status/maintenance) - Docker Compose and Kamal deployment, env-driven production config - Service and integration tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
38df19c331
264 files changed
+8365
No files matched your search
@@ -0,0 +1,36 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@utility btn { @apply inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium shadow-sm transition cursor-pointer disabled:opacity-50; }
|
||||
@utility btn-primary { @apply btn bg-sky-700 text-white hover:bg-sky-800; }
|
||||
@utility btn-secondary { @apply btn bg-white text-slate-700 ring-1 ring-slate-300 ring-inset hover:bg-slate-50; }
|
||||
@utility btn-danger { @apply btn bg-white text-red-700 ring-1 ring-red-300 ring-inset hover:bg-red-50; }
|
||||
@utility btn-sm { @apply px-2 py-1 text-xs; }
|
||||
@utility link { @apply text-sky-700 hover:underline; }
|
||||
|
||||
@utility card { @apply rounded-lg bg-white shadow-sm ring-1 ring-slate-200; }
|
||||
@utility card-header { @apply flex flex-wrap items-center justify-between gap-3 border-b border-slate-200 px-4 py-3; }
|
||||
@utility card-title { @apply text-base font-semibold text-slate-900; }
|
||||
@utility card-body { @apply p-4; }
|
||||
|
||||
@utility label { @apply block text-sm font-medium text-slate-700 mb-1; }
|
||||
@utility input { @apply block w-full rounded-md border-0 px-2.5 py-1.5 text-sm text-slate-900 shadow-sm ring-1 ring-slate-300 ring-inset placeholder:text-slate-400 focus:ring-2 focus:ring-sky-600 focus:outline-none bg-white; }
|
||||
@utility hint { @apply mt-1 text-xs text-slate-500; }
|
||||
@utility field-error { @apply mt-1 text-xs text-red-600; }
|
||||
|
||||
@utility table {
|
||||
@apply min-w-full text-sm;
|
||||
& th { @apply px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-slate-500 bg-slate-50; }
|
||||
& td { @apply px-3 py-2 align-top text-slate-700; }
|
||||
& tbody tr { @apply border-t border-slate-100; }
|
||||
& tbody tr:hover { @apply bg-slate-50; }
|
||||
}
|
||||
|
||||
@utility badge { @apply inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ring-1 ring-inset whitespace-nowrap; }
|
||||
@utility badge-red { @apply badge bg-red-50 text-red-700 ring-red-600/20; }
|
||||
@utility badge-orange { @apply badge bg-amber-50 text-amber-800 ring-amber-600/30; }
|
||||
@utility badge-green { @apply badge bg-emerald-50 text-emerald-700 ring-emerald-600/20; }
|
||||
@utility badge-blue { @apply badge bg-sky-50 text-sky-700 ring-sky-600/20; }
|
||||
@utility badge-gray { @apply badge bg-slate-100 text-slate-600 ring-slate-500/20; }
|
||||
|
||||
@utility tab { @apply whitespace-nowrap border-b-2 border-transparent px-3 py-2 text-sm font-medium text-slate-500 hover:border-slate-300 hover:text-slate-700; }
|
||||
@utility tab-active { @apply border-sky-700 text-sky-700; }
|
||||
Reference in new issue
Block a user