feat: initialize React app with TanStack Router and Vitest for testing

- Added App component with basic structure and styling.
- Included CSS for app layout and animations.
- Integrated TanStack Router for routing management.
- Set up Vitest for testing with a basic test case for the App component.
- Added logo SVG for branding.
- Configured Vite for development with React and TanStack Devtools.
- Created reportWebVitals utility for performance measurement.
- Established global styles in styles.css.
This commit is contained in:
2026-01-28 02:25:24 +08:00
parent 4cbec4ed1d
commit d8098fa57d
23 changed files with 6613 additions and 0 deletions

BIN
my-app/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
my-app/public/logo192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
my-app/public/logo512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@@ -0,0 +1,25 @@
{
"short_name": "TanStack App",
"name": "Create TanStack App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

3
my-app/public/robots.txt Normal file
View File

@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB