Scaffold stax_webapp: React + Vite + TypeScript + Tailwind v4
First working slice against stax_backend_api: Telegram phone/code login flow (matching /auth/request_code + /auth/login), JWT access/refresh tokens in localStorage with automatic single-flight refresh-on-401, and a library view that streams audio via authenticated blob fetch (the /library/stream endpoint needs a Bearer header, which a plain <audio src> can't send). Deliberately small first slice - auth + library only - rather than building UI for all 34 backend endpoints at once. Extend from here as we go. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
.env.example
0 → 100644
.gitignore
0 → 100644
.oxlintrc.json
0 → 100644
README.md
0 → 100644
index.html
0 → 100644
package-lock.json
0 → 100644
package.json
0 → 100644
| { | ||
| "name": "stax_webapp", | ||
| "private": true, | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "tsc -b && vite build", | ||
| "lint": "oxlint", | ||
| "preview": "vite preview" | ||
| }, | ||
| "dependencies": { | ||
| "react": "^19.2.8", | ||
| "react-dom": "^19.2.8", | ||
| "react-router-dom": "^7.18.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@tailwindcss/vite": "^4.3.3", | ||
| "@types/node": "^24.13.3", | ||
| "@types/react": "^19.2.17", | ||
| "@types/react-dom": "^19.2.3", | ||
| "@vitejs/plugin-react": "^6.0.4", | ||
| "oxlint": "^1.75.0", | ||
| "tailwindcss": "^4.3.3", | ||
| "typescript": "~6.0.2", | ||
| "vite": "^8.2.0" | ||
| } | ||
| } |
public/favicon.svg
0 → 100644
public/icons.svg
0 → 100644
src/App.tsx
0 → 100644
src/api/auth.ts
0 → 100644
src/api/client.ts
0 → 100644
src/api/library.ts
0 → 100644
src/api/stream.ts
0 → 100644
src/assets/hero.png
0 → 100644
12.8 KB
src/assets/react.svg
0 → 100644
src/assets/vite.svg
0 → 100644
src/components/Layout.tsx
0 → 100644
src/context/AuthContext.tsx
0 → 100644
src/index.css
0 → 100644
src/main.tsx
0 → 100644
src/pages/Library.tsx
0 → 100644
src/pages/Login.tsx
0 → 100644
tsconfig.app.json
0 → 100644
tsconfig.json
0 → 100644
tsconfig.node.json
0 → 100644
vite.config.ts
0 → 100644