mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 19:30:16 +01:00
feat(frontend): Tauri Apps, Shared UI Library und Nix Flake
- packages/ui: Shared React Component Library (Button, Card, Badge, Input) mit Tailwind v4 @theme Design Tokens (oklch) - apps/web: ERP Web-UI (Vite + React + Tailwind v4, API-Proxy :8080) - apps/scanner: Tauri v2 Mobile App mit Barcode-Scanner Plugin (cfg(mobile) für Desktop-Kompatibilität) - flake.nix: Nix Flake mit rust-overlay, Tauri System-Deps (GTK, WebKitGTK, libsoup, OpenSSL), ersetzt shell.nix - justfile: Dev-Befehle für alle Projekte (backend, cli, web, scanner) - frontend/CLAUDE.md: Agent Guide mit Base UI Docs Referenz
This commit is contained in:
parent
b9b89e3f0e
commit
ef50eb8279
96 changed files with 11682 additions and 16 deletions
29
frontend/apps/scanner/src/App.tsx
Normal file
29
frontend/apps/scanner/src/App.tsx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { Button, Card } from '@effigenix/ui';
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<div className="min-h-screen p-6">
|
||||
<div className="mx-auto max-w-md space-y-6">
|
||||
<h1 className="text-2xl font-bold text-brand-700">Effigenix Scanner</h1>
|
||||
|
||||
<Card>
|
||||
<h2 className="mb-4 text-lg font-semibold">Chargen-Scanner</h2>
|
||||
<p className="mb-4 text-sm text-warm-600">
|
||||
QR-Code oder Barcode scannen, um Chargen-Details anzuzeigen.
|
||||
</p>
|
||||
<Button
|
||||
variant="primary"
|
||||
size="lg"
|
||||
className="w-full"
|
||||
onClick={() => {
|
||||
// TODO: Barcode-Scanner Integration
|
||||
console.log('Scan gestartet');
|
||||
}}
|
||||
>
|
||||
Scan starten
|
||||
</Button>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
4
frontend/apps/scanner/src/index.css
Normal file
4
frontend/apps/scanner/src/index.css
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
@import 'tailwindcss';
|
||||
@import '@effigenix/ui/theme.css';
|
||||
|
||||
@source '../../packages/ui/src/**/*.{ts,tsx}';
|
||||
10
frontend/apps/scanner/src/main.tsx
Normal file
10
frontend/apps/scanner/src/main.tsx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { App } from './App';
|
||||
import './index.css';
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>
|
||||
);
|
||||
1
frontend/apps/scanner/src/vite-env.d.ts
vendored
Normal file
1
frontend/apps/scanner/src/vite-env.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/// <reference types="vite/client" />
|
||||
Loading…
Add table
Add a link
Reference in a new issue