440523b176
- Tailwind v4 + shadcn/ui (Radix), Inter yazı tipi (yerel) - Tasarım token'ları: 4 ana grup (renk körlüğüne uygun) ve durum renkleri, WCAG AA - Aydınlık / Karanlık / Sistem teması (ilk açılışta parlama yok) - lib/format.ts: para (1.250,00 ₺), miktar, yüzde, tarih (GG.AA.YYYY), tutar ayrıştırma - Vitest: 22 biçimlendirme testi; npm test artık frontend'i de çalıştırır - Butonlar mobil dokunma alanına (≥44 px) göre büyütüldü Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
565 B
TypeScript
22 lines
565 B
TypeScript
import path from 'node:path'
|
||
import tailwindcss from '@tailwindcss/vite'
|
||
import react from '@vitejs/plugin-react'
|
||
import { defineConfig } from 'vite'
|
||
|
||
// https://vite.dev/config/
|
||
export default defineConfig({
|
||
plugins: [react(), tailwindcss()],
|
||
resolve: {
|
||
// "@/lib/format" → src/lib/format
|
||
alias: { '@': path.resolve(import.meta.dirname, './src') },
|
||
},
|
||
server: {
|
||
port: 5173,
|
||
strictPort: true,
|
||
// /api istekleri Rust backend'e yönlenir → aynı origin, CORS gerekmez
|
||
proxy: {
|
||
'/api': 'http://localhost:8080',
|
||
},
|
||
},
|
||
})
|