- Add typed API module api/vehicles.ts with lookupVehicle(plate) function - Replace FAKE_VEHICLES record with async API call in HomePage.vue - Remove setTimeout-based fake lookup, use lookupVehicle() instead - Handle errors: show not-found for unknown plates, catch network failures - Add fuel field to VehicleInfo interface and display (e.g. 'Gul, Bensin') - VehicleInfo now shows make, model, year, color, and fuel from API |
||
|---|---|---|
| .. | ||
| e2e | ||
| public | ||
| src | ||
| .gitignore | ||
| .prettierrc | ||
| eslint.config.ts | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.