feat(client): add app skeleton with routing, state and i18n
Add vue-router routes with accessible navigation (document title + focus management), Pinia session store, vue-i18n (PL/EN) and the default layout. Replace the landing page with routed views and remove the old MainView.
This commit is contained in:
+24
-3
@@ -1,5 +1,26 @@
|
||||
# Vue 3 + TypeScript + Vite
|
||||
# TarninaHub — frontend (client)
|
||||
|
||||
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](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
||||
Aplikacja SPA: **Vue 3 + TypeScript + Vite + Vuetify 4**, z routingiem (`vue-router`), stanem (`pinia`) i i18n (`vue-i18n`). Fundament dostępności WCAG 2.1 AA (senior-friendly).
|
||||
|
||||
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
||||
## Komendy
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev # serwer dev (Vite)
|
||||
npm run build # typecheck (vue-tsc) + build produkcyjny
|
||||
npm run preview # podgląd builda
|
||||
npm run lint # ESLint
|
||||
npm run format # Prettier (zapis)
|
||||
npm run format:check # Prettier (weryfikacja)
|
||||
npm run test # Vitest
|
||||
npm run test:a11y # Vitest (testy dostępności)
|
||||
```
|
||||
|
||||
## Konfiguracja
|
||||
|
||||
Skopiuj `.env.example` do `.env` i ustaw w razie potrzeby:
|
||||
|
||||
- `VITE_API_BASE_URL` — bazowy adres API (pusty = ten sam origin; w dev proxy Vite),
|
||||
- `VITE_SURREAL_*` — lokalna (WASM/IndexedDB) i zdalna baza SurrealDB.
|
||||
|
||||
Szczegóły architektury i konwencji: `10_ZalozeniaProjektowe/todo18/FRONTEND.md`.
|
||||
|
||||
Reference in New Issue
Block a user