mirror of
https://github.com/Dasemu/si-no-o-indiferente.git
synced 2026-11-27 07:46:31 +00:00
Renames the game to "Sí, no, o indiferente" across the app, README, Capacitor config and Android strings. Replaces the dark-purple theme with a distinct case-file/dossier look (monospace type, black/cream/red palette, stamped difficulty badges, stacked-card shadows). Removes the progressive hint system and the two-step solution confirmation: the narrator's solution is now always rendered, gated only by a blur show/hide toggle with a "Confidencial" stamp. Adds a back button from the narrator screen to the picker (without marking the story as used), drops dev-facing cruft (story source/count badge), converts remaining UI copy to Peninsular Spanish, and adds a post-game screen where players can optionally rate a story's difficulty (1-5), sent to the new backend ratings endpoint.
35 lines
905 B
Markdown
35 lines
905 B
Markdown
# Frontend — Sí, no, o indiferente
|
|
|
|
React + Vite app. Packaged as a website and, with Capacitor, as an Android
|
|
APK.
|
|
|
|
## Development
|
|
|
|
```bash
|
|
npm install
|
|
cp .env.example .env # VITE_API_URL pointing to your backend
|
|
npm run dev
|
|
```
|
|
|
|
## Web build
|
|
|
|
```bash
|
|
npm run build # generates dist/
|
|
```
|
|
|
|
## APK (Capacitor)
|
|
|
|
See the full instructions in the
|
|
[root README](../README.md#frontend-apk-with-capacitor).
|
|
Summary: `npm run cap:sync` (build + `cap sync android`) and then
|
|
`npm run android:open`, or `cd android && ./gradlew assembleDebug` with the
|
|
Android SDK/JDK installed.
|
|
|
|
## Relevant structure
|
|
|
|
- `src/api.ts` — fetches the story deck from the backend, with fallback to
|
|
the local cache and the embedded default set.
|
|
- `src/data/defaultStories.json` — default stories (original content).
|
|
- `src/screens/` — Home, story picker, and narrator view.
|
|
- `capacitor.config.ts` — native app config.
|