feat: implement Cloudflare KV utility class and React hooks

- Add CloudflareKVClient class with full CRUD operations
- Support for batch operations, metadata, and key listing
- Implement useCloudflareKV hook for React components
- Add useKVValue hook for auto-loading specific keys
- Include comprehensive error handling and loading states
- Create demo component showing all functionality
- Add detailed documentation and usage examples
- Support for JSON parsing and custom configurations
- Based on jm_video_ui.md specifications
This commit is contained in:
root
2025-07-10 20:51:09 +08:00
parent 04e5990376
commit a5381e5305
7 changed files with 1347 additions and 569 deletions

View File

@@ -35,7 +35,11 @@ class Settings(BaseSettings):
default_fps: int = 30
default_video_codec: str = "libx264"
default_audio_codec: str = "aac"
# cloud flare
cloudflare_api_key: str = "dlGquMNiAX-S7SV9pXne7YGfdH_fEgq3TfIGgNcQ"
cloudflare_url: str = "https://api.cloudflare.com/client/v4/"
cloudflare_account_id: str = "67720b647ff2b55cf37ba3ef9e677083"
cloudflare_kv_id: str = "995d7eff088547d7a7d8fea53e56115b"
# Audio Processing
default_sample_rate: int = 44100
default_audio_bitrate: str = "192k"