mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-07-04 16:43:08 +02:00
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.base.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
Battery Status (React + TypeScript + Vite)
Shows current battery status (charging and percentage), plus time to full/empty when available.
Run locally
- Install deps
- Start dev server
npm install
npm run dev
Then open the printed local URL (default http://localhost:5173).
Notes:
- The Battery Status API may be unavailable or disabled in some browsers for privacy reasons. In that case, the app will show a helpful message.
- On laptops it typically works in Chromium-based browsers; mobile support varies.