修改端口2333
Some checks failed
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-26 21:44:09 +08:00
parent 2c4549ad79
commit 9d78991c3a
9 changed files with 141 additions and 185 deletions

View File

@@ -1,6 +1,6 @@
<div align="center">
# STARK Todo List
# <EFBFBD><EFBFBD>?STARK Todo List
<img src="https://img.shields.io/badge/Next.js-15.1.2-black?style=flat-square&logo=next.js" alt="Next.js">
<img src="https://img.shields.io/badge/React-19.0-61DAFB?style=flat-square&logo=react" alt="React">
@@ -97,7 +97,7 @@
4. **Open your browser**
```
http://localhost:3000
http://localhost:2333
```
### Option 2: Using Management Script
@@ -204,28 +204,28 @@ A convenient shell script is provided for easy management:
```
stark-todo-list/
├── src/
├── app/ # Next.js App Router
│ │ ├── api/ # API Routes
│ │ │ └── todos/ # Todo CRUD endpoints
│ │ ├── analytics/ # Insights & Charts page
│ │ ├── settings/ # Settings page
│ │ ├── page.tsx # Main page
│ │ ├── layout.tsx # Root layout
│ │ └── globals.css # Global styles
├── components/ # React components
│ │ ├── StarkLogo.tsx # Animated logo
│ │ └── AnalyticsDashboard.tsx # Data visualization
├── contexts/ # React contexts
│ │ └── SettingsContext.tsx
├── lib/ # Utility functions
│ │ ├── storage.ts # JSON file operations
│ │ ├── translations.ts # i18n translations
│ │ └── timezones.ts # Timezone data
└── ...
<EFBFBD><EFBFBD>? ├── app/ # Next.js App Router
<EFBFBD><EFBFBD>? <20><>? ├── api/ # API Routes
<EFBFBD><EFBFBD>? <20><>? <20><>? └── todos/ # Todo CRUD endpoints
<EFBFBD><EFBFBD>? <20><>? ├── analytics/ # Insights & Charts page
<EFBFBD><EFBFBD>? <20><>? ├── settings/ # Settings page
<EFBFBD><EFBFBD>? <20><>? ├── page.tsx # Main page
<EFBFBD><EFBFBD>? <20><>? ├── layout.tsx # Root layout
<EFBFBD><EFBFBD>? <20><>? └── globals.css # Global styles
<EFBFBD><EFBFBD>? ├── components/ # React components
<EFBFBD><EFBFBD>? <20><>? ├── StarkLogo.tsx # Animated logo
<EFBFBD><EFBFBD>? <20><>? └── AnalyticsDashboard.tsx # Data visualization
<EFBFBD><EFBFBD>? ├── contexts/ # React contexts
<EFBFBD><EFBFBD>? <20><>? └── SettingsContext.tsx
<EFBFBD><EFBFBD>? ├── lib/ # Utility functions
<EFBFBD><EFBFBD>? <20><>? ├── storage.ts # JSON file operations
<EFBFBD><EFBFBD>? <20><>? ├── translations.ts # i18n translations
<EFBFBD><EFBFBD>? <20><>? └── timezones.ts # Timezone data
<EFBFBD><EFBFBD>? └── ...
├── public/ # Static assets
├── scripts/
├── generate-icons.js # Favicon generator
└── generate-mock-data.js # Demo data generator
<EFBFBD><EFBFBD>? ├── generate-icons.js # Favicon generator
<EFBFBD><EFBFBD>? └── generate-mock-data.js # Demo data generator
├── docker-compose.yml # Docker Compose config
├── Dockerfile # Docker image config
├── run.sh # Management script
@@ -234,7 +234,7 @@ stark-todo-list/
└── package.json # Project dependencies
```
## 🛠 Technology Stack
## 🛠<EFBFBD><EFBFBD>?Technology Stack
- **Framework**: Next.js 15 (App Router)
- **Language**: TypeScript 5
@@ -288,10 +288,10 @@ Protected endpoints require authentication via API key in request headers:
| Method | Auth | Description |
|--------|------|-------------|
| GET | | Get all active todos |
| POST | | Create a new todo |
| PUT | | Update an existing todo |
| DELETE | | Soft delete a todo |
| GET | <EFBFBD><EFBFBD>?| Get all active todos |
| POST | <EFBFBD><EFBFBD>?| Create a new todo |
| PUT | <EFBFBD><EFBFBD>?| Update an existing todo |
| DELETE | <EFBFBD><EFBFBD>?| Soft delete a todo |
**GET /api/todos**
```bash
@@ -324,9 +324,9 @@ curl -X DELETE "https://your-domain/api/todos?id=uuid" \
| Method | Auth | Description |
|--------|------|-------------|
| GET | | Get all groups |
| POST | | Create a new group |
| DELETE | | Delete a group |
| GET | <EFBFBD><EFBFBD>?| Get all groups |
| POST | <EFBFBD><EFBFBD>?| Create a new group |
| DELETE | <EFBFBD><EFBFBD>?| Delete a group |
**GET /api/groups**
```bash
@@ -351,8 +351,8 @@ curl -X DELETE "https://your-domain/api/groups?id=uuid" \
| Method | Auth | Description |
|--------|------|-------------|
| GET | | Get PV/UV statistics |
| POST | | Update visit statistics |
| GET | <EFBFBD><EFBFBD>?| Get PV/UV statistics |
| POST | <EFBFBD><EFBFBD>?| Update visit statistics |
**GET /api/stats**
```bash
@@ -363,7 +363,7 @@ curl https://your-domain/api/stats
| Method | Auth | Description |
|--------|------|-------------|
| POST | | Verify password |
| POST | <EFBFBD><EFBFBD>?| Verify password |
**POST /api/auth**
```bash
@@ -398,8 +398,9 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
<div align="center">
**[Back to Top](#-stark-todo-list)**
**[<EFBFBD><EFBFBD>?Back to Top](#-stark-todo-list)**
Made with ❤️ by STARK | Powered by Next.js
</div>