updated to correct frature

This commit is contained in:
2025-07-15 13:55:52 +03:00
parent d30d065f44
commit 94f006d458
7 changed files with 1277 additions and 28 deletions

View File

@@ -1,4 +1,17 @@
# QR Code Manager
# QR C### QR Code Types Suppo### Management Features
- **Preview** - Real-time preview of generated QR codes
- **Download** - Export QR codes as PNG images
- **History** - View and manage previously generated QR codes
- **Delete** - Remove unwanted QR codes
- **Copy** - Copy QR codes to clipboard
- **Dynamic Link Management** - ⭐ **NEW!** Create and edit link collections **Text** - Plain text QR codes
- **URL/Website** - Direct links to websites
- **Dynamic Link Page** - ⭐ **NEW!** Create a web page with manageable links
- **WiFi** - WiFi network connection details
- **Email** - Pre-filled email composition
- **Phone** - Direct phone number dialing
- **SMS** - Pre-filled SMS messages
- **vCard** - Digital contact cardsger
A comprehensive Python web application for creating, customizing, and managing QR codes. This application provides functionality similar to popular QR code generation websites with additional features for local management.
@@ -65,6 +78,14 @@ A comprehensive Python web application for creating, customizing, and managing Q
- Click "Generate QR Code"
- Download or copy your QR code
4. **Use Dynamic Link Pages** ⭐ **NEW!**:
- Select "Dynamic Link Page" as the QR code type
- Enter a title and description for your link collection
- Generate the QR code
- Use the "Manage" button or edit URL to add/edit links
- Share the QR code - visitors will see your current link collection
- Update links anytime without changing the QR code!
## API Endpoints
The application provides a RESTful API for programmatic access:
@@ -95,6 +116,39 @@ The application provides a RESTful API for programmatic access:
- **Body**: Multipart form with logo file
- **Response**: Logo path for use in QR generation
### Dynamic Link Pages ⭐ **NEW!**
#### Create Link Page
- **POST** `/api/create_link_page`
- **Body**: JSON with page title, description, and QR styling
- **Response**: QR code data, page URLs, and management links
#### Add Link to Page
- **POST** `/api/link_pages/<page_id>/links`
- **Body**: JSON with link title, URL, and description
- **Response**: Success/error status
#### Update Link
- **PUT** `/api/link_pages/<page_id>/links/<link_id>`
- **Body**: JSON with updated link data
- **Response**: Success/error status
#### Delete Link
- **DELETE** `/api/link_pages/<page_id>/links/<link_id>`
- **Response**: Success/error status
#### Get Link Page Data
- **GET** `/api/link_pages/<page_id>`
- **Response**: JSON with page and links data
#### View Public Link Page
- **GET** `/links/<page_id>`
- **Response**: HTML page displaying links
#### Edit Link Page
- **GET** `/edit/<page_id>`
- **Response**: HTML interface for managing links
## Example API Usage
### Generate a URL QR Code
@@ -127,6 +181,30 @@ curl -X POST http://localhost:5000/api/generate \
}'
```
### Create a Dynamic Link Page ⭐ **NEW!**
```bash
curl -X POST http://localhost:5000/api/create_link_page \
-H "Content-Type: application/json" \
-d '{
"title": "My Resources",
"description": "Collection of useful links",
"foreground_color": "#1565c0",
"background_color": "#ffffff",
"style": "rounded"
}'
```
### Add Links to the Page
```bash
curl -X POST http://localhost:5000/api/link_pages/PAGE_ID/links \
-H "Content-Type: application/json" \
-d '{
"title": "GitHub",
"url": "https://github.com",
"description": "Code repository platform"
}'
```
## File Structure
```