Compare commits

2 Commits

Author SHA1 Message Date
Frank Schwenk
501e064711 Add PWA assets, update index.astro, set .gitea
- Added PWA-related files: LICENSE, favicon.ico, icon-192.png, icon-512.png, manifest.json, service-worker.js in public/
- Deleted legacy favicon.svg
- Major update to src/pages/index.astro: implements full responsive UI, PWA manifest, service worker registration, and touch/mobile optimizations
- Added/updated .gitea to track current Gitea issue for workflow compliance

Purpose: Implements PWA support and refactors the main page for the Astro app, aligning with the migration and refactor described in issue #1.

Refs #1
2025-06-05 12:14:59 +02:00
Frank Schwenk
7f6c0292cb Initialize Astro project structure and clean up legacy files\n\n- Added Astro project scaffolding and configuration:\n - .gitignore, .gitmodules, .vscode/extensions.json, .vscode/launch.json\n - astro.config.mjs, package.json, package-lock.json, tsconfig.json\n - public/favicon.svg, src/pages/index.astro\n- Added .cursor as a submodule (note: unstaged changes remain)\n- Removed legacy files from previous project setup:\n - LICENSE, TODO.md, favicon.ico, icon-192.png, icon-512.png, index.html, manifest.json, service-worker.js\n- Establishes a clean foundation for new development using Astro\n\nRefs #1 2025-06-05 12:05:02 +02:00
18 changed files with 4931 additions and 89 deletions

1
.cursor Submodule

Submodule .cursor added at 24996c0e13

1
.gitea Normal file
View File

@@ -0,0 +1 @@
@https://gitea.schwenk.online/froxxxy/bscscore/issues/1

27
.gitignore vendored Normal file
View File

@@ -0,0 +1,27 @@
# build output
dist/
# generated types
.astro/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store
# jetbrains setting folder
.idea/
.gitea
dev/

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule ".cursor"]
path = .cursor
url = ssh://git@gitea.schwenk.online:2222/froxxxy/cursorrules.git

4
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}

11
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}

89
TODO.md
View File

@@ -1,89 +0,0 @@
# TODO List
## High Priority
1. Add game statistics
- Track win/loss ratio per player
- Show total games played
- Display average scores
- Show favorite game types per player
2. Implement game history
- Log score changes with timestamps
- Show who made which changes
- Allow reviewing game progression
3. Add confirmation for game completion
- Show final score summary
- Display winner announcement
- Option to undo completion
4. Improve error handling
- Validate all user inputs
- Show meaningful error messages
- Add recovery options for data issues
## Medium Priority
5. Add player profiles
- Player avatars/images
- Personal statistics
- Preferred game types
- Nickname support
6. Implement game rules
- Show rules for each game type
- Add rule validation for scoring
- Display fouls and penalties
7. Add search and filtering
- Search for specific games/players
- Filter by date ranges
- Sort by various criteria
- Advanced filtering options
8. Improve game type management
- Custom game types
- Configurable scoring rules
- Special game modes
## Lower Priority
9. Add themes and customization
- Dark/light mode toggle
- Custom color schemes
- Font size adjustments
- Layout options
10. Implement data backup
- Export to different formats
- Automatic backups
- Data recovery options
11. Add social features
- Share game results
- Player rankings
- Tournament support
- Challenge system
12. Improve accessibility
- Screen reader support
- Keyboard navigation
- High contrast mode
- Voice input support
## Nice to Have
13. Add animations and effects
- Score change animations
- Victory celebrations
- Transition effects
- Sound effects
14. Implement achievements
- Player milestones
- Special records
- Achievement badges
- Progress tracking
15. Add multi-language support
- Language selection
- Localized content
- RTL support
- Custom translations

5
astro.config.mjs Normal file
View File

@@ -0,0 +1,5 @@
// @ts-check
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({});

4856
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

14
package.json Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "growing-galaxy",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"astro": "^5.8.2"
}
}

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 364 B

View File

Before

Width:  |  Height:  |  Size: 601 B

After

Width:  |  Height:  |  Size: 601 B

View File

@@ -1,3 +1,7 @@
---
---
<!DOCTYPE html>
<html lang="de">
<head>

5
tsconfig.json Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}