Spaces:
Running
Running
drip
#1
by 2Btainment - opened
- .dockerignore +0 -14
- .env.example +0 -21
- .gitignore +0 -169
- CHANGELOG.md +0 -131
- Dockerfile +0 -44
- FEATURES.md +0 -245
- IMPLEMENTATION.md +0 -398
- LICENSE +0 -21
- PROJECT_OVERVIEW.md +0 -250
- QUICKSTART.md +0 -108
- README.md +7 -317
- app.py +154 -0
- components.json +0 -21
- components/ui/dock.tsx +0 -89
- components/ui/liquid-loader.tsx +0 -125
- electron-builder.yml +0 -93
- lib/cloudflareConfig.ts +0 -34
- lib/galleryStore.ts +0 -246
- lib/rateLimit.ts +0 -43
- lib/utils.ts +0 -6
- next-env.d.ts +0 -5
- next.config.js +0 -52
- package-lock.json +0 -2480
- package.json +0 -53
- pages/_app.tsx +0 -64
- pages/api/generate.ts +0 -515
- pages/api/health.ts +0 -26
- pages/api/optimize.ts +0 -132
- pages/gallery.tsx +0 -366
- pages/index.tsx +0 -847
- postcss.config.mjs +0 -6
- public/favicon.svg +0 -12
- public/icon-maskable.svg +0 -15
- public/manifest.json +0 -27
- public/sw.js +0 -65
- requirements.txt +6 -0
- styles/globals.css +0 -114
- tailwind.config.ts +0 -87
- tsconfig.json +0 -28
.dockerignore
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
node_modules
|
| 2 |
-
.next
|
| 3 |
-
.git
|
| 4 |
-
.venv
|
| 5 |
-
.env
|
| 6 |
-
.env.*
|
| 7 |
-
!.env.example
|
| 8 |
-
*.md
|
| 9 |
-
Dockerfile
|
| 10 |
-
.dockerignore
|
| 11 |
-
electron-builder.yml
|
| 12 |
-
.vscode
|
| 13 |
-
.idea
|
| 14 |
-
npm-debug.log*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.env.example
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
# ============================================================
|
| 2 |
-
# DRIP-CREATOR — Environment-Variablen
|
| 3 |
-
# Lokal: .env.local anlegen (wird NIE committed)
|
| 4 |
-
# HF Space: Space Settings → Variables and secrets
|
| 5 |
-
# ============================================================
|
| 6 |
-
|
| 7 |
-
# Gemini (Bildgenerierung + Prompt-Optimierung)
|
| 8 |
-
# Kostenlos: https://aistudio.google.com/apikey
|
| 9 |
-
GEMINI_API_KEY=
|
| 10 |
-
|
| 11 |
-
# Optional: anderes Gemini-Bildmodell (Default: gemini-2.5-flash-image)
|
| 12 |
-
GEMINI_IMAGE_MODEL=gemini-2.5-flash-image
|
| 13 |
-
|
| 14 |
-
# AI Horde — 100% kostenlos: https://aihorde.net/register
|
| 15 |
-
AIHORDE_API_KEY=
|
| 16 |
-
|
| 17 |
-
# Cloudflare Workers AI — 10.000 Bilder/Tag gratis (schnellster Provider)
|
| 18 |
-
# Account-ID: Dashboard → Workers & Pages → Rechts sidebar "Account ID"
|
| 19 |
-
# API-Token: My Profile → API Tokens → Create → Template "Workers AI"
|
| 20 |
-
CF_ACCOUNT_ID=
|
| 21 |
-
CF_API_TOKEN=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.gitignore
DELETED
|
@@ -1,169 +0,0 @@
|
|
| 1 |
-
# Dependencies
|
| 2 |
-
/node_modules
|
| 3 |
-
/.pnp
|
| 4 |
-
.pnp.js
|
| 5 |
-
|
| 6 |
-
# Testing
|
| 7 |
-
/coverage
|
| 8 |
-
|
| 9 |
-
# Next.js
|
| 10 |
-
/.next/
|
| 11 |
-
/out/
|
| 12 |
-
|
| 13 |
-
# Production
|
| 14 |
-
/build
|
| 15 |
-
|
| 16 |
-
# Misc
|
| 17 |
-
.DS_Store
|
| 18 |
-
*.pem
|
| 19 |
-
|
| 20 |
-
# Debug
|
| 21 |
-
npm-debug.log*
|
| 22 |
-
yarn-debug.log*
|
| 23 |
-
yarn-error.log*
|
| 24 |
-
|
| 25 |
-
# Local env files
|
| 26 |
-
.env*.local
|
| 27 |
-
.env
|
| 28 |
-
|
| 29 |
-
# Vercel
|
| 30 |
-
.vercel
|
| 31 |
-
|
| 32 |
-
# TypeScript
|
| 33 |
-
*.tsbuildinfo
|
| 34 |
-
next-env.d.ts
|
| 35 |
-
|
| 36 |
-
# IDE
|
| 37 |
-
.vscode/
|
| 38 |
-
.idea/
|
| 39 |
-
*.swp
|
| 40 |
-
*.swo
|
| 41 |
-
*~
|
| 42 |
-
|
| 43 |
-
# Logs
|
| 44 |
-
logs
|
| 45 |
-
*.log
|
| 46 |
-
|
| 47 |
-
# Runtime data
|
| 48 |
-
pids
|
| 49 |
-
*.pid
|
| 50 |
-
*.seed
|
| 51 |
-
*.pid.lock
|
| 52 |
-
|
| 53 |
-
# Directory for instrumented libs generated by jscoverage/JSCover
|
| 54 |
-
lib-cov
|
| 55 |
-
|
| 56 |
-
# Coverage directory used by tools like istanbul
|
| 57 |
-
coverage
|
| 58 |
-
*.lcov
|
| 59 |
-
|
| 60 |
-
# nyc test coverage
|
| 61 |
-
.nyc_output
|
| 62 |
-
|
| 63 |
-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
| 64 |
-
.grunt
|
| 65 |
-
|
| 66 |
-
# Bower dependency directory (https://bower.io/)
|
| 67 |
-
bower_components
|
| 68 |
-
|
| 69 |
-
# node-waf configuration
|
| 70 |
-
.lock-wscript
|
| 71 |
-
|
| 72 |
-
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
| 73 |
-
build/Release
|
| 74 |
-
|
| 75 |
-
# Dependency directories
|
| 76 |
-
node_modules/
|
| 77 |
-
jspm_packages/
|
| 78 |
-
|
| 79 |
-
# Snowpack dependency directory (https://snowpack.dev/)
|
| 80 |
-
web_modules/
|
| 81 |
-
|
| 82 |
-
# TypeScript cache
|
| 83 |
-
*.tsbuildinfo
|
| 84 |
-
|
| 85 |
-
# Optional npm cache directory
|
| 86 |
-
.npm
|
| 87 |
-
|
| 88 |
-
# Optional eslint cache
|
| 89 |
-
.eslintcache
|
| 90 |
-
|
| 91 |
-
# Microbundle cache
|
| 92 |
-
.rpt2_cache/
|
| 93 |
-
.rts2_cache_cjs/
|
| 94 |
-
.rts2_cache_es/
|
| 95 |
-
.rts2_cache_umd/
|
| 96 |
-
|
| 97 |
-
# Optional REPL history
|
| 98 |
-
.node_repl_history
|
| 99 |
-
|
| 100 |
-
# Output of 'npm pack'
|
| 101 |
-
*.tgz
|
| 102 |
-
|
| 103 |
-
# Yarn Integrity file
|
| 104 |
-
.yarn-integrity
|
| 105 |
-
|
| 106 |
-
# dotenv environment variables file
|
| 107 |
-
.env.test
|
| 108 |
-
|
| 109 |
-
# parcel-bundler cache (https://parceljs.org/)
|
| 110 |
-
.cache
|
| 111 |
-
.parcel-cache
|
| 112 |
-
|
| 113 |
-
# Next.js build output
|
| 114 |
-
.next
|
| 115 |
-
out
|
| 116 |
-
|
| 117 |
-
# Nuxt.js build / generate output
|
| 118 |
-
.nuxt
|
| 119 |
-
dist
|
| 120 |
-
|
| 121 |
-
# Gatsby files
|
| 122 |
-
.cache/
|
| 123 |
-
# HINWEIS: public/ ist NICHT ignoriert — PWA-Assets (Icons, Manifest, SW)
|
| 124 |
-
# müssen ins Git, sonst schlägt der Docker-Build fehl!
|
| 125 |
-
|
| 126 |
-
# vuepress build output
|
| 127 |
-
.vuepress/dist
|
| 128 |
-
|
| 129 |
-
# Serverless directories
|
| 130 |
-
.serverless/
|
| 131 |
-
|
| 132 |
-
# FuseBox cache
|
| 133 |
-
.fusebox/
|
| 134 |
-
|
| 135 |
-
# DynamoDB Local files
|
| 136 |
-
.dynamodb/
|
| 137 |
-
|
| 138 |
-
# TernJS port file
|
| 139 |
-
.tern-port
|
| 140 |
-
|
| 141 |
-
# Stores VSCode versions used for testing VSCode extensions
|
| 142 |
-
.vscode-test
|
| 143 |
-
|
| 144 |
-
# yarn v2
|
| 145 |
-
.yarn/cache
|
| 146 |
-
.yarn/unplugged
|
| 147 |
-
.yarn/build-state.yml
|
| 148 |
-
.yarn/install-state.gz
|
| 149 |
-
.pnp.*
|
| 150 |
-
|
| 151 |
-
# Mac files
|
| 152 |
-
.DS_Store
|
| 153 |
-
._*
|
| 154 |
-
|
| 155 |
-
# Windows files
|
| 156 |
-
Thumbs.db
|
| 157 |
-
ehthumbs.db
|
| 158 |
-
Desktop.ini
|
| 159 |
-
$RECYCLE.BIN/
|
| 160 |
-
|
| 161 |
-
# Linux files
|
| 162 |
-
*~
|
| 163 |
-
.Trash-*
|
| 164 |
-
.nfs*
|
| 165 |
-
|
| 166 |
-
# Hugging Face
|
| 167 |
-
.huggingface/
|
| 168 |
-
# Python venv
|
| 169 |
-
/.venv/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CHANGELOG.md
DELETED
|
@@ -1,131 +0,0 @@
|
|
| 1 |
-
# Changelog
|
| 2 |
-
|
| 3 |
-
All notable changes to MetaDrop Studio will be documented in this file.
|
| 4 |
-
|
| 5 |
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
| 6 |
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
| 7 |
-
|
| 8 |
-
## [1.0.0] - 2024-10-01
|
| 9 |
-
|
| 10 |
-
### 🎉 Initial Release - Foundation
|
| 11 |
-
|
| 12 |
-
**MetaDrop Studio PoC** - Complete desktop application for Milkdrop-style music visualizations with 1-click MP4 export.
|
| 13 |
-
|
| 14 |
-
#### ✨ Added
|
| 15 |
-
|
| 16 |
-
**Core Features**
|
| 17 |
-
- Cross-platform desktop app (Electron + React + TypeScript)
|
| 18 |
-
- Audio-reactive visualizations with real-time beat/onset detection
|
| 19 |
-
- 10+ Milkdrop-style visual presets with GLSL shaders
|
| 20 |
-
- 1-click MP4 export with 3 quality profiles (720p, 1080p, 4K)
|
| 21 |
-
- PNG/MP4 template overlay system with 14 blend modes
|
| 22 |
-
- Zero-to-Hero UX for non-technical users
|
| 23 |
-
|
| 24 |
-
**Audio Pipeline**
|
| 25 |
-
- Web Audio API integration with Meyda for feature extraction
|
| 26 |
-
- Beat detection with adaptive thresholds
|
| 27 |
-
- Onset detection using spectral flux analysis
|
| 28 |
-
- Tempo estimation from beat intervals
|
| 29 |
-
- Event-driven architecture for audio-visual coordination
|
| 30 |
-
|
| 31 |
-
**Visual Engine**
|
| 32 |
-
- WebGL 2.0 rendering with custom GLSL shaders
|
| 33 |
-
- Real-time parameter mapping (Beat→Zoom, Onset→Color, Tempo→Particles)
|
| 34 |
-
- Motion damping for accessibility
|
| 35 |
-
- Performance monitoring (FPS, memory usage)
|
| 36 |
-
- 60fps rendering target with automatic quality scaling
|
| 37 |
-
|
| 38 |
-
**Presets & Templates**
|
| 39 |
-
- **Presets**: Neon Swirl, Bass Waves, Cosmic Flow, Liquid Dreams, Digital Rain, Fractal Burst, Spectrum Analyzer, Pulse Circle, Energy Bars, Kaleidoscope
|
| 40 |
-
- **Templates**: 6+ PNG/MP4 templates with blend modes
|
| 41 |
-
- **Curation Sets**: 3 themed collections (Calm Ambient, Bass Heavy, Psy Neon)
|
| 42 |
-
|
| 43 |
-
**Export System**
|
| 44 |
-
- FFmpeg WASM integration for browser-based video encoding
|
| 45 |
-
- H.264/AAC MP4 output with quality profiles
|
| 46 |
-
- Metadata JSON export with render statistics
|
| 47 |
-
- File size validation (A2: 20s 1080p < 150MB)
|
| 48 |
-
- WebM fallback for codec compatibility
|
| 49 |
-
|
| 50 |
-
**Development & Build**
|
| 51 |
-
- Cross-platform packaging (Windows NSIS + Portable, macOS DMG, Linux AppImage)
|
| 52 |
-
- VS Code integration with tasks and Roo Code workflow
|
| 53 |
-
- Automated CI smoke testing
|
| 54 |
-
- ESLint + Prettier code quality enforcement
|
| 55 |
-
- TypeScript strict mode with comprehensive type safety
|
| 56 |
-
|
| 57 |
-
**Security & Compliance**
|
| 58 |
-
- Offline-first architecture with no telemetry
|
| 59 |
-
- Electron security sandbox enabled
|
| 60 |
-
- Input validation and XSS protection
|
| 61 |
-
- DSGVO/CCPA compliant (no PII collection)
|
| 62 |
-
- MIT license with commercial use permissions
|
| 63 |
-
|
| 64 |
-
#### 🔧 Technical Implementation
|
| 65 |
-
|
| 66 |
-
**Performance Achievements**
|
| 67 |
-
- ✅ A1: Drag&Drop → Preview in < 2s
|
| 68 |
-
- ✅ A2: 20s Export 1080p → MP4 < 150MB
|
| 69 |
-
- ✅ A3: ≥10 Presets + ≥6 Templates available
|
| 70 |
-
- ✅ A5: Reproducible builds via VS Code tasks
|
| 71 |
-
- ✅ A6: No secrets in repository
|
| 72 |
-
- ✅ A7: CI smoke test passes
|
| 73 |
-
|
| 74 |
-
**Architecture**
|
| 75 |
-
- **Modular Design**: `/core` (engine), `/app` (UI), `/assets` (templates)
|
| 76 |
-
- **Event-Driven**: Audio events drive visual parameter changes
|
| 77 |
-
- **Type-Safe**: Full TypeScript coverage with strict mode
|
| 78 |
-
- **Testable**: Unit tests and integration smoke tests
|
| 79 |
-
- **Scalable**: Plugin-ready architecture for future extensions
|
| 80 |
-
|
| 81 |
-
**Dependencies**
|
| 82 |
-
- **Core**: Electron 28+, React 18, TypeScript 5.3+
|
| 83 |
-
- **Audio**: Meyda 5.3+, Web Audio API
|
| 84 |
-
- **Graphics**: WebGL 2.0, Custom GLSL shaders
|
| 85 |
-
- **Export**: @ffmpeg/ffmpeg 0.12+, @ffmpeg/util 0.12+
|
| 86 |
-
- **Build**: Vite 5+, electron-builder 24+
|
| 87 |
-
|
| 88 |
-
#### 📋 File Structure
|
| 89 |
-
|
| 90 |
-
```
|
| 91 |
-
metadrop-studio/
|
| 92 |
-
├── src/main/ # Electron main process
|
| 93 |
-
├── app/src/ # React frontend
|
| 94 |
-
├── core/ # Engine modules
|
| 95 |
-
│ ├── audio/ # Audio pipeline
|
| 96 |
-
│ ├── visual/ # WebGL visualization
|
| 97 |
-
│ ├── export/ # MP4 export
|
| 98 |
-
│ └── templates/ # Template system
|
| 99 |
-
├── assets/ # Static assets
|
| 100 |
-
├── presets/ # Visual presets
|
| 101 |
-
├── scripts/ # Build scripts
|
| 102 |
-
├── .vscode/ # VS Code config
|
| 103 |
-
└── docs/ # Documentation
|
| 104 |
-
```
|
| 105 |
-
|
| 106 |
-
#### 🎯 Next Steps (v1.1.0)
|
| 107 |
-
- [ ] Butterchurn integration for extended preset library
|
| 108 |
-
- [ ] Real-time parameter automation curves
|
| 109 |
-
- [ ] Custom shader editor for advanced users
|
| 110 |
-
- [ ] Performance profiler and optimization tools
|
| 111 |
-
- [ ] i18n support (German/English switching)
|
| 112 |
-
|
| 113 |
-
---
|
| 114 |
-
|
| 115 |
-
## [Unreleased]
|
| 116 |
-
|
| 117 |
-
### 🔄 In Development
|
| 118 |
-
- Enhanced preset thumbnail generation
|
| 119 |
-
- Advanced template editor
|
| 120 |
-
- MIDI controller support
|
| 121 |
-
- Live streaming integration
|
| 122 |
-
|
| 123 |
-
---
|
| 124 |
-
|
| 125 |
-
**Legend:**
|
| 126 |
-
- ✨ Added: New features
|
| 127 |
-
- 🔧 Changed: Changes in existing functionality
|
| 128 |
-
- 🐛 Fixed: Bug fixes
|
| 129 |
-
- ❌ Removed: Removed features
|
| 130 |
-
- 🔒 Security: Security improvements
|
| 131 |
-
- ⚡ Performance: Performance improvements
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dockerfile
DELETED
|
@@ -1,44 +0,0 @@
|
|
| 1 |
-
# ============================================================
|
| 2 |
-
# DRIP-CREATOR — Hugging Face Spaces (Docker SDK)
|
| 3 |
-
# Multi-Stage: Full Build → schlanke Production-Runtime
|
| 4 |
-
# HF-Anforderung: App lauscht auf 0.0.0.0:7860
|
| 5 |
-
# ============================================================
|
| 6 |
-
|
| 7 |
-
# ---------- Stage 1: Builder ----------
|
| 8 |
-
FROM node:20-slim AS builder
|
| 9 |
-
|
| 10 |
-
WORKDIR /app
|
| 11 |
-
|
| 12 |
-
ENV NEXT_TELEMETRY_DISABLED=1
|
| 13 |
-
|
| 14 |
-
# Dependencies (lockfile-exakt)
|
| 15 |
-
COPY package.json package-lock.json ./
|
| 16 |
-
RUN npm ci
|
| 17 |
-
|
| 18 |
-
# Quellcode + Build (braucht devDependencies: typescript, tailwind)
|
| 19 |
-
COPY . .
|
| 20 |
-
RUN npm run build
|
| 21 |
-
|
| 22 |
-
# ---------- Stage 2: Runner ----------
|
| 23 |
-
FROM node:20-slim AS runner
|
| 24 |
-
|
| 25 |
-
WORKDIR /app
|
| 26 |
-
|
| 27 |
-
ENV NODE_ENV=production \
|
| 28 |
-
NEXT_TELEMETRY_DISABLED=1 \
|
| 29 |
-
PORT=7860 \
|
| 30 |
-
HOSTNAME=0.0.0.0
|
| 31 |
-
|
| 32 |
-
RUN addgroup --system --gid 1001 nodejs \
|
| 33 |
-
&& adduser --system --uid 1001 nextjs
|
| 34 |
-
|
| 35 |
-
# Standalone-Server (enthält minimalen node_modules-Satz)
|
| 36 |
-
COPY --from=builder /app/public ./public
|
| 37 |
-
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
| 38 |
-
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
| 39 |
-
|
| 40 |
-
USER nextjs
|
| 41 |
-
|
| 42 |
-
EXPOSE 7860
|
| 43 |
-
|
| 44 |
-
CMD ["node", "server.js"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FEATURES.md
DELETED
|
@@ -1,245 +0,0 @@
|
|
| 1 |
-
# ✨ Drip-Creator - Vollständige Feature-Liste
|
| 2 |
-
|
| 3 |
-
## 🎨 Bildgenerierungs-Features
|
| 4 |
-
|
| 5 |
-
### Text-zu-Bild Generation
|
| 6 |
-
- ✅ **Haupt-Prompt** - Beschreibe deine Vision
|
| 7 |
-
- ✅ **System-Prompt** - Zusätzliche Parameter und Anweisungen
|
| 8 |
-
- ✅ **Negative Prompts** - Definiere was du NICHT sehen möchtest
|
| 9 |
-
- ✅ **12+ KI-Modelle** - Von SDXL Turbo bis Anime Diffusion
|
| 10 |
-
- ✅ **6 Seitenverhältnisse** - 1:1, 16:9, 9:16, 4:3, 3:4, 21:9
|
| 11 |
-
- ✅ **Erweiterte Parameter** - Steps, Guidance Scale, Seed-Control
|
| 12 |
-
|
| 13 |
-
### 🎭 Style-Templates
|
| 14 |
-
- ✅ **10+ vordefinierte Templates**
|
| 15 |
-
- 📸 Fotorealistisches Portrait
|
| 16 |
-
- 🎬 Kinematische Landschaft
|
| 17 |
-
- 🎨 Digitale Kunst
|
| 18 |
-
- ⭐ Anime Charakter
|
| 19 |
-
- 🧙 Fantasy Kunst
|
| 20 |
-
- 🚀 Sci-Fi Konzept
|
| 21 |
-
- 🌀 Abstrakte Kunst
|
| 22 |
-
- 📦 Produkt-Fotografie
|
| 23 |
-
- 🖼️ Ölgemälde
|
| 24 |
-
- 💜 Neon Cyberpunk
|
| 25 |
-
|
| 26 |
-
- ✅ **Custom Templates**
|
| 27 |
-
- Speichere deine eigenen Kombinationen
|
| 28 |
-
- Favoriten-System
|
| 29 |
-
- Template-Tags für Organisation
|
| 30 |
-
- Schneller Zugriff auf häufig genutzte Styles
|
| 31 |
-
|
| 32 |
-
### 🤖 KI-Modelle (Alle 100% Kostenlos!)
|
| 33 |
-
|
| 34 |
-
#### ⭐ Featured Models
|
| 35 |
-
1. **SDXL Turbo** - Ultra-schnell, 1024x1024, 1-4 Steps
|
| 36 |
-
2. **Stable Diffusion XL** - Höchste Qualität, photorealistisch
|
| 37 |
-
3. **Playground v2.5** - Künstlerisch & ästhetisch
|
| 38 |
-
4. **Realistic Vision V5** - Photorealismus-Spezialist
|
| 39 |
-
5. **Neon Cyberpunk** - Futuristische Ästhetik
|
| 40 |
-
|
| 41 |
-
#### 🎨 Spezialisierte Models
|
| 42 |
-
- **DreamShaper 8** - Traumhafte, surreale Bilder
|
| 43 |
-
- **Anime Diffusion** - Hochwertige Anime/Manga-Kunst
|
| 44 |
-
- **OpenJourney v4** - Midjourney-Style Open Source
|
| 45 |
-
- **Deliberate V3** - Detailliert & präzise
|
| 46 |
-
- **Protogen x3.4** - Sci-Fi & Fantasy-Spezialist
|
| 47 |
-
- **Kandinsky 3.0** - Russisches Multi-Purpose-Modell
|
| 48 |
-
|
| 49 |
-
#### ✨ Enhancement Models
|
| 50 |
-
- **Real-ESRGAN** - 4x Upscaling
|
| 51 |
-
- **GFPGAN** - Gesichts-Restaurierung
|
| 52 |
-
|
| 53 |
-
#### 🧠 LLM Models (Prompt Enhancement)
|
| 54 |
-
- **Llama 3 8B** - Prompt-Verbesserung
|
| 55 |
-
- **Mistral 7B** - Schnelles LLM für Prompts
|
| 56 |
-
|
| 57 |
-
### ⚙️ Erweiterte Einstellungen
|
| 58 |
-
|
| 59 |
-
#### Generation Control
|
| 60 |
-
- ✅ **Steps** - 1-50 (Qualität vs. Geschwindigkeit)
|
| 61 |
-
- ✅ **Guidance Scale** - 1-20 (Prompt-Treue)
|
| 62 |
-
- ✅ **Seed** - Reproduzierbare Ergebnisse
|
| 63 |
-
- ✅ **Aspect Ratio** - 6 verschiedene Formate
|
| 64 |
-
- ✅ **Resolution** - Bis zu 1024x1024
|
| 65 |
-
|
| 66 |
-
#### Provider-Auswahl
|
| 67 |
-
- ✅ **Auto-Modus** - Intelligente Auswahl
|
| 68 |
-
- ✅ **Cloud** - Schnell via Hugging Face
|
| 69 |
-
- ✅ **Lokal** - Privat & offline (WASM)
|
| 70 |
-
|
| 71 |
-
### 🖼️ Bild-Management
|
| 72 |
-
|
| 73 |
-
#### Galerie
|
| 74 |
-
- ✅ **Unbegrenzte History** - Letzte 100 Bilder
|
| 75 |
-
- ✅ **Grid-Ansicht** - Übersichtliche Darstellung
|
| 76 |
-
- ✅ **Schnellvorschau** - Klick zum Anzeigen
|
| 77 |
-
- ✅ **Metadata-Display** - Alle Generation-Details
|
| 78 |
-
|
| 79 |
-
#### Export & Sharing
|
| 80 |
-
- ✅ **Download** - Hochauflösende PNG-Dateien
|
| 81 |
-
- ✅ **Teilen** - Native Share-API
|
| 82 |
-
- ✅ **Zwischenablage** - Kopiere Bilder direkt
|
| 83 |
-
- ✅ **Rechtsklick-Menü** - Kontext-Menu für schnelle Aktionen
|
| 84 |
-
|
| 85 |
-
#### Image Properties
|
| 86 |
-
- ✅ **Metadata-Overlay** - Hover für Details
|
| 87 |
-
- ✅ **Prompt-Kopieren** - Wiederverwendung
|
| 88 |
-
- ✅ **Seed-Anzeige** - Reproduzierbarkeit
|
| 89 |
-
- ✅ **Provider-Info** - Nachvollziehbarkeit
|
| 90 |
-
|
| 91 |
-
### 💫 UI/UX Features
|
| 92 |
-
|
| 93 |
-
#### Design
|
| 94 |
-
- ✅ **Dunkles Theme** - Augenfreundlich
|
| 95 |
-
- ✅ **Gradient-Backgrounds** - Moderne Ästhetik
|
| 96 |
-
- ✅ **Glassmorphism** - Backdrop-Blur-Effekte
|
| 97 |
-
- ✅ **Animationen** - Smooth Transitions
|
| 98 |
-
- ✅ **Responsive** - Desktop & Mobile
|
| 99 |
-
|
| 100 |
-
#### Interaktivität
|
| 101 |
-
- ✅ **Live-Progress** - Echtzeit-Fortschritt
|
| 102 |
-
- ✅ **Drip-Loader** - Spektakuläre Lade-Animation
|
| 103 |
-
- ✅ **Hover-Effekte** - Interaktives Feedback
|
| 104 |
-
- ✅ **Context-Menu** - Rechtsklick-Funktionen
|
| 105 |
-
- ✅ **Keyboard Shortcuts** - (geplant)
|
| 106 |
-
|
| 107 |
-
#### Performance
|
| 108 |
-
- ✅ **Custom Scrollbars** - Styled Scrollbars
|
| 109 |
-
- ✅ **Lazy Loading** - Optimierte Performance
|
| 110 |
-
- ✅ **Code Splitting** - Schnelle Initial Load
|
| 111 |
-
- ✅ **Image Optimization** - Automatische Kompression
|
| 112 |
-
|
| 113 |
-
### 🔧 Technische Features
|
| 114 |
-
|
| 115 |
-
#### PWA Capabilities
|
| 116 |
-
- ✅ **Installierbar** - Als native App
|
| 117 |
-
- ✅ **Offline-Ready** - Service Worker (geplant)
|
| 118 |
-
- ✅ **App-Shortcuts** - Schnellzugriff
|
| 119 |
-
- ✅ **Responsive Icons** - Adaptive Icons
|
| 120 |
-
|
| 121 |
-
#### Data Management
|
| 122 |
-
- ✅ **LocalStorage** - Einstellungen & Templates
|
| 123 |
-
- ✅ **IndexedDB** - Modell-Caching (geplant)
|
| 124 |
-
- ✅ **Session Storage** - Temporary Data
|
| 125 |
-
- ✅ **Browser Cache** - Asset-Optimierung
|
| 126 |
-
|
| 127 |
-
#### Safety & Privacy
|
| 128 |
-
- ✅ **Client-Side Only** - Keine Server
|
| 129 |
-
- ✅ **Lokale Speicherung** - Daten bleiben auf dem Gerät
|
| 130 |
-
- ✅ **Optional Cloud** - Nutzer-kontrolliert
|
| 131 |
-
- ✅ **NSFW Filter** - (geplant)
|
| 132 |
-
|
| 133 |
-
## 🚀 Geplante Features
|
| 134 |
-
|
| 135 |
-
### Phase 2 - Bildbearbeitung
|
| 136 |
-
- ⏳ **Img2Img** - Transformiere existierende Bilder
|
| 137 |
-
- ⏳ **Inpainting** - Bearbeite Bildbereiche
|
| 138 |
-
- ⏳ **Outpainting** - Erweitere Bildränder
|
| 139 |
-
- ⏳ **Upscaling** - Verbessere Auflösung
|
| 140 |
-
- ⏳ **Style Transfer** - Übertrage Kunststile
|
| 141 |
-
|
| 142 |
-
### Phase 3 - Video Generation
|
| 143 |
-
- ⏳ **Text-zu-Video** - Generiere kurze Videos
|
| 144 |
-
- ⏳ **AnimateDiff** - Frame-Interpolation
|
| 145 |
-
- ⏳ **Stable Video Diffusion** - Video-Modelle
|
| 146 |
-
- ⏳ **GIF Export** - Animierte Ausgabe
|
| 147 |
-
|
| 148 |
-
### Phase 4 - Advanced Features
|
| 149 |
-
- ⏳ **Batch Generation** - Multiple Bilder gleichzeitig
|
| 150 |
-
- ⏳ **A/B Testing** - Vergleiche Variationen
|
| 151 |
-
- ⏳ **Prompt Enhancement** - LLM-powered Verbesserungen
|
| 152 |
-
- ⏳ **Auto-Captioning** - Bildanalyse
|
| 153 |
-
- ⏳ **ControlNet** - Präzise Kontrolle
|
| 154 |
-
|
| 155 |
-
### Phase 5 - Community
|
| 156 |
-
- ⏳ **Template Sharing** - Community-Templates
|
| 157 |
-
- ⏳ **Model Hub** - Eigene Modelle hinzufügen
|
| 158 |
-
- ⏳ **Preset Library** - Geteilte Presets
|
| 159 |
-
- ⏳ **Export Collections** - Teile ganze Galerien
|
| 160 |
-
|
| 161 |
-
## 📊 Performance-Metriken
|
| 162 |
-
|
| 163 |
-
### Aktuelle Performance
|
| 164 |
-
- **Initial Load:** ~1-2s
|
| 165 |
-
- **Time to Interactive:** ~3s
|
| 166 |
-
- **Cloud Generation:** 10-30s
|
| 167 |
-
- **Local Generation:** 30-300s (abhängig von CPU)
|
| 168 |
-
- **Bundle Size:** ~250KB (gzipped)
|
| 169 |
-
|
| 170 |
-
### Optimierungen
|
| 171 |
-
- ✅ Code Splitting
|
| 172 |
-
- ✅ Dynamic Imports
|
| 173 |
-
- ✅ Image Lazy Loading
|
| 174 |
-
- ✅ CSS Purging
|
| 175 |
-
- ✅ Asset Compression
|
| 176 |
-
|
| 177 |
-
## 🎯 Unterstützte Workflows
|
| 178 |
-
|
| 179 |
-
### 1. Quick Generation
|
| 180 |
-
Prompt eingeben → Auto-Modus → Sofort generieren
|
| 181 |
-
|
| 182 |
-
### 2. Template-basiert
|
| 183 |
-
Template wählen → Prompt anpassen → Generieren
|
| 184 |
-
|
| 185 |
-
### 3. Advanced Custom
|
| 186 |
-
System-Prompt → Parameter tunen → Seed setzen → Generieren
|
| 187 |
-
|
| 188 |
-
### 4. Iterative Verfeinerung
|
| 189 |
-
Bild generieren → Seed kopieren → Parameter anpassen → Wiederholen
|
| 190 |
-
|
| 191 |
-
### 5. Batch Creation
|
| 192 |
-
Template wählen → Multiple Prompts → Queue abarbeiten
|
| 193 |
-
|
| 194 |
-
## 🔐 Privacy & Security
|
| 195 |
-
|
| 196 |
-
### Daten-Handling
|
| 197 |
-
- ✅ Keine Server-Uploads
|
| 198 |
-
- ✅ Lokale Speicherung
|
| 199 |
-
- ✅ Optional Cloud (explizite Auswahl)
|
| 200 |
-
- ✅ Keine Tracking/Analytics
|
| 201 |
-
|
| 202 |
-
### Content Safety
|
| 203 |
-
- ⏳ NSFW Filter (geplant)
|
| 204 |
-
- ⏳ Prompt Moderation (geplant)
|
| 205 |
-
- ⏳ Safe-Mode Toggle (geplant)
|
| 206 |
-
|
| 207 |
-
## 🌍 Browser-Kompatibilität
|
| 208 |
-
|
| 209 |
-
### ✅ Vollständig unterstützt
|
| 210 |
-
- Chrome 90+
|
| 211 |
-
- Edge 90+
|
| 212 |
-
- Safari 15+
|
| 213 |
-
- Firefox 89+
|
| 214 |
-
|
| 215 |
-
### ⚠️ Eingeschränkt
|
| 216 |
-
- Ältere Browser (ohne WASM)
|
| 217 |
-
- Mobile Browser (Performance)
|
| 218 |
-
|
| 219 |
-
### 🚫 Nicht unterstützt
|
| 220 |
-
- Internet Explorer
|
| 221 |
-
- Browser ohne JavaScript
|
| 222 |
-
|
| 223 |
-
## 📱 Mobile-Optimierungen
|
| 224 |
-
|
| 225 |
-
- ✅ Touch-optimierte UI
|
| 226 |
-
- ✅ Responsive Layouts
|
| 227 |
-
- ✅ Mobile-first Design
|
| 228 |
-
- ✅ PWA-Installation
|
| 229 |
-
- ⏳ Swipe-Gesten (geplant)
|
| 230 |
-
- ⏳ Haptic Feedback (geplant)
|
| 231 |
-
|
| 232 |
-
## 🎓 Use Cases
|
| 233 |
-
|
| 234 |
-
1. **Digital Artists** - Konzept-Entwicklung & Inspiration
|
| 235 |
-
2. **Content Creators** - Social Media Content
|
| 236 |
-
3. **Game Developers** - Konzept-Kunst & Assets
|
| 237 |
-
4. **Hobbyisten** - Kreative Experimente
|
| 238 |
-
5. **Educators** - KI-Bildgenerierung lernen
|
| 239 |
-
6. **Designers** - Mockups & Prototyping
|
| 240 |
-
|
| 241 |
-
---
|
| 242 |
-
|
| 243 |
-
**Letzte Aktualisierung:** 30. September 2025
|
| 244 |
-
**Version:** 0.2.0-alpha
|
| 245 |
-
**Status:** Feature-Complete MVP
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IMPLEMENTATION.md
DELETED
|
@@ -1,398 +0,0 @@
|
|
| 1 |
-
# 🚀 Implementation Guide - Free Web Gen Studio
|
| 2 |
-
|
| 3 |
-
Dieses Dokument beschreibt die nächsten Schritte zur Vervollständigung der PWA.
|
| 4 |
-
|
| 5 |
-
## ✅ Bereits implementiert
|
| 6 |
-
|
| 7 |
-
### Core-Architektur
|
| 8 |
-
- ✅ Next.js 14 Setup mit TypeScript
|
| 9 |
-
- ✅ PWA Manifest und Konfiguration
|
| 10 |
-
- ✅ Tailwind CSS für Styling
|
| 11 |
-
- ✅ Type-Definitionen für alle Core-Entitäten
|
| 12 |
-
- ✅ Zustand Store für State Management
|
| 13 |
-
- ✅ Hybrid-Inferenz-Pipeline (Cloud + Local)
|
| 14 |
-
- ✅ Provider-Abstraktion (Hugging Face + Local WASM)
|
| 15 |
-
- ✅ Model-Registry mit Micro-Models
|
| 16 |
-
- ✅ Hauptseite mit Bildgenerierungs-UI
|
| 17 |
-
- ✅ History/Galerie-Funktionalität
|
| 18 |
-
|
| 19 |
-
## 🔄 Nächste Schritte
|
| 20 |
-
|
| 21 |
-
### Phase 1: App zum Laufen bringen (1-2 Tage)
|
| 22 |
-
|
| 23 |
-
#### 1.1 Development Server testen
|
| 24 |
-
```bash
|
| 25 |
-
cd free-web-gen-studio
|
| 26 |
-
npm run dev
|
| 27 |
-
```
|
| 28 |
-
|
| 29 |
-
**Erwartete Probleme:**
|
| 30 |
-
- Browser-Console-Fehler wegen fehlender Icons
|
| 31 |
-
- Mögliche TypeScript-Fehler in der Zustand-Persist-Middleware
|
| 32 |
-
|
| 33 |
-
**Lösungen:**
|
| 34 |
-
```bash
|
| 35 |
-
# Icons erstellen (placeholder)
|
| 36 |
-
mkdir -p public
|
| 37 |
-
# Erstelle einfache PNG-Icons oder nutze https://favicon.io/
|
| 38 |
-
```
|
| 39 |
-
|
| 40 |
-
#### 1.2 Fehlende Dependencies nachinstallieren
|
| 41 |
-
|
| 42 |
-
Falls noch nicht vorhanden:
|
| 43 |
-
```bash
|
| 44 |
-
npm install @heroicons/react # Für Icons
|
| 45 |
-
npm install clsx # Für conditional classes
|
| 46 |
-
```
|
| 47 |
-
|
| 48 |
-
### Phase 2: Funktionelle Verbesserungen (1 Woche)
|
| 49 |
-
|
| 50 |
-
#### 2.1 Echte ONNX-Integration
|
| 51 |
-
|
| 52 |
-
**Aktuell:** Simulierte Bildgenerierung mit Canvas-Platzhaltern
|
| 53 |
-
|
| 54 |
-
**Upgrade:**
|
| 55 |
-
```bash
|
| 56 |
-
npm install @huggingface/transformers
|
| 57 |
-
npm install onnxruntime-web
|
| 58 |
-
```
|
| 59 |
-
|
| 60 |
-
Ersetze [`LocalWASMProvider`](lib/providers/local-wasm-provider.ts:1) mit echter ONNX Runtime:
|
| 61 |
-
|
| 62 |
-
```typescript
|
| 63 |
-
import { env, AutoModel, AutoTokenizer } from '@huggingface/transformers'
|
| 64 |
-
|
| 65 |
-
export class RealONNXProvider extends BaseInferenceProvider {
|
| 66 |
-
private model: any
|
| 67 |
-
private tokenizer: any
|
| 68 |
-
|
| 69 |
-
async loadModel(modelId: string) {
|
| 70 |
-
env.allowLocalModels = false
|
| 71 |
-
env.useBrowserCache = true
|
| 72 |
-
|
| 73 |
-
this.tokenizer = await AutoTokenizer.from_pretrained(modelId)
|
| 74 |
-
this.model = await AutoModel.from_pretrained(modelId, {
|
| 75 |
-
dtype: 'fp16',
|
| 76 |
-
device: 'wasm'
|
| 77 |
-
})
|
| 78 |
-
}
|
| 79 |
-
}
|
| 80 |
-
```
|
| 81 |
-
|
| 82 |
-
#### 2.2 Progressive Web App Features
|
| 83 |
-
|
| 84 |
-
**Service Worker hinzufügen:**
|
| 85 |
-
|
| 86 |
-
Erstelle `public/sw.js`:
|
| 87 |
-
```javascript
|
| 88 |
-
const CACHE_NAME = 'gen-studio-v1'
|
| 89 |
-
const urlsToCache = ['/', '/manifest.json', '/icon-192x192.png']
|
| 90 |
-
|
| 91 |
-
self.addEventListener('install', (event) => {
|
| 92 |
-
event.waitUntil(
|
| 93 |
-
caches.open(CACHE_NAME).then((cache) => cache.addAll(urlsToCache))
|
| 94 |
-
)
|
| 95 |
-
})
|
| 96 |
-
|
| 97 |
-
self.addEventListener('fetch', (event) => {
|
| 98 |
-
event.respondWith(
|
| 99 |
-
caches.match(event.request).then((response) => response || fetch(event.request))
|
| 100 |
-
)
|
| 101 |
-
})
|
| 102 |
-
```
|
| 103 |
-
|
| 104 |
-
Registriere in [`app/layout.tsx`](app/layout.tsx:1):
|
| 105 |
-
```typescript
|
| 106 |
-
useEffect(() => {
|
| 107 |
-
if ('serviceWorker' in navigator) {
|
| 108 |
-
navigator.serviceWorker.register('/sw.js')
|
| 109 |
-
}
|
| 110 |
-
}, [])
|
| 111 |
-
```
|
| 112 |
-
|
| 113 |
-
#### 2.3 Model Caching mit IndexedDB
|
| 114 |
-
|
| 115 |
-
Implementiere in `lib/models/model-cache.ts`:
|
| 116 |
-
|
| 117 |
-
```typescript
|
| 118 |
-
export class ModelCache {
|
| 119 |
-
private db: IDBDatabase | null = null
|
| 120 |
-
|
| 121 |
-
async init() {
|
| 122 |
-
return new Promise((resolve, reject) => {
|
| 123 |
-
const request = indexedDB.open('ModelCache', 1)
|
| 124 |
-
request.onupgradeneeded = () => {
|
| 125 |
-
const db = request.result
|
| 126 |
-
if (!db.objectStoreNames.contains('models')) {
|
| 127 |
-
db.createObjectStore('models', { keyPath: 'id' })
|
| 128 |
-
}
|
| 129 |
-
}
|
| 130 |
-
request.onsuccess = () => {
|
| 131 |
-
this.db = request.result
|
| 132 |
-
resolve(this.db)
|
| 133 |
-
}
|
| 134 |
-
request.onerror = () => reject(request.error)
|
| 135 |
-
})
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
async saveModel(id: string, data: ArrayBuffer) {
|
| 139 |
-
const tx = this.db!.transaction(['models'], 'readwrite')
|
| 140 |
-
const store = tx.objectStore('models')
|
| 141 |
-
await store.put({ id, data, timestamp: Date.now() })
|
| 142 |
-
}
|
| 143 |
-
|
| 144 |
-
async getModel(id: string): Promise<ArrayBuffer | null> {
|
| 145 |
-
const tx = this.db!.transaction(['models'], 'readonly')
|
| 146 |
-
const store = tx.objectStore('models')
|
| 147 |
-
const result = await store.get(id)
|
| 148 |
-
return result?.data || null
|
| 149 |
-
}
|
| 150 |
-
}
|
| 151 |
-
```
|
| 152 |
-
|
| 153 |
-
### Phase 3: UI/UX Verbesserungen (3-5 Tage)
|
| 154 |
-
|
| 155 |
-
#### 3.1 Responsive Design
|
| 156 |
-
- Mobile-optimierte Layouts
|
| 157 |
-
- Touch-Gesten für Gallery
|
| 158 |
-
- Swipe-to-delete in History
|
| 159 |
-
|
| 160 |
-
#### 3.2 Advanced Settings Panel
|
| 161 |
-
|
| 162 |
-
Erstelle `components/advanced-settings.tsx`:
|
| 163 |
-
```typescript
|
| 164 |
-
export default function AdvancedSettings() {
|
| 165 |
-
return (
|
| 166 |
-
<div className="space-y-4">
|
| 167 |
-
<div>
|
| 168 |
-
<label>Steps</label>
|
| 169 |
-
<input type="range" min="1" max="50" />
|
| 170 |
-
</div>
|
| 171 |
-
<div>
|
| 172 |
-
<label>Guidance Scale</label>
|
| 173 |
-
<input type="range" min="1" max="20" step="0.5" />
|
| 174 |
-
</div>
|
| 175 |
-
<div>
|
| 176 |
-
<label>Seed</label>
|
| 177 |
-
<input type="number" placeholder="Random" />
|
| 178 |
-
</div>
|
| 179 |
-
</div>
|
| 180 |
-
)
|
| 181 |
-
}
|
| 182 |
-
```
|
| 183 |
-
|
| 184 |
-
#### 3.3 Loading States & Animations
|
| 185 |
-
|
| 186 |
-
Nutze Framer Motion:
|
| 187 |
-
```bash
|
| 188 |
-
npm install framer-motion
|
| 189 |
-
```
|
| 190 |
-
|
| 191 |
-
```typescript
|
| 192 |
-
import { motion } from 'framer-motion'
|
| 193 |
-
|
| 194 |
-
<motion.div
|
| 195 |
-
initial={{ opacity: 0, y: 20 }}
|
| 196 |
-
animate={{ opacity: 1, y: 0 }}
|
| 197 |
-
transition={{ duration: 0.3 }}
|
| 198 |
-
>
|
| 199 |
-
{/* Content */}
|
| 200 |
-
</motion.div>
|
| 201 |
-
```
|
| 202 |
-
|
| 203 |
-
### Phase 4: Performance-Optimierung (1 Woche)
|
| 204 |
-
|
| 205 |
-
#### 4.1 WebWorker für Inferenz
|
| 206 |
-
|
| 207 |
-
Erstelle `lib/workers/inference-worker.ts`:
|
| 208 |
-
```typescript
|
| 209 |
-
// Worker-Code
|
| 210 |
-
self.addEventListener('message', async (e) => {
|
| 211 |
-
const { type, payload } = e.data
|
| 212 |
-
|
| 213 |
-
if (type === 'GENERATE') {
|
| 214 |
-
const pipeline = new HybridInferencePipeline()
|
| 215 |
-
const result = await pipeline.generateImage(payload.prompt, payload.options)
|
| 216 |
-
self.postMessage({ type: 'COMPLETE', result })
|
| 217 |
-
}
|
| 218 |
-
})
|
| 219 |
-
```
|
| 220 |
-
|
| 221 |
-
Nutze in Komponente:
|
| 222 |
-
```typescript
|
| 223 |
-
const worker = new Worker(new URL('@/lib/workers/inference-worker', import.meta.url))
|
| 224 |
-
|
| 225 |
-
worker.onmessage = (e) => {
|
| 226 |
-
if (e.data.type === 'COMPLETE') {
|
| 227 |
-
setResult(e.data.result)
|
| 228 |
-
}
|
| 229 |
-
}
|
| 230 |
-
|
| 231 |
-
worker.postMessage({ type: 'GENERATE', payload: { prompt, options } })
|
| 232 |
-
```
|
| 233 |
-
|
| 234 |
-
#### 4.2 Image Compression
|
| 235 |
-
|
| 236 |
-
```bash
|
| 237 |
-
npm install browser-image-compression
|
| 238 |
-
```
|
| 239 |
-
|
| 240 |
-
```typescript
|
| 241 |
-
import imageCompression from 'browser-image-compression'
|
| 242 |
-
|
| 243 |
-
async function compressImage(file: File) {
|
| 244 |
-
const options = {
|
| 245 |
-
maxSizeMB: 1,
|
| 246 |
-
maxWidthOrHeight: 1920,
|
| 247 |
-
useWebWorker: true
|
| 248 |
-
}
|
| 249 |
-
return await imageCompression(file, options)
|
| 250 |
-
}
|
| 251 |
-
```
|
| 252 |
-
|
| 253 |
-
### Phase 5: Testing (3-5 Tage)
|
| 254 |
-
|
| 255 |
-
#### 5.1 Unit Tests
|
| 256 |
-
|
| 257 |
-
```bash
|
| 258 |
-
npm install -D @testing-library/react @testing-library/jest-dom jest jest-environment-jsdom
|
| 259 |
-
```
|
| 260 |
-
|
| 261 |
-
`__tests__/hybrid-pipeline.test.ts`:
|
| 262 |
-
```typescript
|
| 263 |
-
import { HybridInferencePipeline } from '@/lib/inference/hybrid-pipeline'
|
| 264 |
-
|
| 265 |
-
describe('HybridInferencePipeline', () => {
|
| 266 |
-
it('should generate image with valid prompt', async () => {
|
| 267 |
-
const pipeline = new HybridInferencePipeline()
|
| 268 |
-
const result = await pipeline.generateImage('test prompt', {
|
| 269 |
-
model: 'tinysd-preview',
|
| 270 |
-
width: 256,
|
| 271 |
-
height: 256
|
| 272 |
-
})
|
| 273 |
-
|
| 274 |
-
expect(result).toBeDefined()
|
| 275 |
-
expect(result.imageUrl).toBeTruthy()
|
| 276 |
-
})
|
| 277 |
-
})
|
| 278 |
-
```
|
| 279 |
-
|
| 280 |
-
#### 5.2 E2E Tests
|
| 281 |
-
|
| 282 |
-
```bash
|
| 283 |
-
npm install -D @playwright/test
|
| 284 |
-
```
|
| 285 |
-
|
| 286 |
-
`e2e/generation.spec.ts`:
|
| 287 |
-
```typescript
|
| 288 |
-
import { test, expect } from '@playwright/test'
|
| 289 |
-
|
| 290 |
-
test('should generate image', async ({ page }) => {
|
| 291 |
-
await page.goto('/')
|
| 292 |
-
await page.fill('textarea', 'A beautiful sunset')
|
| 293 |
-
await page.click('button:has-text("Bild generieren")')
|
| 294 |
-
|
| 295 |
-
await expect(page.locator('img[alt="Generated"]')).toBeVisible({ timeout: 60000 })
|
| 296 |
-
})
|
| 297 |
-
```
|
| 298 |
-
|
| 299 |
-
### Phase 6: Deployment (1-2 Tage)
|
| 300 |
-
|
| 301 |
-
#### 6.1 Vercel Deployment
|
| 302 |
-
|
| 303 |
-
```bash
|
| 304 |
-
npm install -g vercel
|
| 305 |
-
vercel login
|
| 306 |
-
vercel
|
| 307 |
-
```
|
| 308 |
-
|
| 309 |
-
#### 6.2 Custom Domain
|
| 310 |
-
|
| 311 |
-
```bash
|
| 312 |
-
vercel domains add your-domain.com
|
| 313 |
-
```
|
| 314 |
-
|
| 315 |
-
#### 6.3 Analytics (Optional)
|
| 316 |
-
|
| 317 |
-
```bash
|
| 318 |
-
npm install @vercel/analytics
|
| 319 |
-
```
|
| 320 |
-
|
| 321 |
-
```typescript
|
| 322 |
-
import { Analytics } from '@vercel/analytics/react'
|
| 323 |
-
|
| 324 |
-
export default function RootLayout({ children }) {
|
| 325 |
-
return (
|
| 326 |
-
<html>
|
| 327 |
-
<body>
|
| 328 |
-
{children}
|
| 329 |
-
<Analytics />
|
| 330 |
-
</body>
|
| 331 |
-
</html>
|
| 332 |
-
)
|
| 333 |
-
}
|
| 334 |
-
```
|
| 335 |
-
|
| 336 |
-
## 🐛 Bekannte Limitierungen
|
| 337 |
-
|
| 338 |
-
### Technische Limits
|
| 339 |
-
1. **Browser Memory**: 2-4GB Limit für Model-Sizes
|
| 340 |
-
2. **CPU Performance**: 5-15min für 512px Image auf durchschnittlichem Laptop
|
| 341 |
-
3. **WebGPU Support**: Nur in Chrome 113+ verfügbar
|
| 342 |
-
4. **CORS Issues**: Einige Hugging Face Models haben CORS-Restriktionen
|
| 343 |
-
|
| 344 |
-
### Lösungsansätze
|
| 345 |
-
1. Aggressive Quantisierung (Int8, Int4)
|
| 346 |
-
2. Model Distillation für kleinere Varianten
|
| 347 |
-
3. Cloudflare Workers als Proxy für CORS
|
| 348 |
-
4. WebGPU Feature Detection mit Graceful Degradation
|
| 349 |
-
|
| 350 |
-
## 📊 Performance-Ziele
|
| 351 |
-
|
| 352 |
-
| Metrik | Ziel | Aktuell | Status |
|
| 353 |
-
|--------|------|---------|--------|
|
| 354 |
-
| First Contentful Paint | <2s | ~1s | ✅ |
|
| 355 |
-
| Time to Interactive | <5s | ~3s | ✅ |
|
| 356 |
-
| Image Generation (Cloud) | <30s | ~15s | ✅ |
|
| 357 |
-
| Image Generation (Local) | <5min | Simuliert | ⏳ |
|
| 358 |
-
| Bundle Size | <500KB | ~200KB | ✅ |
|
| 359 |
-
|
| 360 |
-
## 🎯 Roadmap
|
| 361 |
-
|
| 362 |
-
### v1.0 (MVP) - Aktuell
|
| 363 |
-
- ✅ Basis-PWA
|
| 364 |
-
- ✅ Text2Img (simuliert)
|
| 365 |
-
- ✅ Cloud-Provider Integration
|
| 366 |
-
- ⏳ Echte ONNX-Inferenz
|
| 367 |
-
|
| 368 |
-
### v1.1 (Q1 2026)
|
| 369 |
-
- ⏳ Img2Img
|
| 370 |
-
- ⏳ Inpainting
|
| 371 |
-
- ⏳ Batch Generation
|
| 372 |
-
- ⏳ Style Presets
|
| 373 |
-
|
| 374 |
-
### v2.0 (Q2 2026)
|
| 375 |
-
- ⏳ Video Generation
|
| 376 |
-
- ⏳ AnimateDiff Integration
|
| 377 |
-
- ⏳ Advanced Editing Tools
|
| 378 |
-
- ⏳ Multi-Model Pipelines
|
| 379 |
-
|
| 380 |
-
### v3.0 (Q3 2026)
|
| 381 |
-
- ⏳ Local LLM Integration
|
| 382 |
-
- ⏳ Prompt Enhancement
|
| 383 |
-
- ⏳ Community Model Hub
|
| 384 |
-
- ⏳ Collaborative Features
|
| 385 |
-
|
| 386 |
-
## 🤝 Mitwirken
|
| 387 |
-
|
| 388 |
-
Beiträge sind willkommen! Siehe [CONTRIBUTING.md](CONTRIBUTING.md) (noch zu erstellen).
|
| 389 |
-
|
| 390 |
-
## 📄 Lizenz
|
| 391 |
-
|
| 392 |
-
MIT License - Siehe [LICENSE](LICENSE) (noch zu erstellen)
|
| 393 |
-
|
| 394 |
-
---
|
| 395 |
-
|
| 396 |
-
**Erstellt:** 29. September 2025
|
| 397 |
-
**Letztes Update:** 29. September 2025
|
| 398 |
-
**Version:** 0.1.0-alpha
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
MIT License
|
| 2 |
-
|
| 3 |
-
Copyright (c) 2024 MetaDrop Studio
|
| 4 |
-
|
| 5 |
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
-
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
-
in the Software without restriction, including without limitation the rights
|
| 8 |
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
-
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
-
furnished to do so, subject to the following conditions:
|
| 11 |
-
|
| 12 |
-
The above copyright notice and this permission notice shall be included in all
|
| 13 |
-
copies or substantial portions of the Software.
|
| 14 |
-
|
| 15 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
-
SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PROJECT_OVERVIEW.md
DELETED
|
@@ -1,250 +0,0 @@
|
|
| 1 |
-
# 📋 Projektübersicht - Free Web Gen Studio
|
| 2 |
-
|
| 3 |
-
## 🎯 Projektstatus
|
| 4 |
-
|
| 5 |
-
**Version:** 0.1.0-alpha
|
| 6 |
-
**Status:** MVP Grundstruktur komplett
|
| 7 |
-
**Letztes Update:** 29. September 2025
|
| 8 |
-
|
| 9 |
-
## 📦 Was wurde erstellt?
|
| 10 |
-
|
| 11 |
-
### Core-Infrastruktur
|
| 12 |
-
- ✅ **Next.js 14 App** - Moderne React-Framework-Basis
|
| 13 |
-
- ✅ **TypeScript** - Type-Safety im gesamten Projekt
|
| 14 |
-
- ✅ **Tailwind CSS** - Utility-First Styling
|
| 15 |
-
- ✅ **PWA Manifest** - Installierbare Web-App
|
| 16 |
-
|
| 17 |
-
### Backend-Logik
|
| 18 |
-
- ✅ **Hybrid Inference Pipeline** - Intelligente Provider-Auswahl
|
| 19 |
-
- ✅ **Provider-System** - Cloud (Hugging Face) + Local (WASM)
|
| 20 |
-
- ✅ **Model Registry** - Konfiguration für Micro-Models
|
| 21 |
-
- ✅ **State Management** - Zustand Store mit Persistence
|
| 22 |
-
|
| 23 |
-
### UI-Komponenten
|
| 24 |
-
- ✅ **Hauptseite** - Bildgenerierungs-Interface
|
| 25 |
-
- ✅ **Progress Tracking** - Echtzeit-Fortschrittsanzeige
|
| 26 |
-
- ✅ **History/Gallery** - Verwaltung generierter Bilder
|
| 27 |
-
- ✅ **Responsive Design** - Mobile-First Ansatz
|
| 28 |
-
|
| 29 |
-
### Dokumentation
|
| 30 |
-
- ✅ **README.md** - Projektbeschreibung und Setup
|
| 31 |
-
- ✅ **IMPLEMENTATION.md** - Detaillierte Implementierungsschritte
|
| 32 |
-
- ✅ **PROJECT_OVERVIEW.md** - Diese Datei
|
| 33 |
-
|
| 34 |
-
## 🏗️ Projektstruktur
|
| 35 |
-
|
| 36 |
-
```
|
| 37 |
-
free-web-gen-studio/
|
| 38 |
-
├── app/ # Next.js App Directory
|
| 39 |
-
│ ├── layout.tsx # Root Layout mit PWA Setup
|
| 40 |
-
│ ├── page.tsx # Hauptseite (Bildgenerierung)
|
| 41 |
-
│ └── globals.css # Globale Styles
|
| 42 |
-
│
|
| 43 |
-
├── lib/ # Core Business Logic
|
| 44 |
-
│ ├── inference/
|
| 45 |
-
│ │ └── hybrid-pipeline.ts # Hauptlogik für Bildgenerierung
|
| 46 |
-
│ ├── models/
|
| 47 |
-
│ │ └── micro-models-config.ts # Model-Definitionen
|
| 48 |
-
│ ├── providers/
|
| 49 |
-
│ │ ├── base-provider.ts # Provider-Interface
|
| 50 |
-
│ │ ├── huggingface-provider.ts # Cloud-Provider
|
| 51 |
-
│ │ └── local-wasm-provider.ts # Lokale Inferenz
|
| 52 |
-
│ └── store/
|
| 53 |
-
│ └── generation-store.ts # Zustand State Management
|
| 54 |
-
│
|
| 55 |
-
├── types/
|
| 56 |
-
│ └── index.ts # TypeScript Type-Definitionen
|
| 57 |
-
│
|
| 58 |
-
├── public/
|
| 59 |
-
│ └── manifest.json # PWA Manifest
|
| 60 |
-
│
|
| 61 |
-
├── Configuration Files
|
| 62 |
-
│ ├── next.config.js # Next.js Konfiguration
|
| 63 |
-
│ ├── tsconfig.json # TypeScript Konfiguration
|
| 64 |
-
│ ├── tailwind.config.ts # Tailwind Konfiguration
|
| 65 |
-
│ ├── postcss.config.js # PostCSS Konfiguration
|
| 66 |
-
│ ├── package.json # Dependencies
|
| 67 |
-
│ └── .gitignore # Git Ignores
|
| 68 |
-
│
|
| 69 |
-
└── Documentation
|
| 70 |
-
├── README.md # Hauptdokumentation
|
| 71 |
-
├── IMPLEMENTATION.md # Implementierungsguide
|
| 72 |
-
└── PROJECT_OVERVIEW.md # Diese Datei
|
| 73 |
-
```
|
| 74 |
-
|
| 75 |
-
## 🔧 Technologie-Stack
|
| 76 |
-
|
| 77 |
-
### Frontend
|
| 78 |
-
- **Framework:** Next.js 14 (App Router)
|
| 79 |
-
- **UI Library:** React 18
|
| 80 |
-
- **Styling:** Tailwind CSS 3
|
| 81 |
-
- **State:** Zustand 4
|
| 82 |
-
- **Language:** TypeScript 5
|
| 83 |
-
|
| 84 |
-
### AI/ML
|
| 85 |
-
- **Runtime:** ONNX Runtime Web (geplant)
|
| 86 |
-
- **Models:** Stable Diffusion Micro-Varianten
|
| 87 |
-
- **Providers:** Hugging Face Inference API
|
| 88 |
-
|
| 89 |
-
### PWA Features
|
| 90 |
-
- **Manifest:** PWA-Standard-Konfiguration
|
| 91 |
-
- **Service Worker:** (noch zu implementieren)
|
| 92 |
-
- **Offline Support:** (geplant)
|
| 93 |
-
|
| 94 |
-
## 🚀 Schnellstart
|
| 95 |
-
|
| 96 |
-
### 1. Installation
|
| 97 |
-
```bash
|
| 98 |
-
cd free-web-gen-studio
|
| 99 |
-
npm install
|
| 100 |
-
```
|
| 101 |
-
|
| 102 |
-
### 2. Development starten
|
| 103 |
-
```bash
|
| 104 |
-
npm run dev
|
| 105 |
-
```
|
| 106 |
-
|
| 107 |
-
### 3. Browser öffnen
|
| 108 |
-
```
|
| 109 |
-
http://localhost:3000
|
| 110 |
-
```
|
| 111 |
-
|
| 112 |
-
## 📊 Features-Status
|
| 113 |
-
|
| 114 |
-
### ✅ Implementiert
|
| 115 |
-
- [x] Projekt-Setup und Konfiguration
|
| 116 |
-
- [x] Type-System und Interfaces
|
| 117 |
-
- [x] Provider-Architektur
|
| 118 |
-
- [x] State Management
|
| 119 |
-
- [x] Basis-UI
|
| 120 |
-
- [x] Model-Registry
|
| 121 |
-
- [x] Hybrid-Pipeline-Logik
|
| 122 |
-
|
| 123 |
-
### ⏳ In Arbeit
|
| 124 |
-
- [ ] Echte ONNX-Inferenz (derzeit simuliert)
|
| 125 |
-
- [ ] Service Worker für Offline-Support
|
| 126 |
-
- [ ] Model Caching mit IndexedDB
|
| 127 |
-
|
| 128 |
-
### 📋 Geplant
|
| 129 |
-
- [ ] Img2Img Feature
|
| 130 |
-
- [ ] Inpainting
|
| 131 |
-
- [ ] Video Generation
|
| 132 |
-
- [ ] Advanced Settings Panel
|
| 133 |
-
- [ ] Batch Processing
|
| 134 |
-
- [ ] Style Presets
|
| 135 |
-
- [ ] NSFW Filter
|
| 136 |
-
- [ ] Prompt Enhancement (LLM)
|
| 137 |
-
|
| 138 |
-
## 💡 Architektur-Highlights
|
| 139 |
-
|
| 140 |
-
### Hybrid Inference System
|
| 141 |
-
```
|
| 142 |
-
User Request
|
| 143 |
-
↓
|
| 144 |
-
Hybrid Pipeline (Routing-Logik)
|
| 145 |
-
↓
|
| 146 |
-
├── Cloud Provider (schnell, online)
|
| 147 |
-
│ └── Hugging Face API
|
| 148 |
-
│
|
| 149 |
-
└── Local Provider (privat, offline)
|
| 150 |
-
└── WASM/ONNX Runtime
|
| 151 |
-
```
|
| 152 |
-
|
| 153 |
-
### State Flow
|
| 154 |
-
```
|
| 155 |
-
User Action
|
| 156 |
-
↓
|
| 157 |
-
React Component
|
| 158 |
-
↓
|
| 159 |
-
Zustand Store (dispatch action)
|
| 160 |
-
↓
|
| 161 |
-
Hybrid Pipeline (generate)
|
| 162 |
-
↓
|
| 163 |
-
Provider (Cloud oder Local)
|
| 164 |
-
↓
|
| 165 |
-
Result → Store → UI Update
|
| 166 |
-
```
|
| 167 |
-
|
| 168 |
-
## 🎨 Design-Prinzipien
|
| 169 |
-
|
| 170 |
-
1. **Privacy First** - Lokale Verarbeitung bevorzugt
|
| 171 |
-
2. **Performance** - Intelligentes Routing für beste Speed
|
| 172 |
-
3. **Accessibility** - Kostenlos und ohne Account nutzbar
|
| 173 |
-
4. **Progressive** - Funktioniert offline nach initialem Load
|
| 174 |
-
5. **Responsive** - Mobile-First Design
|
| 175 |
-
|
| 176 |
-
## 🔒 Sicherheit & Compliance
|
| 177 |
-
|
| 178 |
-
### Implementiert
|
| 179 |
-
- ✅ Type-Safety durch TypeScript
|
| 180 |
-
- ✅ Client-Side-Only Architektur (keine Server)
|
| 181 |
-
- ✅ Lokale Datenspeicherung (keine Cloud-Upload)
|
| 182 |
-
|
| 183 |
-
### Geplant
|
| 184 |
-
- ⏳ NSFW Content Filter
|
| 185 |
-
- ⏳ Prompt Moderation
|
| 186 |
-
- ⏳ Rate Limiting (Client-Side)
|
| 187 |
-
- ⏳ Model License Compliance Checks
|
| 188 |
-
|
| 189 |
-
## 📈 Performance-Erwartungen
|
| 190 |
-
|
| 191 |
-
### Cloud Provider (Hugging Face)
|
| 192 |
-
- **Latenz:** 10-30 Sekunden
|
| 193 |
-
- **Qualität:** Hoch
|
| 194 |
-
- **Kosten:** Kostenlos (mit Rate Limits)
|
| 195 |
-
- **Verfügbarkeit:** Online erforderlich
|
| 196 |
-
|
| 197 |
-
### Local Provider (WASM)
|
| 198 |
-
- **Latenz:** 2-10 Minuten (CPU-abhängig)
|
| 199 |
-
- **Qualität:** Mittel (durch Quantisierung)
|
| 200 |
-
- **Kosten:** Keine
|
| 201 |
-
- **Verfügbarkeit:** Immer verfügbar
|
| 202 |
-
|
| 203 |
-
## 🐛 Bekannte Limitierungen
|
| 204 |
-
|
| 205 |
-
### Technisch
|
| 206 |
-
1. Lokale Inferenz nur simuliert (Platzhalter-Bilder)
|
| 207 |
-
2. Keine echte ONNX-Integration (noch nicht implementiert)
|
| 208 |
-
3. Service Worker fehlt (kein Offline-Support)
|
| 209 |
-
4. Icons fehlen (Platzhalter erforderlich)
|
| 210 |
-
|
| 211 |
-
### Performance
|
| 212 |
-
1. CPU-Inferenz sehr langsam (5-15min erwartet)
|
| 213 |
-
2. Browser Memory Limit (2-4GB)
|
| 214 |
-
3. Große Models nicht browserkompatibel
|
| 215 |
-
|
| 216 |
-
## 🔄 Nächste Schritte
|
| 217 |
-
|
| 218 |
-
### Sofort (Priority 1)
|
| 219 |
-
1. Icons erstellen/hinzufügen
|
| 220 |
-
2. Development Server testen
|
| 221 |
-
3. Fehler beheben
|
| 222 |
-
|
| 223 |
-
### Kurzfristig (Priority 2)
|
| 224 |
-
1. Echte ONNX-Integration
|
| 225 |
-
2. Service Worker implementieren
|
| 226 |
-
3. Model Caching
|
| 227 |
-
|
| 228 |
-
### Mittelfristig (Priority 3)
|
| 229 |
-
1. Img2Img Feature
|
| 230 |
-
2. Advanced Settings
|
| 231 |
-
3. Performance-Optimierungen
|
| 232 |
-
|
| 233 |
-
## 📞 Support & Kontakt
|
| 234 |
-
|
| 235 |
-
- **Dokumentation:** Siehe README.md und IMPLEMENTATION.md
|
| 236 |
-
- **Issues:** (GitHub Issues noch nicht eingerichtet)
|
| 237 |
-
- **Lizenz:** MIT (noch zu erstellen)
|
| 238 |
-
|
| 239 |
-
## 🏆 Credits
|
| 240 |
-
|
| 241 |
-
- **Framework:** Next.js by Vercel
|
| 242 |
-
- **AI Models:** Hugging Face Community
|
| 243 |
-
- **UI:** Tailwind CSS
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QUICKSTART.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
| 1 |
-
# 🚀 Schnellstart - Free Web Gen Studio
|
| 2 |
-
|
| 3 |
-
## ✅ Installation abgeschlossen!
|
| 4 |
-
|
| 5 |
-
Alle notwendigen Pakete sind installiert. Folge diesen Schritten, um die App zu starten:
|
| 6 |
-
|
| 7 |
-
## 1. Development Server starten
|
| 8 |
-
|
| 9 |
-
```bash
|
| 10 |
-
cd free-web-gen-studio
|
| 11 |
-
npm run dev
|
| 12 |
-
```
|
| 13 |
-
|
| 14 |
-
Die App sollte dann unter `http://localhost:3000` verfügbar sein.
|
| 15 |
-
|
| 16 |
-
## 2. Fehlerbehebung
|
| 17 |
-
|
| 18 |
-
### Build-Fehler beheben
|
| 19 |
-
|
| 20 |
-
Falls du noch Fehler siehst, versuche:
|
| 21 |
-
|
| 22 |
-
```bash
|
| 23 |
-
# Node Modules löschen und neu installieren
|
| 24 |
-
Remove-Item -Recurse -Force node_modules
|
| 25 |
-
Remove-Item package-lock.json
|
| 26 |
-
npm install
|
| 27 |
-
|
| 28 |
-
# Next.js Cache leeren
|
| 29 |
-
Remove-Item -Recurse -Force .next
|
| 30 |
-
|
| 31 |
-
# Neu starten
|
| 32 |
-
npm run dev
|
| 33 |
-
```
|
| 34 |
-
|
| 35 |
-
### TypeScript-Fehler
|
| 36 |
-
|
| 37 |
-
Falls TypeScript-Fehler auftreten:
|
| 38 |
-
|
| 39 |
-
```bash
|
| 40 |
-
npm run type-check
|
| 41 |
-
```
|
| 42 |
-
|
| 43 |
-
## 3. Erste Schritte
|
| 44 |
-
|
| 45 |
-
1. **Öffne** `http://localhost:3000` im Browser
|
| 46 |
-
2. **Gib einen Prompt ein**, z.B. "A beautiful sunset over mountains"
|
| 47 |
-
3. **Wähle ein Modell** (empfohlen: TinySD Preview)
|
| 48 |
-
4. **Klicke** auf "Bild generieren"
|
| 49 |
-
5. **Warte** ~30-60 Sekunden (Cloud) oder 2-5 Minuten (Lokal)
|
| 50 |
-
|
| 51 |
-
## 4. Was funktioniert bereits?
|
| 52 |
-
|
| 53 |
-
✅ **UI/UX**
|
| 54 |
-
- Responsive Design
|
| 55 |
-
- Prompt-Eingabe
|
| 56 |
-
- Model-Auswahl
|
| 57 |
-
- Provider-Auswahl (Auto/Cloud/Lokal)
|
| 58 |
-
- Progress-Tracking
|
| 59 |
-
- Galerie/History
|
| 60 |
-
|
| 61 |
-
✅ **Backend**
|
| 62 |
-
- Hybrid-Pipeline-Logik
|
| 63 |
-
- Cloud-Provider (Hugging Face)
|
| 64 |
-
- Lokaler Provider (simuliert)
|
| 65 |
-
- State Management
|
| 66 |
-
- Job Queue
|
| 67 |
-
|
| 68 |
-
## 5. Was ist noch zu tun?
|
| 69 |
-
|
| 70 |
-
⏳ **Nächste Schritte**
|
| 71 |
-
- Echte ONNX-Integration (derzeit Platzhalter)
|
| 72 |
-
- Service Worker für PWA
|
| 73 |
-
- Icons erstellen
|
| 74 |
-
- Model Caching mit IndexedDB
|
| 75 |
-
|
| 76 |
-
Siehe [`IMPLEMENTATION.md`](IMPLEMENTATION.md) für Details.
|
| 77 |
-
|
| 78 |
-
## 6. Bekannte Limitierungen
|
| 79 |
-
|
| 80 |
-
⚠️ **Aktuell:**
|
| 81 |
-
- Lokale Bildgenerierung ist simuliert (Canvas-Platzhalter)
|
| 82 |
-
- Keine echte KI-Inferenz im Browser
|
| 83 |
-
- Icons fehlen (404 Fehler in Console)
|
| 84 |
-
|
| 85 |
-
✅ **Funktioniert:**
|
| 86 |
-
- Cloud-Provider (Hugging Face API)
|
| 87 |
-
- UI-Interaktionen
|
| 88 |
-
- State Management
|
| 89 |
-
- History/Galerie
|
| 90 |
-
|
| 91 |
-
## 7. Produktions-Build
|
| 92 |
-
|
| 93 |
-
Wenn alles funktioniert, erstelle einen Production Build:
|
| 94 |
-
|
| 95 |
-
```bash
|
| 96 |
-
npm run build
|
| 97 |
-
npm start
|
| 98 |
-
```
|
| 99 |
-
|
| 100 |
-
## 8. Hilfe & Support
|
| 101 |
-
|
| 102 |
-
- **Dokumentation:** `README.md`
|
| 103 |
-
- **Implementation:** `IMPLEMENTATION.md`
|
| 104 |
-
- **Projektübersicht:** `PROJECT_OVERVIEW.md`
|
| 105 |
-
|
| 106 |
-
---
|
| 107 |
-
|
| 108 |
-
**Viel Erfolg! 🎨**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -1,324 +1,14 @@
|
|
| 1 |
---
|
| 2 |
title: Drip Creator
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: purple
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
| 7 |
-
|
|
|
|
| 8 |
pinned: false
|
| 9 |
license: apache-2.0
|
| 10 |
-
short_description:
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
> **Erschaffe atemberaubende Kunstwerke mit KI** - 100% kostenlos & privat im Browser
|
| 16 |
-
|
| 17 |
-
Eine professionelle, webbasierte PWA für KI-Bildgenerierung mit spektakulärem UI/UX und über 12 kostenlosen KI-Modellen.
|
| 18 |
-
|
| 19 |
-
## ✨ Highlights
|
| 20 |
-
|
| 21 |
-
- 🎨 **12+ KI-Modelle** - SDXL, Playground, Kandinsky, Anime & mehr
|
| 22 |
-
- 💫 **10+ Style-Templates** - Von Fotorealismus bis Cyberpunk
|
| 23 |
-
- 🔮 **Spektakuläre Drip-Animation** - Einzigartiges Loading-Erlebnis
|
| 24 |
-
- ⚙️ **System-Prompts** - Volle Kontrolle über Generation
|
| 25 |
-
- 📐 **6 Seitenverhältnisse** - 1:1, 16:9, 9:16, 4:3, 3:4, 21:9
|
| 26 |
-
- 🎭 **Custom Templates** - Speichere deine Lieblings-Kombinationen
|
| 27 |
-
- 🖼️ **Professionelle Galerie** - Mit Metadata & Export
|
| 28 |
-
- 🔗 **Share-Funktionen** - Teile deine Kunstwerke
|
| 29 |
-
- 🌐 **Hybrid-Modus** - Cloud (schnell) oder Lokal (privat)
|
| 30 |
-
- 💻 **Offline-fähig** - Funktioniert ohne Internet
|
| 31 |
-
|
| 32 |
-
## 🚀 Schnellstart
|
| 33 |
-
|
| 34 |
-
```bash
|
| 35 |
-
cd free-web-gen-studio
|
| 36 |
-
npm install
|
| 37 |
-
npm run dev
|
| 38 |
-
```
|
| 39 |
-
|
| 40 |
-
Öffne `http://localhost:3000` und starte deine kreative Reise!
|
| 41 |
-
|
| 42 |
-
## 🎯 Features im Detail
|
| 43 |
-
|
| 44 |
-
### 🎨 Bildgenerierung
|
| 45 |
-
|
| 46 |
-
#### Prompt-System
|
| 47 |
-
- **Haupt-Prompt**: Beschreibe deine Vision
|
| 48 |
-
- **System-Prompt**: Zusätzliche Parameter (z.B. "masterpiece, 8k uhd")
|
| 49 |
-
- **Negative Prompt**: Was du NICHT sehen möchtest
|
| 50 |
-
|
| 51 |
-
#### KI-Modelle (Alle kostenlos!)
|
| 52 |
-
|
| 53 |
-
**⭐ Featured Models:**
|
| 54 |
-
- **SDXL Turbo** - Ultra-schnell, 1024px, 1-4 Steps
|
| 55 |
-
- **Stable Diffusion XL** - Höchste Qualität
|
| 56 |
-
- **Playground v2.5** - Künstlerisch & ästhetisch
|
| 57 |
-
- **Realistic Vision V5** - Photorealismus
|
| 58 |
-
- **Kandinsky 3.0** - Vielseitiges Open-Source
|
| 59 |
-
|
| 60 |
-
**🎭 Spezialisierte Models:**
|
| 61 |
-
- **DreamShaper 8** - Traumhafte Szenen
|
| 62 |
-
- **Anime Diffusion** - Hochwertige Anime-Kunst
|
| 63 |
-
- **OpenJourney v4** - Midjourney-Style
|
| 64 |
-
- **Deliberate V3** - Detailliert & präzise
|
| 65 |
-
- **Protogen x3.4** - Sci-Fi & Fantasy
|
| 66 |
-
|
| 67 |
-
**✨ Enhancement:**
|
| 68 |
-
- **Real-ESRGAN** - 4x Upscaling
|
| 69 |
-
- **GFPGAN** - Gesichts-Restaurierung
|
| 70 |
-
|
| 71 |
-
**🧠 LLMs:**
|
| 72 |
-
- **Llama 3 8B** - Prompt-Verbesserung
|
| 73 |
-
- **Mistral 7B** - Schnelle Prompt-Optimierung
|
| 74 |
-
|
| 75 |
-
### 🎭 Style-Templates
|
| 76 |
-
|
| 77 |
-
10+ vordefinierte Templates:
|
| 78 |
-
- 📸 **Fotorealistisches Portrait** - Studio-Qualität
|
| 79 |
-
- 🎬 **Kinematische Landschaft** - Filmreife Vistas
|
| 80 |
-
- 🎨 **Digitale Kunst** - ArtStation-Style
|
| 81 |
-
- ⭐ **Anime Charakter** - Hochwertige Anime-Art
|
| 82 |
-
- 🧙 **Fantasy Kunst** - Magische Welten
|
| 83 |
-
- 🚀 **Sci-Fi Konzept** - Futuristische Designs
|
| 84 |
-
- 🌀 **Abstrakte Kunst** - Experimentell
|
| 85 |
-
- 📦 **Produkt-Fotografie** - Kommerziell
|
| 86 |
-
- 🖼️ **Ölgemälde** - Klassische Ästhetik
|
| 87 |
-
- 💜 **Neon Cyberpunk** - Leuchtende Neon-Welten
|
| 88 |
-
|
| 89 |
-
**Plus:** Erstelle & speichere eigene Templates!
|
| 90 |
-
|
| 91 |
-
### ⚙️ Erweiterte Einstellungen
|
| 92 |
-
|
| 93 |
-
- **Steps**: 1-50 (Qualität vs. Geschwindigkeit)
|
| 94 |
-
- **Guidance Scale**: 1-20 (Prompt-Treue)
|
| 95 |
-
- **Seed**: Reproduzierbare Ergebnisse
|
| 96 |
-
- **Aspect Ratio**: 6 verschiedene Formate
|
| 97 |
-
- **Provider**: Auto / Cloud / Lokal
|
| 98 |
-
|
| 99 |
-
### 🖼️ Galerie & Export
|
| 100 |
-
|
| 101 |
-
- **Unbegrenzte History** - Bis zu 100 Bilder
|
| 102 |
-
- **Rechtsklick-Menü** - Speichern, Teilen, Kopieren
|
| 103 |
-
- **Metadata-Overlay** - Alle Details per Hover
|
| 104 |
-
- **Native Sharing** - Teile auf Social Media
|
| 105 |
-
- **High-Res Export** - PNG-Download
|
| 106 |
-
|
| 107 |
-
### 💫 UI/UX Highlights
|
| 108 |
-
|
| 109 |
-
- **Dunkles Premium-Theme** - Augenfreundlich & modern
|
| 110 |
-
- **Glassmorphism** - Backdrop-Blur-Effekte
|
| 111 |
-
- **Gradient-Backgrounds** - Dynamische Farben
|
| 112 |
-
- **Drip-Loader** - Spektakuläre 3D-Animation
|
| 113 |
-
- **Smooth Animations** - Flüssige Transitions
|
| 114 |
-
- **Custom Scrollbars** - Styled Purple/Pink
|
| 115 |
-
- **Responsive Design** - Desktop & Mobile perfekt
|
| 116 |
-
|
| 117 |
-
## 🏗️ Architektur
|
| 118 |
-
|
| 119 |
-
```
|
| 120 |
-
Drip-Creator
|
| 121 |
-
├── Hybrid Inference Engine
|
| 122 |
-
│ ├── Cloud Providers (Hugging Face, Replicate)
|
| 123 |
-
│ └── Local WASM (ONNX Runtime)
|
| 124 |
-
├── State Management (Zustand + Persistence)
|
| 125 |
-
├── Template System (Presets + Custom)
|
| 126 |
-
├── Model Registry (12+ Models)
|
| 127 |
-
└── PWA Features (Offline, Installierbar)
|
| 128 |
-
```
|
| 129 |
-
|
| 130 |
-
## 🎯 Workflows
|
| 131 |
-
|
| 132 |
-
### Quick-Start Workflow
|
| 133 |
-
1. App öffnen
|
| 134 |
-
2. Prompt eingeben
|
| 135 |
-
3. Template wählen (optional)
|
| 136 |
-
4. "ERSCHAFFEN" klicken
|
| 137 |
-
5. Kunstwerk in 10-30s
|
| 138 |
-
|
| 139 |
-
### Pro Workflow
|
| 140 |
-
1. System-Prompt definieren
|
| 141 |
-
2. Haupt-Prompt schreiben
|
| 142 |
-
3. Negative Prompts setzen
|
| 143 |
-
4. Model wählen
|
| 144 |
-
5. Parameter tunen (Steps, Guidance, Seed)
|
| 145 |
-
6. Aspect Ratio auswählen
|
| 146 |
-
7. Generieren & iterieren
|
| 147 |
-
|
| 148 |
-
### Batch Workflow
|
| 149 |
-
1. Template speichern
|
| 150 |
-
2. Mehrere Prompts vorbereiten
|
| 151 |
-
3. Queue abarbeiten lassen
|
| 152 |
-
4. Galerie durchsuchen
|
| 153 |
-
5. Beste auswählen & exportieren
|
| 154 |
-
|
| 155 |
-
## 🔧 Technologie-Stack
|
| 156 |
-
|
| 157 |
-
- **Framework**: Next.js 14 (App Router)
|
| 158 |
-
- **UI**: React 18 + TypeScript 5
|
| 159 |
-
- **Styling**: Tailwind CSS 3.4
|
| 160 |
-
- **State**: Zustand 4 (Persistent)
|
| 161 |
-
- **AI**: ONNX Runtime + Hugging Face API
|
| 162 |
-
- **PWA**: Service Worker + Manifest
|
| 163 |
-
|
| 164 |
-
## 📊 Performance
|
| 165 |
-
|
| 166 |
-
| Metrik | Cloud | Lokal |
|
| 167 |
-
|--------|-------|-------|
|
| 168 |
-
| **Generation** | 10-30s | 2-10min |
|
| 169 |
-
| **Qualität** | Hoch | Mittel |
|
| 170 |
-
| **Privacy** | Mittel | Maximum |
|
| 171 |
-
| **Kosten** | Free | Free |
|
| 172 |
-
|
| 173 |
-
## 🔒 Privacy & Security
|
| 174 |
-
|
| 175 |
-
- ✅ **Client-Side-Only** - Kein Server nötig
|
| 176 |
-
- ✅ **Lokale Speicherung** - Alles bleibt auf deinem Gerät
|
| 177 |
-
- ✅ **Optional Cloud** - Du entscheidest
|
| 178 |
-
- ✅ **Kein Tracking** - Keine Analytics
|
| 179 |
-
- ✅ **Open Source** - Transparenter Code
|
| 180 |
-
|
| 181 |
-
## 🎓 Nutzung
|
| 182 |
-
|
| 183 |
-
### Basis-Generierung
|
| 184 |
-
|
| 185 |
-
```
|
| 186 |
-
1. Prompt: "Ein majestätischer Drache über einer mittelalterlichen Stadt"
|
| 187 |
-
2. Template: Fantasy Kunst
|
| 188 |
-
3. Model: Protogen x3.4
|
| 189 |
-
4. Click: ERSCHAFFEN
|
| 190 |
-
```
|
| 191 |
-
|
| 192 |
-
### Advanced mit System-Prompt
|
| 193 |
-
|
| 194 |
-
```
|
| 195 |
-
System: "masterpiece, best quality, ultra detailed, 8k uhd"
|
| 196 |
-
Main: "Portrait of a cyberpunk hacker"
|
| 197 |
-
Negative: "blurry, low quality, amateur"
|
| 198 |
-
Model: Neon Cyberpunk Style
|
| 199 |
-
Steps: 30
|
| 200 |
-
Guidance: 8.0
|
| 201 |
-
```
|
| 202 |
-
|
| 203 |
-
## 🚀 Deployment
|
| 204 |
-
|
| 205 |
-
### Development
|
| 206 |
-
```bash
|
| 207 |
-
npm run dev
|
| 208 |
-
```
|
| 209 |
-
|
| 210 |
-
### Production
|
| 211 |
-
```bash
|
| 212 |
-
npm run build
|
| 213 |
-
npm start
|
| 214 |
-
```
|
| 215 |
-
|
| 216 |
-
### Vercel (Empfohlen)
|
| 217 |
-
```bash
|
| 218 |
-
vercel deploy
|
| 219 |
-
```
|
| 220 |
-
|
| 221 |
-
### Hugging Face Spaces
|
| 222 |
-
```bash
|
| 223 |
-
# Space läuft als Docker-SDK (sdk: docker, app_port: 7860)
|
| 224 |
-
git push origin main
|
| 225 |
-
# API-Keys im Space unter Settings → Variables and secrets setzen:
|
| 226 |
-
# GEMINI_API_KEY, AIHORDE_API_KEY, CF_ACCOUNT_ID, CF_API_TOKEN
|
| 227 |
-
```
|
| 228 |
-
|
| 229 |
-
## 📱 PWA Installation
|
| 230 |
-
|
| 231 |
-
### Desktop (Chrome/Edge)
|
| 232 |
-
1. Klicke auf Install-Icon in der Adressleiste
|
| 233 |
-
2. Bestätige Installation
|
| 234 |
-
3. App startet als native Anwendung
|
| 235 |
-
|
| 236 |
-
### Mobile
|
| 237 |
-
1. Öffne im Browser
|
| 238 |
-
2. Menü → "Zum Startbildschirm"
|
| 239 |
-
3. Icon erscheint auf dem Home-Screen
|
| 240 |
-
|
| 241 |
-
## 🎨 Anpassung
|
| 242 |
-
|
| 243 |
-
### Eigene Templates erstellen
|
| 244 |
-
|
| 245 |
-
1. Stelle gewünschte Parameter ein
|
| 246 |
-
2. Generiere Testbild
|
| 247 |
-
3. Klicke "Template speichern"
|
| 248 |
-
4. Gib Namen & Tags ein
|
| 249 |
-
5. Template erscheint in deiner Liste
|
| 250 |
-
|
| 251 |
-
### Modelle erkunden
|
| 252 |
-
|
| 253 |
-
- Nutze die Suchfunktion
|
| 254 |
-
- Filtere nach Kategorie
|
| 255 |
-
- Prüfe Tags für Spezialisierungen
|
| 256 |
-
- Teste verschiedene Models für gleichen Prompt
|
| 257 |
-
|
| 258 |
-
## 🐛 Troubleshooting
|
| 259 |
-
|
| 260 |
-
### Build-Fehler
|
| 261 |
-
```bash
|
| 262 |
-
Remove-Item -Recurse -Force node_modules, .next
|
| 263 |
-
npm install
|
| 264 |
-
npm run dev
|
| 265 |
-
```
|
| 266 |
-
|
| 267 |
-
### Performance-Probleme
|
| 268 |
-
- Verwende Cloud-Provider für schnellere Generierung
|
| 269 |
-
- Reduziere Steps auf 10-20
|
| 270 |
-
- Wähle kleinere Auflösungen (512px statt 1024px)
|
| 271 |
-
- Nutze Turbo-Modelle (SDXL Turbo, SD Turbo)
|
| 272 |
-
|
| 273 |
-
### Icons fehlen (404)
|
| 274 |
-
- Icons werden automatisch generiert
|
| 275 |
-
- Oder: Eigene Icons in `/public` legen
|
| 276 |
-
|
| 277 |
-
## 📚 Dokumentation
|
| 278 |
-
|
| 279 |
-
- [`FEATURES.md`](FEATURES.md) - Vollständige Feature-Liste
|
| 280 |
-
- [`IMPLEMENTATION.md`](IMPLEMENTATION.md) - Implementierungs-Details
|
| 281 |
-
- [`PROJECT_OVERVIEW.md`](PROJECT_OVERVIEW.md) - Projekt-Status
|
| 282 |
-
- [`QUICKSTART.md`](QUICKSTART.md) - Schnelleinstieg
|
| 283 |
-
|
| 284 |
-
## 🤝 Contributing
|
| 285 |
-
|
| 286 |
-
Beiträge sind willkommen! Öffne Issues für Bugs oder Feature-Requests.
|
| 287 |
-
|
| 288 |
-
## 📄 Lizenz
|
| 289 |
-
|
| 290 |
-
MIT License - Frei verwendbar, modifizierbar & teilbar
|
| 291 |
-
|
| 292 |
-
## 🙏 Credits
|
| 293 |
-
|
| 294 |
-
- **AI Models**: Hugging Face Community
|
| 295 |
-
- **Framework**: Next.js by Vercel
|
| 296 |
-
- **UI**: Tailwind CSS
|
| 297 |
-
- **State**: Zustand by Poimandres
|
| 298 |
-
- **Icons**: Emoji (Unicode)
|
| 299 |
-
|
| 300 |
-
## 🌟 Roadmap
|
| 301 |
-
|
| 302 |
-
### v0.3.0 (Nächste Woche)
|
| 303 |
-
- ⏳ Img2Img Feature
|
| 304 |
-
- ⏳ Batch Generation
|
| 305 |
-
- ⏳ Service Worker (Offline)
|
| 306 |
-
|
| 307 |
-
### v0.4.0 (Nächster Monat)
|
| 308 |
-
- ⏳ Video Generation
|
| 309 |
-
- ⏳ Inpainting
|
| 310 |
-
- ⏳ Advanced Editing Tools
|
| 311 |
-
|
| 312 |
-
### v1.0.0 (Q1 2026)
|
| 313 |
-
- ⏳ Community Hub
|
| 314 |
-
- ⏳ Model Sharing
|
| 315 |
-
- ⏳ Collaborative Features
|
| 316 |
-
|
| 317 |
-
---
|
| 318 |
-
|
| 319 |
-
**Version**: 0.2.0-alpha
|
| 320 |
-
**Erstellt**: 29. September 2025
|
| 321 |
-
**Letztes Update**: 30. September 2025
|
| 322 |
-
**Status**: MVP mit Premium-UI ✨
|
| 323 |
-
|
| 324 |
-
**Made with 💜 by the Drip-Creator Team**
|
|
|
|
| 1 |
---
|
| 2 |
title: Drip Creator
|
| 3 |
+
emoji: 🖼
|
| 4 |
colorFrom: purple
|
| 5 |
+
colorTo: red
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 5.44.0
|
| 8 |
+
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import numpy as np
|
| 3 |
+
import random
|
| 4 |
+
|
| 5 |
+
# import spaces #[uncomment to use ZeroGPU]
|
| 6 |
+
from diffusers import DiffusionPipeline
|
| 7 |
+
import torch
|
| 8 |
+
|
| 9 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 10 |
+
model_repo_id = "stabilityai/sdxl-turbo" # Replace to the model you would like to use
|
| 11 |
+
|
| 12 |
+
if torch.cuda.is_available():
|
| 13 |
+
torch_dtype = torch.float16
|
| 14 |
+
else:
|
| 15 |
+
torch_dtype = torch.float32
|
| 16 |
+
|
| 17 |
+
pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
| 18 |
+
pipe = pipe.to(device)
|
| 19 |
+
|
| 20 |
+
MAX_SEED = np.iinfo(np.int32).max
|
| 21 |
+
MAX_IMAGE_SIZE = 1024
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
# @spaces.GPU #[uncomment to use ZeroGPU]
|
| 25 |
+
def infer(
|
| 26 |
+
prompt,
|
| 27 |
+
negative_prompt,
|
| 28 |
+
seed,
|
| 29 |
+
randomize_seed,
|
| 30 |
+
width,
|
| 31 |
+
height,
|
| 32 |
+
guidance_scale,
|
| 33 |
+
num_inference_steps,
|
| 34 |
+
progress=gr.Progress(track_tqdm=True),
|
| 35 |
+
):
|
| 36 |
+
if randomize_seed:
|
| 37 |
+
seed = random.randint(0, MAX_SEED)
|
| 38 |
+
|
| 39 |
+
generator = torch.Generator().manual_seed(seed)
|
| 40 |
+
|
| 41 |
+
image = pipe(
|
| 42 |
+
prompt=prompt,
|
| 43 |
+
negative_prompt=negative_prompt,
|
| 44 |
+
guidance_scale=guidance_scale,
|
| 45 |
+
num_inference_steps=num_inference_steps,
|
| 46 |
+
width=width,
|
| 47 |
+
height=height,
|
| 48 |
+
generator=generator,
|
| 49 |
+
).images[0]
|
| 50 |
+
|
| 51 |
+
return image, seed
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
examples = [
|
| 55 |
+
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|
| 56 |
+
"An astronaut riding a green horse",
|
| 57 |
+
"A delicious ceviche cheesecake slice",
|
| 58 |
+
]
|
| 59 |
+
|
| 60 |
+
css = """
|
| 61 |
+
#col-container {
|
| 62 |
+
margin: 0 auto;
|
| 63 |
+
max-width: 640px;
|
| 64 |
+
}
|
| 65 |
+
"""
|
| 66 |
+
|
| 67 |
+
with gr.Blocks(css=css) as demo:
|
| 68 |
+
with gr.Column(elem_id="col-container"):
|
| 69 |
+
gr.Markdown(" # Text-to-Image Gradio Template")
|
| 70 |
+
|
| 71 |
+
with gr.Row():
|
| 72 |
+
prompt = gr.Text(
|
| 73 |
+
label="Prompt",
|
| 74 |
+
show_label=False,
|
| 75 |
+
max_lines=1,
|
| 76 |
+
placeholder="Enter your prompt",
|
| 77 |
+
container=False,
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
run_button = gr.Button("Run", scale=0, variant="primary")
|
| 81 |
+
|
| 82 |
+
result = gr.Image(label="Result", show_label=False)
|
| 83 |
+
|
| 84 |
+
with gr.Accordion("Advanced Settings", open=False):
|
| 85 |
+
negative_prompt = gr.Text(
|
| 86 |
+
label="Negative prompt",
|
| 87 |
+
max_lines=1,
|
| 88 |
+
placeholder="Enter a negative prompt",
|
| 89 |
+
visible=False,
|
| 90 |
+
)
|
| 91 |
+
|
| 92 |
+
seed = gr.Slider(
|
| 93 |
+
label="Seed",
|
| 94 |
+
minimum=0,
|
| 95 |
+
maximum=MAX_SEED,
|
| 96 |
+
step=1,
|
| 97 |
+
value=0,
|
| 98 |
+
)
|
| 99 |
+
|
| 100 |
+
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
| 101 |
+
|
| 102 |
+
with gr.Row():
|
| 103 |
+
width = gr.Slider(
|
| 104 |
+
label="Width",
|
| 105 |
+
minimum=256,
|
| 106 |
+
maximum=MAX_IMAGE_SIZE,
|
| 107 |
+
step=32,
|
| 108 |
+
value=1024, # Replace with defaults that work for your model
|
| 109 |
+
)
|
| 110 |
+
|
| 111 |
+
height = gr.Slider(
|
| 112 |
+
label="Height",
|
| 113 |
+
minimum=256,
|
| 114 |
+
maximum=MAX_IMAGE_SIZE,
|
| 115 |
+
step=32,
|
| 116 |
+
value=1024, # Replace with defaults that work for your model
|
| 117 |
+
)
|
| 118 |
+
|
| 119 |
+
with gr.Row():
|
| 120 |
+
guidance_scale = gr.Slider(
|
| 121 |
+
label="Guidance scale",
|
| 122 |
+
minimum=0.0,
|
| 123 |
+
maximum=10.0,
|
| 124 |
+
step=0.1,
|
| 125 |
+
value=0.0, # Replace with defaults that work for your model
|
| 126 |
+
)
|
| 127 |
+
|
| 128 |
+
num_inference_steps = gr.Slider(
|
| 129 |
+
label="Number of inference steps",
|
| 130 |
+
minimum=1,
|
| 131 |
+
maximum=50,
|
| 132 |
+
step=1,
|
| 133 |
+
value=2, # Replace with defaults that work for your model
|
| 134 |
+
)
|
| 135 |
+
|
| 136 |
+
gr.Examples(examples=examples, inputs=[prompt])
|
| 137 |
+
gr.on(
|
| 138 |
+
triggers=[run_button.click, prompt.submit],
|
| 139 |
+
fn=infer,
|
| 140 |
+
inputs=[
|
| 141 |
+
prompt,
|
| 142 |
+
negative_prompt,
|
| 143 |
+
seed,
|
| 144 |
+
randomize_seed,
|
| 145 |
+
width,
|
| 146 |
+
height,
|
| 147 |
+
guidance_scale,
|
| 148 |
+
num_inference_steps,
|
| 149 |
+
],
|
| 150 |
+
outputs=[result, seed],
|
| 151 |
+
)
|
| 152 |
+
|
| 153 |
+
if __name__ == "__main__":
|
| 154 |
+
demo.launch()
|
components.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"$schema": "https://ui.shadcn.com/schema.json",
|
| 3 |
-
"style": "new-york",
|
| 4 |
-
"rsc": false,
|
| 5 |
-
"tsx": true,
|
| 6 |
-
"tailwind": {
|
| 7 |
-
"config": "tailwind.config.ts",
|
| 8 |
-
"css": "styles/globals.css",
|
| 9 |
-
"baseColor": "zinc",
|
| 10 |
-
"cssVariables": true,
|
| 11 |
-
"prefix": ""
|
| 12 |
-
},
|
| 13 |
-
"aliases": {
|
| 14 |
-
"components": "@/components",
|
| 15 |
-
"utils": "@/lib/utils",
|
| 16 |
-
"ui": "@/components/ui",
|
| 17 |
-
"lib": "@/lib",
|
| 18 |
-
"hooks": "@/hooks"
|
| 19 |
-
},
|
| 20 |
-
"iconLibrary": "lucide"
|
| 21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
components/ui/dock.tsx
DELETED
|
@@ -1,89 +0,0 @@
|
|
| 1 |
-
"use client";
|
| 2 |
-
|
| 3 |
-
import React, { useRef, useState } from "react";
|
| 4 |
-
import * as Tooltip from "@radix-ui/react-tooltip";
|
| 5 |
-
import { cn } from "@/lib/utils";
|
| 6 |
-
|
| 7 |
-
export interface DockItem {
|
| 8 |
-
id: string;
|
| 9 |
-
label: string;
|
| 10 |
-
icon: React.ReactNode;
|
| 11 |
-
active?: boolean;
|
| 12 |
-
disabled?: boolean;
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
interface DockProps {
|
| 16 |
-
items: DockItem[];
|
| 17 |
-
onSelect: (id: string) => void;
|
| 18 |
-
className?: string;
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
/** Gläserne Dock-Leiste mit Magnify-Hover (mausabhängige Vergrößerung) */
|
| 22 |
-
export default function Dock({ items, onSelect, className }: DockProps) {
|
| 23 |
-
const barRef = useRef<HTMLDivElement>(null);
|
| 24 |
-
const [mouseX, setMouseX] = useState<number | null>(null);
|
| 25 |
-
|
| 26 |
-
const handleMouseMove = (e: React.MouseEvent) => {
|
| 27 |
-
const rect = barRef.current?.getBoundingClientRect();
|
| 28 |
-
if (rect) setMouseX(e.clientX - rect.left);
|
| 29 |
-
};
|
| 30 |
-
|
| 31 |
-
const getScale = (index: number, itemCount: number) => {
|
| 32 |
-
if (mouseX === null || !barRef.current) return 1;
|
| 33 |
-
const rect = barRef.current.getBoundingClientRect();
|
| 34 |
-
const slot = rect.width / itemCount;
|
| 35 |
-
const center = index * slot + slot / 2;
|
| 36 |
-
const dist = Math.abs(mouseX - center);
|
| 37 |
-
return Math.max(1, 1.45 - dist / (slot * 1.6));
|
| 38 |
-
};
|
| 39 |
-
|
| 40 |
-
return (
|
| 41 |
-
<Tooltip.Provider delayDuration={120}>
|
| 42 |
-
<div
|
| 43 |
-
ref={barRef}
|
| 44 |
-
onMouseMove={handleMouseMove}
|
| 45 |
-
onMouseLeave={() => setMouseX(null)}
|
| 46 |
-
className={cn(
|
| 47 |
-
"glass glow-ring flex items-end gap-1 rounded-[2rem] px-4 py-3",
|
| 48 |
-
className
|
| 49 |
-
)}
|
| 50 |
-
>
|
| 51 |
-
{items.map((item, index) => {
|
| 52 |
-
const scale = getScale(index, items.length);
|
| 53 |
-
return (
|
| 54 |
-
<Tooltip.Root key={item.id}>
|
| 55 |
-
<Tooltip.Trigger asChild>
|
| 56 |
-
<button
|
| 57 |
-
disabled={item.disabled}
|
| 58 |
-
onClick={() => onSelect(item.id)}
|
| 59 |
-
className={cn(
|
| 60 |
-
"group relative flex h-14 w-14 items-center justify-center rounded-2xl transition-all duration-200 ease-out disabled:cursor-not-allowed disabled:opacity-40",
|
| 61 |
-
item.active
|
| 62 |
-
? "bg-gradient-to-br from-sky-400/30 to-purple-500/30 text-white ring-1 ring-sky-400/50 shadow-[0_0_24px_rgba(56,189,248,0.35)]"
|
| 63 |
-
: "text-slate-300 hover:bg-white/10 hover:text-white"
|
| 64 |
-
)}
|
| 65 |
-
style={{ transform: `scale(${scale})` }}
|
| 66 |
-
>
|
| 67 |
-
{item.icon}
|
| 68 |
-
{/* Glow-Punkt für aktives Tool */}
|
| 69 |
-
{item.active && (
|
| 70 |
-
<span className="absolute -bottom-1 left-1/2 h-1.5 w-1.5 -translate-x-1/2 rounded-full bg-sky-400 shadow-[0_0_8px_rgba(56,189,248,1)]" />
|
| 71 |
-
)}
|
| 72 |
-
</button>
|
| 73 |
-
</Tooltip.Trigger>
|
| 74 |
-
<Tooltip.Portal>
|
| 75 |
-
<Tooltip.Content
|
| 76 |
-
sideOffset={10}
|
| 77 |
-
className="glass z-50 select-none rounded-xl px-3 py-1.5 text-sm font-medium text-white shadow-xl"
|
| 78 |
-
>
|
| 79 |
-
{item.label}
|
| 80 |
-
<Tooltip.Arrow className="fill-slate-500/60" />
|
| 81 |
-
</Tooltip.Content>
|
| 82 |
-
</Tooltip.Portal>
|
| 83 |
-
</Tooltip.Root>
|
| 84 |
-
);
|
| 85 |
-
})}
|
| 86 |
-
</div>
|
| 87 |
-
</Tooltip.Provider>
|
| 88 |
-
);
|
| 89 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
components/ui/liquid-loader.tsx
DELETED
|
@@ -1,125 +0,0 @@
|
|
| 1 |
-
"use client";
|
| 2 |
-
|
| 3 |
-
import React, { useEffect, useState } from "react";
|
| 4 |
-
|
| 5 |
-
const COLORS = [
|
| 6 |
-
"from-sky-400 to-cyan-300",
|
| 7 |
-
"from-purple-500 to-fuchsia-400",
|
| 8 |
-
"from-cyan-400 to-sky-500",
|
| 9 |
-
"from-fuchsia-500 to-pink-400",
|
| 10 |
-
"from-indigo-400 to-violet-500",
|
| 11 |
-
"from-blue-500 to-indigo-400",
|
| 12 |
-
"from-pink-500 to-rose-400",
|
| 13 |
-
];
|
| 14 |
-
|
| 15 |
-
const GLOWS = ["#38bdf8", "#a855f7", "#22d3ee", "#e879f9", "#818cf8", "#3b82f6", "#fb7185"];
|
| 16 |
-
|
| 17 |
-
/**
|
| 18 |
-
* Flüssige Wellen-Animation: 7 "Drip"-Säulen, die mit Sinus-Physik tanzen,
|
| 19 |
-
* Tröpfchen an den Wellenbergen und Glow-Effekte.
|
| 20 |
-
*/
|
| 21 |
-
export default function LiquidLoading() {
|
| 22 |
-
const [heights, setHeights] = useState<number[]>(Array(7).fill(0));
|
| 23 |
-
const [droplets, setDroplets] = useState<boolean[]>(Array(7).fill(false));
|
| 24 |
-
const [phase, setPhase] = useState(0);
|
| 25 |
-
|
| 26 |
-
useEffect(() => {
|
| 27 |
-
const interval = setInterval(() => {
|
| 28 |
-
const now = Date.now() * 0.001;
|
| 29 |
-
setPhase(now);
|
| 30 |
-
setHeights((prev) =>
|
| 31 |
-
prev.map((_, index) => {
|
| 32 |
-
const delay = index * 0.7;
|
| 33 |
-
const primary = Math.sin(now * 1.1 + delay);
|
| 34 |
-
const bounce = Math.sin(now * 3.4 + delay) * 0.18;
|
| 35 |
-
const ripple = Math.sin(now * 7 + delay) * 0.05;
|
| 36 |
-
return 72 * (primary + bounce + ripple);
|
| 37 |
-
})
|
| 38 |
-
);
|
| 39 |
-
setDroplets((prev) =>
|
| 40 |
-
prev.map((_, index) => Math.sin(now * 1.1 + index * 0.7) > 0.82)
|
| 41 |
-
);
|
| 42 |
-
}, 32);
|
| 43 |
-
return () => clearInterval(interval);
|
| 44 |
-
}, []);
|
| 45 |
-
|
| 46 |
-
return (
|
| 47 |
-
<div className="flex items-end gap-4 px-8 pb-6" aria-label="Lädt">
|
| 48 |
-
{heights.map((height, index) => {
|
| 49 |
-
const color = COLORS[index % COLORS.length];
|
| 50 |
-
const glow = GLOWS[index % GLOWS.length];
|
| 51 |
-
const showDrop = droplets[index];
|
| 52 |
-
return (
|
| 53 |
-
<div key={index} className="relative flex flex-col items-center">
|
| 54 |
-
{/* Tröpfchen über der Welle */}
|
| 55 |
-
<div
|
| 56 |
-
className={`mb-2 h-4 w-4 rounded-full bg-gradient-to-r ${color} transition-all duration-500 ease-out`}
|
| 57 |
-
style={{
|
| 58 |
-
opacity: showDrop ? 1 : 0,
|
| 59 |
-
transform: showDrop
|
| 60 |
-
? `translateY(${Math.sin(phase * 0.9 + index) * 3}px) scale(${0.8 + Math.sin(phase * 0.7 + index * 0.4) * 0.35})`
|
| 61 |
-
: "translateY(12px) scale(0.4)",
|
| 62 |
-
boxShadow: showDrop ? `0 0 18px ${glow}66` : "none",
|
| 63 |
-
}}
|
| 64 |
-
/>
|
| 65 |
-
{/* Flüssige Säule */}
|
| 66 |
-
<div
|
| 67 |
-
className={`relative w-11 overflow-hidden rounded-full bg-gradient-to-t ${color} shadow-lg transition-all duration-200 ease-out`}
|
| 68 |
-
style={{
|
| 69 |
-
height: `${Math.max(6, Math.abs(height))}px`,
|
| 70 |
-
transform: height < 0 ? "scaleY(-1)" : "scaleY(1)",
|
| 71 |
-
transformOrigin: "bottom",
|
| 72 |
-
boxShadow: `0 0 26px ${glow}59, inset 0 0 18px rgba(255,255,255,0.14)`,
|
| 73 |
-
}}
|
| 74 |
-
>
|
| 75 |
-
{/* Oberflächenspannung */}
|
| 76 |
-
<div
|
| 77 |
-
className="absolute left-0 right-0 top-0 h-4 rounded-full bg-gradient-to-b from-white/50 to-transparent"
|
| 78 |
-
style={{
|
| 79 |
-
transform: `translateY(${Math.sin(phase * 0.5 + index * 0.5)}px) scaleY(${0.75 + Math.sin(phase * 0.6 + index * 0.3) * 0.25})`,
|
| 80 |
-
}}
|
| 81 |
-
/>
|
| 82 |
-
{/* Welle */}
|
| 83 |
-
<div
|
| 84 |
-
className="absolute inset-0 rounded-full"
|
| 85 |
-
style={{
|
| 86 |
-
transform: `translateY(${Math.sin(phase * 0.4 + index * 0.5) * 2}px)`,
|
| 87 |
-
background:
|
| 88 |
-
"linear-gradient(0deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.12) 50%, transparent 100%)",
|
| 89 |
-
}}
|
| 90 |
-
/>
|
| 91 |
-
{/* Shimmer */}
|
| 92 |
-
<div
|
| 93 |
-
className="absolute inset-0 rounded-full bg-gradient-to-r from-transparent via-white/45 to-transparent"
|
| 94 |
-
style={{
|
| 95 |
-
transform: `translateX(${Math.sin(phase * 0.35 + index * 0.7) * 9}px)`,
|
| 96 |
-
width: "150%",
|
| 97 |
-
left: "-25%",
|
| 98 |
-
}}
|
| 99 |
-
/>
|
| 100 |
-
{/* Blasen */}
|
| 101 |
-
<div
|
| 102 |
-
className="absolute h-2 w-2 rounded-full bg-white/35"
|
| 103 |
-
style={{
|
| 104 |
-
top: `${18 + Math.sin(phase * 0.5 + index * 0.8) * 12}%`,
|
| 105 |
-
left: `${28 + Math.sin(phase * 0.4 + index * 0.6) * 22}%`,
|
| 106 |
-
transform: `scale(${0.5 + Math.sin(phase * 0.6 + index * 0.4) * 0.5})`,
|
| 107 |
-
opacity: Math.sin(phase * 0.7 + index * 0.9) * 0.25 + 0.35,
|
| 108 |
-
}}
|
| 109 |
-
/>
|
| 110 |
-
</div>
|
| 111 |
-
{/* Basis-Tröpfchen */}
|
| 112 |
-
<div
|
| 113 |
-
className={`mt-2 h-3 w-3 rounded-full bg-gradient-to-r ${color} transition-all duration-300`}
|
| 114 |
-
style={{
|
| 115 |
-
opacity: Math.sin(phase * 0.5 + index * 0.9) * 0.35 + 0.65,
|
| 116 |
-
transform: `scale(${0.6 + Math.sin(phase * 0.4 + index * 0.6) * 0.4}) translateY(${Math.sin(phase * 0.6 + index * 0.8)}px)`,
|
| 117 |
-
boxShadow: `0 2px 10px ${glow}55`,
|
| 118 |
-
}}
|
| 119 |
-
/>
|
| 120 |
-
</div>
|
| 121 |
-
);
|
| 122 |
-
})}
|
| 123 |
-
</div>
|
| 124 |
-
);
|
| 125 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
electron-builder.yml
DELETED
|
@@ -1,93 +0,0 @@
|
|
| 1 |
-
appId: com.metadrop.studio
|
| 2 |
-
productName: MetaDrop Studio
|
| 3 |
-
directories:
|
| 4 |
-
output: dist/packages
|
| 5 |
-
buildResources: build
|
| 6 |
-
files:
|
| 7 |
-
- dist/main/**/*
|
| 8 |
-
- dist/renderer/**/*
|
| 9 |
-
- package.json
|
| 10 |
-
- node_modules/**/*
|
| 11 |
-
- "!node_modules/**/{CHANGELOG.md,README.md,readme.md,changelog.md}"
|
| 12 |
-
- "!node_modules/**/{test,__tests__,tests,powered-test,example,examples}"
|
| 13 |
-
- "!node_modules/**/*.d.ts"
|
| 14 |
-
- "!node_modules/.bin"
|
| 15 |
-
- "!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}"
|
| 16 |
-
- "!.editorconfig"
|
| 17 |
-
- "!**/._*"
|
| 18 |
-
- "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}"
|
| 19 |
-
- "!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}"
|
| 20 |
-
- "!**/{appveyor.yml,.travis.yml,circle.yml}"
|
| 21 |
-
- "!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}"
|
| 22 |
-
|
| 23 |
-
extraResources:
|
| 24 |
-
- from: assets
|
| 25 |
-
to: assets
|
| 26 |
-
filter:
|
| 27 |
-
- "**/*"
|
| 28 |
-
|
| 29 |
-
win:
|
| 30 |
-
target:
|
| 31 |
-
- target: nsis
|
| 32 |
-
arch: [x64]
|
| 33 |
-
- target: portable
|
| 34 |
-
arch: [x64]
|
| 35 |
-
icon: build/icon.ico
|
| 36 |
-
requestedExecutionLevel: asInvoker
|
| 37 |
-
|
| 38 |
-
nsis:
|
| 39 |
-
oneClick: true
|
| 40 |
-
perMachine: false
|
| 41 |
-
allowToChangeInstallationDirectory: false
|
| 42 |
-
createDesktopShortcut: always
|
| 43 |
-
createStartMenuShortcut: true
|
| 44 |
-
shortcutName: MetaDrop Studio
|
| 45 |
-
|
| 46 |
-
portable:
|
| 47 |
-
artifactName: MetaDrop-Studio-${version}-portable.exe
|
| 48 |
-
|
| 49 |
-
mac:
|
| 50 |
-
target:
|
| 51 |
-
- target: dmg
|
| 52 |
-
arch: [x64, arm64]
|
| 53 |
-
icon: build/icon.icns
|
| 54 |
-
category: public.app-category.graphics-design
|
| 55 |
-
hardenedRuntime: true
|
| 56 |
-
gatekeeperAssess: false
|
| 57 |
-
entitlements: build/entitlements.mac.plist
|
| 58 |
-
entitlementsInherit: build/entitlements.mac.plist
|
| 59 |
-
|
| 60 |
-
dmg:
|
| 61 |
-
artifactName: MetaDrop-Studio-${version}-${arch}.dmg
|
| 62 |
-
title: MetaDrop Studio ${version}
|
| 63 |
-
icon: build/icon.icns
|
| 64 |
-
window:
|
| 65 |
-
width: 540
|
| 66 |
-
height: 380
|
| 67 |
-
contents:
|
| 68 |
-
- x: 140
|
| 69 |
-
y: 200
|
| 70 |
-
type: file
|
| 71 |
-
- x: 400
|
| 72 |
-
y: 200
|
| 73 |
-
type: link
|
| 74 |
-
path: /Applications
|
| 75 |
-
|
| 76 |
-
linux:
|
| 77 |
-
target:
|
| 78 |
-
- target: AppImage
|
| 79 |
-
arch: [x64]
|
| 80 |
-
- target: deb
|
| 81 |
-
arch: [x64]
|
| 82 |
-
icon: build/icon.png
|
| 83 |
-
category: AudioVideo
|
| 84 |
-
|
| 85 |
-
appImage:
|
| 86 |
-
artifactName: MetaDrop-Studio-${version}-${arch}.AppImage
|
| 87 |
-
|
| 88 |
-
deb:
|
| 89 |
-
artifactName: MetaDrop-Studio-${version}-${arch}.deb
|
| 90 |
-
|
| 91 |
-
publish:
|
| 92 |
-
provider: generic
|
| 93 |
-
url: https://releases.metadrop.studio/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/cloudflareConfig.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
/* ============================================================
|
| 2 |
-
* Cloudflare-Konfigurations-Validierung
|
| 3 |
-
* Verhindert den häufigsten Fehler: Token in der Account-ID.
|
| 4 |
-
* ============================================================ */
|
| 5 |
-
|
| 6 |
-
/** Echte Cloudflare Account-IDs sind exakt 32 Hex-Zeichen. */
|
| 7 |
-
export const CF_ACCOUNT_ID_RE = /^[a-f0-9]{32}$/i;
|
| 8 |
-
|
| 9 |
-
/** Neue scannbare Cloudflare-Credential-Formate (Token, KEINE Account-ID). */
|
| 10 |
-
const CF_TOKEN_PREFIXES = /^(cfat_|cfut_|cfk_)/i;
|
| 11 |
-
|
| 12 |
-
/**
|
| 13 |
-
* true, wenn in CF_ACCOUNT_ID versehentlich ein API-Token steht
|
| 14 |
-
* (z. B. "cfat_…") statt der 32-stelligen hexadezimalen Account-ID.
|
| 15 |
-
*/
|
| 16 |
-
export function cfAccountLooksLikeToken(accountId: string): boolean {
|
| 17 |
-
return CF_TOKEN_PREFIXES.test(accountId.trim());
|
| 18 |
-
}
|
| 19 |
-
|
| 20 |
-
/** Konfigurationsstatus für /api/health (keine Werte, nur Diagnose). */
|
| 21 |
-
export function cloudflareStatus(): { configured: boolean; issue: string | null } {
|
| 22 |
-
const id = process.env.CF_ACCOUNT_ID?.trim() || "";
|
| 23 |
-
const token = process.env.CF_API_TOKEN?.trim() || "";
|
| 24 |
-
|
| 25 |
-
if (!id && !token) return { configured: false, issue: null }; // einfach nicht gesetzt
|
| 26 |
-
if (!id) return { configured: false, issue: "CF_ACCOUNT_ID fehlt (32-stellige hex Account-ID aus dem Dashboard)." };
|
| 27 |
-
if (!token) return { configured: false, issue: "CF_API_TOKEN fehlt (API-Token mit Workers-AI-Berechtigung)." };
|
| 28 |
-
if (cfAccountLooksLikeToken(id))
|
| 29 |
-
return { configured: false, issue: "CF_ACCOUNT_ID enthält einen Token (cfat_/cfut_) — dort gehört die 32-stellige hex Account-ID hin." };
|
| 30 |
-
if (!CF_ACCOUNT_ID_RE.test(id))
|
| 31 |
-
return { configured: false, issue: "CF_ACCOUNT_ID hat ein unerwartetes Format (erwartet: 32 Hex-Zeichen)." };
|
| 32 |
-
|
| 33 |
-
return { configured: true, issue: null };
|
| 34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/galleryStore.ts
DELETED
|
@@ -1,246 +0,0 @@
|
|
| 1 |
-
/* ============================================================
|
| 2 |
-
* Galerie-Speicher: IndexedDB (unbegrenzt) mit localStorage-Migration
|
| 3 |
-
* ============================================================ */
|
| 4 |
-
|
| 5 |
-
export type GalleryTag = "design" | "shop";
|
| 6 |
-
|
| 7 |
-
export interface GalleryImage {
|
| 8 |
-
id: string;
|
| 9 |
-
image: string; // base64 (ohne data:-Prefix)
|
| 10 |
-
contentType: string;
|
| 11 |
-
provider: string;
|
| 12 |
-
model: string;
|
| 13 |
-
tag: GalleryTag;
|
| 14 |
-
addedAt: number;
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
export const toDataUrl = (img: { image: string; contentType?: string }) =>
|
| 18 |
-
`data:${img.contentType || "image/png"};base64,${img.image}`;
|
| 19 |
-
|
| 20 |
-
const DB_NAME = "drip-gallery-db";
|
| 21 |
-
const DB_VERSION = 1;
|
| 22 |
-
const STORE = "images";
|
| 23 |
-
|
| 24 |
-
function openDB(): Promise<IDBDatabase> {
|
| 25 |
-
return new Promise((resolve, reject) => {
|
| 26 |
-
const req = indexedDB.open(DB_NAME, DB_VERSION);
|
| 27 |
-
req.onupgradeneeded = () => {
|
| 28 |
-
const db = req.result;
|
| 29 |
-
if (!db.objectStoreNames.contains(STORE)) {
|
| 30 |
-
db.createObjectStore(STORE, { keyPath: "id" });
|
| 31 |
-
}
|
| 32 |
-
};
|
| 33 |
-
req.onsuccess = () => resolve(req.result);
|
| 34 |
-
req.onerror = () => reject(req.error || new Error("IndexedDB konnte nicht geöffnet werden."));
|
| 35 |
-
});
|
| 36 |
-
}
|
| 37 |
-
|
| 38 |
-
async function withStore<T>(fn: (store: IDBObjectStore) => IDBRequest<T>): Promise<T> {
|
| 39 |
-
const db = await openDB();
|
| 40 |
-
return new Promise<T>((resolve, reject) => {
|
| 41 |
-
const tx = db.transaction(STORE, "readwrite");
|
| 42 |
-
const req = fn(tx.objectStore(STORE));
|
| 43 |
-
req.onsuccess = () => {
|
| 44 |
-
resolve(req.result);
|
| 45 |
-
// Nur schließen, wenn keine weiteren Requests anstehen
|
| 46 |
-
tx.oncomplete = () => db.close();
|
| 47 |
-
};
|
| 48 |
-
req.onerror = () => {
|
| 49 |
-
reject(req.error || new Error("IndexedDB-Operation fehlgeschlagen."));
|
| 50 |
-
db.close();
|
| 51 |
-
};
|
| 52 |
-
});
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
/* ---------- Migration aus localStorage (einmalig) ---------- */
|
| 56 |
-
function migrateFromLocalStorage(): GalleryImage[] {
|
| 57 |
-
try {
|
| 58 |
-
const raw = localStorage.getItem("drip-gallery");
|
| 59 |
-
if (!raw) return [];
|
| 60 |
-
const parsed = JSON.parse(raw);
|
| 61 |
-
if (!Array.isArray(parsed)) return [];
|
| 62 |
-
const migrated: GalleryImage[] = parsed
|
| 63 |
-
.filter((x) => x && x.image)
|
| 64 |
-
.map((x) => ({
|
| 65 |
-
id: `migrated-${crypto.randomUUID()}`,
|
| 66 |
-
image: x.image,
|
| 67 |
-
contentType: x.contentType || "image/png",
|
| 68 |
-
provider: x.provider || "Migriert",
|
| 69 |
-
model: x.model || "Design",
|
| 70 |
-
tag: x.tag === "shop" ? "shop" : "design",
|
| 71 |
-
addedAt: Date.now(),
|
| 72 |
-
}));
|
| 73 |
-
if (migrated.length > 0) {
|
| 74 |
-
localStorage.removeItem("drip-gallery");
|
| 75 |
-
}
|
| 76 |
-
return migrated;
|
| 77 |
-
} catch {
|
| 78 |
-
return [];
|
| 79 |
-
}
|
| 80 |
-
}
|
| 81 |
-
|
| 82 |
-
/* ---------- Öffentliche API ---------- */
|
| 83 |
-
export async function galleryGetAll(): Promise<GalleryImage[]> {
|
| 84 |
-
// Migration einmalig beim ersten Zugriff
|
| 85 |
-
const migrated = migrateFromLocalStorage();
|
| 86 |
-
try {
|
| 87 |
-
const db = await openDB();
|
| 88 |
-
const all = await new Promise<GalleryImage[]>((resolve, reject) => {
|
| 89 |
-
const tx = db.transaction(STORE, "readonly");
|
| 90 |
-
const req = tx.objectStore(STORE).getAll();
|
| 91 |
-
req.onsuccess = () => resolve(req.result as GalleryImage[]);
|
| 92 |
-
req.onerror = () => reject(req.error);
|
| 93 |
-
tx.oncomplete = () => db.close();
|
| 94 |
-
});
|
| 95 |
-
if (migrated.length > 0) {
|
| 96 |
-
await galleryAdd(migrated);
|
| 97 |
-
return [...migrated, ...all];
|
| 98 |
-
}
|
| 99 |
-
return all;
|
| 100 |
-
} catch {
|
| 101 |
-
return migrated;
|
| 102 |
-
}
|
| 103 |
-
}
|
| 104 |
-
|
| 105 |
-
export async function galleryAdd(items: GalleryImage[]): Promise<void> {
|
| 106 |
-
if (!items.length) return;
|
| 107 |
-
try {
|
| 108 |
-
const db = await openDB();
|
| 109 |
-
return await new Promise<void>((resolve, reject) => {
|
| 110 |
-
const tx = db.transaction(STORE, "readwrite");
|
| 111 |
-
const store = tx.objectStore(STORE);
|
| 112 |
-
for (const item of items) store.put(item);
|
| 113 |
-
tx.oncomplete = () => {
|
| 114 |
-
resolve();
|
| 115 |
-
db.close();
|
| 116 |
-
};
|
| 117 |
-
tx.onerror = () => {
|
| 118 |
-
reject(tx.error);
|
| 119 |
-
db.close();
|
| 120 |
-
};
|
| 121 |
-
});
|
| 122 |
-
} catch (e) {
|
| 123 |
-
// IndexedDB nicht verfügbar (z. B. privater Modus) → still ignorieren
|
| 124 |
-
console.warn("Galerie-Speicher nicht verfügbar:", e);
|
| 125 |
-
}
|
| 126 |
-
}
|
| 127 |
-
|
| 128 |
-
export async function galleryRemove(ids: string[]): Promise<void> {
|
| 129 |
-
if (!ids.length) return;
|
| 130 |
-
try {
|
| 131 |
-
const db = await openDB();
|
| 132 |
-
return await new Promise<void>((resolve, reject) => {
|
| 133 |
-
const tx = db.transaction(STORE, "readwrite");
|
| 134 |
-
const store = tx.objectStore(STORE);
|
| 135 |
-
for (const id of ids) store.delete(id);
|
| 136 |
-
tx.oncomplete = () => {
|
| 137 |
-
resolve();
|
| 138 |
-
db.close();
|
| 139 |
-
};
|
| 140 |
-
tx.onerror = () => {
|
| 141 |
-
reject(tx.error);
|
| 142 |
-
db.close();
|
| 143 |
-
};
|
| 144 |
-
});
|
| 145 |
-
} catch {
|
| 146 |
-
/* ignorieren */
|
| 147 |
-
}
|
| 148 |
-
}
|
| 149 |
-
|
| 150 |
-
export async function galleryUpdate(id: string, patch: Partial<GalleryImage>): Promise<void> {
|
| 151 |
-
try {
|
| 152 |
-
const db = await openDB();
|
| 153 |
-
return await new Promise<void>((resolve, reject) => {
|
| 154 |
-
const tx = db.transaction(STORE, "readwrite");
|
| 155 |
-
const store = tx.objectStore(STORE);
|
| 156 |
-
const req = store.get(id);
|
| 157 |
-
req.onsuccess = () => {
|
| 158 |
-
const existing = req.result as GalleryImage | undefined;
|
| 159 |
-
if (existing) store.put({ ...existing, ...patch });
|
| 160 |
-
};
|
| 161 |
-
tx.oncomplete = () => {
|
| 162 |
-
resolve();
|
| 163 |
-
db.close();
|
| 164 |
-
};
|
| 165 |
-
tx.onerror = () => {
|
| 166 |
-
reject(tx.error);
|
| 167 |
-
db.close();
|
| 168 |
-
};
|
| 169 |
-
});
|
| 170 |
-
} catch {
|
| 171 |
-
/* ignorieren */
|
| 172 |
-
}
|
| 173 |
-
}
|
| 174 |
-
|
| 175 |
-
/** Aktive Auswahl fürs Studio merken (Galerie → Workspace) */
|
| 176 |
-
export function setStudioSelection(img: GalleryImage) {
|
| 177 |
-
try {
|
| 178 |
-
sessionStorage.setItem("drip-selected", JSON.stringify(img));
|
| 179 |
-
} catch {
|
| 180 |
-
/* ignorieren */
|
| 181 |
-
}
|
| 182 |
-
}
|
| 183 |
-
|
| 184 |
-
export function takeStudioSelection(): GalleryImage | null {
|
| 185 |
-
try {
|
| 186 |
-
const raw = sessionStorage.getItem("drip-selected");
|
| 187 |
-
if (!raw) return null;
|
| 188 |
-
sessionStorage.removeItem("drip-selected");
|
| 189 |
-
return JSON.parse(raw) as GalleryImage;
|
| 190 |
-
} catch {
|
| 191 |
-
return null;
|
| 192 |
-
}
|
| 193 |
-
}
|
| 194 |
-
|
| 195 |
-
/* ---------- Bildverarbeitung (Upload) ---------- */
|
| 196 |
-
export async function fileToDataUrl(file: File): Promise<string> {
|
| 197 |
-
return new Promise((resolve, reject) => {
|
| 198 |
-
const reader = new FileReader();
|
| 199 |
-
reader.onload = () => resolve(reader.result as string);
|
| 200 |
-
reader.onerror = () => reject(new Error("Datei konnte nicht gelesen werden."));
|
| 201 |
-
reader.readAsDataURL(file);
|
| 202 |
-
});
|
| 203 |
-
}
|
| 204 |
-
|
| 205 |
-
/** Bild verkleinern (max. Kantenlänge) → JPEG-DataURL (base64 ohne Prefix) */
|
| 206 |
-
export async function resizeImage(
|
| 207 |
-
dataUrl: string,
|
| 208 |
-
max = 1024,
|
| 209 |
-
quality = 0.85
|
| 210 |
-
): Promise<{ data: string; contentType: string }> {
|
| 211 |
-
return new Promise((resolve, reject) => {
|
| 212 |
-
const img = new Image();
|
| 213 |
-
img.onload = () => {
|
| 214 |
-
try {
|
| 215 |
-
const scale = Math.min(1, max / Math.max(img.naturalWidth, img.naturalHeight));
|
| 216 |
-
const canvas = document.createElement("canvas");
|
| 217 |
-
canvas.width = Math.max(1, Math.round(img.naturalWidth * scale));
|
| 218 |
-
canvas.height = Math.max(1, Math.round(img.naturalHeight * scale));
|
| 219 |
-
const ctx = canvas.getContext("2d");
|
| 220 |
-
if (!ctx) throw new Error("Canvas nicht verfügbar.");
|
| 221 |
-
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
| 222 |
-
const out = canvas.toDataURL("image/jpeg", quality);
|
| 223 |
-
resolve({ data: out.split(",")[1] || out, contentType: "image/jpeg" });
|
| 224 |
-
} catch (e) {
|
| 225 |
-
reject(e);
|
| 226 |
-
}
|
| 227 |
-
};
|
| 228 |
-
img.onerror = () => reject(new Error("Bild konnte nicht geladen werden."));
|
| 229 |
-
img.src = dataUrl;
|
| 230 |
-
});
|
| 231 |
-
}
|
| 232 |
-
|
| 233 |
-
/** Datei → Galerie-Bild (verkleinert) */
|
| 234 |
-
export async function fileToGalleryImage(file: File, tag: GalleryTag): Promise<GalleryImage> {
|
| 235 |
-
const dataUrl = await fileToDataUrl(file);
|
| 236 |
-
const resized = await resizeImage(dataUrl);
|
| 237 |
-
return {
|
| 238 |
-
id: crypto.randomUUID(),
|
| 239 |
-
image: resized.data,
|
| 240 |
-
contentType: resized.contentType,
|
| 241 |
-
provider: tag === "design" ? "Upload (Design)" : "Upload (Shop-Foto)",
|
| 242 |
-
model: file.name || (tag === "design" ? "Design" : "Shop-Foto"),
|
| 243 |
-
tag,
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/rateLimit.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
| 1 |
-
/* ============================================================
|
| 2 |
-
* Rate-Limit (In-Memory, gleitendes 1h-Fenster pro IP)
|
| 3 |
-
* Schützt die Free-Tier-Keys, wenn der Space öffentlich läuft.
|
| 4 |
-
* Konfigurierbar via RATE_LIMIT_PER_HOUR (0 = deaktiviert).
|
| 5 |
-
* ============================================================ */
|
| 6 |
-
|
| 7 |
-
const RATE_LIMIT = Number(process.env.RATE_LIMIT_PER_HOUR ?? 30);
|
| 8 |
-
const WINDOW_MS = 60 * 60 * 1000;
|
| 9 |
-
|
| 10 |
-
const hits = new Map<string, number[]>();
|
| 11 |
-
|
| 12 |
-
/** Liefert true, wenn das Limit überschritten ist — sonst zählt der Request. */
|
| 13 |
-
export function rateLimited(ip: string): boolean {
|
| 14 |
-
if (RATE_LIMIT <= 0) return false;
|
| 15 |
-
const now = Date.now();
|
| 16 |
-
const cutoff = now - WINDOW_MS;
|
| 17 |
-
|
| 18 |
-
// Gelegenlich aufräumen (Map wächst sonst unbegrenzt)
|
| 19 |
-
if (hits.size > 5000) {
|
| 20 |
-
for (const [key, list] of hits) {
|
| 21 |
-
const alive = list.filter((t) => t > cutoff);
|
| 22 |
-
if (alive.length === 0) hits.delete(key);
|
| 23 |
-
else hits.set(key, alive);
|
| 24 |
-
}
|
| 25 |
-
}
|
| 26 |
-
|
| 27 |
-
const list = (hits.get(ip) || []).filter((t) => t > cutoff);
|
| 28 |
-
if (list.length >= RATE_LIMIT) {
|
| 29 |
-
hits.set(ip, list);
|
| 30 |
-
return true;
|
| 31 |
-
}
|
| 32 |
-
list.push(now);
|
| 33 |
-
hits.set(ip, list);
|
| 34 |
-
return false;
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
/** Client-IP aus Proxy-Headern (HF/Vercel) oder Socket ermitteln. */
|
| 38 |
-
export function clientIp(req: { headers: Record<string, unknown>; socket?: { remoteAddress?: string } }): string {
|
| 39 |
-
const fwd = req.headers["x-forwarded-for"];
|
| 40 |
-
if (typeof fwd === "string" && fwd.length > 0) return fwd.split(",")[0].trim();
|
| 41 |
-
if (Array.isArray(fwd) && fwd.length > 0) return String(fwd[0]);
|
| 42 |
-
return req.socket?.remoteAddress || "unknown";
|
| 43 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/utils.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
import { clsx, type ClassValue } from "clsx";
|
| 2 |
-
import { twMerge } from "tailwind-merge";
|
| 3 |
-
|
| 4 |
-
export function cn(...inputs: ClassValue[]) {
|
| 5 |
-
return twMerge(clsx(inputs));
|
| 6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next-env.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
/// <reference types="next" />
|
| 2 |
-
/// <reference types="next/image-types/global" />
|
| 3 |
-
|
| 4 |
-
// NOTE: This file should not be edited
|
| 5 |
-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next.config.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
| 1 |
-
/** @type {import('next').NextConfig} */
|
| 2 |
-
const nextConfig = {
|
| 3 |
-
reactStrictMode: true,
|
| 4 |
-
swcMinify: true,
|
| 5 |
-
|
| 6 |
-
// Standalone-Output für den HF-Space-Dockerfile-Runner
|
| 7 |
-
output: 'standalone',
|
| 8 |
-
|
| 9 |
-
// PWA Configuration
|
| 10 |
-
headers: async () => [
|
| 11 |
-
{
|
| 12 |
-
source: '/(.*)',
|
| 13 |
-
headers: [
|
| 14 |
-
{
|
| 15 |
-
key: 'Cross-Origin-Embedder-Policy',
|
| 16 |
-
value: 'require-corp',
|
| 17 |
-
},
|
| 18 |
-
{
|
| 19 |
-
key: 'Cross-Origin-Opener-Policy',
|
| 20 |
-
value: 'same-origin',
|
| 21 |
-
},
|
| 22 |
-
],
|
| 23 |
-
},
|
| 24 |
-
],
|
| 25 |
-
|
| 26 |
-
// Webpack configuration for WASM support
|
| 27 |
-
webpack: (config, { isServer }) => {
|
| 28 |
-
// WASM-Dateien als Assets behandeln (Emscripten/onnxruntime lädt sie zur Laufzeit selbst)
|
| 29 |
-
config.module.rules.unshift({
|
| 30 |
-
test: /\.wasm$/,
|
| 31 |
-
type: 'asset/resource',
|
| 32 |
-
})
|
| 33 |
-
|
| 34 |
-
// onnxruntime-Bundles enthalten import.meta, das Terser nicht minifizieren kann
|
| 35 |
-
// → Minifizierung global deaktivieren (lokale App, Bundle-Größe zweitrangig)
|
| 36 |
-
config.optimization.minimize = false
|
| 37 |
-
|
| 38 |
-
// Ignore node-specific modules in client bundles
|
| 39 |
-
if (!isServer) {
|
| 40 |
-
config.resolve.fallback = {
|
| 41 |
-
...config.resolve.fallback,
|
| 42 |
-
fs: false,
|
| 43 |
-
path: false,
|
| 44 |
-
crypto: false,
|
| 45 |
-
}
|
| 46 |
-
}
|
| 47 |
-
|
| 48 |
-
return config
|
| 49 |
-
},
|
| 50 |
-
}
|
| 51 |
-
|
| 52 |
-
module.exports = nextConfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package-lock.json
DELETED
|
@@ -1,2480 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"name": "free-web-gen-studio",
|
| 3 |
-
"version": "1.0.0",
|
| 4 |
-
"lockfileVersion": 3,
|
| 5 |
-
"requires": true,
|
| 6 |
-
"packages": {
|
| 7 |
-
"": {
|
| 8 |
-
"name": "free-web-gen-studio",
|
| 9 |
-
"version": "1.0.0",
|
| 10 |
-
"license": "MIT",
|
| 11 |
-
"dependencies": {
|
| 12 |
-
"@huggingface/inference": "^4.13.24",
|
| 13 |
-
"@imgly/background-removal": "^1.7.0",
|
| 14 |
-
"@radix-ui/react-avatar": "^1.1.10",
|
| 15 |
-
"@radix-ui/react-slot": "^1.2.3",
|
| 16 |
-
"@radix-ui/react-tooltip": "^1.2.16",
|
| 17 |
-
"@vercel/analytics": "^1.5.0",
|
| 18 |
-
"class-variance-authority": "^0.7.1",
|
| 19 |
-
"clsx": "^2.1.1",
|
| 20 |
-
"lucide-react": "^0.544.0",
|
| 21 |
-
"motion": "^12.23.22",
|
| 22 |
-
"nanoid": "^5.1.6",
|
| 23 |
-
"next": "^14.0.0",
|
| 24 |
-
"onnxruntime-web": "1.21.0",
|
| 25 |
-
"react": "^18.2.0",
|
| 26 |
-
"react-dom": "^18.2.0",
|
| 27 |
-
"tailwind-merge": "^3.6.0",
|
| 28 |
-
"tailwindcss-animate": "^1.0.7",
|
| 29 |
-
"three": "^0.180.0",
|
| 30 |
-
"zustand": "^5.0.8"
|
| 31 |
-
},
|
| 32 |
-
"devDependencies": {
|
| 33 |
-
"@types/node": "^20.10.0",
|
| 34 |
-
"@types/react": "^18.2.0",
|
| 35 |
-
"@types/react-dom": "^18.2.0",
|
| 36 |
-
"autoprefixer": "^10.4.17",
|
| 37 |
-
"postcss": "^8.4.33",
|
| 38 |
-
"tailwindcss": "^3.4.1",
|
| 39 |
-
"typescript": "^5.3.0"
|
| 40 |
-
}
|
| 41 |
-
},
|
| 42 |
-
"node_modules/@alloc/quick-lru": {
|
| 43 |
-
"version": "5.2.0",
|
| 44 |
-
"resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",
|
| 45 |
-
"integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
|
| 46 |
-
"license": "MIT",
|
| 47 |
-
"engines": {
|
| 48 |
-
"node": ">=10"
|
| 49 |
-
},
|
| 50 |
-
"funding": {
|
| 51 |
-
"url": "https://github.com/sponsors/sindresorhus"
|
| 52 |
-
}
|
| 53 |
-
},
|
| 54 |
-
"node_modules/@floating-ui/core": {
|
| 55 |
-
"version": "1.8.0",
|
| 56 |
-
"resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz",
|
| 57 |
-
"integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==",
|
| 58 |
-
"license": "MIT",
|
| 59 |
-
"dependencies": {
|
| 60 |
-
"@floating-ui/utils": "^0.2.12"
|
| 61 |
-
}
|
| 62 |
-
},
|
| 63 |
-
"node_modules/@floating-ui/dom": {
|
| 64 |
-
"version": "1.8.0",
|
| 65 |
-
"resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz",
|
| 66 |
-
"integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==",
|
| 67 |
-
"license": "MIT",
|
| 68 |
-
"dependencies": {
|
| 69 |
-
"@floating-ui/core": "^1.8.0",
|
| 70 |
-
"@floating-ui/utils": "^0.2.12"
|
| 71 |
-
}
|
| 72 |
-
},
|
| 73 |
-
"node_modules/@floating-ui/react-dom": {
|
| 74 |
-
"version": "2.1.9",
|
| 75 |
-
"resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.9.tgz",
|
| 76 |
-
"integrity": "sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==",
|
| 77 |
-
"license": "MIT",
|
| 78 |
-
"dependencies": {
|
| 79 |
-
"@floating-ui/dom": "^1.8.0"
|
| 80 |
-
},
|
| 81 |
-
"peerDependencies": {
|
| 82 |
-
"react": ">=16.8.0",
|
| 83 |
-
"react-dom": ">=16.8.0"
|
| 84 |
-
}
|
| 85 |
-
},
|
| 86 |
-
"node_modules/@floating-ui/utils": {
|
| 87 |
-
"version": "0.2.12",
|
| 88 |
-
"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz",
|
| 89 |
-
"integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
|
| 90 |
-
"license": "MIT"
|
| 91 |
-
},
|
| 92 |
-
"node_modules/@huggingface/inference": {
|
| 93 |
-
"version": "4.13.28",
|
| 94 |
-
"resolved": "https://registry.npmjs.org/@huggingface/inference/-/inference-4.13.28.tgz",
|
| 95 |
-
"integrity": "sha512-KTfWx7+H1xo9cbBrHvF8me/GjujV1W6DRjfKilO8z7UPiNXn8aFJgNwRl0A1g4w/FWnYo6JeNZHh8240BpG9mw==",
|
| 96 |
-
"license": "MIT",
|
| 97 |
-
"dependencies": {
|
| 98 |
-
"@huggingface/jinja": "^0.5.9",
|
| 99 |
-
"@huggingface/tasks": "^0.21.35"
|
| 100 |
-
},
|
| 101 |
-
"engines": {
|
| 102 |
-
"node": ">=18"
|
| 103 |
-
}
|
| 104 |
-
},
|
| 105 |
-
"node_modules/@huggingface/jinja": {
|
| 106 |
-
"version": "0.5.9",
|
| 107 |
-
"resolved": "https://registry.npmjs.org/@huggingface/jinja/-/jinja-0.5.9.tgz",
|
| 108 |
-
"integrity": "sha512-uWTG+l3VJRsl7EXxYizuL3P+cCPoc3cRqbWWRcQN0FhejRfbdq0RNhCmbY/YDtnTcz9icdLYuLDjsnz4d8JMuw==",
|
| 109 |
-
"license": "MIT",
|
| 110 |
-
"engines": {
|
| 111 |
-
"node": ">=18"
|
| 112 |
-
}
|
| 113 |
-
},
|
| 114 |
-
"node_modules/@huggingface/tasks": {
|
| 115 |
-
"version": "0.21.35",
|
| 116 |
-
"resolved": "https://registry.npmjs.org/@huggingface/tasks/-/tasks-0.21.35.tgz",
|
| 117 |
-
"integrity": "sha512-Nqw/E01EE8Ykxp44qpsgxyu8g486mAiCWHdkHD6+c0aFU1kdtxsUUrv1AD4Zp4ePlV5sf95A/gKbLLoXP0NXqw==",
|
| 118 |
-
"license": "MIT"
|
| 119 |
-
},
|
| 120 |
-
"node_modules/@imgly/background-removal": {
|
| 121 |
-
"version": "1.7.0",
|
| 122 |
-
"resolved": "https://registry.npmjs.org/@imgly/background-removal/-/background-removal-1.7.0.tgz",
|
| 123 |
-
"integrity": "sha512-/1ZryrMYg2ckIvJKoTu5Np50JfYMVffDMlVmppw/BdbN3pBTN7e6stI5/7E/LVh9DDzz6J588s7sWqul3fy5wA==",
|
| 124 |
-
"license": "SEE LICENSE IN LICENSE.md",
|
| 125 |
-
"dependencies": {
|
| 126 |
-
"lodash-es": "^4.17.21",
|
| 127 |
-
"ndarray": "~1.0.0",
|
| 128 |
-
"zod": "^3.23.8"
|
| 129 |
-
},
|
| 130 |
-
"peerDependencies": {
|
| 131 |
-
"onnxruntime-web": "1.21.0"
|
| 132 |
-
}
|
| 133 |
-
},
|
| 134 |
-
"node_modules/@jridgewell/gen-mapping": {
|
| 135 |
-
"version": "0.3.13",
|
| 136 |
-
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
|
| 137 |
-
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
|
| 138 |
-
"license": "MIT",
|
| 139 |
-
"dependencies": {
|
| 140 |
-
"@jridgewell/sourcemap-codec": "^1.5.0",
|
| 141 |
-
"@jridgewell/trace-mapping": "^0.3.24"
|
| 142 |
-
}
|
| 143 |
-
},
|
| 144 |
-
"node_modules/@jridgewell/resolve-uri": {
|
| 145 |
-
"version": "3.1.2",
|
| 146 |
-
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
| 147 |
-
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
| 148 |
-
"license": "MIT",
|
| 149 |
-
"engines": {
|
| 150 |
-
"node": ">=6.0.0"
|
| 151 |
-
}
|
| 152 |
-
},
|
| 153 |
-
"node_modules/@jridgewell/sourcemap-codec": {
|
| 154 |
-
"version": "1.5.5",
|
| 155 |
-
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
| 156 |
-
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
| 157 |
-
"license": "MIT"
|
| 158 |
-
},
|
| 159 |
-
"node_modules/@jridgewell/trace-mapping": {
|
| 160 |
-
"version": "0.3.31",
|
| 161 |
-
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
|
| 162 |
-
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
|
| 163 |
-
"license": "MIT",
|
| 164 |
-
"dependencies": {
|
| 165 |
-
"@jridgewell/resolve-uri": "^3.1.0",
|
| 166 |
-
"@jridgewell/sourcemap-codec": "^1.4.14"
|
| 167 |
-
}
|
| 168 |
-
},
|
| 169 |
-
"node_modules/@next/env": {
|
| 170 |
-
"version": "14.2.35",
|
| 171 |
-
"resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.35.tgz",
|
| 172 |
-
"integrity": "sha512-DuhvCtj4t9Gwrx80dmz2F4t/zKQ4ktN8WrMwOuVzkJfBilwAwGr6v16M5eI8yCuZ63H9TTuEU09Iu2HqkzFPVQ==",
|
| 173 |
-
"license": "MIT"
|
| 174 |
-
},
|
| 175 |
-
"node_modules/@next/swc-darwin-arm64": {
|
| 176 |
-
"version": "14.2.33",
|
| 177 |
-
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.33.tgz",
|
| 178 |
-
"integrity": "sha512-HqYnb6pxlsshoSTubdXKu15g3iivcbsMXg4bYpjL2iS/V6aQot+iyF4BUc2qA/J/n55YtvE4PHMKWBKGCF/+wA==",
|
| 179 |
-
"cpu": [
|
| 180 |
-
"arm64"
|
| 181 |
-
],
|
| 182 |
-
"license": "MIT",
|
| 183 |
-
"optional": true,
|
| 184 |
-
"os": [
|
| 185 |
-
"darwin"
|
| 186 |
-
],
|
| 187 |
-
"engines": {
|
| 188 |
-
"node": ">= 10"
|
| 189 |
-
}
|
| 190 |
-
},
|
| 191 |
-
"node_modules/@next/swc-darwin-x64": {
|
| 192 |
-
"version": "14.2.33",
|
| 193 |
-
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.33.tgz",
|
| 194 |
-
"integrity": "sha512-8HGBeAE5rX3jzKvF593XTTFg3gxeU4f+UWnswa6JPhzaR6+zblO5+fjltJWIZc4aUalqTclvN2QtTC37LxvZAA==",
|
| 195 |
-
"cpu": [
|
| 196 |
-
"x64"
|
| 197 |
-
],
|
| 198 |
-
"license": "MIT",
|
| 199 |
-
"optional": true,
|
| 200 |
-
"os": [
|
| 201 |
-
"darwin"
|
| 202 |
-
],
|
| 203 |
-
"engines": {
|
| 204 |
-
"node": ">= 10"
|
| 205 |
-
}
|
| 206 |
-
},
|
| 207 |
-
"node_modules/@next/swc-linux-arm64-gnu": {
|
| 208 |
-
"version": "14.2.33",
|
| 209 |
-
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.33.tgz",
|
| 210 |
-
"integrity": "sha512-JXMBka6lNNmqbkvcTtaX8Gu5by9547bukHQvPoLe9VRBx1gHwzf5tdt4AaezW85HAB3pikcvyqBToRTDA4DeLw==",
|
| 211 |
-
"cpu": [
|
| 212 |
-
"arm64"
|
| 213 |
-
],
|
| 214 |
-
"libc": [
|
| 215 |
-
"glibc"
|
| 216 |
-
],
|
| 217 |
-
"license": "MIT",
|
| 218 |
-
"optional": true,
|
| 219 |
-
"os": [
|
| 220 |
-
"linux"
|
| 221 |
-
],
|
| 222 |
-
"engines": {
|
| 223 |
-
"node": ">= 10"
|
| 224 |
-
}
|
| 225 |
-
},
|
| 226 |
-
"node_modules/@next/swc-linux-arm64-musl": {
|
| 227 |
-
"version": "14.2.33",
|
| 228 |
-
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.33.tgz",
|
| 229 |
-
"integrity": "sha512-Bm+QulsAItD/x6Ih8wGIMfRJy4G73tu1HJsrccPW6AfqdZd0Sfm5Imhgkgq2+kly065rYMnCOxTBvmvFY1BKfg==",
|
| 230 |
-
"cpu": [
|
| 231 |
-
"arm64"
|
| 232 |
-
],
|
| 233 |
-
"libc": [
|
| 234 |
-
"musl"
|
| 235 |
-
],
|
| 236 |
-
"license": "MIT",
|
| 237 |
-
"optional": true,
|
| 238 |
-
"os": [
|
| 239 |
-
"linux"
|
| 240 |
-
],
|
| 241 |
-
"engines": {
|
| 242 |
-
"node": ">= 10"
|
| 243 |
-
}
|
| 244 |
-
},
|
| 245 |
-
"node_modules/@next/swc-linux-x64-gnu": {
|
| 246 |
-
"version": "14.2.33",
|
| 247 |
-
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.33.tgz",
|
| 248 |
-
"integrity": "sha512-FnFn+ZBgsVMbGDsTqo8zsnRzydvsGV8vfiWwUo1LD8FTmPTdV+otGSWKc4LJec0oSexFnCYVO4hX8P8qQKaSlg==",
|
| 249 |
-
"cpu": [
|
| 250 |
-
"x64"
|
| 251 |
-
],
|
| 252 |
-
"libc": [
|
| 253 |
-
"glibc"
|
| 254 |
-
],
|
| 255 |
-
"license": "MIT",
|
| 256 |
-
"optional": true,
|
| 257 |
-
"os": [
|
| 258 |
-
"linux"
|
| 259 |
-
],
|
| 260 |
-
"engines": {
|
| 261 |
-
"node": ">= 10"
|
| 262 |
-
}
|
| 263 |
-
},
|
| 264 |
-
"node_modules/@next/swc-linux-x64-musl": {
|
| 265 |
-
"version": "14.2.33",
|
| 266 |
-
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.33.tgz",
|
| 267 |
-
"integrity": "sha512-345tsIWMzoXaQndUTDv1qypDRiebFxGYx9pYkhwY4hBRaOLt8UGfiWKr9FSSHs25dFIf8ZqIFaPdy5MljdoawA==",
|
| 268 |
-
"cpu": [
|
| 269 |
-
"x64"
|
| 270 |
-
],
|
| 271 |
-
"libc": [
|
| 272 |
-
"musl"
|
| 273 |
-
],
|
| 274 |
-
"license": "MIT",
|
| 275 |
-
"optional": true,
|
| 276 |
-
"os": [
|
| 277 |
-
"linux"
|
| 278 |
-
],
|
| 279 |
-
"engines": {
|
| 280 |
-
"node": ">= 10"
|
| 281 |
-
}
|
| 282 |
-
},
|
| 283 |
-
"node_modules/@next/swc-win32-arm64-msvc": {
|
| 284 |
-
"version": "14.2.33",
|
| 285 |
-
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.33.tgz",
|
| 286 |
-
"integrity": "sha512-nscpt0G6UCTkrT2ppnJnFsYbPDQwmum4GNXYTeoTIdsmMydSKFz9Iny2jpaRupTb+Wl298+Rh82WKzt9LCcqSQ==",
|
| 287 |
-
"cpu": [
|
| 288 |
-
"arm64"
|
| 289 |
-
],
|
| 290 |
-
"license": "MIT",
|
| 291 |
-
"optional": true,
|
| 292 |
-
"os": [
|
| 293 |
-
"win32"
|
| 294 |
-
],
|
| 295 |
-
"engines": {
|
| 296 |
-
"node": ">= 10"
|
| 297 |
-
}
|
| 298 |
-
},
|
| 299 |
-
"node_modules/@next/swc-win32-ia32-msvc": {
|
| 300 |
-
"version": "14.2.33",
|
| 301 |
-
"resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.33.tgz",
|
| 302 |
-
"integrity": "sha512-pc9LpGNKhJ0dXQhZ5QMmYxtARwwmWLpeocFmVG5Z0DzWq5Uf0izcI8tLc+qOpqxO1PWqZ5A7J1blrUIKrIFc7Q==",
|
| 303 |
-
"cpu": [
|
| 304 |
-
"ia32"
|
| 305 |
-
],
|
| 306 |
-
"license": "MIT",
|
| 307 |
-
"optional": true,
|
| 308 |
-
"os": [
|
| 309 |
-
"win32"
|
| 310 |
-
],
|
| 311 |
-
"engines": {
|
| 312 |
-
"node": ">= 10"
|
| 313 |
-
}
|
| 314 |
-
},
|
| 315 |
-
"node_modules/@next/swc-win32-x64-msvc": {
|
| 316 |
-
"version": "14.2.33",
|
| 317 |
-
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.33.tgz",
|
| 318 |
-
"integrity": "sha512-nOjfZMy8B94MdisuzZo9/57xuFVLHJaDj5e/xrduJp9CV2/HrfxTRH2fbyLe+K9QT41WBLUd4iXX3R7jBp0EUg==",
|
| 319 |
-
"cpu": [
|
| 320 |
-
"x64"
|
| 321 |
-
],
|
| 322 |
-
"license": "MIT",
|
| 323 |
-
"optional": true,
|
| 324 |
-
"os": [
|
| 325 |
-
"win32"
|
| 326 |
-
],
|
| 327 |
-
"engines": {
|
| 328 |
-
"node": ">= 10"
|
| 329 |
-
}
|
| 330 |
-
},
|
| 331 |
-
"node_modules/@nodelib/fs.scandir": {
|
| 332 |
-
"version": "2.1.5",
|
| 333 |
-
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
| 334 |
-
"integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
|
| 335 |
-
"license": "MIT",
|
| 336 |
-
"dependencies": {
|
| 337 |
-
"@nodelib/fs.stat": "2.0.5",
|
| 338 |
-
"run-parallel": "^1.1.9"
|
| 339 |
-
},
|
| 340 |
-
"engines": {
|
| 341 |
-
"node": ">= 8"
|
| 342 |
-
}
|
| 343 |
-
},
|
| 344 |
-
"node_modules/@nodelib/fs.stat": {
|
| 345 |
-
"version": "2.0.5",
|
| 346 |
-
"resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
|
| 347 |
-
"integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
|
| 348 |
-
"license": "MIT",
|
| 349 |
-
"engines": {
|
| 350 |
-
"node": ">= 8"
|
| 351 |
-
}
|
| 352 |
-
},
|
| 353 |
-
"node_modules/@nodelib/fs.walk": {
|
| 354 |
-
"version": "1.2.8",
|
| 355 |
-
"resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
|
| 356 |
-
"integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
|
| 357 |
-
"license": "MIT",
|
| 358 |
-
"dependencies": {
|
| 359 |
-
"@nodelib/fs.scandir": "2.1.5",
|
| 360 |
-
"fastq": "^1.6.0"
|
| 361 |
-
},
|
| 362 |
-
"engines": {
|
| 363 |
-
"node": ">= 8"
|
| 364 |
-
}
|
| 365 |
-
},
|
| 366 |
-
"node_modules/@protobufjs/aspromise": {
|
| 367 |
-
"version": "1.1.2",
|
| 368 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
| 369 |
-
"integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
|
| 370 |
-
"license": "BSD-3-Clause"
|
| 371 |
-
},
|
| 372 |
-
"node_modules/@protobufjs/base64": {
|
| 373 |
-
"version": "1.1.2",
|
| 374 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
|
| 375 |
-
"integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
|
| 376 |
-
"license": "BSD-3-Clause"
|
| 377 |
-
},
|
| 378 |
-
"node_modules/@protobufjs/codegen": {
|
| 379 |
-
"version": "2.0.5",
|
| 380 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz",
|
| 381 |
-
"integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==",
|
| 382 |
-
"license": "BSD-3-Clause"
|
| 383 |
-
},
|
| 384 |
-
"node_modules/@protobufjs/eventemitter": {
|
| 385 |
-
"version": "1.1.1",
|
| 386 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz",
|
| 387 |
-
"integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==",
|
| 388 |
-
"license": "BSD-3-Clause"
|
| 389 |
-
},
|
| 390 |
-
"node_modules/@protobufjs/fetch": {
|
| 391 |
-
"version": "1.1.1",
|
| 392 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz",
|
| 393 |
-
"integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==",
|
| 394 |
-
"license": "BSD-3-Clause",
|
| 395 |
-
"dependencies": {
|
| 396 |
-
"@protobufjs/aspromise": "^1.1.1"
|
| 397 |
-
}
|
| 398 |
-
},
|
| 399 |
-
"node_modules/@protobufjs/float": {
|
| 400 |
-
"version": "1.0.2",
|
| 401 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
|
| 402 |
-
"integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
|
| 403 |
-
"license": "BSD-3-Clause"
|
| 404 |
-
},
|
| 405 |
-
"node_modules/@protobufjs/path": {
|
| 406 |
-
"version": "1.1.2",
|
| 407 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
|
| 408 |
-
"integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
|
| 409 |
-
"license": "BSD-3-Clause"
|
| 410 |
-
},
|
| 411 |
-
"node_modules/@protobufjs/pool": {
|
| 412 |
-
"version": "1.1.0",
|
| 413 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
|
| 414 |
-
"integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
|
| 415 |
-
"license": "BSD-3-Clause"
|
| 416 |
-
},
|
| 417 |
-
"node_modules/@protobufjs/utf8": {
|
| 418 |
-
"version": "1.1.2",
|
| 419 |
-
"resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz",
|
| 420 |
-
"integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==",
|
| 421 |
-
"license": "BSD-3-Clause"
|
| 422 |
-
},
|
| 423 |
-
"node_modules/@radix-ui/primitive": {
|
| 424 |
-
"version": "1.1.7",
|
| 425 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.7.tgz",
|
| 426 |
-
"integrity": "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==",
|
| 427 |
-
"license": "MIT"
|
| 428 |
-
},
|
| 429 |
-
"node_modules/@radix-ui/react-arrow": {
|
| 430 |
-
"version": "1.1.15",
|
| 431 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.15.tgz",
|
| 432 |
-
"integrity": "sha512-v4zggRcjadnI+ClKDuijlQEW4tw3NoaeHc/PwpKnLoLLKNUG4InLegkstooLcRIUWCs+8L22dGURCVuFfOKfnA==",
|
| 433 |
-
"license": "MIT",
|
| 434 |
-
"dependencies": {
|
| 435 |
-
"@radix-ui/react-primitive": "2.1.10"
|
| 436 |
-
},
|
| 437 |
-
"peerDependencies": {
|
| 438 |
-
"@types/react": "*",
|
| 439 |
-
"@types/react-dom": "*",
|
| 440 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 441 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 442 |
-
},
|
| 443 |
-
"peerDependenciesMeta": {
|
| 444 |
-
"@types/react": {
|
| 445 |
-
"optional": true
|
| 446 |
-
},
|
| 447 |
-
"@types/react-dom": {
|
| 448 |
-
"optional": true
|
| 449 |
-
}
|
| 450 |
-
}
|
| 451 |
-
},
|
| 452 |
-
"node_modules/@radix-ui/react-avatar": {
|
| 453 |
-
"version": "1.2.6",
|
| 454 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.2.6.tgz",
|
| 455 |
-
"integrity": "sha512-4ULOTJ/mqy2hT9GlWa/MFHxHSvH3nJzHnZM1waNsc5Bonv7i70aNenghXmD97S6OJ81ekXONGGt4nT1r0PfEdA==",
|
| 456 |
-
"license": "MIT",
|
| 457 |
-
"dependencies": {
|
| 458 |
-
"@radix-ui/primitive": "1.1.7",
|
| 459 |
-
"@radix-ui/react-context": "1.2.2",
|
| 460 |
-
"@radix-ui/react-primitive": "2.1.10",
|
| 461 |
-
"@radix-ui/react-use-callback-ref": "1.1.4",
|
| 462 |
-
"@radix-ui/react-use-is-hydrated": "0.1.3",
|
| 463 |
-
"@radix-ui/react-use-layout-effect": "1.1.4"
|
| 464 |
-
},
|
| 465 |
-
"peerDependencies": {
|
| 466 |
-
"@types/react": "*",
|
| 467 |
-
"@types/react-dom": "*",
|
| 468 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 469 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 470 |
-
},
|
| 471 |
-
"peerDependenciesMeta": {
|
| 472 |
-
"@types/react": {
|
| 473 |
-
"optional": true
|
| 474 |
-
},
|
| 475 |
-
"@types/react-dom": {
|
| 476 |
-
"optional": true
|
| 477 |
-
}
|
| 478 |
-
}
|
| 479 |
-
},
|
| 480 |
-
"node_modules/@radix-ui/react-compose-refs": {
|
| 481 |
-
"version": "1.1.5",
|
| 482 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.5.tgz",
|
| 483 |
-
"integrity": "sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==",
|
| 484 |
-
"license": "MIT",
|
| 485 |
-
"peerDependencies": {
|
| 486 |
-
"@types/react": "*",
|
| 487 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 488 |
-
},
|
| 489 |
-
"peerDependenciesMeta": {
|
| 490 |
-
"@types/react": {
|
| 491 |
-
"optional": true
|
| 492 |
-
}
|
| 493 |
-
}
|
| 494 |
-
},
|
| 495 |
-
"node_modules/@radix-ui/react-context": {
|
| 496 |
-
"version": "1.2.2",
|
| 497 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.2.2.tgz",
|
| 498 |
-
"integrity": "sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==",
|
| 499 |
-
"license": "MIT",
|
| 500 |
-
"peerDependencies": {
|
| 501 |
-
"@types/react": "*",
|
| 502 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 503 |
-
},
|
| 504 |
-
"peerDependenciesMeta": {
|
| 505 |
-
"@types/react": {
|
| 506 |
-
"optional": true
|
| 507 |
-
}
|
| 508 |
-
}
|
| 509 |
-
},
|
| 510 |
-
"node_modules/@radix-ui/react-dismissable-layer": {
|
| 511 |
-
"version": "1.1.19",
|
| 512 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.19.tgz",
|
| 513 |
-
"integrity": "sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==",
|
| 514 |
-
"license": "MIT",
|
| 515 |
-
"dependencies": {
|
| 516 |
-
"@radix-ui/primitive": "1.1.7",
|
| 517 |
-
"@radix-ui/react-compose-refs": "1.1.5",
|
| 518 |
-
"@radix-ui/react-primitive": "2.1.10",
|
| 519 |
-
"@radix-ui/react-use-callback-ref": "1.1.4",
|
| 520 |
-
"@radix-ui/react-use-effect-event": "0.0.5"
|
| 521 |
-
},
|
| 522 |
-
"peerDependencies": {
|
| 523 |
-
"@types/react": "*",
|
| 524 |
-
"@types/react-dom": "*",
|
| 525 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 526 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 527 |
-
},
|
| 528 |
-
"peerDependenciesMeta": {
|
| 529 |
-
"@types/react": {
|
| 530 |
-
"optional": true
|
| 531 |
-
},
|
| 532 |
-
"@types/react-dom": {
|
| 533 |
-
"optional": true
|
| 534 |
-
}
|
| 535 |
-
}
|
| 536 |
-
},
|
| 537 |
-
"node_modules/@radix-ui/react-id": {
|
| 538 |
-
"version": "1.1.4",
|
| 539 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.4.tgz",
|
| 540 |
-
"integrity": "sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==",
|
| 541 |
-
"license": "MIT",
|
| 542 |
-
"dependencies": {
|
| 543 |
-
"@radix-ui/react-use-layout-effect": "1.1.4"
|
| 544 |
-
},
|
| 545 |
-
"peerDependencies": {
|
| 546 |
-
"@types/react": "*",
|
| 547 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 548 |
-
},
|
| 549 |
-
"peerDependenciesMeta": {
|
| 550 |
-
"@types/react": {
|
| 551 |
-
"optional": true
|
| 552 |
-
}
|
| 553 |
-
}
|
| 554 |
-
},
|
| 555 |
-
"node_modules/@radix-ui/react-popper": {
|
| 556 |
-
"version": "1.3.7",
|
| 557 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.3.7.tgz",
|
| 558 |
-
"integrity": "sha512-UsJrrd7w4wuKKTdvd/DNERVlwSlUcyXzjhyDwBk+3aPOsCjOY6ZSbxuw8E6lZTjjfP8Cpd0J8VVkrYUWyGYXyg==",
|
| 559 |
-
"license": "MIT",
|
| 560 |
-
"dependencies": {
|
| 561 |
-
"@floating-ui/react-dom": "^2.0.0",
|
| 562 |
-
"@radix-ui/react-arrow": "1.1.15",
|
| 563 |
-
"@radix-ui/react-compose-refs": "1.1.5",
|
| 564 |
-
"@radix-ui/react-context": "1.2.2",
|
| 565 |
-
"@radix-ui/react-primitive": "2.1.10",
|
| 566 |
-
"@radix-ui/react-use-callback-ref": "1.1.4",
|
| 567 |
-
"@radix-ui/react-use-layout-effect": "1.1.4",
|
| 568 |
-
"@radix-ui/react-use-rect": "1.1.4",
|
| 569 |
-
"@radix-ui/react-use-size": "1.1.4",
|
| 570 |
-
"@radix-ui/rect": "1.1.3"
|
| 571 |
-
},
|
| 572 |
-
"peerDependencies": {
|
| 573 |
-
"@types/react": "*",
|
| 574 |
-
"@types/react-dom": "*",
|
| 575 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 576 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 577 |
-
},
|
| 578 |
-
"peerDependenciesMeta": {
|
| 579 |
-
"@types/react": {
|
| 580 |
-
"optional": true
|
| 581 |
-
},
|
| 582 |
-
"@types/react-dom": {
|
| 583 |
-
"optional": true
|
| 584 |
-
}
|
| 585 |
-
}
|
| 586 |
-
},
|
| 587 |
-
"node_modules/@radix-ui/react-portal": {
|
| 588 |
-
"version": "1.1.17",
|
| 589 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.17.tgz",
|
| 590 |
-
"integrity": "sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==",
|
| 591 |
-
"license": "MIT",
|
| 592 |
-
"dependencies": {
|
| 593 |
-
"@radix-ui/react-primitive": "2.1.10",
|
| 594 |
-
"@radix-ui/react-use-layout-effect": "1.1.4"
|
| 595 |
-
},
|
| 596 |
-
"peerDependencies": {
|
| 597 |
-
"@types/react": "*",
|
| 598 |
-
"@types/react-dom": "*",
|
| 599 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 600 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 601 |
-
},
|
| 602 |
-
"peerDependenciesMeta": {
|
| 603 |
-
"@types/react": {
|
| 604 |
-
"optional": true
|
| 605 |
-
},
|
| 606 |
-
"@types/react-dom": {
|
| 607 |
-
"optional": true
|
| 608 |
-
}
|
| 609 |
-
}
|
| 610 |
-
},
|
| 611 |
-
"node_modules/@radix-ui/react-presence": {
|
| 612 |
-
"version": "1.1.10",
|
| 613 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.10.tgz",
|
| 614 |
-
"integrity": "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==",
|
| 615 |
-
"license": "MIT",
|
| 616 |
-
"dependencies": {
|
| 617 |
-
"@radix-ui/react-use-layout-effect": "1.1.4"
|
| 618 |
-
},
|
| 619 |
-
"peerDependencies": {
|
| 620 |
-
"@types/react": "*",
|
| 621 |
-
"@types/react-dom": "*",
|
| 622 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 623 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 624 |
-
},
|
| 625 |
-
"peerDependenciesMeta": {
|
| 626 |
-
"@types/react": {
|
| 627 |
-
"optional": true
|
| 628 |
-
},
|
| 629 |
-
"@types/react-dom": {
|
| 630 |
-
"optional": true
|
| 631 |
-
}
|
| 632 |
-
}
|
| 633 |
-
},
|
| 634 |
-
"node_modules/@radix-ui/react-primitive": {
|
| 635 |
-
"version": "2.1.10",
|
| 636 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.10.tgz",
|
| 637 |
-
"integrity": "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==",
|
| 638 |
-
"license": "MIT",
|
| 639 |
-
"dependencies": {
|
| 640 |
-
"@radix-ui/react-slot": "1.3.3"
|
| 641 |
-
},
|
| 642 |
-
"peerDependencies": {
|
| 643 |
-
"@types/react": "*",
|
| 644 |
-
"@types/react-dom": "*",
|
| 645 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 646 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 647 |
-
},
|
| 648 |
-
"peerDependenciesMeta": {
|
| 649 |
-
"@types/react": {
|
| 650 |
-
"optional": true
|
| 651 |
-
},
|
| 652 |
-
"@types/react-dom": {
|
| 653 |
-
"optional": true
|
| 654 |
-
}
|
| 655 |
-
}
|
| 656 |
-
},
|
| 657 |
-
"node_modules/@radix-ui/react-slot": {
|
| 658 |
-
"version": "1.3.3",
|
| 659 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.3.tgz",
|
| 660 |
-
"integrity": "sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==",
|
| 661 |
-
"license": "MIT",
|
| 662 |
-
"dependencies": {
|
| 663 |
-
"@radix-ui/react-compose-refs": "1.1.5"
|
| 664 |
-
},
|
| 665 |
-
"peerDependencies": {
|
| 666 |
-
"@types/react": "*",
|
| 667 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 668 |
-
},
|
| 669 |
-
"peerDependenciesMeta": {
|
| 670 |
-
"@types/react": {
|
| 671 |
-
"optional": true
|
| 672 |
-
}
|
| 673 |
-
}
|
| 674 |
-
},
|
| 675 |
-
"node_modules/@radix-ui/react-tooltip": {
|
| 676 |
-
"version": "1.2.16",
|
| 677 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.16.tgz",
|
| 678 |
-
"integrity": "sha512-6EamKFRRnlpdadndbZ6LMwycfwkwPte1B42hs6QA0gYhjaOKqW4PZ4pjaW9UrlDX5eVt/OjncE7BFTPL5nmZhg==",
|
| 679 |
-
"license": "MIT",
|
| 680 |
-
"dependencies": {
|
| 681 |
-
"@radix-ui/primitive": "1.1.7",
|
| 682 |
-
"@radix-ui/react-compose-refs": "1.1.5",
|
| 683 |
-
"@radix-ui/react-context": "1.2.2",
|
| 684 |
-
"@radix-ui/react-dismissable-layer": "1.1.19",
|
| 685 |
-
"@radix-ui/react-id": "1.1.4",
|
| 686 |
-
"@radix-ui/react-popper": "1.3.7",
|
| 687 |
-
"@radix-ui/react-portal": "1.1.17",
|
| 688 |
-
"@radix-ui/react-presence": "1.1.10",
|
| 689 |
-
"@radix-ui/react-primitive": "2.1.10",
|
| 690 |
-
"@radix-ui/react-slot": "1.3.3",
|
| 691 |
-
"@radix-ui/react-use-controllable-state": "1.2.6",
|
| 692 |
-
"@radix-ui/react-use-layout-effect": "1.1.4",
|
| 693 |
-
"@radix-ui/react-visually-hidden": "1.2.11"
|
| 694 |
-
},
|
| 695 |
-
"peerDependencies": {
|
| 696 |
-
"@types/react": "*",
|
| 697 |
-
"@types/react-dom": "*",
|
| 698 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 699 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 700 |
-
},
|
| 701 |
-
"peerDependenciesMeta": {
|
| 702 |
-
"@types/react": {
|
| 703 |
-
"optional": true
|
| 704 |
-
},
|
| 705 |
-
"@types/react-dom": {
|
| 706 |
-
"optional": true
|
| 707 |
-
}
|
| 708 |
-
}
|
| 709 |
-
},
|
| 710 |
-
"node_modules/@radix-ui/react-use-callback-ref": {
|
| 711 |
-
"version": "1.1.4",
|
| 712 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.4.tgz",
|
| 713 |
-
"integrity": "sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==",
|
| 714 |
-
"license": "MIT",
|
| 715 |
-
"peerDependencies": {
|
| 716 |
-
"@types/react": "*",
|
| 717 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 718 |
-
},
|
| 719 |
-
"peerDependenciesMeta": {
|
| 720 |
-
"@types/react": {
|
| 721 |
-
"optional": true
|
| 722 |
-
}
|
| 723 |
-
}
|
| 724 |
-
},
|
| 725 |
-
"node_modules/@radix-ui/react-use-controllable-state": {
|
| 726 |
-
"version": "1.2.6",
|
| 727 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.6.tgz",
|
| 728 |
-
"integrity": "sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==",
|
| 729 |
-
"license": "MIT",
|
| 730 |
-
"dependencies": {
|
| 731 |
-
"@radix-ui/primitive": "1.1.7",
|
| 732 |
-
"@radix-ui/react-use-effect-event": "0.0.5",
|
| 733 |
-
"@radix-ui/react-use-layout-effect": "1.1.4"
|
| 734 |
-
},
|
| 735 |
-
"peerDependencies": {
|
| 736 |
-
"@types/react": "*",
|
| 737 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 738 |
-
},
|
| 739 |
-
"peerDependenciesMeta": {
|
| 740 |
-
"@types/react": {
|
| 741 |
-
"optional": true
|
| 742 |
-
}
|
| 743 |
-
}
|
| 744 |
-
},
|
| 745 |
-
"node_modules/@radix-ui/react-use-effect-event": {
|
| 746 |
-
"version": "0.0.5",
|
| 747 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.5.tgz",
|
| 748 |
-
"integrity": "sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==",
|
| 749 |
-
"license": "MIT",
|
| 750 |
-
"dependencies": {
|
| 751 |
-
"@radix-ui/react-use-layout-effect": "1.1.4"
|
| 752 |
-
},
|
| 753 |
-
"peerDependencies": {
|
| 754 |
-
"@types/react": "*",
|
| 755 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 756 |
-
},
|
| 757 |
-
"peerDependenciesMeta": {
|
| 758 |
-
"@types/react": {
|
| 759 |
-
"optional": true
|
| 760 |
-
}
|
| 761 |
-
}
|
| 762 |
-
},
|
| 763 |
-
"node_modules/@radix-ui/react-use-is-hydrated": {
|
| 764 |
-
"version": "0.1.3",
|
| 765 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.3.tgz",
|
| 766 |
-
"integrity": "sha512-umO/aJ+82CpOnhDZUTbILCQf7kU/g0iv+oGs/Q8jw7IkhWBzaEP4sA268PhFAJTFetbwp3ICc6ktpI4TqtxcIw==",
|
| 767 |
-
"license": "MIT",
|
| 768 |
-
"peerDependencies": {
|
| 769 |
-
"@types/react": "*",
|
| 770 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 771 |
-
},
|
| 772 |
-
"peerDependenciesMeta": {
|
| 773 |
-
"@types/react": {
|
| 774 |
-
"optional": true
|
| 775 |
-
}
|
| 776 |
-
}
|
| 777 |
-
},
|
| 778 |
-
"node_modules/@radix-ui/react-use-layout-effect": {
|
| 779 |
-
"version": "1.1.4",
|
| 780 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.4.tgz",
|
| 781 |
-
"integrity": "sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==",
|
| 782 |
-
"license": "MIT",
|
| 783 |
-
"peerDependencies": {
|
| 784 |
-
"@types/react": "*",
|
| 785 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 786 |
-
},
|
| 787 |
-
"peerDependenciesMeta": {
|
| 788 |
-
"@types/react": {
|
| 789 |
-
"optional": true
|
| 790 |
-
}
|
| 791 |
-
}
|
| 792 |
-
},
|
| 793 |
-
"node_modules/@radix-ui/react-use-rect": {
|
| 794 |
-
"version": "1.1.4",
|
| 795 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.4.tgz",
|
| 796 |
-
"integrity": "sha512-cSOCh6JlkmfjLyNcLiu2nB4v+nm+dkZ+Q5KHWk/soo4U7ZLiEQFKHK9/YmtBHjfCEaU43IBKQOc4/uJmCaiCTQ==",
|
| 797 |
-
"license": "MIT",
|
| 798 |
-
"dependencies": {
|
| 799 |
-
"@radix-ui/rect": "1.1.3"
|
| 800 |
-
},
|
| 801 |
-
"peerDependencies": {
|
| 802 |
-
"@types/react": "*",
|
| 803 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 804 |
-
},
|
| 805 |
-
"peerDependenciesMeta": {
|
| 806 |
-
"@types/react": {
|
| 807 |
-
"optional": true
|
| 808 |
-
}
|
| 809 |
-
}
|
| 810 |
-
},
|
| 811 |
-
"node_modules/@radix-ui/react-use-size": {
|
| 812 |
-
"version": "1.1.4",
|
| 813 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.4.tgz",
|
| 814 |
-
"integrity": "sha512-D3anSY15EJoxrihpsXI6SMrmmonnQtR2ni7arO+Lfdg3O95b9hNXxONk8jA5C8ANdF/h5HMAxejgs8PWJ6rlhw==",
|
| 815 |
-
"license": "MIT",
|
| 816 |
-
"dependencies": {
|
| 817 |
-
"@radix-ui/react-use-layout-effect": "1.1.4"
|
| 818 |
-
},
|
| 819 |
-
"peerDependencies": {
|
| 820 |
-
"@types/react": "*",
|
| 821 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 822 |
-
},
|
| 823 |
-
"peerDependenciesMeta": {
|
| 824 |
-
"@types/react": {
|
| 825 |
-
"optional": true
|
| 826 |
-
}
|
| 827 |
-
}
|
| 828 |
-
},
|
| 829 |
-
"node_modules/@radix-ui/react-visually-hidden": {
|
| 830 |
-
"version": "1.2.11",
|
| 831 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.11.tgz",
|
| 832 |
-
"integrity": "sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ==",
|
| 833 |
-
"license": "MIT",
|
| 834 |
-
"dependencies": {
|
| 835 |
-
"@radix-ui/react-primitive": "2.1.10"
|
| 836 |
-
},
|
| 837 |
-
"peerDependencies": {
|
| 838 |
-
"@types/react": "*",
|
| 839 |
-
"@types/react-dom": "*",
|
| 840 |
-
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
| 841 |
-
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
| 842 |
-
},
|
| 843 |
-
"peerDependenciesMeta": {
|
| 844 |
-
"@types/react": {
|
| 845 |
-
"optional": true
|
| 846 |
-
},
|
| 847 |
-
"@types/react-dom": {
|
| 848 |
-
"optional": true
|
| 849 |
-
}
|
| 850 |
-
}
|
| 851 |
-
},
|
| 852 |
-
"node_modules/@radix-ui/rect": {
|
| 853 |
-
"version": "1.1.3",
|
| 854 |
-
"resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.3.tgz",
|
| 855 |
-
"integrity": "sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==",
|
| 856 |
-
"license": "MIT"
|
| 857 |
-
},
|
| 858 |
-
"node_modules/@swc/counter": {
|
| 859 |
-
"version": "0.1.3",
|
| 860 |
-
"resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz",
|
| 861 |
-
"integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==",
|
| 862 |
-
"license": "Apache-2.0"
|
| 863 |
-
},
|
| 864 |
-
"node_modules/@swc/helpers": {
|
| 865 |
-
"version": "0.5.5",
|
| 866 |
-
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.5.tgz",
|
| 867 |
-
"integrity": "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==",
|
| 868 |
-
"license": "Apache-2.0",
|
| 869 |
-
"dependencies": {
|
| 870 |
-
"@swc/counter": "^0.1.3",
|
| 871 |
-
"tslib": "^2.4.0"
|
| 872 |
-
}
|
| 873 |
-
},
|
| 874 |
-
"node_modules/@types/node": {
|
| 875 |
-
"version": "20.19.43",
|
| 876 |
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz",
|
| 877 |
-
"integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==",
|
| 878 |
-
"license": "MIT",
|
| 879 |
-
"dependencies": {
|
| 880 |
-
"undici-types": "~6.21.0"
|
| 881 |
-
}
|
| 882 |
-
},
|
| 883 |
-
"node_modules/@types/prop-types": {
|
| 884 |
-
"version": "15.7.15",
|
| 885 |
-
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",
|
| 886 |
-
"integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",
|
| 887 |
-
"devOptional": true,
|
| 888 |
-
"license": "MIT"
|
| 889 |
-
},
|
| 890 |
-
"node_modules/@types/react": {
|
| 891 |
-
"version": "18.3.31",
|
| 892 |
-
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz",
|
| 893 |
-
"integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==",
|
| 894 |
-
"devOptional": true,
|
| 895 |
-
"license": "MIT",
|
| 896 |
-
"dependencies": {
|
| 897 |
-
"@types/prop-types": "*",
|
| 898 |
-
"csstype": "^3.2.2"
|
| 899 |
-
}
|
| 900 |
-
},
|
| 901 |
-
"node_modules/@types/react-dom": {
|
| 902 |
-
"version": "18.3.7",
|
| 903 |
-
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",
|
| 904 |
-
"integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
|
| 905 |
-
"devOptional": true,
|
| 906 |
-
"license": "MIT",
|
| 907 |
-
"peerDependencies": {
|
| 908 |
-
"@types/react": "^18.0.0"
|
| 909 |
-
}
|
| 910 |
-
},
|
| 911 |
-
"node_modules/@vercel/analytics": {
|
| 912 |
-
"version": "1.6.1",
|
| 913 |
-
"resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.6.1.tgz",
|
| 914 |
-
"integrity": "sha512-oH9He/bEM+6oKlv3chWuOOcp8Y6fo6/PSro8hEkgCW3pu9/OiCXiUpRUogDh3Fs3LH2sosDrx8CxeOLBEE+afg==",
|
| 915 |
-
"license": "MPL-2.0",
|
| 916 |
-
"peerDependencies": {
|
| 917 |
-
"@remix-run/react": "^2",
|
| 918 |
-
"@sveltejs/kit": "^1 || ^2",
|
| 919 |
-
"next": ">= 13",
|
| 920 |
-
"react": "^18 || ^19 || ^19.0.0-rc",
|
| 921 |
-
"svelte": ">= 4",
|
| 922 |
-
"vue": "^3",
|
| 923 |
-
"vue-router": "^4"
|
| 924 |
-
},
|
| 925 |
-
"peerDependenciesMeta": {
|
| 926 |
-
"@remix-run/react": {
|
| 927 |
-
"optional": true
|
| 928 |
-
},
|
| 929 |
-
"@sveltejs/kit": {
|
| 930 |
-
"optional": true
|
| 931 |
-
},
|
| 932 |
-
"next": {
|
| 933 |
-
"optional": true
|
| 934 |
-
},
|
| 935 |
-
"react": {
|
| 936 |
-
"optional": true
|
| 937 |
-
},
|
| 938 |
-
"svelte": {
|
| 939 |
-
"optional": true
|
| 940 |
-
},
|
| 941 |
-
"vue": {
|
| 942 |
-
"optional": true
|
| 943 |
-
},
|
| 944 |
-
"vue-router": {
|
| 945 |
-
"optional": true
|
| 946 |
-
}
|
| 947 |
-
}
|
| 948 |
-
},
|
| 949 |
-
"node_modules/any-promise": {
|
| 950 |
-
"version": "1.3.0",
|
| 951 |
-
"resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
|
| 952 |
-
"integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
|
| 953 |
-
"license": "MIT"
|
| 954 |
-
},
|
| 955 |
-
"node_modules/anymatch": {
|
| 956 |
-
"version": "3.1.3",
|
| 957 |
-
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
|
| 958 |
-
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
|
| 959 |
-
"license": "ISC",
|
| 960 |
-
"dependencies": {
|
| 961 |
-
"normalize-path": "^3.0.0",
|
| 962 |
-
"picomatch": "^2.0.4"
|
| 963 |
-
},
|
| 964 |
-
"engines": {
|
| 965 |
-
"node": ">= 8"
|
| 966 |
-
}
|
| 967 |
-
},
|
| 968 |
-
"node_modules/arg": {
|
| 969 |
-
"version": "5.0.2",
|
| 970 |
-
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
|
| 971 |
-
"integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
|
| 972 |
-
"license": "MIT"
|
| 973 |
-
},
|
| 974 |
-
"node_modules/autoprefixer": {
|
| 975 |
-
"version": "10.5.4",
|
| 976 |
-
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.5.4.tgz",
|
| 977 |
-
"integrity": "sha512-MaU0U/za7N3r6brxD4YB/l4NSrFzLPlANv6wEuQVaIPlD3L4W9rFcQPbL/EilY9BHhHvhfcz3gInDLrEtWT4EA==",
|
| 978 |
-
"dev": true,
|
| 979 |
-
"funding": [
|
| 980 |
-
{
|
| 981 |
-
"type": "opencollective",
|
| 982 |
-
"url": "https://opencollective.com/postcss/"
|
| 983 |
-
},
|
| 984 |
-
{
|
| 985 |
-
"type": "tidelift",
|
| 986 |
-
"url": "https://tidelift.com/funding/github/npm/autoprefixer"
|
| 987 |
-
},
|
| 988 |
-
{
|
| 989 |
-
"type": "github",
|
| 990 |
-
"url": "https://github.com/sponsors/ai"
|
| 991 |
-
}
|
| 992 |
-
],
|
| 993 |
-
"license": "MIT",
|
| 994 |
-
"dependencies": {
|
| 995 |
-
"browserslist": "^4.28.6",
|
| 996 |
-
"caniuse-lite": "^1.0.30001806",
|
| 997 |
-
"fraction.js": "^5.3.4",
|
| 998 |
-
"picocolors": "^1.1.1",
|
| 999 |
-
"postcss-value-parser": "^4.2.0"
|
| 1000 |
-
},
|
| 1001 |
-
"bin": {
|
| 1002 |
-
"autoprefixer": "bin/autoprefixer"
|
| 1003 |
-
},
|
| 1004 |
-
"engines": {
|
| 1005 |
-
"node": "^10 || ^12 || >=14"
|
| 1006 |
-
},
|
| 1007 |
-
"peerDependencies": {
|
| 1008 |
-
"postcss": "^8.1.0"
|
| 1009 |
-
}
|
| 1010 |
-
},
|
| 1011 |
-
"node_modules/baseline-browser-mapping": {
|
| 1012 |
-
"version": "2.11.18",
|
| 1013 |
-
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.18.tgz",
|
| 1014 |
-
"integrity": "sha512-1iEmLEYSiE1SeBoAfPo/Mnx3PzfzHUkDK61ASkCpuk3YXugYLH5DYK1SzqV55F8FMI6s0F+/tCP7Polz1QRjxw==",
|
| 1015 |
-
"dev": true,
|
| 1016 |
-
"license": "Apache-2.0",
|
| 1017 |
-
"bin": {
|
| 1018 |
-
"baseline-browser-mapping": "dist/cli.cjs"
|
| 1019 |
-
},
|
| 1020 |
-
"engines": {
|
| 1021 |
-
"node": ">=6.0.0"
|
| 1022 |
-
}
|
| 1023 |
-
},
|
| 1024 |
-
"node_modules/binary-extensions": {
|
| 1025 |
-
"version": "2.3.0",
|
| 1026 |
-
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
|
| 1027 |
-
"integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
|
| 1028 |
-
"license": "MIT",
|
| 1029 |
-
"engines": {
|
| 1030 |
-
"node": ">=8"
|
| 1031 |
-
},
|
| 1032 |
-
"funding": {
|
| 1033 |
-
"url": "https://github.com/sponsors/sindresorhus"
|
| 1034 |
-
}
|
| 1035 |
-
},
|
| 1036 |
-
"node_modules/braces": {
|
| 1037 |
-
"version": "3.0.3",
|
| 1038 |
-
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
| 1039 |
-
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
| 1040 |
-
"license": "MIT",
|
| 1041 |
-
"dependencies": {
|
| 1042 |
-
"fill-range": "^7.1.1"
|
| 1043 |
-
},
|
| 1044 |
-
"engines": {
|
| 1045 |
-
"node": ">=8"
|
| 1046 |
-
}
|
| 1047 |
-
},
|
| 1048 |
-
"node_modules/browserslist": {
|
| 1049 |
-
"version": "4.28.8",
|
| 1050 |
-
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.8.tgz",
|
| 1051 |
-
"integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==",
|
| 1052 |
-
"dev": true,
|
| 1053 |
-
"funding": [
|
| 1054 |
-
{
|
| 1055 |
-
"type": "opencollective",
|
| 1056 |
-
"url": "https://opencollective.com/browserslist"
|
| 1057 |
-
},
|
| 1058 |
-
{
|
| 1059 |
-
"type": "tidelift",
|
| 1060 |
-
"url": "https://tidelift.com/funding/github/npm/browserslist"
|
| 1061 |
-
},
|
| 1062 |
-
{
|
| 1063 |
-
"type": "github",
|
| 1064 |
-
"url": "https://github.com/sponsors/ai"
|
| 1065 |
-
}
|
| 1066 |
-
],
|
| 1067 |
-
"license": "MIT",
|
| 1068 |
-
"dependencies": {
|
| 1069 |
-
"baseline-browser-mapping": "^2.11.12",
|
| 1070 |
-
"caniuse-lite": "^1.0.30001809",
|
| 1071 |
-
"electron-to-chromium": "^1.5.402",
|
| 1072 |
-
"node-releases": "^2.0.53",
|
| 1073 |
-
"update-browserslist-db": "^1.3.0"
|
| 1074 |
-
},
|
| 1075 |
-
"bin": {
|
| 1076 |
-
"browserslist": "cli.js"
|
| 1077 |
-
},
|
| 1078 |
-
"engines": {
|
| 1079 |
-
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
| 1080 |
-
}
|
| 1081 |
-
},
|
| 1082 |
-
"node_modules/busboy": {
|
| 1083 |
-
"version": "1.6.0",
|
| 1084 |
-
"resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
|
| 1085 |
-
"integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
|
| 1086 |
-
"dependencies": {
|
| 1087 |
-
"streamsearch": "^1.1.0"
|
| 1088 |
-
},
|
| 1089 |
-
"engines": {
|
| 1090 |
-
"node": ">=10.16.0"
|
| 1091 |
-
}
|
| 1092 |
-
},
|
| 1093 |
-
"node_modules/camelcase-css": {
|
| 1094 |
-
"version": "2.0.1",
|
| 1095 |
-
"resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
|
| 1096 |
-
"integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
|
| 1097 |
-
"license": "MIT",
|
| 1098 |
-
"engines": {
|
| 1099 |
-
"node": ">= 6"
|
| 1100 |
-
}
|
| 1101 |
-
},
|
| 1102 |
-
"node_modules/caniuse-lite": {
|
| 1103 |
-
"version": "1.0.30001809",
|
| 1104 |
-
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001809.tgz",
|
| 1105 |
-
"integrity": "sha512-xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==",
|
| 1106 |
-
"funding": [
|
| 1107 |
-
{
|
| 1108 |
-
"type": "opencollective",
|
| 1109 |
-
"url": "https://opencollective.com/browserslist"
|
| 1110 |
-
},
|
| 1111 |
-
{
|
| 1112 |
-
"type": "tidelift",
|
| 1113 |
-
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
|
| 1114 |
-
},
|
| 1115 |
-
{
|
| 1116 |
-
"type": "github",
|
| 1117 |
-
"url": "https://github.com/sponsors/ai"
|
| 1118 |
-
}
|
| 1119 |
-
],
|
| 1120 |
-
"license": "CC-BY-4.0"
|
| 1121 |
-
},
|
| 1122 |
-
"node_modules/chokidar": {
|
| 1123 |
-
"version": "3.6.0",
|
| 1124 |
-
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
|
| 1125 |
-
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
|
| 1126 |
-
"license": "MIT",
|
| 1127 |
-
"dependencies": {
|
| 1128 |
-
"anymatch": "~3.1.2",
|
| 1129 |
-
"braces": "~3.0.2",
|
| 1130 |
-
"glob-parent": "~5.1.2",
|
| 1131 |
-
"is-binary-path": "~2.1.0",
|
| 1132 |
-
"is-glob": "~4.0.1",
|
| 1133 |
-
"normalize-path": "~3.0.0",
|
| 1134 |
-
"readdirp": "~3.6.0"
|
| 1135 |
-
},
|
| 1136 |
-
"engines": {
|
| 1137 |
-
"node": ">= 8.10.0"
|
| 1138 |
-
},
|
| 1139 |
-
"funding": {
|
| 1140 |
-
"url": "https://paulmillr.com/funding/"
|
| 1141 |
-
},
|
| 1142 |
-
"optionalDependencies": {
|
| 1143 |
-
"fsevents": "~2.3.2"
|
| 1144 |
-
}
|
| 1145 |
-
},
|
| 1146 |
-
"node_modules/chokidar/node_modules/glob-parent": {
|
| 1147 |
-
"version": "5.1.2",
|
| 1148 |
-
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
|
| 1149 |
-
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
|
| 1150 |
-
"license": "ISC",
|
| 1151 |
-
"dependencies": {
|
| 1152 |
-
"is-glob": "^4.0.1"
|
| 1153 |
-
},
|
| 1154 |
-
"engines": {
|
| 1155 |
-
"node": ">= 6"
|
| 1156 |
-
}
|
| 1157 |
-
},
|
| 1158 |
-
"node_modules/class-variance-authority": {
|
| 1159 |
-
"version": "0.7.1",
|
| 1160 |
-
"resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",
|
| 1161 |
-
"integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",
|
| 1162 |
-
"license": "Apache-2.0",
|
| 1163 |
-
"dependencies": {
|
| 1164 |
-
"clsx": "^2.1.1"
|
| 1165 |
-
},
|
| 1166 |
-
"funding": {
|
| 1167 |
-
"url": "https://polar.sh/cva"
|
| 1168 |
-
}
|
| 1169 |
-
},
|
| 1170 |
-
"node_modules/client-only": {
|
| 1171 |
-
"version": "0.0.1",
|
| 1172 |
-
"resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
|
| 1173 |
-
"integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",
|
| 1174 |
-
"license": "MIT"
|
| 1175 |
-
},
|
| 1176 |
-
"node_modules/clsx": {
|
| 1177 |
-
"version": "2.1.1",
|
| 1178 |
-
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
|
| 1179 |
-
"integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
|
| 1180 |
-
"license": "MIT",
|
| 1181 |
-
"engines": {
|
| 1182 |
-
"node": ">=6"
|
| 1183 |
-
}
|
| 1184 |
-
},
|
| 1185 |
-
"node_modules/commander": {
|
| 1186 |
-
"version": "4.1.1",
|
| 1187 |
-
"resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
|
| 1188 |
-
"integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
|
| 1189 |
-
"license": "MIT",
|
| 1190 |
-
"engines": {
|
| 1191 |
-
"node": ">= 6"
|
| 1192 |
-
}
|
| 1193 |
-
},
|
| 1194 |
-
"node_modules/cssesc": {
|
| 1195 |
-
"version": "3.0.0",
|
| 1196 |
-
"resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
|
| 1197 |
-
"integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
|
| 1198 |
-
"license": "MIT",
|
| 1199 |
-
"bin": {
|
| 1200 |
-
"cssesc": "bin/cssesc"
|
| 1201 |
-
},
|
| 1202 |
-
"engines": {
|
| 1203 |
-
"node": ">=4"
|
| 1204 |
-
}
|
| 1205 |
-
},
|
| 1206 |
-
"node_modules/csstype": {
|
| 1207 |
-
"version": "3.2.3",
|
| 1208 |
-
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
|
| 1209 |
-
"integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
|
| 1210 |
-
"devOptional": true,
|
| 1211 |
-
"license": "MIT"
|
| 1212 |
-
},
|
| 1213 |
-
"node_modules/didyoumean": {
|
| 1214 |
-
"version": "1.2.2",
|
| 1215 |
-
"resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
|
| 1216 |
-
"integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",
|
| 1217 |
-
"license": "Apache-2.0"
|
| 1218 |
-
},
|
| 1219 |
-
"node_modules/dlv": {
|
| 1220 |
-
"version": "1.1.3",
|
| 1221 |
-
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
|
| 1222 |
-
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
|
| 1223 |
-
"license": "MIT"
|
| 1224 |
-
},
|
| 1225 |
-
"node_modules/electron-to-chromium": {
|
| 1226 |
-
"version": "1.5.412",
|
| 1227 |
-
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.412.tgz",
|
| 1228 |
-
"integrity": "sha512-z4rMe3esBzlzovKHj4gxJnsCGZRK5l4baUvm+gCGJBPE+gsyUMKsuU9tnEUtI1dOebXz1ytAPGjvXhmQ7rIPwA==",
|
| 1229 |
-
"dev": true,
|
| 1230 |
-
"license": "ISC"
|
| 1231 |
-
},
|
| 1232 |
-
"node_modules/es-errors": {
|
| 1233 |
-
"version": "1.3.0",
|
| 1234 |
-
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
| 1235 |
-
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
| 1236 |
-
"license": "MIT",
|
| 1237 |
-
"engines": {
|
| 1238 |
-
"node": ">= 0.4"
|
| 1239 |
-
}
|
| 1240 |
-
},
|
| 1241 |
-
"node_modules/escalade": {
|
| 1242 |
-
"version": "3.2.0",
|
| 1243 |
-
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
|
| 1244 |
-
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
| 1245 |
-
"dev": true,
|
| 1246 |
-
"license": "MIT",
|
| 1247 |
-
"engines": {
|
| 1248 |
-
"node": ">=6"
|
| 1249 |
-
}
|
| 1250 |
-
},
|
| 1251 |
-
"node_modules/fast-glob": {
|
| 1252 |
-
"version": "3.3.3",
|
| 1253 |
-
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
|
| 1254 |
-
"integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
|
| 1255 |
-
"license": "MIT",
|
| 1256 |
-
"dependencies": {
|
| 1257 |
-
"@nodelib/fs.stat": "^2.0.2",
|
| 1258 |
-
"@nodelib/fs.walk": "^1.2.3",
|
| 1259 |
-
"glob-parent": "^5.1.2",
|
| 1260 |
-
"merge2": "^1.3.0",
|
| 1261 |
-
"micromatch": "^4.0.8"
|
| 1262 |
-
},
|
| 1263 |
-
"engines": {
|
| 1264 |
-
"node": ">=8.6.0"
|
| 1265 |
-
}
|
| 1266 |
-
},
|
| 1267 |
-
"node_modules/fast-glob/node_modules/glob-parent": {
|
| 1268 |
-
"version": "5.1.2",
|
| 1269 |
-
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
|
| 1270 |
-
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
|
| 1271 |
-
"license": "ISC",
|
| 1272 |
-
"dependencies": {
|
| 1273 |
-
"is-glob": "^4.0.1"
|
| 1274 |
-
},
|
| 1275 |
-
"engines": {
|
| 1276 |
-
"node": ">= 6"
|
| 1277 |
-
}
|
| 1278 |
-
},
|
| 1279 |
-
"node_modules/fastq": {
|
| 1280 |
-
"version": "1.20.1",
|
| 1281 |
-
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
|
| 1282 |
-
"integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
|
| 1283 |
-
"license": "ISC",
|
| 1284 |
-
"dependencies": {
|
| 1285 |
-
"reusify": "^1.0.4"
|
| 1286 |
-
}
|
| 1287 |
-
},
|
| 1288 |
-
"node_modules/fill-range": {
|
| 1289 |
-
"version": "7.1.1",
|
| 1290 |
-
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
| 1291 |
-
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
| 1292 |
-
"license": "MIT",
|
| 1293 |
-
"dependencies": {
|
| 1294 |
-
"to-regex-range": "^5.0.1"
|
| 1295 |
-
},
|
| 1296 |
-
"engines": {
|
| 1297 |
-
"node": ">=8"
|
| 1298 |
-
}
|
| 1299 |
-
},
|
| 1300 |
-
"node_modules/flatbuffers": {
|
| 1301 |
-
"version": "25.9.23",
|
| 1302 |
-
"resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-25.9.23.tgz",
|
| 1303 |
-
"integrity": "sha512-MI1qs7Lo4Syw0EOzUl0xjs2lsoeqFku44KpngfIduHBYvzm8h2+7K8YMQh1JtVVVrUvhLpNwqVi4DERegUJhPQ==",
|
| 1304 |
-
"license": "Apache-2.0"
|
| 1305 |
-
},
|
| 1306 |
-
"node_modules/fraction.js": {
|
| 1307 |
-
"version": "5.3.4",
|
| 1308 |
-
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",
|
| 1309 |
-
"integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",
|
| 1310 |
-
"dev": true,
|
| 1311 |
-
"license": "MIT",
|
| 1312 |
-
"engines": {
|
| 1313 |
-
"node": "*"
|
| 1314 |
-
},
|
| 1315 |
-
"funding": {
|
| 1316 |
-
"type": "github",
|
| 1317 |
-
"url": "https://github.com/sponsors/rawify"
|
| 1318 |
-
}
|
| 1319 |
-
},
|
| 1320 |
-
"node_modules/framer-motion": {
|
| 1321 |
-
"version": "12.43.0",
|
| 1322 |
-
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.43.0.tgz",
|
| 1323 |
-
"integrity": "sha512-1eaL3RvR/kAlbG7UYcpMptEyzPoENO0c6w7ZnB3/hh2vSAz/6uGAFn6fdoqTBguNstf3MsFhJHsD/0DHiclG+g==",
|
| 1324 |
-
"license": "MIT",
|
| 1325 |
-
"dependencies": {
|
| 1326 |
-
"motion-dom": "^12.43.0",
|
| 1327 |
-
"motion-utils": "^12.39.0",
|
| 1328 |
-
"tslib": "^2.4.0"
|
| 1329 |
-
},
|
| 1330 |
-
"peerDependencies": {
|
| 1331 |
-
"@emotion/is-prop-valid": "*",
|
| 1332 |
-
"react": "^18.0.0 || ^19.0.0",
|
| 1333 |
-
"react-dom": "^18.0.0 || ^19.0.0"
|
| 1334 |
-
},
|
| 1335 |
-
"peerDependenciesMeta": {
|
| 1336 |
-
"@emotion/is-prop-valid": {
|
| 1337 |
-
"optional": true
|
| 1338 |
-
},
|
| 1339 |
-
"react": {
|
| 1340 |
-
"optional": true
|
| 1341 |
-
},
|
| 1342 |
-
"react-dom": {
|
| 1343 |
-
"optional": true
|
| 1344 |
-
}
|
| 1345 |
-
}
|
| 1346 |
-
},
|
| 1347 |
-
"node_modules/fsevents": {
|
| 1348 |
-
"version": "2.3.3",
|
| 1349 |
-
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
| 1350 |
-
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
| 1351 |
-
"hasInstallScript": true,
|
| 1352 |
-
"license": "MIT",
|
| 1353 |
-
"optional": true,
|
| 1354 |
-
"os": [
|
| 1355 |
-
"darwin"
|
| 1356 |
-
],
|
| 1357 |
-
"engines": {
|
| 1358 |
-
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
| 1359 |
-
}
|
| 1360 |
-
},
|
| 1361 |
-
"node_modules/function-bind": {
|
| 1362 |
-
"version": "1.1.2",
|
| 1363 |
-
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
| 1364 |
-
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
| 1365 |
-
"license": "MIT",
|
| 1366 |
-
"funding": {
|
| 1367 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 1368 |
-
}
|
| 1369 |
-
},
|
| 1370 |
-
"node_modules/glob-parent": {
|
| 1371 |
-
"version": "6.0.2",
|
| 1372 |
-
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
|
| 1373 |
-
"integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
|
| 1374 |
-
"license": "ISC",
|
| 1375 |
-
"dependencies": {
|
| 1376 |
-
"is-glob": "^4.0.3"
|
| 1377 |
-
},
|
| 1378 |
-
"engines": {
|
| 1379 |
-
"node": ">=10.13.0"
|
| 1380 |
-
}
|
| 1381 |
-
},
|
| 1382 |
-
"node_modules/graceful-fs": {
|
| 1383 |
-
"version": "4.2.11",
|
| 1384 |
-
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
| 1385 |
-
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
| 1386 |
-
"license": "ISC"
|
| 1387 |
-
},
|
| 1388 |
-
"node_modules/guid-typescript": {
|
| 1389 |
-
"version": "1.0.9",
|
| 1390 |
-
"resolved": "https://registry.npmjs.org/guid-typescript/-/guid-typescript-1.0.9.tgz",
|
| 1391 |
-
"integrity": "sha512-Y8T4vYhEfwJOTbouREvG+3XDsjr8E3kIr7uf+JZ0BYloFsttiHU0WfvANVsR7TxNUJa/WpCnw/Ino/p+DeBhBQ==",
|
| 1392 |
-
"license": "ISC"
|
| 1393 |
-
},
|
| 1394 |
-
"node_modules/hasown": {
|
| 1395 |
-
"version": "2.0.4",
|
| 1396 |
-
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
|
| 1397 |
-
"integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
|
| 1398 |
-
"license": "MIT",
|
| 1399 |
-
"dependencies": {
|
| 1400 |
-
"function-bind": "^1.1.2"
|
| 1401 |
-
},
|
| 1402 |
-
"engines": {
|
| 1403 |
-
"node": ">= 0.4"
|
| 1404 |
-
}
|
| 1405 |
-
},
|
| 1406 |
-
"node_modules/iota-array": {
|
| 1407 |
-
"version": "1.0.0",
|
| 1408 |
-
"resolved": "https://registry.npmjs.org/iota-array/-/iota-array-1.0.0.tgz",
|
| 1409 |
-
"integrity": "sha512-pZ2xT+LOHckCatGQ3DcG/a+QuEqvoxqkiL7tvE8nn3uuu+f6i1TtpB5/FtWFbxUuVr5PZCx8KskuGatbJDXOWA==",
|
| 1410 |
-
"license": "MIT"
|
| 1411 |
-
},
|
| 1412 |
-
"node_modules/is-binary-path": {
|
| 1413 |
-
"version": "2.1.0",
|
| 1414 |
-
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
|
| 1415 |
-
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
|
| 1416 |
-
"license": "MIT",
|
| 1417 |
-
"dependencies": {
|
| 1418 |
-
"binary-extensions": "^2.0.0"
|
| 1419 |
-
},
|
| 1420 |
-
"engines": {
|
| 1421 |
-
"node": ">=8"
|
| 1422 |
-
}
|
| 1423 |
-
},
|
| 1424 |
-
"node_modules/is-buffer": {
|
| 1425 |
-
"version": "1.1.6",
|
| 1426 |
-
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
|
| 1427 |
-
"integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
|
| 1428 |
-
"license": "MIT"
|
| 1429 |
-
},
|
| 1430 |
-
"node_modules/is-core-module": {
|
| 1431 |
-
"version": "2.16.2",
|
| 1432 |
-
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz",
|
| 1433 |
-
"integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==",
|
| 1434 |
-
"license": "MIT",
|
| 1435 |
-
"dependencies": {
|
| 1436 |
-
"hasown": "^2.0.3"
|
| 1437 |
-
},
|
| 1438 |
-
"engines": {
|
| 1439 |
-
"node": ">= 0.4"
|
| 1440 |
-
},
|
| 1441 |
-
"funding": {
|
| 1442 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 1443 |
-
}
|
| 1444 |
-
},
|
| 1445 |
-
"node_modules/is-extglob": {
|
| 1446 |
-
"version": "2.1.1",
|
| 1447 |
-
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
| 1448 |
-
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
| 1449 |
-
"license": "MIT",
|
| 1450 |
-
"engines": {
|
| 1451 |
-
"node": ">=0.10.0"
|
| 1452 |
-
}
|
| 1453 |
-
},
|
| 1454 |
-
"node_modules/is-glob": {
|
| 1455 |
-
"version": "4.0.3",
|
| 1456 |
-
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
| 1457 |
-
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
|
| 1458 |
-
"license": "MIT",
|
| 1459 |
-
"dependencies": {
|
| 1460 |
-
"is-extglob": "^2.1.1"
|
| 1461 |
-
},
|
| 1462 |
-
"engines": {
|
| 1463 |
-
"node": ">=0.10.0"
|
| 1464 |
-
}
|
| 1465 |
-
},
|
| 1466 |
-
"node_modules/is-number": {
|
| 1467 |
-
"version": "7.0.0",
|
| 1468 |
-
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
| 1469 |
-
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
| 1470 |
-
"license": "MIT",
|
| 1471 |
-
"engines": {
|
| 1472 |
-
"node": ">=0.12.0"
|
| 1473 |
-
}
|
| 1474 |
-
},
|
| 1475 |
-
"node_modules/jiti": {
|
| 1476 |
-
"version": "1.21.7",
|
| 1477 |
-
"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",
|
| 1478 |
-
"integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
|
| 1479 |
-
"license": "MIT",
|
| 1480 |
-
"bin": {
|
| 1481 |
-
"jiti": "bin/jiti.js"
|
| 1482 |
-
}
|
| 1483 |
-
},
|
| 1484 |
-
"node_modules/js-tokens": {
|
| 1485 |
-
"version": "4.0.0",
|
| 1486 |
-
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
| 1487 |
-
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
| 1488 |
-
"license": "MIT"
|
| 1489 |
-
},
|
| 1490 |
-
"node_modules/lilconfig": {
|
| 1491 |
-
"version": "3.1.3",
|
| 1492 |
-
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
|
| 1493 |
-
"integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
|
| 1494 |
-
"license": "MIT",
|
| 1495 |
-
"engines": {
|
| 1496 |
-
"node": ">=14"
|
| 1497 |
-
},
|
| 1498 |
-
"funding": {
|
| 1499 |
-
"url": "https://github.com/sponsors/antonk52"
|
| 1500 |
-
}
|
| 1501 |
-
},
|
| 1502 |
-
"node_modules/lines-and-columns": {
|
| 1503 |
-
"version": "1.2.4",
|
| 1504 |
-
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
|
| 1505 |
-
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
|
| 1506 |
-
"license": "MIT"
|
| 1507 |
-
},
|
| 1508 |
-
"node_modules/lodash-es": {
|
| 1509 |
-
"version": "4.18.1",
|
| 1510 |
-
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz",
|
| 1511 |
-
"integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==",
|
| 1512 |
-
"license": "MIT"
|
| 1513 |
-
},
|
| 1514 |
-
"node_modules/long": {
|
| 1515 |
-
"version": "5.3.2",
|
| 1516 |
-
"resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",
|
| 1517 |
-
"integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",
|
| 1518 |
-
"license": "Apache-2.0"
|
| 1519 |
-
},
|
| 1520 |
-
"node_modules/loose-envify": {
|
| 1521 |
-
"version": "1.4.0",
|
| 1522 |
-
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
| 1523 |
-
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
| 1524 |
-
"license": "MIT",
|
| 1525 |
-
"dependencies": {
|
| 1526 |
-
"js-tokens": "^3.0.0 || ^4.0.0"
|
| 1527 |
-
},
|
| 1528 |
-
"bin": {
|
| 1529 |
-
"loose-envify": "cli.js"
|
| 1530 |
-
}
|
| 1531 |
-
},
|
| 1532 |
-
"node_modules/lucide-react": {
|
| 1533 |
-
"version": "0.544.0",
|
| 1534 |
-
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.544.0.tgz",
|
| 1535 |
-
"integrity": "sha512-t5tS44bqd825zAW45UQxpG2CvcC4urOwn2TrwSH8u+MjeE+1NnWl6QqeQ/6NdjMqdOygyiT9p3Ev0p1NJykxjw==",
|
| 1536 |
-
"license": "ISC",
|
| 1537 |
-
"peerDependencies": {
|
| 1538 |
-
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
| 1539 |
-
}
|
| 1540 |
-
},
|
| 1541 |
-
"node_modules/merge2": {
|
| 1542 |
-
"version": "1.4.1",
|
| 1543 |
-
"resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
|
| 1544 |
-
"integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
|
| 1545 |
-
"license": "MIT",
|
| 1546 |
-
"engines": {
|
| 1547 |
-
"node": ">= 8"
|
| 1548 |
-
}
|
| 1549 |
-
},
|
| 1550 |
-
"node_modules/micromatch": {
|
| 1551 |
-
"version": "4.0.8",
|
| 1552 |
-
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
|
| 1553 |
-
"integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
|
| 1554 |
-
"license": "MIT",
|
| 1555 |
-
"dependencies": {
|
| 1556 |
-
"braces": "^3.0.3",
|
| 1557 |
-
"picomatch": "^2.3.1"
|
| 1558 |
-
},
|
| 1559 |
-
"engines": {
|
| 1560 |
-
"node": ">=8.6"
|
| 1561 |
-
}
|
| 1562 |
-
},
|
| 1563 |
-
"node_modules/motion": {
|
| 1564 |
-
"version": "12.43.0",
|
| 1565 |
-
"resolved": "https://registry.npmjs.org/motion/-/motion-12.43.0.tgz",
|
| 1566 |
-
"integrity": "sha512-BQgQbSa9Hn3/mtbib0MK53y6JSANa+YKUKlaYnWzAVDH424RYQ5LVpV3pNiWH00BA2z4ojsSdMzqT7g2FQwjuQ==",
|
| 1567 |
-
"license": "MIT",
|
| 1568 |
-
"dependencies": {
|
| 1569 |
-
"framer-motion": "^12.43.0",
|
| 1570 |
-
"tslib": "^2.4.0"
|
| 1571 |
-
},
|
| 1572 |
-
"peerDependencies": {
|
| 1573 |
-
"@emotion/is-prop-valid": "*",
|
| 1574 |
-
"react": "^18.0.0 || ^19.0.0",
|
| 1575 |
-
"react-dom": "^18.0.0 || ^19.0.0"
|
| 1576 |
-
},
|
| 1577 |
-
"peerDependenciesMeta": {
|
| 1578 |
-
"@emotion/is-prop-valid": {
|
| 1579 |
-
"optional": true
|
| 1580 |
-
},
|
| 1581 |
-
"react": {
|
| 1582 |
-
"optional": true
|
| 1583 |
-
},
|
| 1584 |
-
"react-dom": {
|
| 1585 |
-
"optional": true
|
| 1586 |
-
}
|
| 1587 |
-
}
|
| 1588 |
-
},
|
| 1589 |
-
"node_modules/motion-dom": {
|
| 1590 |
-
"version": "12.43.0",
|
| 1591 |
-
"resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.43.0.tgz",
|
| 1592 |
-
"integrity": "sha512-azKON4d9S65PEoFUiQTMTgPheEmzf2QngdRc50AKfJp9Q9mmcBVw22c8eMq9k8kxOFHdL7+WZY7N/5F/lwiDag==",
|
| 1593 |
-
"license": "MIT",
|
| 1594 |
-
"dependencies": {
|
| 1595 |
-
"motion-utils": "^12.39.0"
|
| 1596 |
-
}
|
| 1597 |
-
},
|
| 1598 |
-
"node_modules/motion-utils": {
|
| 1599 |
-
"version": "12.39.0",
|
| 1600 |
-
"resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.39.0.tgz",
|
| 1601 |
-
"integrity": "sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==",
|
| 1602 |
-
"license": "MIT"
|
| 1603 |
-
},
|
| 1604 |
-
"node_modules/mz": {
|
| 1605 |
-
"version": "2.7.0",
|
| 1606 |
-
"resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
|
| 1607 |
-
"integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
|
| 1608 |
-
"license": "MIT",
|
| 1609 |
-
"dependencies": {
|
| 1610 |
-
"any-promise": "^1.0.0",
|
| 1611 |
-
"object-assign": "^4.0.1",
|
| 1612 |
-
"thenify-all": "^1.0.0"
|
| 1613 |
-
}
|
| 1614 |
-
},
|
| 1615 |
-
"node_modules/nanoid": {
|
| 1616 |
-
"version": "5.1.16",
|
| 1617 |
-
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.16.tgz",
|
| 1618 |
-
"integrity": "sha512-kVrnsrJqMR8+oLJnGEmSWw9BivK5mt7H3FZatVRjrc5wGqFYuBxX1yG7+A7Gi5AefkX6t/oCkizcQgpu0cY1dQ==",
|
| 1619 |
-
"funding": [
|
| 1620 |
-
{
|
| 1621 |
-
"type": "github",
|
| 1622 |
-
"url": "https://github.com/sponsors/ai"
|
| 1623 |
-
}
|
| 1624 |
-
],
|
| 1625 |
-
"license": "MIT",
|
| 1626 |
-
"bin": {
|
| 1627 |
-
"nanoid": "bin/nanoid.js"
|
| 1628 |
-
},
|
| 1629 |
-
"engines": {
|
| 1630 |
-
"node": "^18 || >=20"
|
| 1631 |
-
}
|
| 1632 |
-
},
|
| 1633 |
-
"node_modules/ndarray": {
|
| 1634 |
-
"version": "1.0.19",
|
| 1635 |
-
"resolved": "https://registry.npmjs.org/ndarray/-/ndarray-1.0.19.tgz",
|
| 1636 |
-
"integrity": "sha512-B4JHA4vdyZU30ELBw3g7/p9bZupyew5a7tX1Y/gGeF2hafrPaQZhgrGQfsvgfYbgdFZjYwuEcnaobeM/WMW+HQ==",
|
| 1637 |
-
"license": "MIT",
|
| 1638 |
-
"dependencies": {
|
| 1639 |
-
"iota-array": "^1.0.0",
|
| 1640 |
-
"is-buffer": "^1.0.2"
|
| 1641 |
-
}
|
| 1642 |
-
},
|
| 1643 |
-
"node_modules/next": {
|
| 1644 |
-
"version": "14.2.35",
|
| 1645 |
-
"resolved": "https://registry.npmjs.org/next/-/next-14.2.35.tgz",
|
| 1646 |
-
"integrity": "sha512-KhYd2Hjt/O1/1aZVX3dCwGXM1QmOV4eNM2UTacK5gipDdPN/oHHK/4oVGy7X8GMfPMsUTUEmGlsy0EY1YGAkig==",
|
| 1647 |
-
"license": "MIT",
|
| 1648 |
-
"dependencies": {
|
| 1649 |
-
"@next/env": "14.2.35",
|
| 1650 |
-
"@swc/helpers": "0.5.5",
|
| 1651 |
-
"busboy": "1.6.0",
|
| 1652 |
-
"caniuse-lite": "^1.0.30001579",
|
| 1653 |
-
"graceful-fs": "^4.2.11",
|
| 1654 |
-
"postcss": "8.4.31",
|
| 1655 |
-
"styled-jsx": "5.1.1"
|
| 1656 |
-
},
|
| 1657 |
-
"bin": {
|
| 1658 |
-
"next": "dist/bin/next"
|
| 1659 |
-
},
|
| 1660 |
-
"engines": {
|
| 1661 |
-
"node": ">=18.17.0"
|
| 1662 |
-
},
|
| 1663 |
-
"optionalDependencies": {
|
| 1664 |
-
"@next/swc-darwin-arm64": "14.2.33",
|
| 1665 |
-
"@next/swc-darwin-x64": "14.2.33",
|
| 1666 |
-
"@next/swc-linux-arm64-gnu": "14.2.33",
|
| 1667 |
-
"@next/swc-linux-arm64-musl": "14.2.33",
|
| 1668 |
-
"@next/swc-linux-x64-gnu": "14.2.33",
|
| 1669 |
-
"@next/swc-linux-x64-musl": "14.2.33",
|
| 1670 |
-
"@next/swc-win32-arm64-msvc": "14.2.33",
|
| 1671 |
-
"@next/swc-win32-ia32-msvc": "14.2.33",
|
| 1672 |
-
"@next/swc-win32-x64-msvc": "14.2.33"
|
| 1673 |
-
},
|
| 1674 |
-
"peerDependencies": {
|
| 1675 |
-
"@opentelemetry/api": "^1.1.0",
|
| 1676 |
-
"@playwright/test": "^1.41.2",
|
| 1677 |
-
"react": "^18.2.0",
|
| 1678 |
-
"react-dom": "^18.2.0",
|
| 1679 |
-
"sass": "^1.3.0"
|
| 1680 |
-
},
|
| 1681 |
-
"peerDependenciesMeta": {
|
| 1682 |
-
"@opentelemetry/api": {
|
| 1683 |
-
"optional": true
|
| 1684 |
-
},
|
| 1685 |
-
"@playwright/test": {
|
| 1686 |
-
"optional": true
|
| 1687 |
-
},
|
| 1688 |
-
"sass": {
|
| 1689 |
-
"optional": true
|
| 1690 |
-
}
|
| 1691 |
-
}
|
| 1692 |
-
},
|
| 1693 |
-
"node_modules/next/node_modules/nanoid": {
|
| 1694 |
-
"version": "3.3.18",
|
| 1695 |
-
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
|
| 1696 |
-
"integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
|
| 1697 |
-
"funding": [
|
| 1698 |
-
{
|
| 1699 |
-
"type": "github",
|
| 1700 |
-
"url": "https://github.com/sponsors/ai"
|
| 1701 |
-
}
|
| 1702 |
-
],
|
| 1703 |
-
"license": "MIT",
|
| 1704 |
-
"bin": {
|
| 1705 |
-
"nanoid": "bin/nanoid.cjs"
|
| 1706 |
-
},
|
| 1707 |
-
"engines": {
|
| 1708 |
-
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
| 1709 |
-
}
|
| 1710 |
-
},
|
| 1711 |
-
"node_modules/next/node_modules/postcss": {
|
| 1712 |
-
"version": "8.4.31",
|
| 1713 |
-
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
|
| 1714 |
-
"integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",
|
| 1715 |
-
"funding": [
|
| 1716 |
-
{
|
| 1717 |
-
"type": "opencollective",
|
| 1718 |
-
"url": "https://opencollective.com/postcss/"
|
| 1719 |
-
},
|
| 1720 |
-
{
|
| 1721 |
-
"type": "tidelift",
|
| 1722 |
-
"url": "https://tidelift.com/funding/github/npm/postcss"
|
| 1723 |
-
},
|
| 1724 |
-
{
|
| 1725 |
-
"type": "github",
|
| 1726 |
-
"url": "https://github.com/sponsors/ai"
|
| 1727 |
-
}
|
| 1728 |
-
],
|
| 1729 |
-
"license": "MIT",
|
| 1730 |
-
"dependencies": {
|
| 1731 |
-
"nanoid": "^3.3.6",
|
| 1732 |
-
"picocolors": "^1.0.0",
|
| 1733 |
-
"source-map-js": "^1.0.2"
|
| 1734 |
-
},
|
| 1735 |
-
"engines": {
|
| 1736 |
-
"node": "^10 || ^12 || >=14"
|
| 1737 |
-
}
|
| 1738 |
-
},
|
| 1739 |
-
"node_modules/node-releases": {
|
| 1740 |
-
"version": "2.0.53",
|
| 1741 |
-
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.53.tgz",
|
| 1742 |
-
"integrity": "sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==",
|
| 1743 |
-
"dev": true,
|
| 1744 |
-
"license": "MIT",
|
| 1745 |
-
"engines": {
|
| 1746 |
-
"node": ">=18"
|
| 1747 |
-
}
|
| 1748 |
-
},
|
| 1749 |
-
"node_modules/normalize-path": {
|
| 1750 |
-
"version": "3.0.0",
|
| 1751 |
-
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
|
| 1752 |
-
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
|
| 1753 |
-
"license": "MIT",
|
| 1754 |
-
"engines": {
|
| 1755 |
-
"node": ">=0.10.0"
|
| 1756 |
-
}
|
| 1757 |
-
},
|
| 1758 |
-
"node_modules/object-assign": {
|
| 1759 |
-
"version": "4.1.1",
|
| 1760 |
-
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
| 1761 |
-
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
| 1762 |
-
"license": "MIT",
|
| 1763 |
-
"engines": {
|
| 1764 |
-
"node": ">=0.10.0"
|
| 1765 |
-
}
|
| 1766 |
-
},
|
| 1767 |
-
"node_modules/object-hash": {
|
| 1768 |
-
"version": "3.0.0",
|
| 1769 |
-
"resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",
|
| 1770 |
-
"integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",
|
| 1771 |
-
"license": "MIT",
|
| 1772 |
-
"engines": {
|
| 1773 |
-
"node": ">= 6"
|
| 1774 |
-
}
|
| 1775 |
-
},
|
| 1776 |
-
"node_modules/onnxruntime-common": {
|
| 1777 |
-
"version": "1.21.0",
|
| 1778 |
-
"resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.21.0.tgz",
|
| 1779 |
-
"integrity": "sha512-Q632iLLrtCAVOTO65dh2+mNbQir/QNTVBG3h/QdZBpns7mZ0RYbLRBgGABPbpU9351AgYy7SJf1WaeVwMrBFPQ==",
|
| 1780 |
-
"license": "MIT"
|
| 1781 |
-
},
|
| 1782 |
-
"node_modules/onnxruntime-web": {
|
| 1783 |
-
"version": "1.21.0",
|
| 1784 |
-
"resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.21.0.tgz",
|
| 1785 |
-
"integrity": "sha512-adzOe+7uI7lKz6pQNbAsLMQd2Fq5Jhmoxd8LZjJr8m3KvbFyiYyRxRiC57/XXD+jb18voppjeGAjoZmskXG+7A==",
|
| 1786 |
-
"license": "MIT",
|
| 1787 |
-
"dependencies": {
|
| 1788 |
-
"flatbuffers": "^25.1.24",
|
| 1789 |
-
"guid-typescript": "^1.0.9",
|
| 1790 |
-
"long": "^5.2.3",
|
| 1791 |
-
"onnxruntime-common": "1.21.0",
|
| 1792 |
-
"platform": "^1.3.6",
|
| 1793 |
-
"protobufjs": "^7.2.4"
|
| 1794 |
-
}
|
| 1795 |
-
},
|
| 1796 |
-
"node_modules/path-parse": {
|
| 1797 |
-
"version": "1.0.7",
|
| 1798 |
-
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
| 1799 |
-
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
| 1800 |
-
"license": "MIT"
|
| 1801 |
-
},
|
| 1802 |
-
"node_modules/picocolors": {
|
| 1803 |
-
"version": "1.1.1",
|
| 1804 |
-
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
| 1805 |
-
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
| 1806 |
-
"license": "ISC"
|
| 1807 |
-
},
|
| 1808 |
-
"node_modules/picomatch": {
|
| 1809 |
-
"version": "2.3.2",
|
| 1810 |
-
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
|
| 1811 |
-
"integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
|
| 1812 |
-
"license": "MIT",
|
| 1813 |
-
"engines": {
|
| 1814 |
-
"node": ">=8.6"
|
| 1815 |
-
},
|
| 1816 |
-
"funding": {
|
| 1817 |
-
"url": "https://github.com/sponsors/jonschlinkert"
|
| 1818 |
-
}
|
| 1819 |
-
},
|
| 1820 |
-
"node_modules/pirates": {
|
| 1821 |
-
"version": "4.0.7",
|
| 1822 |
-
"resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
|
| 1823 |
-
"integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
|
| 1824 |
-
"license": "MIT",
|
| 1825 |
-
"engines": {
|
| 1826 |
-
"node": ">= 6"
|
| 1827 |
-
}
|
| 1828 |
-
},
|
| 1829 |
-
"node_modules/platform": {
|
| 1830 |
-
"version": "1.3.6",
|
| 1831 |
-
"resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz",
|
| 1832 |
-
"integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==",
|
| 1833 |
-
"license": "MIT"
|
| 1834 |
-
},
|
| 1835 |
-
"node_modules/postcss": {
|
| 1836 |
-
"version": "8.5.26",
|
| 1837 |
-
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz",
|
| 1838 |
-
"integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==",
|
| 1839 |
-
"funding": [
|
| 1840 |
-
{
|
| 1841 |
-
"type": "opencollective",
|
| 1842 |
-
"url": "https://opencollective.com/postcss/"
|
| 1843 |
-
},
|
| 1844 |
-
{
|
| 1845 |
-
"type": "tidelift",
|
| 1846 |
-
"url": "https://tidelift.com/funding/github/npm/postcss"
|
| 1847 |
-
},
|
| 1848 |
-
{
|
| 1849 |
-
"type": "github",
|
| 1850 |
-
"url": "https://github.com/sponsors/ai"
|
| 1851 |
-
}
|
| 1852 |
-
],
|
| 1853 |
-
"license": "MIT",
|
| 1854 |
-
"dependencies": {
|
| 1855 |
-
"nanoid": "^3.3.17",
|
| 1856 |
-
"picocolors": "^1.1.1",
|
| 1857 |
-
"source-map-js": "^1.2.1"
|
| 1858 |
-
},
|
| 1859 |
-
"engines": {
|
| 1860 |
-
"node": "^10 || ^12 || >=14"
|
| 1861 |
-
}
|
| 1862 |
-
},
|
| 1863 |
-
"node_modules/postcss-import": {
|
| 1864 |
-
"version": "15.1.0",
|
| 1865 |
-
"resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
|
| 1866 |
-
"integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
|
| 1867 |
-
"license": "MIT",
|
| 1868 |
-
"dependencies": {
|
| 1869 |
-
"postcss-value-parser": "^4.0.0",
|
| 1870 |
-
"read-cache": "^1.0.0",
|
| 1871 |
-
"resolve": "^1.1.7"
|
| 1872 |
-
},
|
| 1873 |
-
"engines": {
|
| 1874 |
-
"node": ">=14.0.0"
|
| 1875 |
-
},
|
| 1876 |
-
"peerDependencies": {
|
| 1877 |
-
"postcss": "^8.0.0"
|
| 1878 |
-
}
|
| 1879 |
-
},
|
| 1880 |
-
"node_modules/postcss-js": {
|
| 1881 |
-
"version": "4.1.0",
|
| 1882 |
-
"resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",
|
| 1883 |
-
"integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",
|
| 1884 |
-
"funding": [
|
| 1885 |
-
{
|
| 1886 |
-
"type": "opencollective",
|
| 1887 |
-
"url": "https://opencollective.com/postcss/"
|
| 1888 |
-
},
|
| 1889 |
-
{
|
| 1890 |
-
"type": "github",
|
| 1891 |
-
"url": "https://github.com/sponsors/ai"
|
| 1892 |
-
}
|
| 1893 |
-
],
|
| 1894 |
-
"license": "MIT",
|
| 1895 |
-
"dependencies": {
|
| 1896 |
-
"camelcase-css": "^2.0.1"
|
| 1897 |
-
},
|
| 1898 |
-
"engines": {
|
| 1899 |
-
"node": "^12 || ^14 || >= 16"
|
| 1900 |
-
},
|
| 1901 |
-
"peerDependencies": {
|
| 1902 |
-
"postcss": "^8.4.21"
|
| 1903 |
-
}
|
| 1904 |
-
},
|
| 1905 |
-
"node_modules/postcss-load-config": {
|
| 1906 |
-
"version": "6.0.1",
|
| 1907 |
-
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",
|
| 1908 |
-
"integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",
|
| 1909 |
-
"funding": [
|
| 1910 |
-
{
|
| 1911 |
-
"type": "opencollective",
|
| 1912 |
-
"url": "https://opencollective.com/postcss/"
|
| 1913 |
-
},
|
| 1914 |
-
{
|
| 1915 |
-
"type": "github",
|
| 1916 |
-
"url": "https://github.com/sponsors/ai"
|
| 1917 |
-
}
|
| 1918 |
-
],
|
| 1919 |
-
"license": "MIT",
|
| 1920 |
-
"dependencies": {
|
| 1921 |
-
"lilconfig": "^3.1.1"
|
| 1922 |
-
},
|
| 1923 |
-
"engines": {
|
| 1924 |
-
"node": ">= 18"
|
| 1925 |
-
},
|
| 1926 |
-
"peerDependencies": {
|
| 1927 |
-
"jiti": ">=1.21.0",
|
| 1928 |
-
"postcss": ">=8.0.9",
|
| 1929 |
-
"tsx": "^4.8.1",
|
| 1930 |
-
"yaml": "^2.4.2"
|
| 1931 |
-
},
|
| 1932 |
-
"peerDependenciesMeta": {
|
| 1933 |
-
"jiti": {
|
| 1934 |
-
"optional": true
|
| 1935 |
-
},
|
| 1936 |
-
"postcss": {
|
| 1937 |
-
"optional": true
|
| 1938 |
-
},
|
| 1939 |
-
"tsx": {
|
| 1940 |
-
"optional": true
|
| 1941 |
-
},
|
| 1942 |
-
"yaml": {
|
| 1943 |
-
"optional": true
|
| 1944 |
-
}
|
| 1945 |
-
}
|
| 1946 |
-
},
|
| 1947 |
-
"node_modules/postcss-nested": {
|
| 1948 |
-
"version": "6.2.0",
|
| 1949 |
-
"resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",
|
| 1950 |
-
"integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",
|
| 1951 |
-
"funding": [
|
| 1952 |
-
{
|
| 1953 |
-
"type": "opencollective",
|
| 1954 |
-
"url": "https://opencollective.com/postcss/"
|
| 1955 |
-
},
|
| 1956 |
-
{
|
| 1957 |
-
"type": "github",
|
| 1958 |
-
"url": "https://github.com/sponsors/ai"
|
| 1959 |
-
}
|
| 1960 |
-
],
|
| 1961 |
-
"license": "MIT",
|
| 1962 |
-
"dependencies": {
|
| 1963 |
-
"postcss-selector-parser": "^6.1.1"
|
| 1964 |
-
},
|
| 1965 |
-
"engines": {
|
| 1966 |
-
"node": ">=12.0"
|
| 1967 |
-
},
|
| 1968 |
-
"peerDependencies": {
|
| 1969 |
-
"postcss": "^8.2.14"
|
| 1970 |
-
}
|
| 1971 |
-
},
|
| 1972 |
-
"node_modules/postcss-selector-parser": {
|
| 1973 |
-
"version": "6.1.4",
|
| 1974 |
-
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz",
|
| 1975 |
-
"integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==",
|
| 1976 |
-
"license": "MIT",
|
| 1977 |
-
"dependencies": {
|
| 1978 |
-
"cssesc": "^3.0.0",
|
| 1979 |
-
"util-deprecate": "^1.0.2"
|
| 1980 |
-
},
|
| 1981 |
-
"engines": {
|
| 1982 |
-
"node": ">=4"
|
| 1983 |
-
}
|
| 1984 |
-
},
|
| 1985 |
-
"node_modules/postcss-value-parser": {
|
| 1986 |
-
"version": "4.2.0",
|
| 1987 |
-
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
|
| 1988 |
-
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
|
| 1989 |
-
"license": "MIT"
|
| 1990 |
-
},
|
| 1991 |
-
"node_modules/postcss/node_modules/nanoid": {
|
| 1992 |
-
"version": "3.3.18",
|
| 1993 |
-
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
|
| 1994 |
-
"integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
|
| 1995 |
-
"funding": [
|
| 1996 |
-
{
|
| 1997 |
-
"type": "github",
|
| 1998 |
-
"url": "https://github.com/sponsors/ai"
|
| 1999 |
-
}
|
| 2000 |
-
],
|
| 2001 |
-
"license": "MIT",
|
| 2002 |
-
"bin": {
|
| 2003 |
-
"nanoid": "bin/nanoid.cjs"
|
| 2004 |
-
},
|
| 2005 |
-
"engines": {
|
| 2006 |
-
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
| 2007 |
-
}
|
| 2008 |
-
},
|
| 2009 |
-
"node_modules/protobufjs": {
|
| 2010 |
-
"version": "7.6.5",
|
| 2011 |
-
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.5.tgz",
|
| 2012 |
-
"integrity": "sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==",
|
| 2013 |
-
"hasInstallScript": true,
|
| 2014 |
-
"license": "BSD-3-Clause",
|
| 2015 |
-
"dependencies": {
|
| 2016 |
-
"@protobufjs/aspromise": "^1.1.2",
|
| 2017 |
-
"@protobufjs/base64": "^1.1.2",
|
| 2018 |
-
"@protobufjs/codegen": "^2.0.5",
|
| 2019 |
-
"@protobufjs/eventemitter": "^1.1.1",
|
| 2020 |
-
"@protobufjs/fetch": "^1.1.1",
|
| 2021 |
-
"@protobufjs/float": "^1.0.2",
|
| 2022 |
-
"@protobufjs/path": "^1.1.2",
|
| 2023 |
-
"@protobufjs/pool": "^1.1.0",
|
| 2024 |
-
"@protobufjs/utf8": "^1.1.1",
|
| 2025 |
-
"@types/node": ">=13.7.0",
|
| 2026 |
-
"long": "^5.3.2"
|
| 2027 |
-
},
|
| 2028 |
-
"engines": {
|
| 2029 |
-
"node": ">=12.0.0"
|
| 2030 |
-
}
|
| 2031 |
-
},
|
| 2032 |
-
"node_modules/queue-microtask": {
|
| 2033 |
-
"version": "1.2.3",
|
| 2034 |
-
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
|
| 2035 |
-
"integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
|
| 2036 |
-
"funding": [
|
| 2037 |
-
{
|
| 2038 |
-
"type": "github",
|
| 2039 |
-
"url": "https://github.com/sponsors/feross"
|
| 2040 |
-
},
|
| 2041 |
-
{
|
| 2042 |
-
"type": "patreon",
|
| 2043 |
-
"url": "https://www.patreon.com/feross"
|
| 2044 |
-
},
|
| 2045 |
-
{
|
| 2046 |
-
"type": "consulting",
|
| 2047 |
-
"url": "https://feross.org/support"
|
| 2048 |
-
}
|
| 2049 |
-
],
|
| 2050 |
-
"license": "MIT"
|
| 2051 |
-
},
|
| 2052 |
-
"node_modules/react": {
|
| 2053 |
-
"version": "18.3.1",
|
| 2054 |
-
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
| 2055 |
-
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
|
| 2056 |
-
"license": "MIT",
|
| 2057 |
-
"dependencies": {
|
| 2058 |
-
"loose-envify": "^1.1.0"
|
| 2059 |
-
},
|
| 2060 |
-
"engines": {
|
| 2061 |
-
"node": ">=0.10.0"
|
| 2062 |
-
}
|
| 2063 |
-
},
|
| 2064 |
-
"node_modules/react-dom": {
|
| 2065 |
-
"version": "18.3.1",
|
| 2066 |
-
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
|
| 2067 |
-
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
|
| 2068 |
-
"license": "MIT",
|
| 2069 |
-
"dependencies": {
|
| 2070 |
-
"loose-envify": "^1.1.0",
|
| 2071 |
-
"scheduler": "^0.23.2"
|
| 2072 |
-
},
|
| 2073 |
-
"peerDependencies": {
|
| 2074 |
-
"react": "^18.3.1"
|
| 2075 |
-
}
|
| 2076 |
-
},
|
| 2077 |
-
"node_modules/read-cache": {
|
| 2078 |
-
"version": "1.0.2",
|
| 2079 |
-
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.2.tgz",
|
| 2080 |
-
"integrity": "sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==",
|
| 2081 |
-
"license": "MIT"
|
| 2082 |
-
},
|
| 2083 |
-
"node_modules/readdirp": {
|
| 2084 |
-
"version": "3.6.0",
|
| 2085 |
-
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
|
| 2086 |
-
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
|
| 2087 |
-
"license": "MIT",
|
| 2088 |
-
"dependencies": {
|
| 2089 |
-
"picomatch": "^2.2.1"
|
| 2090 |
-
},
|
| 2091 |
-
"engines": {
|
| 2092 |
-
"node": ">=8.10.0"
|
| 2093 |
-
}
|
| 2094 |
-
},
|
| 2095 |
-
"node_modules/resolve": {
|
| 2096 |
-
"version": "1.22.12",
|
| 2097 |
-
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz",
|
| 2098 |
-
"integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==",
|
| 2099 |
-
"license": "MIT",
|
| 2100 |
-
"dependencies": {
|
| 2101 |
-
"es-errors": "^1.3.0",
|
| 2102 |
-
"is-core-module": "^2.16.1",
|
| 2103 |
-
"path-parse": "^1.0.7",
|
| 2104 |
-
"supports-preserve-symlinks-flag": "^1.0.0"
|
| 2105 |
-
},
|
| 2106 |
-
"bin": {
|
| 2107 |
-
"resolve": "bin/resolve"
|
| 2108 |
-
},
|
| 2109 |
-
"engines": {
|
| 2110 |
-
"node": ">= 0.4"
|
| 2111 |
-
},
|
| 2112 |
-
"funding": {
|
| 2113 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 2114 |
-
}
|
| 2115 |
-
},
|
| 2116 |
-
"node_modules/reusify": {
|
| 2117 |
-
"version": "1.1.0",
|
| 2118 |
-
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
|
| 2119 |
-
"integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
|
| 2120 |
-
"license": "MIT",
|
| 2121 |
-
"engines": {
|
| 2122 |
-
"iojs": ">=1.0.0",
|
| 2123 |
-
"node": ">=0.10.0"
|
| 2124 |
-
}
|
| 2125 |
-
},
|
| 2126 |
-
"node_modules/run-parallel": {
|
| 2127 |
-
"version": "1.2.0",
|
| 2128 |
-
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
|
| 2129 |
-
"integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
|
| 2130 |
-
"funding": [
|
| 2131 |
-
{
|
| 2132 |
-
"type": "github",
|
| 2133 |
-
"url": "https://github.com/sponsors/feross"
|
| 2134 |
-
},
|
| 2135 |
-
{
|
| 2136 |
-
"type": "patreon",
|
| 2137 |
-
"url": "https://www.patreon.com/feross"
|
| 2138 |
-
},
|
| 2139 |
-
{
|
| 2140 |
-
"type": "consulting",
|
| 2141 |
-
"url": "https://feross.org/support"
|
| 2142 |
-
}
|
| 2143 |
-
],
|
| 2144 |
-
"license": "MIT",
|
| 2145 |
-
"dependencies": {
|
| 2146 |
-
"queue-microtask": "^1.2.2"
|
| 2147 |
-
}
|
| 2148 |
-
},
|
| 2149 |
-
"node_modules/scheduler": {
|
| 2150 |
-
"version": "0.23.2",
|
| 2151 |
-
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
|
| 2152 |
-
"integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
|
| 2153 |
-
"license": "MIT",
|
| 2154 |
-
"dependencies": {
|
| 2155 |
-
"loose-envify": "^1.1.0"
|
| 2156 |
-
}
|
| 2157 |
-
},
|
| 2158 |
-
"node_modules/source-map-js": {
|
| 2159 |
-
"version": "1.2.1",
|
| 2160 |
-
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
| 2161 |
-
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
| 2162 |
-
"license": "BSD-3-Clause",
|
| 2163 |
-
"engines": {
|
| 2164 |
-
"node": ">=0.10.0"
|
| 2165 |
-
}
|
| 2166 |
-
},
|
| 2167 |
-
"node_modules/streamsearch": {
|
| 2168 |
-
"version": "1.1.0",
|
| 2169 |
-
"resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
|
| 2170 |
-
"integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",
|
| 2171 |
-
"engines": {
|
| 2172 |
-
"node": ">=10.0.0"
|
| 2173 |
-
}
|
| 2174 |
-
},
|
| 2175 |
-
"node_modules/styled-jsx": {
|
| 2176 |
-
"version": "5.1.1",
|
| 2177 |
-
"resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz",
|
| 2178 |
-
"integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==",
|
| 2179 |
-
"license": "MIT",
|
| 2180 |
-
"dependencies": {
|
| 2181 |
-
"client-only": "0.0.1"
|
| 2182 |
-
},
|
| 2183 |
-
"engines": {
|
| 2184 |
-
"node": ">= 12.0.0"
|
| 2185 |
-
},
|
| 2186 |
-
"peerDependencies": {
|
| 2187 |
-
"react": ">= 16.8.0 || 17.x.x || ^18.0.0-0"
|
| 2188 |
-
},
|
| 2189 |
-
"peerDependenciesMeta": {
|
| 2190 |
-
"@babel/core": {
|
| 2191 |
-
"optional": true
|
| 2192 |
-
},
|
| 2193 |
-
"babel-plugin-macros": {
|
| 2194 |
-
"optional": true
|
| 2195 |
-
}
|
| 2196 |
-
}
|
| 2197 |
-
},
|
| 2198 |
-
"node_modules/sucrase": {
|
| 2199 |
-
"version": "3.35.1",
|
| 2200 |
-
"resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",
|
| 2201 |
-
"integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",
|
| 2202 |
-
"license": "MIT",
|
| 2203 |
-
"dependencies": {
|
| 2204 |
-
"@jridgewell/gen-mapping": "^0.3.2",
|
| 2205 |
-
"commander": "^4.0.0",
|
| 2206 |
-
"lines-and-columns": "^1.1.6",
|
| 2207 |
-
"mz": "^2.7.0",
|
| 2208 |
-
"pirates": "^4.0.1",
|
| 2209 |
-
"tinyglobby": "^0.2.11",
|
| 2210 |
-
"ts-interface-checker": "^0.1.9"
|
| 2211 |
-
},
|
| 2212 |
-
"bin": {
|
| 2213 |
-
"sucrase": "bin/sucrase",
|
| 2214 |
-
"sucrase-node": "bin/sucrase-node"
|
| 2215 |
-
},
|
| 2216 |
-
"engines": {
|
| 2217 |
-
"node": ">=16 || 14 >=14.17"
|
| 2218 |
-
}
|
| 2219 |
-
},
|
| 2220 |
-
"node_modules/supports-preserve-symlinks-flag": {
|
| 2221 |
-
"version": "1.0.0",
|
| 2222 |
-
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
| 2223 |
-
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
|
| 2224 |
-
"license": "MIT",
|
| 2225 |
-
"engines": {
|
| 2226 |
-
"node": ">= 0.4"
|
| 2227 |
-
},
|
| 2228 |
-
"funding": {
|
| 2229 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 2230 |
-
}
|
| 2231 |
-
},
|
| 2232 |
-
"node_modules/tailwind-merge": {
|
| 2233 |
-
"version": "3.6.0",
|
| 2234 |
-
"resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.6.0.tgz",
|
| 2235 |
-
"integrity": "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==",
|
| 2236 |
-
"license": "MIT",
|
| 2237 |
-
"funding": {
|
| 2238 |
-
"type": "github",
|
| 2239 |
-
"url": "https://github.com/sponsors/dcastil"
|
| 2240 |
-
}
|
| 2241 |
-
},
|
| 2242 |
-
"node_modules/tailwindcss": {
|
| 2243 |
-
"version": "3.4.19",
|
| 2244 |
-
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",
|
| 2245 |
-
"integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",
|
| 2246 |
-
"license": "MIT",
|
| 2247 |
-
"dependencies": {
|
| 2248 |
-
"@alloc/quick-lru": "^5.2.0",
|
| 2249 |
-
"arg": "^5.0.2",
|
| 2250 |
-
"chokidar": "^3.6.0",
|
| 2251 |
-
"didyoumean": "^1.2.2",
|
| 2252 |
-
"dlv": "^1.1.3",
|
| 2253 |
-
"fast-glob": "^3.3.2",
|
| 2254 |
-
"glob-parent": "^6.0.2",
|
| 2255 |
-
"is-glob": "^4.0.3",
|
| 2256 |
-
"jiti": "^1.21.7",
|
| 2257 |
-
"lilconfig": "^3.1.3",
|
| 2258 |
-
"micromatch": "^4.0.8",
|
| 2259 |
-
"normalize-path": "^3.0.0",
|
| 2260 |
-
"object-hash": "^3.0.0",
|
| 2261 |
-
"picocolors": "^1.1.1",
|
| 2262 |
-
"postcss": "^8.4.47",
|
| 2263 |
-
"postcss-import": "^15.1.0",
|
| 2264 |
-
"postcss-js": "^4.0.1",
|
| 2265 |
-
"postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",
|
| 2266 |
-
"postcss-nested": "^6.2.0",
|
| 2267 |
-
"postcss-selector-parser": "^6.1.2",
|
| 2268 |
-
"resolve": "^1.22.8",
|
| 2269 |
-
"sucrase": "^3.35.0"
|
| 2270 |
-
},
|
| 2271 |
-
"bin": {
|
| 2272 |
-
"tailwind": "lib/cli.js",
|
| 2273 |
-
"tailwindcss": "lib/cli.js"
|
| 2274 |
-
},
|
| 2275 |
-
"engines": {
|
| 2276 |
-
"node": ">=14.0.0"
|
| 2277 |
-
}
|
| 2278 |
-
},
|
| 2279 |
-
"node_modules/tailwindcss-animate": {
|
| 2280 |
-
"version": "1.0.7",
|
| 2281 |
-
"resolved": "https://registry.npmjs.org/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz",
|
| 2282 |
-
"integrity": "sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==",
|
| 2283 |
-
"license": "MIT",
|
| 2284 |
-
"peerDependencies": {
|
| 2285 |
-
"tailwindcss": ">=3.0.0 || insiders"
|
| 2286 |
-
}
|
| 2287 |
-
},
|
| 2288 |
-
"node_modules/thenify": {
|
| 2289 |
-
"version": "3.3.1",
|
| 2290 |
-
"resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
|
| 2291 |
-
"integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
|
| 2292 |
-
"license": "MIT",
|
| 2293 |
-
"dependencies": {
|
| 2294 |
-
"any-promise": "^1.0.0"
|
| 2295 |
-
}
|
| 2296 |
-
},
|
| 2297 |
-
"node_modules/thenify-all": {
|
| 2298 |
-
"version": "1.6.0",
|
| 2299 |
-
"resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
|
| 2300 |
-
"integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
|
| 2301 |
-
"license": "MIT",
|
| 2302 |
-
"dependencies": {
|
| 2303 |
-
"thenify": ">= 3.1.0 < 4"
|
| 2304 |
-
},
|
| 2305 |
-
"engines": {
|
| 2306 |
-
"node": ">=0.8"
|
| 2307 |
-
}
|
| 2308 |
-
},
|
| 2309 |
-
"node_modules/three": {
|
| 2310 |
-
"version": "0.180.0",
|
| 2311 |
-
"resolved": "https://registry.npmjs.org/three/-/three-0.180.0.tgz",
|
| 2312 |
-
"integrity": "sha512-o+qycAMZrh+TsE01GqWUxUIKR1AL0S8pq7zDkYOQw8GqfX8b8VoCKYUoHbhiX5j+7hr8XsuHDVU6+gkQJQKg9w==",
|
| 2313 |
-
"license": "MIT"
|
| 2314 |
-
},
|
| 2315 |
-
"node_modules/tinyglobby": {
|
| 2316 |
-
"version": "0.2.17",
|
| 2317 |
-
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
|
| 2318 |
-
"integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
|
| 2319 |
-
"license": "MIT",
|
| 2320 |
-
"dependencies": {
|
| 2321 |
-
"fdir": "^6.5.0",
|
| 2322 |
-
"picomatch": "^4.0.4"
|
| 2323 |
-
},
|
| 2324 |
-
"engines": {
|
| 2325 |
-
"node": ">=12.0.0"
|
| 2326 |
-
},
|
| 2327 |
-
"funding": {
|
| 2328 |
-
"url": "https://github.com/sponsors/SuperchupuDev"
|
| 2329 |
-
}
|
| 2330 |
-
},
|
| 2331 |
-
"node_modules/tinyglobby/node_modules/fdir": {
|
| 2332 |
-
"version": "6.5.0",
|
| 2333 |
-
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
| 2334 |
-
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
|
| 2335 |
-
"license": "MIT",
|
| 2336 |
-
"engines": {
|
| 2337 |
-
"node": ">=12.0.0"
|
| 2338 |
-
},
|
| 2339 |
-
"peerDependencies": {
|
| 2340 |
-
"picomatch": "^3 || ^4"
|
| 2341 |
-
},
|
| 2342 |
-
"peerDependenciesMeta": {
|
| 2343 |
-
"picomatch": {
|
| 2344 |
-
"optional": true
|
| 2345 |
-
}
|
| 2346 |
-
}
|
| 2347 |
-
},
|
| 2348 |
-
"node_modules/tinyglobby/node_modules/picomatch": {
|
| 2349 |
-
"version": "4.0.5",
|
| 2350 |
-
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",
|
| 2351 |
-
"integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
|
| 2352 |
-
"license": "MIT",
|
| 2353 |
-
"engines": {
|
| 2354 |
-
"node": ">=12"
|
| 2355 |
-
},
|
| 2356 |
-
"funding": {
|
| 2357 |
-
"url": "https://github.com/sponsors/jonschlinkert"
|
| 2358 |
-
}
|
| 2359 |
-
},
|
| 2360 |
-
"node_modules/to-regex-range": {
|
| 2361 |
-
"version": "5.0.1",
|
| 2362 |
-
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
| 2363 |
-
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
| 2364 |
-
"license": "MIT",
|
| 2365 |
-
"dependencies": {
|
| 2366 |
-
"is-number": "^7.0.0"
|
| 2367 |
-
},
|
| 2368 |
-
"engines": {
|
| 2369 |
-
"node": ">=8.0"
|
| 2370 |
-
}
|
| 2371 |
-
},
|
| 2372 |
-
"node_modules/ts-interface-checker": {
|
| 2373 |
-
"version": "0.1.13",
|
| 2374 |
-
"resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
|
| 2375 |
-
"integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",
|
| 2376 |
-
"license": "Apache-2.0"
|
| 2377 |
-
},
|
| 2378 |
-
"node_modules/tslib": {
|
| 2379 |
-
"version": "2.8.1",
|
| 2380 |
-
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 2381 |
-
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 2382 |
-
"license": "0BSD"
|
| 2383 |
-
},
|
| 2384 |
-
"node_modules/typescript": {
|
| 2385 |
-
"version": "5.9.3",
|
| 2386 |
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
| 2387 |
-
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
| 2388 |
-
"dev": true,
|
| 2389 |
-
"license": "Apache-2.0",
|
| 2390 |
-
"bin": {
|
| 2391 |
-
"tsc": "bin/tsc",
|
| 2392 |
-
"tsserver": "bin/tsserver"
|
| 2393 |
-
},
|
| 2394 |
-
"engines": {
|
| 2395 |
-
"node": ">=14.17"
|
| 2396 |
-
}
|
| 2397 |
-
},
|
| 2398 |
-
"node_modules/undici-types": {
|
| 2399 |
-
"version": "6.21.0",
|
| 2400 |
-
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
|
| 2401 |
-
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
|
| 2402 |
-
"license": "MIT"
|
| 2403 |
-
},
|
| 2404 |
-
"node_modules/update-browserslist-db": {
|
| 2405 |
-
"version": "1.3.1",
|
| 2406 |
-
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.1.tgz",
|
| 2407 |
-
"integrity": "sha512-ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==",
|
| 2408 |
-
"dev": true,
|
| 2409 |
-
"funding": [
|
| 2410 |
-
{
|
| 2411 |
-
"type": "opencollective",
|
| 2412 |
-
"url": "https://opencollective.com/browserslist"
|
| 2413 |
-
},
|
| 2414 |
-
{
|
| 2415 |
-
"type": "tidelift",
|
| 2416 |
-
"url": "https://tidelift.com/funding/github/npm/browserslist"
|
| 2417 |
-
},
|
| 2418 |
-
{
|
| 2419 |
-
"type": "github",
|
| 2420 |
-
"url": "https://github.com/sponsors/ai"
|
| 2421 |
-
}
|
| 2422 |
-
],
|
| 2423 |
-
"license": "MIT",
|
| 2424 |
-
"dependencies": {
|
| 2425 |
-
"escalade": "^3.2.0",
|
| 2426 |
-
"picocolors": "^1.1.1"
|
| 2427 |
-
},
|
| 2428 |
-
"bin": {
|
| 2429 |
-
"update-browserslist-db": "cli.js"
|
| 2430 |
-
},
|
| 2431 |
-
"peerDependencies": {
|
| 2432 |
-
"browserslist": ">= 4.21.0"
|
| 2433 |
-
}
|
| 2434 |
-
},
|
| 2435 |
-
"node_modules/util-deprecate": {
|
| 2436 |
-
"version": "1.0.2",
|
| 2437 |
-
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
| 2438 |
-
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
|
| 2439 |
-
"license": "MIT"
|
| 2440 |
-
},
|
| 2441 |
-
"node_modules/zod": {
|
| 2442 |
-
"version": "3.25.76",
|
| 2443 |
-
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
|
| 2444 |
-
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
|
| 2445 |
-
"license": "MIT",
|
| 2446 |
-
"funding": {
|
| 2447 |
-
"url": "https://github.com/sponsors/colinhacks"
|
| 2448 |
-
}
|
| 2449 |
-
},
|
| 2450 |
-
"node_modules/zustand": {
|
| 2451 |
-
"version": "5.0.15",
|
| 2452 |
-
"resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.15.tgz",
|
| 2453 |
-
"integrity": "sha512-MpSEjRiBkA9crSYeOUH32rJC7SVqAbm0Fqcqge/bUi2PPoLcBWKOsG+C8mevmpr8TwXHBVkChbbJiyvkE+i/3A==",
|
| 2454 |
-
"license": "MIT",
|
| 2455 |
-
"engines": {
|
| 2456 |
-
"node": ">=12.20.0"
|
| 2457 |
-
},
|
| 2458 |
-
"peerDependencies": {
|
| 2459 |
-
"@types/react": ">=18.0.0",
|
| 2460 |
-
"immer": ">=9.0.6",
|
| 2461 |
-
"react": ">=18.0.0",
|
| 2462 |
-
"use-sync-external-store": ">=1.2.0"
|
| 2463 |
-
},
|
| 2464 |
-
"peerDependenciesMeta": {
|
| 2465 |
-
"@types/react": {
|
| 2466 |
-
"optional": true
|
| 2467 |
-
},
|
| 2468 |
-
"immer": {
|
| 2469 |
-
"optional": true
|
| 2470 |
-
},
|
| 2471 |
-
"react": {
|
| 2472 |
-
"optional": true
|
| 2473 |
-
},
|
| 2474 |
-
"use-sync-external-store": {
|
| 2475 |
-
"optional": true
|
| 2476 |
-
}
|
| 2477 |
-
}
|
| 2478 |
-
}
|
| 2479 |
-
}
|
| 2480 |
-
}
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"name": "free-web-gen-studio",
|
| 3 |
-
"version": "1.0.0",
|
| 4 |
-
"description": "Kostenlose PWA für KI-basierte Bild- und Videogenerierung im Browser",
|
| 5 |
-
"main": "index.js",
|
| 6 |
-
"scripts": {
|
| 7 |
-
"dev": "next dev",
|
| 8 |
-
"build": "next build",
|
| 9 |
-
"start": "next start",
|
| 10 |
-
"lint": "next lint",
|
| 11 |
-
"type-check": "tsc --noEmit"
|
| 12 |
-
},
|
| 13 |
-
"keywords": [
|
| 14 |
-
"pwa",
|
| 15 |
-
"ai",
|
| 16 |
-
"image-generation",
|
| 17 |
-
"video-generation",
|
| 18 |
-
"stable-diffusion",
|
| 19 |
-
"browser-ml"
|
| 20 |
-
],
|
| 21 |
-
"author": "",
|
| 22 |
-
"license": "MIT",
|
| 23 |
-
"dependencies": {
|
| 24 |
-
"@huggingface/inference": "^4.13.24",
|
| 25 |
-
"@imgly/background-removal": "^1.7.0",
|
| 26 |
-
"@radix-ui/react-avatar": "^1.1.10",
|
| 27 |
-
"@radix-ui/react-slot": "^1.2.3",
|
| 28 |
-
"@radix-ui/react-tooltip": "^1.2.16",
|
| 29 |
-
"@vercel/analytics": "^1.5.0",
|
| 30 |
-
"class-variance-authority": "^0.7.1",
|
| 31 |
-
"clsx": "^2.1.1",
|
| 32 |
-
"lucide-react": "^0.544.0",
|
| 33 |
-
"motion": "^12.23.22",
|
| 34 |
-
"nanoid": "^5.1.6",
|
| 35 |
-
"next": "^14.0.0",
|
| 36 |
-
"onnxruntime-web": "1.21.0",
|
| 37 |
-
"react": "^18.2.0",
|
| 38 |
-
"react-dom": "^18.2.0",
|
| 39 |
-
"tailwind-merge": "^3.6.0",
|
| 40 |
-
"tailwindcss-animate": "^1.0.7",
|
| 41 |
-
"three": "^0.180.0",
|
| 42 |
-
"zustand": "^5.0.8"
|
| 43 |
-
},
|
| 44 |
-
"devDependencies": {
|
| 45 |
-
"@types/node": "^20.10.0",
|
| 46 |
-
"@types/react": "^18.2.0",
|
| 47 |
-
"@types/react-dom": "^18.2.0",
|
| 48 |
-
"autoprefixer": "^10.4.17",
|
| 49 |
-
"postcss": "^8.4.33",
|
| 50 |
-
"tailwindcss": "^3.4.1",
|
| 51 |
-
"typescript": "^5.3.0"
|
| 52 |
-
}
|
| 53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pages/_app.tsx
DELETED
|
@@ -1,64 +0,0 @@
|
|
| 1 |
-
import type { AppProps } from "next/app";
|
| 2 |
-
import Head from "next/head";
|
| 3 |
-
import { useEffect } from "react";
|
| 4 |
-
import { Outfit, Space_Grotesk } from "next/font/google";
|
| 5 |
-
import "../styles/globals.css";
|
| 6 |
-
|
| 7 |
-
const display = Outfit({
|
| 8 |
-
subsets: ["latin"],
|
| 9 |
-
variable: "--font-display",
|
| 10 |
-
display: "swap",
|
| 11 |
-
});
|
| 12 |
-
|
| 13 |
-
const body = Space_Grotesk({
|
| 14 |
-
subsets: ["latin"],
|
| 15 |
-
variable: "--font-body",
|
| 16 |
-
display: "swap",
|
| 17 |
-
});
|
| 18 |
-
|
| 19 |
-
export default function App({ Component, pageProps }: AppProps) {
|
| 20 |
-
useEffect(() => {
|
| 21 |
-
// PWA Service Worker (nur Produktion, nur wenn unterstützt)
|
| 22 |
-
if (process.env.NODE_ENV === "production" && "serviceWorker" in navigator) {
|
| 23 |
-
navigator.serviceWorker.register("/sw.js").catch(() => {
|
| 24 |
-
/* SW optional — Fehler still ignorieren */
|
| 25 |
-
});
|
| 26 |
-
}
|
| 27 |
-
}, []);
|
| 28 |
-
|
| 29 |
-
return (
|
| 30 |
-
<main className={`${display.variable} ${body.variable} font-body`}>
|
| 31 |
-
<Head>
|
| 32 |
-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
| 33 |
-
<link rel="apple-touch-icon" href="/favicon.svg" />
|
| 34 |
-
<link rel="manifest" href="/manifest.json" />
|
| 35 |
-
<meta name="theme-color" content="#020617" />
|
| 36 |
-
<meta name="description" content="KI-Design-Studio für Print-on-Demand — generieren, bearbeiten, drucken." />
|
| 37 |
-
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
| 38 |
-
</Head>
|
| 39 |
-
<Component {...pageProps} />
|
| 40 |
-
{/* Buy Me a Coffee: plain static link (no third-party JS) */}
|
| 41 |
-
<a
|
| 42 |
-
href="https://www.buymeacoffee.com/2btainment"
|
| 43 |
-
target="_blank"
|
| 44 |
-
rel="noopener noreferrer"
|
| 45 |
-
className="bmc-link"
|
| 46 |
-
style={{
|
| 47 |
-
position: "fixed",
|
| 48 |
-
right: 16,
|
| 49 |
-
bottom: 16,
|
| 50 |
-
zIndex: 9999,
|
| 51 |
-
background: "#FFDD00",
|
| 52 |
-
color: "#000",
|
| 53 |
-
padding: "8px 14px",
|
| 54 |
-
borderRadius: 999,
|
| 55 |
-
font: "600 14px/1.2 system-ui, -apple-system, sans-serif",
|
| 56 |
-
textDecoration: "none",
|
| 57 |
-
boxShadow: "0 2px 8px rgba(0,0,0,.25)",
|
| 58 |
-
}}
|
| 59 |
-
>
|
| 60 |
-
Buy me a coffee
|
| 61 |
-
</a>
|
| 62 |
-
</main>
|
| 63 |
-
);
|
| 64 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pages/api/generate.ts
DELETED
|
@@ -1,515 +0,0 @@
|
|
| 1 |
-
import type { NextApiRequest, NextApiResponse } from "next";
|
| 2 |
-
import { randomUUID } from "crypto";
|
| 3 |
-
import { clientIp, rateLimited } from "@/lib/rateLimit";
|
| 4 |
-
import { CF_ACCOUNT_ID_RE } from "@/lib/cloudflareConfig";
|
| 5 |
-
|
| 6 |
-
const GEMINI_KEY = process.env.GEMINI_API_KEY || "";
|
| 7 |
-
const GEMINI_MODEL = process.env.GEMINI_IMAGE_MODEL || "gemini-2.5-flash-image";
|
| 8 |
-
const GEMINI_API = "https://generativelanguage.googleapis.com/v1beta/models";
|
| 9 |
-
const HORDE_API = "https://stablehorde.net/api/v2";
|
| 10 |
-
const HORDE_KEY = process.env.AIHORDE_API_KEY || "";
|
| 11 |
-
const CF_ACCOUNT = process.env.CF_ACCOUNT_ID || "";
|
| 12 |
-
const CF_TOKEN = process.env.CF_API_TOKEN || "";
|
| 13 |
-
|
| 14 |
-
export const config = {
|
| 15 |
-
api: { bodyParser: { sizeLimit: "15mb" }, responseLimit: "50mb" },
|
| 16 |
-
};
|
| 17 |
-
|
| 18 |
-
interface GenRequest {
|
| 19 |
-
prompt: string;
|
| 20 |
-
image?: string; // base64 ohne data:-Prefix
|
| 21 |
-
mimeType?: string;
|
| 22 |
-
models?: string[];
|
| 23 |
-
mode?: "auto" | "manual" | "triple";
|
| 24 |
-
transparent?: boolean;
|
| 25 |
-
upscale?: boolean;
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
export interface GenImage {
|
| 29 |
-
image: string;
|
| 30 |
-
contentType: string;
|
| 31 |
-
provider: string;
|
| 32 |
-
model: string;
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
export type JobStatus = "queued" | "working" | "done" | "error";
|
| 36 |
-
|
| 37 |
-
export interface Job {
|
| 38 |
-
id: string;
|
| 39 |
-
status: JobStatus;
|
| 40 |
-
mode: string;
|
| 41 |
-
prompt: string;
|
| 42 |
-
images: GenImage[];
|
| 43 |
-
error?: string;
|
| 44 |
-
queuePosition?: number;
|
| 45 |
-
waiting?: number;
|
| 46 |
-
createdAt: number;
|
| 47 |
-
modelCount: number;
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
|
| 51 |
-
|
| 52 |
-
/* ============ In-Memory Job-Store (TTL 60 Min) ============ */
|
| 53 |
-
const jobs = new Map<string, Job>();
|
| 54 |
-
|
| 55 |
-
function createJob(mode: string, prompt: string, modelCount: number): Job {
|
| 56 |
-
const job: Job = {
|
| 57 |
-
id: randomUUID(),
|
| 58 |
-
status: "queued",
|
| 59 |
-
mode,
|
| 60 |
-
prompt,
|
| 61 |
-
images: [],
|
| 62 |
-
createdAt: Date.now(),
|
| 63 |
-
modelCount,
|
| 64 |
-
};
|
| 65 |
-
jobs.set(job.id, job);
|
| 66 |
-
return job;
|
| 67 |
-
}
|
| 68 |
-
|
| 69 |
-
function pruneJobs() {
|
| 70 |
-
const cutoff = Date.now() - 60 * 60 * 1000;
|
| 71 |
-
for (const [id, j] of jobs) {
|
| 72 |
-
if (j.createdAt < cutoff) jobs.delete(id);
|
| 73 |
-
}
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
/* ============ Horde-Modell-Registry ============ */
|
| 77 |
-
export const HORDE_MODELS: Record<string, { name: string; horde: string; style: string }> = {
|
| 78 |
-
sdxl: { name: "Stable Diffusion XL", horde: "SDXL 1.0", style: "Allrounder · hochwertig" },
|
| 79 |
-
juggernaut: { name: "Juggernaut XL", horde: "Juggernaut XL", style: "Photorealismus" },
|
| 80 |
-
albedo: { name: "AlbedoBase XL", horde: "AlbedoBase XL (SDXL)", style: "Anime & Illustration" },
|
| 81 |
-
dreamshaper: { name: "DreamShaper XL", horde: "DreamShaper XL", style: "Künstlerisch · Träume" },
|
| 82 |
-
flux: { name: "Flux.1-Schnell", horde: "Flux.1-Schnell fp8 (Compact)", style: "Schnell · modern" },
|
| 83 |
-
};
|
| 84 |
-
|
| 85 |
-
/** Intelligenter Router: wählt Modell anhand des Prompts */
|
| 86 |
-
export function routeModel(prompt: string): keyof typeof HORDE_MODELS {
|
| 87 |
-
const p = prompt.toLowerCase();
|
| 88 |
-
if (/(anime|manga|chibi|illustration|cartoon|zeichnung|manga style|kawaii)/.test(p)) return "albedo";
|
| 89 |
-
if (/(photo|realistic|realismus|portrait|person|woman|man|face|studio|product|foto)/.test(p)) return "juggernaut";
|
| 90 |
-
if (/(logo|icon|design|minimal|graphic|emblem)/.test(p)) return "sdxl";
|
| 91 |
-
return "sdxl";
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
/* ============ Provider: Gemini ============ */
|
| 95 |
-
async function viaGemini(req: GenRequest): Promise<GenImage | null> {
|
| 96 |
-
if (!GEMINI_KEY || req.image) return null;
|
| 97 |
-
try {
|
| 98 |
-
const url = `${GEMINI_API}/${GEMINI_MODEL}:generateContent?key=${encodeURIComponent(GEMINI_KEY)}`;
|
| 99 |
-
const ctrl = new AbortController();
|
| 100 |
-
const t = setTimeout(() => ctrl.abort(), 90000);
|
| 101 |
-
const resp = await fetch(url, {
|
| 102 |
-
method: "POST",
|
| 103 |
-
headers: { "Content-Type": "application/json" },
|
| 104 |
-
body: JSON.stringify({
|
| 105 |
-
contents: [{ parts: [{ text: req.prompt }] }],
|
| 106 |
-
generationConfig: { responseModalities: ["IMAGE"] },
|
| 107 |
-
}),
|
| 108 |
-
signal: ctrl.signal,
|
| 109 |
-
});
|
| 110 |
-
clearTimeout(t);
|
| 111 |
-
if (!resp.ok) return null;
|
| 112 |
-
const data = await resp.json();
|
| 113 |
-
const parts = data?.candidates?.[0]?.content?.parts || data?.candidates?.[0]?.parts || [];
|
| 114 |
-
const img = parts.find((x: { inlineData?: { data?: string } }) => x?.inlineData?.data);
|
| 115 |
-
if (!img?.inlineData?.data) return null;
|
| 116 |
-
return {
|
| 117 |
-
image: img.inlineData.data,
|
| 118 |
-
contentType: img.inlineData.mimeType || "image/png",
|
| 119 |
-
provider: "Gemini 2.5 Flash Image",
|
| 120 |
-
model: "Gemini 2.5 Flash Image",
|
| 121 |
-
};
|
| 122 |
-
} catch {
|
| 123 |
-
return null;
|
| 124 |
-
}
|
| 125 |
-
}
|
| 126 |
-
|
| 127 |
-
/* ============ Provider: Cloudflare Workers AI (schnell, Free-Tier 10k/Tag) ============ */
|
| 128 |
-
async function viaCloudflare(req: GenRequest, modelId: string): Promise<GenImage | null> {
|
| 129 |
-
if (!CF_ACCOUNT || !CF_TOKEN) return null;
|
| 130 |
-
// Falscher Wert in CF_ACCOUNT_ID (z. B. ein cfat_-Token statt der 32-hex Account-ID)
|
| 131 |
-
// → Request würde garantiert fehlschlagen → Provider sauber überspringen.
|
| 132 |
-
if (!CF_ACCOUNT_ID_RE.test(CF_ACCOUNT.trim())) return null;
|
| 133 |
-
const cfModel =
|
| 134 |
-
modelId === "flux" ? "@cf/black-forest-labs/flux-1-schnell" : "@cf/stabilityai/stable-diffusion-xl-base-1.0";
|
| 135 |
-
try {
|
| 136 |
-
const ctrl = new AbortController();
|
| 137 |
-
const t = setTimeout(() => ctrl.abort(), 60000);
|
| 138 |
-
const resp = await fetch(
|
| 139 |
-
`https://api.cloudflare.com/client/v4/accounts/${CF_ACCOUNT}/ai/run/${cfModel}`,
|
| 140 |
-
{
|
| 141 |
-
method: "POST",
|
| 142 |
-
headers: {
|
| 143 |
-
Authorization: `Bearer ${CF_TOKEN}`,
|
| 144 |
-
"Content-Type": "application/json",
|
| 145 |
-
},
|
| 146 |
-
body: JSON.stringify({
|
| 147 |
-
prompt: req.prompt,
|
| 148 |
-
...(req.image ? { image: [req.image] } : {}),
|
| 149 |
-
}),
|
| 150 |
-
signal: ctrl.signal,
|
| 151 |
-
}
|
| 152 |
-
);
|
| 153 |
-
clearTimeout(t);
|
| 154 |
-
if (!resp.ok) return null;
|
| 155 |
-
const data = await resp.json();
|
| 156 |
-
const b64 = data?.result?.image;
|
| 157 |
-
if (!b64) return null;
|
| 158 |
-
return {
|
| 159 |
-
image: b64,
|
| 160 |
-
contentType: "image/png",
|
| 161 |
-
provider: "Cloudflare Workers AI",
|
| 162 |
-
model: cfModel,
|
| 163 |
-
};
|
| 164 |
-
} catch {
|
| 165 |
-
return null;
|
| 166 |
-
}
|
| 167 |
-
}
|
| 168 |
-
|
| 169 |
-
/* ============ Provider: AI Horde ============ */
|
| 170 |
-
const FALLBACK_CHAIN: Record<string, string[]> = {
|
| 171 |
-
sdxl: ["sdxl", "albedo", "juggernaut"],
|
| 172 |
-
juggernaut: ["juggernaut", "sdxl", "albedo"],
|
| 173 |
-
albedo: ["albedo", "sdxl", "juggernaut"],
|
| 174 |
-
dreamshaper: ["dreamshaper", "sdxl", "albedo"],
|
| 175 |
-
flux: ["flux", "sdxl", "albedo"],
|
| 176 |
-
};
|
| 177 |
-
|
| 178 |
-
/**
|
| 179 |
-
* Bestes verfügbares Modell für img2img-Bearbeitung wählen:
|
| 180 |
-
* fragt die Horde-Modellliste in Echtzeit ab und nimmt das Modell
|
| 181 |
-
* mit den meisten freien Workern und der kleinsten Queue.
|
| 182 |
-
*/
|
| 183 |
-
const EDIT_PREFERRED = ["AlbedoBase XL (SDXL)", "Juggernaut XL", "SDXL 1.0", "Deliberate", "Realistic Vision", "stable_diffusion"];
|
| 184 |
-
let editModelCache: { at: number; model: string } | null = null;
|
| 185 |
-
|
| 186 |
-
async function pickEditModel(): Promise<string> {
|
| 187 |
-
// Cache 5 Min
|
| 188 |
-
if (editModelCache && Date.now() - editModelCache.at < 5 * 60 * 1000) {
|
| 189 |
-
return editModelCache.model;
|
| 190 |
-
}
|
| 191 |
-
try {
|
| 192 |
-
const resp = await fetch(`${HORDE_API}/status/models`, { signal: AbortSignal.timeout(15000) });
|
| 193 |
-
if (resp.ok) {
|
| 194 |
-
const models: { name: string; count: number; queued: number }[] = await resp.json();
|
| 195 |
-
let best: { name: string; score: number } | null = null;
|
| 196 |
-
for (const m of models) {
|
| 197 |
-
if (m.count <= 0) continue;
|
| 198 |
-
const preferredIdx = EDIT_PREFERRED.indexOf(m.name);
|
| 199 |
-
if (preferredIdx === -1) continue;
|
| 200 |
-
// Score: je mehr Worker & weniger Queue, desto besser; Präferenz-Reihenfolge als Bonus
|
| 201 |
-
const score = m.count * 1000 - m.queued - preferredIdx * 100;
|
| 202 |
-
if (!best || score > best.score) best = { name: m.name, score };
|
| 203 |
-
}
|
| 204 |
-
if (best) {
|
| 205 |
-
editModelCache = { at: Date.now(), model: best.name };
|
| 206 |
-
return best.name;
|
| 207 |
-
}
|
| 208 |
-
}
|
| 209 |
-
} catch {
|
| 210 |
-
// Ignorieren, Fallback unten
|
| 211 |
-
}
|
| 212 |
-
return "AlbedoBase XL (SDXL)";
|
| 213 |
-
}
|
| 214 |
-
|
| 215 |
-
async function viaHordeOne(
|
| 216 |
-
req: GenRequest,
|
| 217 |
-
modelId: string,
|
| 218 |
-
onProgress?: (pos: number, waiting: number) => void,
|
| 219 |
-
allowFallback = true,
|
| 220 |
-
useUpscalePP = true
|
| 221 |
-
): Promise<GenImage | null> {
|
| 222 |
-
if (!HORDE_KEY) return null;
|
| 223 |
-
// Bei Bild-Bearbeitung (img2img): bestes freies Modell live wählen, Kette als Fallback dahinter
|
| 224 |
-
const chosen = req.image ? await pickEditModel() : null;
|
| 225 |
-
const chain = (allowFallback ? FALLBACK_CHAIN[modelId] ?? [modelId] : [modelId])
|
| 226 |
-
.map((m) => HORDE_MODELS[m]?.horde)
|
| 227 |
-
.filter((x): x is string => !!x);
|
| 228 |
-
const hordeModels = chosen ? [chosen, ...chain.filter((c) => c !== chosen)] : chain;
|
| 229 |
-
const label = hordeModels.join(" / ");
|
| 230 |
-
try {
|
| 231 |
-
const params: Record<string, unknown> = {
|
| 232 |
-
width: 1024,
|
| 233 |
-
height: 1024,
|
| 234 |
-
steps: 22,
|
| 235 |
-
cfg_scale: 5,
|
| 236 |
-
sampler_name: "k_euler_a",
|
| 237 |
-
negative_prompt: "blurry, low quality, watermark, text, signature, deformed",
|
| 238 |
-
};
|
| 239 |
-
if (req.image) {
|
| 240 |
-
params.source_image = req.image;
|
| 241 |
-
params.denoising_strength = 0.75;
|
| 242 |
-
}
|
| 243 |
-
// Transparenter Hintergrund: API-Flag (soweit vom Worker unterstützt) + Prompt-Hinweis
|
| 244 |
-
if (req.transparent) {
|
| 245 |
-
params.transparent = true;
|
| 246 |
-
}
|
| 247 |
-
// Upscale-Modus: img2img mit Qualitätsverbesserung + RealESRGAN x2 (→ 2048px).
|
| 248 |
-
// WICHTIG: Horde lehnt aktuell Requests >1024x1024 ab (403 bei hoher Nachfrage) →
|
| 249 |
-
// Basis bleibt 1024, das Upscaling macht das Post-Processing.
|
| 250 |
-
if (req.upscale) {
|
| 251 |
-
params.steps = 30;
|
| 252 |
-
params.denoising_strength = 0.35;
|
| 253 |
-
params.negative_prompt = "blurry, low quality, watermark, text, signature, deformed, jpeg artifacts, noise";
|
| 254 |
-
if (useUpscalePP) {
|
| 255 |
-
params.post_processing = ["RealESRGAN_x2plus"];
|
| 256 |
-
}
|
| 257 |
-
}
|
| 258 |
-
let finalPrompt = req.prompt;
|
| 259 |
-
if (req.transparent) {
|
| 260 |
-
finalPrompt = `${finalPrompt}, transparent background, isolated on transparent background, cutout style, no background`;
|
| 261 |
-
}
|
| 262 |
-
if (req.upscale) {
|
| 263 |
-
finalPrompt = `${finalPrompt}, sharp focus, high detail, crisp edges, professional print quality, upscaled`;
|
| 264 |
-
}
|
| 265 |
-
const jobResp = await fetch(`${HORDE_API}/generate/async`, {
|
| 266 |
-
method: "POST",
|
| 267 |
-
headers: { "Content-Type": "application/json", apikey: HORDE_KEY },
|
| 268 |
-
body: JSON.stringify({
|
| 269 |
-
prompt: finalPrompt,
|
| 270 |
-
params,
|
| 271 |
-
models: hordeModels,
|
| 272 |
-
nsfw: false,
|
| 273 |
-
}),
|
| 274 |
-
});
|
| 275 |
-
if (jobResp.status === 403 || jobResp.status === 400) {
|
| 276 |
-
// KudosUpfront / Modell abgelehnt → Fallback-Kette kürzen (nie endlos)
|
| 277 |
-
const j = await jobResp.json().catch(() => null);
|
| 278 |
-
const msg = JSON.stringify(j);
|
| 279 |
-
if (msg.includes("apikey")) return null; // Key-Problem
|
| 280 |
-
if (hordeModels.length > 1) {
|
| 281 |
-
return await viaHordeOne(
|
| 282 |
-
req,
|
| 283 |
-
(hordeModels.slice(1)[0] ? Object.keys(HORDE_MODELS).find((k) => HORDE_MODELS[k].horde === hordeModels[1]) : modelId) || modelId,
|
| 284 |
-
onProgress,
|
| 285 |
-
true,
|
| 286 |
-
useUpscalePP
|
| 287 |
-
);
|
| 288 |
-
}
|
| 289 |
-
return null;
|
| 290 |
-
}
|
| 291 |
-
if (!jobResp.ok) return null;
|
| 292 |
-
const job = await jobResp.json();
|
| 293 |
-
if (!job?.id) return null;
|
| 294 |
-
|
| 295 |
-
// Pollen (max 15 Min — Job läuft im Hintergrund, keine Eile)
|
| 296 |
-
const t0 = Date.now();
|
| 297 |
-
let lastPos = -1;
|
| 298 |
-
let lastWaiting = -1;
|
| 299 |
-
let possibleSince = Date.now(); // Zeitpunkt, seitdem is_possible === false ist
|
| 300 |
-
let wasImpossible = false;
|
| 301 |
-
let done = false;
|
| 302 |
-
while (!done && Date.now() - t0 < 900000) {
|
| 303 |
-
await sleep(8000);
|
| 304 |
-
const check = await (await fetch(`${HORDE_API}/generate/check/${job.id}`)).json();
|
| 305 |
-
done = !!check.done;
|
| 306 |
-
if (check.faulted) {
|
| 307 |
-
// Upscale mit Post-Processing gescheitert (Worker ohne RealESRGAN?) → 1 Retry ohne PP
|
| 308 |
-
if (req.upscale && useUpscalePP) {
|
| 309 |
-
return await viaHordeOne(req, modelId, onProgress, true, false);
|
| 310 |
-
}
|
| 311 |
-
return null;
|
| 312 |
-
}
|
| 313 |
-
// Kein Worker verfügbar — kann temporär sein (Worker kommen & gehen).
|
| 314 |
-
// Erst nach 2 Minuten durchgehend impossible aufgeben.
|
| 315 |
-
if (check.is_possible === false) {
|
| 316 |
-
if (!wasImpossible) {
|
| 317 |
-
wasImpossible = true;
|
| 318 |
-
possibleSince = Date.now();
|
| 319 |
-
} else if (Date.now() - possibleSince > 120000) {
|
| 320 |
-
fetch(`${HORDE_API}/generate/status/${job.id}`, { method: "DELETE", headers: { apikey: HORDE_KEY } }).catch(() => {});
|
| 321 |
-
throw new HordeQueueTimeout(
|
| 322 |
-
`AI Horde: Für „${label}“ ist gerade kein Worker frei (Job wartet seit 2 Min ohne Worker). Bitte später erneut versuchen.`
|
| 323 |
-
);
|
| 324 |
-
}
|
| 325 |
-
} else {
|
| 326 |
-
wasImpossible = false;
|
| 327 |
-
}
|
| 328 |
-
lastPos = typeof check.queue_position === "number" ? check.queue_position : lastPos;
|
| 329 |
-
lastWaiting = typeof check.waiting === "number" ? check.waiting : lastWaiting;
|
| 330 |
-
if (onProgress && (lastPos >= 0 || lastWaiting >= 0)) onProgress(lastPos, lastWaiting);
|
| 331 |
-
}
|
| 332 |
-
if (!done) {
|
| 333 |
-
// Abbruch: Job löschen, klare Meldung mit Queue-Info
|
| 334 |
-
fetch(`${HORDE_API}/generate/status/${job.id}`, { method: "DELETE", headers: { apikey: HORDE_KEY } }).catch(() => {});
|
| 335 |
-
throw new HordeQueueTimeout(
|
| 336 |
-
`AI Horde: Modell „${label}“ ist gerade stark ausgelastet (Queue-Position ${lastPos >= 0 ? lastPos : "?"}, ${lastWaiting} wartend). Bitte später erneut versuchen oder Modus wechseln.`
|
| 337 |
-
);
|
| 338 |
-
}
|
| 339 |
-
|
| 340 |
-
const st = await (await fetch(`${HORDE_API}/generate/status/${job.id}`)).json();
|
| 341 |
-
const gen = st?.generations?.[0];
|
| 342 |
-
const imgUrl = gen?.img;
|
| 343 |
-
if (!imgUrl) return null;
|
| 344 |
-
const imgResp = await fetch(imgUrl);
|
| 345 |
-
if (!imgResp.ok) return null;
|
| 346 |
-
const buf = Buffer.from(await imgResp.arrayBuffer());
|
| 347 |
-
return {
|
| 348 |
-
image: buf.toString("base64"),
|
| 349 |
-
contentType: imgResp.headers.get("content-type") || "image/png",
|
| 350 |
-
provider: "AI Horde",
|
| 351 |
-
model: typeof gen.model === "string" && gen.model ? gen.model : label,
|
| 352 |
-
};
|
| 353 |
-
} catch (e) {
|
| 354 |
-
if (e instanceof HordeQueueTimeout) throw e;
|
| 355 |
-
return null;
|
| 356 |
-
}
|
| 357 |
-
}
|
| 358 |
-
|
| 359 |
-
class HordeQueueTimeout extends Error {}
|
| 360 |
-
|
| 361 |
-
/* ============ Provider: Pollinations ============ */
|
| 362 |
-
async function viaPollinations(req: GenRequest): Promise<GenImage | null> {
|
| 363 |
-
if (req.image) return null;
|
| 364 |
-
try {
|
| 365 |
-
const url = `https://image.pollinations.ai/prompt/${encodeURIComponent(req.prompt)}?width=1024&height=1024&nologo=true&model=flux&seed=${Math.floor(Math.random() * 100000)}`;
|
| 366 |
-
const ctrl = new AbortController();
|
| 367 |
-
const t = setTimeout(() => ctrl.abort(), 90000);
|
| 368 |
-
const resp = await fetch(url, { signal: ctrl.signal });
|
| 369 |
-
clearTimeout(t);
|
| 370 |
-
if (!resp.ok) return null;
|
| 371 |
-
const ct = resp.headers.get("content-type") || "";
|
| 372 |
-
if (ct.includes("application/json")) return null;
|
| 373 |
-
return {
|
| 374 |
-
image: Buffer.from(await resp.arrayBuffer()).toString("base64"),
|
| 375 |
-
contentType: ct || "image/png",
|
| 376 |
-
provider: "Pollinations (Flux)",
|
| 377 |
-
model: "Flux",
|
| 378 |
-
};
|
| 379 |
-
} catch {
|
| 380 |
-
return null;
|
| 381 |
-
}
|
| 382 |
-
}
|
| 383 |
-
|
| 384 |
-
/** Ein einzelnes Bild über die beste verfügbare Kette erzeugen */
|
| 385 |
-
async function generateOne(
|
| 386 |
-
req: GenRequest,
|
| 387 |
-
modelId: string,
|
| 388 |
-
onProgress?: (pos: number, waiting: number) => void
|
| 389 |
-
): Promise<GenImage | null> {
|
| 390 |
-
// 1) Gemini (nur Text→Bild)
|
| 391 |
-
if (!req.image) {
|
| 392 |
-
const g = await viaGemini(req);
|
| 393 |
-
if (g) return g;
|
| 394 |
-
}
|
| 395 |
-
// 2) Cloudflare (schnell)
|
| 396 |
-
if (!req.image) {
|
| 397 |
-
const cf = await viaCloudflare(req, modelId);
|
| 398 |
-
if (cf) return cf;
|
| 399 |
-
}
|
| 400 |
-
// 3) AI Horde (mit Modell + Fallback-Kette über models-Array)
|
| 401 |
-
try {
|
| 402 |
-
const h = await viaHordeOne(req, modelId, onProgress, true);
|
| 403 |
-
if (h) return h;
|
| 404 |
-
} catch (e) {
|
| 405 |
-
if (e instanceof HordeQueueTimeout) throw e; // klare Meldung statt stillem Fallback
|
| 406 |
-
}
|
| 407 |
-
// 4) Pollinations
|
| 408 |
-
const p = await viaPollinations(req);
|
| 409 |
-
if (p) return p;
|
| 410 |
-
return null;
|
| 411 |
-
}
|
| 412 |
-
|
| 413 |
-
/* ============ Job-Execution (Hintergrund) ============ */
|
| 414 |
-
async function executeJob(job: Job, body: GenRequest, targets: string[]) {
|
| 415 |
-
job.status = "working";
|
| 416 |
-
try {
|
| 417 |
-
// allSettled: ein fehlschlagendes Modell darf die anderen Ergebnisse nicht verwerfen
|
| 418 |
-
const settled = await Promise.allSettled(
|
| 419 |
-
targets.map((m) =>
|
| 420 |
-
generateOne({ ...body, models: undefined }, m, (pos, waiting) => {
|
| 421 |
-
job.queuePosition = pos;
|
| 422 |
-
job.waiting = waiting;
|
| 423 |
-
})
|
| 424 |
-
)
|
| 425 |
-
);
|
| 426 |
-
const images: GenImage[] = [];
|
| 427 |
-
const errors: string[] = [];
|
| 428 |
-
for (const r of settled) {
|
| 429 |
-
if (r.status === "fulfilled" && r.value) images.push(r.value);
|
| 430 |
-
else if (r.status === "rejected") errors.push(r.reason instanceof Error ? r.reason.message : String(r.reason));
|
| 431 |
-
}
|
| 432 |
-
if (images.length === 0) {
|
| 433 |
-
job.status = "error";
|
| 434 |
-
job.error =
|
| 435 |
-
errors[0] ||
|
| 436 |
-
"Kein Bildgenerierungs-Provider hat geantwortet. Hinweise: " +
|
| 437 |
-
"1) AI-Horde-Key prüfen (aihorde.net). 2) Bei Gemini fehlt evtl. Billing. " +
|
| 438 |
-
"3) Für schnelle & zuverlässige Bilder: kostenloser Cloudflare-Account → " +
|
| 439 |
-
"Workers AI → CF_ACCOUNT_ID + CF_API_TOKEN in .env.local (10.000 Bilder/Tag gratis).";
|
| 440 |
-
return;
|
| 441 |
-
}
|
| 442 |
-
job.images = images;
|
| 443 |
-
job.status = "done";
|
| 444 |
-
if (errors.length > 0 && errors.length < targets.length) {
|
| 445 |
-
job.error = `Einige Modelle waren nicht verfügbar (${errors.length}/${targets.length} fehlgeschlagen). Angezeigt werden die erfolgreichen Designs.`;
|
| 446 |
-
}
|
| 447 |
-
} catch (e) {
|
| 448 |
-
job.status = "error";
|
| 449 |
-
job.error = e instanceof Error ? e.message : String(e);
|
| 450 |
-
}
|
| 451 |
-
}
|
| 452 |
-
|
| 453 |
-
/* ============ API-Handler ============ */
|
| 454 |
-
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
| 455 |
-
pruneJobs();
|
| 456 |
-
|
| 457 |
-
// GET /api/generate?jobId=xxx → Status abfragen
|
| 458 |
-
if (req.method === "GET") {
|
| 459 |
-
const jobId = typeof req.query.jobId === "string" ? req.query.jobId : "";
|
| 460 |
-
const job = jobs.get(jobId);
|
| 461 |
-
if (!job) return res.status(404).json({ error: "Job nicht gefunden oder abgelaufen." });
|
| 462 |
-
return res.json({
|
| 463 |
-
status: job.status,
|
| 464 |
-
mode: job.mode,
|
| 465 |
-
images: job.images,
|
| 466 |
-
error: job.error,
|
| 467 |
-
queuePosition: job.queuePosition,
|
| 468 |
-
waiting: job.waiting,
|
| 469 |
-
});
|
| 470 |
-
}
|
| 471 |
-
|
| 472 |
-
if (req.method !== "POST") {
|
| 473 |
-
return res.status(405).json({ error: "Method not allowed" });
|
| 474 |
-
}
|
| 475 |
-
|
| 476 |
-
const body = req.body as GenRequest;
|
| 477 |
-
if (!body.prompt || body.prompt.trim().length === 0) {
|
| 478 |
-
return res.status(400).json({ error: "Bitte einen Prompt eingeben." });
|
| 479 |
-
}
|
| 480 |
-
|
| 481 |
-
// Rate-Limit pro IP (Schutz der Free-Tier-Keys im öffentlichen Space)
|
| 482 |
-
if (rateLimited(clientIp(req))) {
|
| 483 |
-
return res.status(429).json({
|
| 484 |
-
error: "Stundenlimit erreicht. Bitte später erneut versuchen — die Provider sind kostenlos, aber nicht unendlich. 💧",
|
| 485 |
-
});
|
| 486 |
-
}
|
| 487 |
-
|
| 488 |
-
const mode = body.mode || "auto";
|
| 489 |
-
|
| 490 |
-
// Modelle bestimmen
|
| 491 |
-
let targets: string[];
|
| 492 |
-
if (body.upscale) {
|
| 493 |
-
// Upscale: ein Job, Modell wählt pickEditModel live (img2img)
|
| 494 |
-
targets = ["albedo"];
|
| 495 |
-
} else if (mode === "manual" && body.models?.length) {
|
| 496 |
-
targets = [body.models[0]];
|
| 497 |
-
} else if (mode === "triple") {
|
| 498 |
-
targets = ["sdxl", "juggernaut", "albedo"];
|
| 499 |
-
} else {
|
| 500 |
-
targets = [routeModel(body.prompt)];
|
| 501 |
-
}
|
| 502 |
-
|
| 503 |
-
// Job anlegen und im Hintergrund starten — sofort antworten
|
| 504 |
-
const job = createJob(mode, body.prompt, targets.length);
|
| 505 |
-
void executeJob(job, body, targets).catch(() => {
|
| 506 |
-
job.status = "error";
|
| 507 |
-
job.error = "Interner Fehler bei der Job-Ausführung.";
|
| 508 |
-
});
|
| 509 |
-
|
| 510 |
-
return res.status(202).json({
|
| 511 |
-
jobId: job.id,
|
| 512 |
-
status: job.status,
|
| 513 |
-
mode: job.mode,
|
| 514 |
-
});
|
| 515 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pages/api/health.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 1 |
-
import type { NextApiRequest, NextApiResponse } from "next";
|
| 2 |
-
import { cloudflareStatus } from "@/lib/cloudflareConfig";
|
| 3 |
-
|
| 4 |
-
/**
|
| 5 |
-
* GET /api/health — Diagnose-Endpoint.
|
| 6 |
-
* Zeigt nur, WELCHE Provider konfiguriert sind (Boolean/Hinweise, keine Key-Werte).
|
| 7 |
-
* Nützlich zum Debuggen im HF-Space: /api/health im Browser öffnen.
|
| 8 |
-
*/
|
| 9 |
-
export default function handler(_req: NextApiRequest, res: NextApiResponse) {
|
| 10 |
-
const gemini = !!process.env.GEMINI_API_KEY;
|
| 11 |
-
const horde = !!process.env.AIHORDE_API_KEY;
|
| 12 |
-
const cf = cloudflareStatus();
|
| 13 |
-
|
| 14 |
-
res.status(200).json({
|
| 15 |
-
status: "ok",
|
| 16 |
-
providers: {
|
| 17 |
-
gemini, // Text→Bild + Prompt-Optimierung
|
| 18 |
-
cloudflare: cf.configured, // schnellster Bild-Provider (Free-Tier)
|
| 19 |
-
horde, // img2img: Bearbeiten, Upscale, Triple-Fallback
|
| 20 |
-
pollinations: true, // immer verfügbar, kein Key nötig
|
| 21 |
-
},
|
| 22 |
-
hints: [cf.issue].filter((x): x is string => !!x),
|
| 23 |
-
rateLimitPerHour: Number(process.env.RATE_LIMIT_PER_HOUR || 30),
|
| 24 |
-
timestamp: Date.now(),
|
| 25 |
-
});
|
| 26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pages/api/optimize.ts
DELETED
|
@@ -1,132 +0,0 @@
|
|
| 1 |
-
import type { NextApiRequest, NextApiResponse } from "next";
|
| 2 |
-
import { clientIp, rateLimited } from "@/lib/rateLimit";
|
| 3 |
-
|
| 4 |
-
const GEMINI_KEY = process.env.GEMINI_API_KEY || "";
|
| 5 |
-
const GEMINI_API = "https://generativelanguage.googleapis.com/v1beta/models";
|
| 6 |
-
|
| 7 |
-
export const config = {
|
| 8 |
-
api: { bodyParser: { sizeLimit: "1mb" } },
|
| 9 |
-
};
|
| 10 |
-
|
| 11 |
-
export interface OptimizeRequest {
|
| 12 |
-
prompt: string;
|
| 13 |
-
transparent?: boolean;
|
| 14 |
-
}
|
| 15 |
-
|
| 16 |
-
export interface OptimizeResponse {
|
| 17 |
-
optimized: string;
|
| 18 |
-
source: "gemini" | "local";
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
function buildSystemPrompt(transparent: boolean): string {
|
| 22 |
-
const bgHint = transparent
|
| 23 |
-
? "- Transparenter Hintergrund gewünscht → Prompt endet mit: 'isolated on transparent background'"
|
| 24 |
-
: "- Hintergrund: isoliert auf schwarzem Grund (kontrastreich)";
|
| 25 |
-
// Full prompt lives in Space Secret DRIP_SYSTEM_PROMPT (audit 2026-10-15).
|
| 26 |
-
const fromEnv = (process.env.DRIP_SYSTEM_PROMPT || "").trim();
|
| 27 |
-
if (fromEnv && !fromEnv.startsWith("# STUB")) {
|
| 28 |
-
return fromEnv.includes("{bg_hint}")
|
| 29 |
-
? fromEnv.replace("{bg_hint}", bgHint)
|
| 30 |
-
: `${fromEnv}\n${bgHint}`;
|
| 31 |
-
}
|
| 32 |
-
// Short safe fallback if secret missing
|
| 33 |
-
return `Du bist POD-Design-Direktor. Optimiere den Nutzerwunsch zu einem kurzen englischen Bildprompt (max 60 Wörter, eine Zeile, keine Erklärung). Druck-tauglich: bold contrast, clean edges, vibrant colors, no text/watermark. ${bgHint}`;
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
| 37 |
-
if (req.method !== "POST") {
|
| 38 |
-
return res.status(405).json({ error: "Method not allowed" });
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
const body = (req.body || {}) as OptimizeRequest;
|
| 42 |
-
const raw = (body.prompt || "").trim();
|
| 43 |
-
if (!raw) {
|
| 44 |
-
return res.status(400).json({ error: "Bitte einen Prompt eingeben." });
|
| 45 |
-
}
|
| 46 |
-
|
| 47 |
-
// Rate-Limit pro IP (Schutz der Free-Tier-Keys im öffentlichen Space)
|
| 48 |
-
if (rateLimited(clientIp(req))) {
|
| 49 |
-
return res.status(429).json({
|
| 50 |
-
error: "Stundenlimit erreicht. Bitte später erneut versuchen.",
|
| 51 |
-
});
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
// 1) Gemini-Text (schnell, kostenlos)
|
| 55 |
-
if (GEMINI_KEY) {
|
| 56 |
-
try {
|
| 57 |
-
const system = buildSystemPrompt(!!body.transparent);
|
| 58 |
-
const url = `${GEMINI_API}/gemini-2.5-flash:generateContent?key=${encodeURIComponent(GEMINI_KEY)}`;
|
| 59 |
-
const ctrl = new AbortController();
|
| 60 |
-
const t = setTimeout(() => ctrl.abort(), 20000);
|
| 61 |
-
const resp = await fetch(url, {
|
| 62 |
-
method: "POST",
|
| 63 |
-
headers: { "Content-Type": "application/json" },
|
| 64 |
-
body: JSON.stringify({
|
| 65 |
-
contents: [
|
| 66 |
-
{
|
| 67 |
-
role: "user",
|
| 68 |
-
parts: [
|
| 69 |
-
{ text: system },
|
| 70 |
-
{ text: `Nutzerwunsch: "${raw}"\n\nOptimiere diesen Prompt jetzt für den Druck.` },
|
| 71 |
-
],
|
| 72 |
-
},
|
| 73 |
-
],
|
| 74 |
-
generationConfig: {
|
| 75 |
-
temperature: 0.7,
|
| 76 |
-
maxOutputTokens: 2048,
|
| 77 |
-
thinkingConfig: { thinkingBudget: 0 },
|
| 78 |
-
},
|
| 79 |
-
}),
|
| 80 |
-
signal: ctrl.signal,
|
| 81 |
-
});
|
| 82 |
-
clearTimeout(t);
|
| 83 |
-
if (resp.ok) {
|
| 84 |
-
const data = await resp.json();
|
| 85 |
-
const text = data?.candidates?.[0]?.content?.parts?.[0]?.text;
|
| 86 |
-
// Nur verwenden, wenn vollständig genug — zu knappe Antworten sind abgeschnitten
|
| 87 |
-
if (text && text.trim().length >= 80) {
|
| 88 |
-
return res.json({ optimized: text.trim().replace(/\s+/g, " "), source: "gemini" });
|
| 89 |
-
}
|
| 90 |
-
}
|
| 91 |
-
} catch {
|
| 92 |
-
// Fallback unten
|
| 93 |
-
}
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
// 2) Lokale Regel-Engine (Fallback, immer verfügbar)
|
| 97 |
-
return res.json({ optimized: optimizeLocal(raw, !!body.transparent), source: "local" });
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
/** Regelbasierte Druck-Optimierung — kein LLM nötig */
|
| 101 |
-
export function optimizeLocal(prompt: string, transparent: boolean): string {
|
| 102 |
-
const p = prompt.trim().replace(/\s+/g, " ");
|
| 103 |
-
const low = p.toLowerCase();
|
| 104 |
-
|
| 105 |
-
// Ziel-Analyse → Stil-Bausteine
|
| 106 |
-
let style = "";
|
| 107 |
-
if (/(logo|emblem|icon|marke|monogram|zeichen|badge|crest)/.test(low)) {
|
| 108 |
-
style = "minimalist bold emblem, centered, isolated, strong silhouette";
|
| 109 |
-
} else if (/(anime|manga|chibi|illustration|cartoon|zeichnung|kawaii|manga)/.test(low)) {
|
| 110 |
-
style = "vibrant illustration style, clean bold lines, saturated colors";
|
| 111 |
-
} else if (/(photo|realistic|realismus|portrait|person|woman|man|face|studio|foto|photograph)/.test(low)) {
|
| 112 |
-
style = "photorealistic, high detail, dramatic lighting";
|
| 113 |
-
} else if (/(abstract|abstrakt|geometric|geometrisch|minimal|art)/.test(low)) {
|
| 114 |
-
style = "modern graphic art, bold shapes, strong composition";
|
| 115 |
-
} else {
|
| 116 |
-
style = "stylized graphic design";
|
| 117 |
-
}
|
| 118 |
-
|
| 119 |
-
// Druck-Suffix
|
| 120 |
-
const print = transparent
|
| 121 |
-
? "isolated on transparent background, cutout style"
|
| 122 |
-
: "isolated on solid black background, high contrast";
|
| 123 |
-
|
| 124 |
-
const parts = [p, style, `print-ready design, bold contrast, clean edges, vibrant colors, ${print}, no text, no watermark, no signature`];
|
| 125 |
-
|
| 126 |
-
// Kompression: max ~420 Zeichen
|
| 127 |
-
let out = parts.join(", ");
|
| 128 |
-
if (out.length > 420) {
|
| 129 |
-
out = `${p}, ${style}, print-ready, bold contrast, clean edges, ${print}, no text, no watermark`.slice(0, 420);
|
| 130 |
-
}
|
| 131 |
-
return out;
|
| 132 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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,
|
| 15 |
-
ChevronRight,
|
| 16 |
-
Wand2,
|
| 17 |
-
} from "lucide-react";
|
| 18 |
-
import {
|
| 19 |
-
GalleryImage,
|
| 20 |
-
galleryAdd,
|
| 21 |
-
galleryGetAll,
|
| 22 |
-
galleryRemove,
|
| 23 |
-
galleryUpdate,
|
| 24 |
-
fileToGalleryImage,
|
| 25 |
-
setStudioSelection,
|
| 26 |
-
toDataUrl,
|
| 27 |
-
} from "@/lib/galleryStore";
|
| 28 |
-
|
| 29 |
-
type Filter = "all" | "design" | "shop";
|
| 30 |
-
|
| 31 |
-
export default function GalleryPage() {
|
| 32 |
-
const [images, setImages] = useState<GalleryImage[]>([]);
|
| 33 |
-
const [loaded, setLoaded] = useState(false);
|
| 34 |
-
const [filter, setFilter] = useState<Filter>("all");
|
| 35 |
-
const [lightbox, setLightbox] = useState<number | null>(null); // Index in gefilterter Liste
|
| 36 |
-
const [uploading, setUploading] = useState(false);
|
| 37 |
-
const [dragOver, setDragOver] = useState(false);
|
| 38 |
-
|
| 39 |
-
const refresh = useCallback(async () => {
|
| 40 |
-
const all = await galleryGetAll();
|
| 41 |
-
setImages(all.sort((a, b) => b.addedAt - a.addedAt));
|
| 42 |
-
setLoaded(true);
|
| 43 |
-
}, []);
|
| 44 |
-
|
| 45 |
-
useEffect(() => {
|
| 46 |
-
void refresh();
|
| 47 |
-
}, [refresh]);
|
| 48 |
-
|
| 49 |
-
const filtered = images.filter((g) => filter === "all" || g.tag === filter);
|
| 50 |
-
|
| 51 |
-
const addFiles = useCallback(
|
| 52 |
-
async (files: FileList | File[], tag: "design" | "shop") => {
|
| 53 |
-
const list = Array.from(files).filter((f) => f.type.startsWith("image/"));
|
| 54 |
-
if (!list.length) return;
|
| 55 |
-
setUploading(true);
|
| 56 |
-
try {
|
| 57 |
-
const items = await Promise.all(list.map((f) => fileToGalleryImage(f, tag)));
|
| 58 |
-
await galleryAdd(items);
|
| 59 |
-
await refresh();
|
| 60 |
-
} catch (e) {
|
| 61 |
-
alert(e instanceof Error ? e.message : "Upload fehlgeschlagen.");
|
| 62 |
-
} finally {
|
| 63 |
-
setUploading(false);
|
| 64 |
-
}
|
| 65 |
-
},
|
| 66 |
-
[refresh]
|
| 67 |
-
);
|
| 68 |
-
|
| 69 |
-
const removeImage = useCallback(
|
| 70 |
-
async (id: string) => {
|
| 71 |
-
await galleryRemove([id]);
|
| 72 |
-
setLightbox(null);
|
| 73 |
-
await refresh();
|
| 74 |
-
},
|
| 75 |
-
[refresh]
|
| 76 |
-
);
|
| 77 |
-
|
| 78 |
-
const toggleTag = useCallback(
|
| 79 |
-
async (id: string, tag: "design" | "shop") => {
|
| 80 |
-
await galleryUpdate(id, { tag });
|
| 81 |
-
await refresh();
|
| 82 |
-
},
|
| 83 |
-
[refresh]
|
| 84 |
-
);
|
| 85 |
-
|
| 86 |
-
const download = useCallback(
|
| 87 |
-
(img: GalleryImage) => {
|
| 88 |
-
const a = document.createElement("a");
|
| 89 |
-
a.href = toDataUrl(img);
|
| 90 |
-
a.download = `${img.model.replace(/[^a-zA-Z0-9-_]/g, "_") || "design"}-${img.id.slice(0, 8)}.${img.contentType.includes("png") ? "png" : "jpg"}`;
|
| 91 |
-
a.click();
|
| 92 |
-
},
|
| 93 |
-
[]
|
| 94 |
-
);
|
| 95 |
-
|
| 96 |
-
const openInStudio = useCallback(
|
| 97 |
-
(img: GalleryImage) => {
|
| 98 |
-
setStudioSelection(img);
|
| 99 |
-
window.location.href = "/";
|
| 100 |
-
},
|
| 101 |
-
[]
|
| 102 |
-
);
|
| 103 |
-
|
| 104 |
-
const lightboxImage = lightbox != null ? filtered[lightbox] : null;
|
| 105 |
-
|
| 106 |
-
return (
|
| 107 |
-
<div className="relative flex min-h-screen flex-col overflow-hidden px-4 py-8 sm:px-8">
|
| 108 |
-
{/* Hintergrund-Orbs */}
|
| 109 |
-
<div className="pointer-events-none absolute -top-32 -left-32 h-[480px] w-[480px] animate-float rounded-full bg-sky-500/25 blur-[130px]" />
|
| 110 |
-
<div className="pointer-events-none absolute top-1/3 -right-40 h-[520px] w-[520px] animate-float rounded-full bg-purple-600/25 blur-[140px]" style={{ animationDelay: "-2.5s" }} />
|
| 111 |
-
<div className="pointer-events-none absolute -bottom-40 left-1/4 h-[460px] w-[460px] animate-float rounded-full bg-fuchsia-500/20 blur-[130px]" style={{ animationDelay: "-5s" }} />
|
| 112 |
-
|
| 113 |
-
{/* Header */}
|
| 114 |
-
<header className="glass glow-ring relative z-10 mb-6 flex flex-wrap items-center justify-between gap-4 rounded-[2rem] px-6 py-5">
|
| 115 |
-
<div className="flex items-center gap-4">
|
| 116 |
-
<button
|
| 117 |
-
onClick={() => (window.location.href = "/")}
|
| 118 |
-
className="flex items-center gap-2 rounded-2xl border border-white/10 bg-white/[0.05] px-4 py-2.5 text-sm font-semibold text-slate-300 transition-all hover:bg-white/10 hover:text-white"
|
| 119 |
-
>
|
| 120 |
-
<ArrowLeft className="h-4 w-4" />
|
| 121 |
-
Studio
|
| 122 |
-
</button>
|
| 123 |
-
<div>
|
| 124 |
-
<h1 className="font-display flex items-center gap-2 text-2xl font-extrabold tracking-tight">
|
| 125 |
-
<Images className="h-6 w-6 text-sky-300" />
|
| 126 |
-
<span className="text-gradient">GALERIE</span>
|
| 127 |
-
</h1>
|
| 128 |
-
<p className="text-xs text-slate-400">Designs & Shop-Fotos — dauerhaft im Browser gespeichert</p>
|
| 129 |
-
</div>
|
| 130 |
-
</div>
|
| 131 |
-
|
| 132 |
-
<div className="flex flex-wrap items-center gap-2">
|
| 133 |
-
{(
|
| 134 |
-
[
|
| 135 |
-
{ id: "all", label: "Alle", icon: <Images className="h-3.5 w-3.5" /> },
|
| 136 |
-
{ id: "design", label: "Designs", icon: <Sparkles className="h-3.5 w-3.5" /> },
|
| 137 |
-
{ id: "shop", label: "Shop-Fotos", icon: <Shirt className="h-3.5 w-3.5" /> },
|
| 138 |
-
] as { id: Filter; label: string; icon: React.ReactNode }[]
|
| 139 |
-
).map((f) => (
|
| 140 |
-
<button
|
| 141 |
-
key={f.id}
|
| 142 |
-
onClick={() => setFilter(f.id)}
|
| 143 |
-
className={`flex items-center gap-1.5 rounded-full px-4 py-2 text-xs font-bold transition-all ${
|
| 144 |
-
filter === f.id
|
| 145 |
-
? "bg-sky-400/20 text-sky-200 shadow-[0_0_15px_rgba(56,189,248,0.25)]"
|
| 146 |
-
: "bg-white/5 text-slate-400 hover:bg-white/10 hover:text-slate-200"
|
| 147 |
-
}`}
|
| 148 |
-
>
|
| 149 |
-
{f.icon}
|
| 150 |
-
{f.label}
|
| 151 |
-
<span className="rounded-full bg-white/10 px-1.5 py-0.5 text-[9px]">
|
| 152 |
-
{f.id === "all" ? images.length : images.filter((g) => g.tag === f.id).length}
|
| 153 |
-
</span>
|
| 154 |
-
</button>
|
| 155 |
-
))}
|
| 156 |
-
</div>
|
| 157 |
-
</header>
|
| 158 |
-
|
| 159 |
-
{/* Upload-Leiste */}
|
| 160 |
-
<div
|
| 161 |
-
onDragOver={(e) => {
|
| 162 |
-
e.preventDefault();
|
| 163 |
-
setDragOver(true);
|
| 164 |
-
}}
|
| 165 |
-
onDragLeave={() => setDragOver(false)}
|
| 166 |
-
onDrop={(e) => {
|
| 167 |
-
e.preventDefault();
|
| 168 |
-
setDragOver(false);
|
| 169 |
-
void addFiles(e.dataTransfer.files, "design");
|
| 170 |
-
}}
|
| 171 |
-
className={`relative z-10 mb-6 rounded-[1.8rem] border-2 border-dashed p-6 text-center transition-all duration-300 ${
|
| 172 |
-
dragOver
|
| 173 |
-
? "border-sky-400/70 bg-sky-400/10 shadow-[0_0_40px_rgba(56,189,248,0.3)]"
|
| 174 |
-
: "border-white/15 bg-white/[0.02]"
|
| 175 |
-
}`}
|
| 176 |
-
>
|
| 177 |
-
<p className="mb-3 text-sm text-slate-400">
|
| 178 |
-
{uploading ? (
|
| 179 |
-
<span className="flex items-center justify-center gap-2 font-semibold text-sky-300">
|
| 180 |
-
<Upload className="h-4 w-4 animate-bounce" /> Upload läuft …
|
| 181 |
-
</span>
|
| 182 |
-
) : (
|
| 183 |
-
<>📥 Bilder hierher ziehen (Designs <span className="text-sky-300">oder</span> Shop-Fotos)</>
|
| 184 |
-
)}
|
| 185 |
-
</p>
|
| 186 |
-
<div className="flex flex-wrap justify-center gap-2.5">
|
| 187 |
-
<label className="flex cursor-pointer items-center gap-2 rounded-2xl border border-sky-400/30 bg-sky-400/10 px-5 py-3 text-sm font-bold text-sky-200 transition-all hover:bg-sky-400/20 hover:shadow-[0_0_20px_rgba(56,189,248,0.2)]">
|
| 188 |
-
<Upload className="h-4 w-4" />
|
| 189 |
-
Design hochladen
|
| 190 |
-
<input
|
| 191 |
-
type="file"
|
| 192 |
-
accept="image/*"
|
| 193 |
-
multiple
|
| 194 |
-
className="hidden"
|
| 195 |
-
onChange={(e) => {
|
| 196 |
-
if (e.target.files?.length) void addFiles(e.target.files, "design");
|
| 197 |
-
e.target.value = "";
|
| 198 |
-
}}
|
| 199 |
-
/>
|
| 200 |
-
</label>
|
| 201 |
-
<label className="flex cursor-pointer items-center gap-2 rounded-2xl border border-purple-400/30 bg-purple-500/10 px-5 py-3 text-sm font-bold text-purple-200 transition-all hover:bg-purple-500/20 hover:shadow-[0_0_20px_rgba(168,85,247,0.2)]">
|
| 202 |
-
<Shirt className="h-4 w-4" />
|
| 203 |
-
Shop-Fotos hochladen
|
| 204 |
-
<input
|
| 205 |
-
type="file"
|
| 206 |
-
accept="image/*"
|
| 207 |
-
multiple
|
| 208 |
-
className="hidden"
|
| 209 |
-
onChange={(e) => {
|
| 210 |
-
if (e.target.files?.length) void addFiles(e.target.files, "shop");
|
| 211 |
-
e.target.value = "";
|
| 212 |
-
}}
|
| 213 |
-
/>
|
| 214 |
-
</label>
|
| 215 |
-
</div>
|
| 216 |
-
</div>
|
| 217 |
-
|
| 218 |
-
{/* Grid */}
|
| 219 |
-
<main className="relative z-10 flex-1 pb-10">
|
| 220 |
-
{!loaded ? (
|
| 221 |
-
<div className="flex justify-center py-20">
|
| 222 |
-
<Wand2 className="h-8 w-8 animate-spin text-sky-400" />
|
| 223 |
-
</div>
|
| 224 |
-
) : filtered.length === 0 ? (
|
| 225 |
-
<div className="mt-10 flex flex-col items-center gap-3 rounded-[2rem] border border-dashed border-white/10 bg-white/[0.02] px-6 py-16 text-center">
|
| 226 |
-
<div className="text-5xl opacity-40">🖼️</div>
|
| 227 |
-
<p className="max-w-sm text-sm text-slate-400">
|
| 228 |
-
{images.length === 0
|
| 229 |
-
? "Deine Galerie ist leer. Generiere Designs im Studio oder lade Bilder hoch."
|
| 230 |
-
: "Keine Bilder in dieser Kategorie."}
|
| 231 |
-
</p>
|
| 232 |
-
</div>
|
| 233 |
-
) : (
|
| 234 |
-
<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5">
|
| 235 |
-
{filtered.map((img, i) => (
|
| 236 |
-
<div
|
| 237 |
-
key={img.id}
|
| 238 |
-
className="group relative overflow-hidden rounded-[1.8rem] border border-white/10 bg-slate-950/60 transition-all duration-300 hover:-translate-y-1 hover:border-sky-400/50 hover:shadow-[0_15px_40px_-10px_rgba(56,189,248,0.35)]"
|
| 239 |
-
>
|
| 240 |
-
<button onClick={() => setLightbox(i)} className="block w-full cursor-zoom-in">
|
| 241 |
-
<img src={toDataUrl(img)} alt={img.model} className="aspect-square w-full object-cover" />
|
| 242 |
-
</button>
|
| 243 |
-
|
| 244 |
-
{/* Info-Leiste */}
|
| 245 |
-
<div className="flex items-center justify-between gap-2 px-3 py-2">
|
| 246 |
-
<span className="truncate text-[10px] font-semibold text-slate-300">{img.model}</span>
|
| 247 |
-
{img.tag === "shop" ? (
|
| 248 |
-
<span className="shrink-0 rounded-full bg-purple-400/20 px-2 py-0.5 text-[8px] font-bold text-purple-300">
|
| 249 |
-
Shop
|
| 250 |
-
</span>
|
| 251 |
-
) : (
|
| 252 |
-
<span className="shrink-0 rounded-full bg-sky-400/20 px-2 py-0.5 text-[8px] font-bold text-sky-300">
|
| 253 |
-
Design
|
| 254 |
-
</span>
|
| 255 |
-
)}
|
| 256 |
-
</div>
|
| 257 |
-
|
| 258 |
-
{/* Hover-Aktionen */}
|
| 259 |
-
<div className="absolute inset-x-0 bottom-11 flex translate-y-full items-center justify-center gap-2 bg-gradient-to-t from-slate-950/95 to-transparent px-3 pt-8 pb-2 transition-transform duration-300 group-hover:translate-y-0">
|
| 260 |
-
<button
|
| 261 |
-
onClick={() => openInStudio(img)}
|
| 262 |
-
title="Im Studio öffnen"
|
| 263 |
-
className="flex items-center gap-1.5 rounded-xl bg-gradient-to-r from-sky-500 to-blue-600 px-3 py-2 text-[11px] font-bold text-white transition-all hover:brightness-110 active:scale-95"
|
| 264 |
-
>
|
| 265 |
-
<Sparkles className="h-3.5 w-3.5" />
|
| 266 |
-
Öffnen
|
| 267 |
-
</button>
|
| 268 |
-
<button
|
| 269 |
-
onClick={() => download(img)}
|
| 270 |
-
title="Herunterladen"
|
| 271 |
-
className="rounded-xl bg-white/10 p-2.5 text-slate-200 transition-all hover:bg-white/20"
|
| 272 |
-
>
|
| 273 |
-
<Download className="h-4 w-4" />
|
| 274 |
-
</button>
|
| 275 |
-
<button
|
| 276 |
-
onClick={() => void toggleTag(img.id, img.tag === "shop" ? "design" : "shop")}
|
| 277 |
-
title={img.tag === "shop" ? "Als Design markieren" : "Als Shop-Foto markieren"}
|
| 278 |
-
className="rounded-xl bg-white/10 p-2.5 text-slate-200 transition-all hover:bg-white/20"
|
| 279 |
-
>
|
| 280 |
-
<Shirt className="h-4 w-4" />
|
| 281 |
-
</button>
|
| 282 |
-
<button
|
| 283 |
-
onClick={() => void removeImage(img.id)}
|
| 284 |
-
title="Löschen"
|
| 285 |
-
className="rounded-xl bg-rose-500/20 p-2.5 text-rose-300 transition-all hover:bg-rose-500/40"
|
| 286 |
-
>
|
| 287 |
-
<Trash2 className="h-4 w-4" />
|
| 288 |
-
</button>
|
| 289 |
-
</div>
|
| 290 |
-
</div>
|
| 291 |
-
))}
|
| 292 |
-
</div>
|
| 293 |
-
)}
|
| 294 |
-
</main>
|
| 295 |
-
|
| 296 |
-
{/* Lightbox */}
|
| 297 |
-
{lightboxImage && (
|
| 298 |
-
<div
|
| 299 |
-
className="fixed inset-0 z-50 flex items-center justify-center bg-slate-950/90 p-4 backdrop-blur-md"
|
| 300 |
-
onClick={() => setLightbox(null)}
|
| 301 |
-
>
|
| 302 |
-
<div className="flex max-h-full max-w-4xl flex-col items-center" onClick={(e) => e.stopPropagation()}>
|
| 303 |
-
<div className="mb-3 flex w-full items-center justify-between gap-3">
|
| 304 |
-
<span className="truncate text-sm font-semibold text-slate-200">
|
| 305 |
-
{lightboxImage.model}
|
| 306 |
-
<span className="ml-2 text-xs font-normal text-slate-500">
|
| 307 |
-
{lightboxImage.provider} · {lightboxImage.contentType.includes("png") ? "PNG" : "JPEG"}
|
| 308 |
-
</span>
|
| 309 |
-
</span>
|
| 310 |
-
<div className="flex items-center gap-2">
|
| 311 |
-
<button
|
| 312 |
-
onClick={() => download(lightboxImage)}
|
| 313 |
-
className="flex items-center gap-1.5 rounded-xl bg-sky-500/20 px-3 py-2 text-xs font-bold text-sky-200 hover:bg-sky-500/30"
|
| 314 |
-
>
|
| 315 |
-
<Download className="h-3.5 w-3.5" /> Download
|
| 316 |
-
</button>
|
| 317 |
-
<button
|
| 318 |
-
onClick={() => void removeImage(lightboxImage.id)}
|
| 319 |
-
className="rounded-xl bg-rose-500/20 p-2 text-rose-300 hover:bg-rose-500/30"
|
| 320 |
-
title="Löschen"
|
| 321 |
-
>
|
| 322 |
-
<Trash2 className="h-4 w-4" />
|
| 323 |
-
</button>
|
| 324 |
-
<button
|
| 325 |
-
onClick={() => setLightbox(null)}
|
| 326 |
-
className="rounded-xl bg-white/10 p-2 text-slate-300 hover:bg-white/20"
|
| 327 |
-
title="Schließen"
|
| 328 |
-
>
|
| 329 |
-
<X className="h-4 w-4" />
|
| 330 |
-
</button>
|
| 331 |
-
</div>
|
| 332 |
-
</div>
|
| 333 |
-
<img
|
| 334 |
-
src={toDataUrl(lightboxImage)}
|
| 335 |
-
alt={lightboxImage.model}
|
| 336 |
-
className="max-h-[75vh] max-w-full rounded-2xl border border-white/10 object-contain shadow-2xl"
|
| 337 |
-
/>
|
| 338 |
-
<div className="mt-3 flex items-center gap-4">
|
| 339 |
-
<button
|
| 340 |
-
onClick={() => setLightbox((i) => (i != null && i > 0 ? i - 1 : filtered.length - 1))}
|
| 341 |
-
className="rounded-full bg-white/10 p-3 text-slate-200 transition-all hover:bg-white/20"
|
| 342 |
-
title="Vorheriges"
|
| 343 |
-
>
|
| 344 |
-
<ChevronLeft className="h-5 w-5" />
|
| 345 |
-
</button>
|
| 346 |
-
<button
|
| 347 |
-
onClick={() => openInStudio(lightboxImage)}
|
| 348 |
-
className="flex items-center gap-2 rounded-2xl bg-gradient-to-r from-sky-500 to-purple-600 px-6 py-3 text-sm font-bold text-white shadow-[0_10px_30px_-8px_rgba(99,102,241,0.7)] transition-all hover:brightness-110 active:scale-95"
|
| 349 |
-
>
|
| 350 |
-
<Check className="h-4 w-4" />
|
| 351 |
-
Im Studio bearbeiten
|
| 352 |
-
</button>
|
| 353 |
-
<button
|
| 354 |
-
onClick={() => setLightbox((i) => (i != null && i < filtered.length - 1 ? i + 1 : 0))}
|
| 355 |
-
className="rounded-full bg-white/10 p-3 text-slate-200 transition-all hover:bg-white/20"
|
| 356 |
-
title="Nächstes"
|
| 357 |
-
>
|
| 358 |
-
<ChevronRight className="h-5 w-5" />
|
| 359 |
-
</button>
|
| 360 |
-
</div>
|
| 361 |
-
</div>
|
| 362 |
-
</div>
|
| 363 |
-
)}
|
| 364 |
-
</div>
|
| 365 |
-
);
|
| 366 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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-1,847 +0,0 @@
|
|
| 1 |
-
"use client";
|
| 2 |
-
|
| 3 |
-
import { useCallback, useEffect, useMemo, useState } from "react";
|
| 4 |
-
import {
|
| 5 |
-
Sparkles,
|
| 6 |
-
Download,
|
| 7 |
-
ZoomIn,
|
| 8 |
-
ZoomOut,
|
| 9 |
-
Eraser,
|
| 10 |
-
Scissors,
|
| 11 |
-
PenLine,
|
| 12 |
-
X,
|
| 13 |
-
Wand2,
|
| 14 |
-
Brain,
|
| 15 |
-
SlidersHorizontal,
|
| 16 |
-
Zap,
|
| 17 |
-
Check,
|
| 18 |
-
Images,
|
| 19 |
-
Maximize2,
|
| 20 |
-
} from "lucide-react";
|
| 21 |
-
import Dock from "@/components/ui/dock";
|
| 22 |
-
import LiquidLoading from "@/components/ui/liquid-loader";
|
| 23 |
-
import {
|
| 24 |
-
GalleryImage,
|
| 25 |
-
galleryAdd,
|
| 26 |
-
galleryGetAll,
|
| 27 |
-
takeStudioSelection,
|
| 28 |
-
} from "@/lib/galleryStore";
|
| 29 |
-
|
| 30 |
-
type Mode = "auto" | "manual" | "triple";
|
| 31 |
-
|
| 32 |
-
interface GenImage {
|
| 33 |
-
image: string;
|
| 34 |
-
contentType: string;
|
| 35 |
-
provider: string;
|
| 36 |
-
model: string;
|
| 37 |
-
tag?: "design" | "shop";
|
| 38 |
-
id?: string;
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
interface GenResult {
|
| 42 |
-
image?: string;
|
| 43 |
-
contentType?: string;
|
| 44 |
-
provider?: string;
|
| 45 |
-
model?: string;
|
| 46 |
-
images?: GenImage[];
|
| 47 |
-
error?: string;
|
| 48 |
-
mode?: string;
|
| 49 |
-
jobId?: string;
|
| 50 |
-
status?: "queued" | "working" | "done" | "error";
|
| 51 |
-
queuePosition?: number;
|
| 52 |
-
waiting?: number;
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
const MODELS = [
|
| 56 |
-
{ id: "sdxl", name: "Stable Diffusion XL", style: "Allrounder · hochwertig" },
|
| 57 |
-
{ id: "juggernaut", name: "Juggernaut XL", style: "Photorealismus" },
|
| 58 |
-
{ id: "albedo", name: "AlbedoBase XL", style: "Anime & Illustration" },
|
| 59 |
-
{ id: "dreamshaper", name: "DreamShaper XL", style: "Künstlerisch · Träume" },
|
| 60 |
-
{ id: "flux", name: "Flux.1-Schnell", style: "Schnell · modern" },
|
| 61 |
-
];
|
| 62 |
-
|
| 63 |
-
function routeModelClient(prompt: string): string {
|
| 64 |
-
const p = prompt.toLowerCase();
|
| 65 |
-
if (/(anime|manga|chibi|illustration|cartoon|zeichnung|kawaii)/.test(p)) return "albedo";
|
| 66 |
-
if (/(photo|realistic|realismus|portrait|person|woman|man|face|studio|product|foto)/.test(p)) return "juggernaut";
|
| 67 |
-
if (/(logo|icon|design|minimal|graphic|emblem)/.test(p)) return "sdxl";
|
| 68 |
-
return "sdxl";
|
| 69 |
-
}
|
| 70 |
-
|
| 71 |
-
const toDataUrl = (img: GenImage) => `data:${img.contentType || "image/png"};base64,${img.image}`;
|
| 72 |
-
|
| 73 |
-
export default function Studio() {
|
| 74 |
-
const [prompt, setPrompt] = useState("");
|
| 75 |
-
const [mode, setMode] = useState<Mode>("auto");
|
| 76 |
-
const [manualModel, setManualModel] = useState("sdxl");
|
| 77 |
-
const [images, setImages] = useState<GenImage[]>([]);
|
| 78 |
-
const [galleryCount, setGalleryCount] = useState(0);
|
| 79 |
-
const [transparent, setTransparent] = useState(false);
|
| 80 |
-
const [optimizing, setOptimizing] = useState(false);
|
| 81 |
-
const [optimizedFlash, setOptimizedFlash] = useState(false);
|
| 82 |
-
const [activeIdx, setActiveIdx] = useState(0);
|
| 83 |
-
const [loading, setLoading] = useState(false);
|
| 84 |
-
const [busyTool, setBusyTool] = useState<string | null>(null);
|
| 85 |
-
const [bgProgress, setBgProgress] = useState<number | null>(null);
|
| 86 |
-
const [error, setError] = useState<string | null>(null);
|
| 87 |
-
const [editMode, setEditMode] = useState(false);
|
| 88 |
-
const [editPrompt, setEditPrompt] = useState("");
|
| 89 |
-
const [zoom, setZoom] = useState(1);
|
| 90 |
-
const [lastProvider, setLastProvider] = useState<string | null>(null);
|
| 91 |
-
const [queuePos, setQueuePos] = useState<number | null>(null);
|
| 92 |
-
const zoomLevels = [1, 1.5, 2, 3];
|
| 93 |
-
|
| 94 |
-
useEffect(() => {
|
| 95 |
-
// Galerie-Zähler + ggf. Auswahl aus der Galerie übernehmen
|
| 96 |
-
void galleryGetAll().then((all) => setGalleryCount(all.length));
|
| 97 |
-
const sel = takeStudioSelection();
|
| 98 |
-
if (sel) {
|
| 99 |
-
setImages([sel]);
|
| 100 |
-
setActiveIdx(0);
|
| 101 |
-
setZoom(1);
|
| 102 |
-
}
|
| 103 |
-
}, []);
|
| 104 |
-
|
| 105 |
-
/** Neu generierte/bearbeitete Bilder in die Galerie (IndexedDB) übernehmen */
|
| 106 |
-
const pushToGallery = useCallback((newImages: GenImage[]) => {
|
| 107 |
-
if (!newImages.length) return;
|
| 108 |
-
const items: GalleryImage[] = newImages.map((img) => ({
|
| 109 |
-
id: img.id || crypto.randomUUID(),
|
| 110 |
-
image: img.image,
|
| 111 |
-
contentType: img.contentType || "image/png",
|
| 112 |
-
provider: img.provider || "Unbekannt",
|
| 113 |
-
model: img.model || "Design",
|
| 114 |
-
tag: img.tag || "design",
|
| 115 |
-
addedAt: Date.now(),
|
| 116 |
-
}));
|
| 117 |
-
void galleryAdd(items).then(() => {
|
| 118 |
-
setGalleryCount((c) => c + items.length);
|
| 119 |
-
});
|
| 120 |
-
}, []);
|
| 121 |
-
|
| 122 |
-
/** Zauberstab: Prompt per KI (Gemini-Text) druck-optimieren, Fallback lokal */
|
| 123 |
-
const enchantPrompt = useCallback(async () => {
|
| 124 |
-
if (!prompt.trim() || optimizing || loading || busyTool) return;
|
| 125 |
-
setOptimizing(true);
|
| 126 |
-
setError(null);
|
| 127 |
-
try {
|
| 128 |
-
const resp = await fetch("/api/optimize", {
|
| 129 |
-
method: "POST",
|
| 130 |
-
headers: { "Content-Type": "application/json" },
|
| 131 |
-
body: JSON.stringify({ prompt: prompt.trim(), transparent }),
|
| 132 |
-
});
|
| 133 |
-
const data = (await resp.json()) as { optimized?: string; source?: string; error?: string };
|
| 134 |
-
if (!resp.ok || !data.optimized) throw new Error(data.error || "Optimierung fehlgeschlagen.");
|
| 135 |
-
setPrompt(data.optimized);
|
| 136 |
-
setOptimizedFlash(true);
|
| 137 |
-
setTimeout(() => setOptimizedFlash(false), 3500);
|
| 138 |
-
} catch (e) {
|
| 139 |
-
setError(e instanceof Error ? e.message : String(e));
|
| 140 |
-
} finally {
|
| 141 |
-
setOptimizing(false);
|
| 142 |
-
}
|
| 143 |
-
}, [prompt, transparent, optimizing, loading, busyTool]);
|
| 144 |
-
|
| 145 |
-
const activeImage = images[activeIdx] ?? null;
|
| 146 |
-
const activeDataUrl = activeImage ? toDataUrl(activeImage) : null;
|
| 147 |
-
const routedModel = useMemo(() => routeModelClient(prompt), [prompt]);
|
| 148 |
-
const routedModelName = MODELS.find((m) => m.id === routedModel)?.name ?? "SDXL";
|
| 149 |
-
|
| 150 |
-
const status = loading
|
| 151 |
-
? mode === "triple"
|
| 152 |
-
? queuePos != null
|
| 153 |
-
? `3 Designs parallel · Queue-Position ${queuePos}`
|
| 154 |
-
: "3 Designs parallel · Job gestartet …"
|
| 155 |
-
: queuePos != null
|
| 156 |
-
? `Generiere Design · Queue-Position ${queuePos}`
|
| 157 |
-
: "Generiere Design · Job gestartet …"
|
| 158 |
-
: busyTool === "bg"
|
| 159 |
-
? bgProgress != null
|
| 160 |
-
? `Entferne Hintergrund (lokal im Browser) · ${Math.round(bgProgress)} %`
|
| 161 |
-
: "Entferne Hintergrund (lokal im Browser) …"
|
| 162 |
-
: busyTool === "crop"
|
| 163 |
-
? "Schneide zu (lokal im Browser) …"
|
| 164 |
-
: busyTool === "upscale"
|
| 165 |
-
? "Upscale · Größe & Qualität verbessern (KI-Queue) …"
|
| 166 |
-
: busyTool === "edit"
|
| 167 |
-
? "Bearbeite per Prompt (KI-Queue) …"
|
| 168 |
-
: null;
|
| 169 |
-
|
| 170 |
-
/** Job anlegen → jobId erhalten → Status pollen bis done/error */
|
| 171 |
-
const submitAndPoll = useCallback(
|
| 172 |
-
async (payload: Record<string, unknown>): Promise<GenResult> => {
|
| 173 |
-
setQueuePos(null);
|
| 174 |
-
const resp = await fetch("/api/generate", {
|
| 175 |
-
method: "POST",
|
| 176 |
-
headers: { "Content-Type": "application/json" },
|
| 177 |
-
body: JSON.stringify(payload),
|
| 178 |
-
});
|
| 179 |
-
const data: GenResult = await resp.json();
|
| 180 |
-
if (!resp.ok) throw new Error(data.error || `HTTP ${resp.status}`);
|
| 181 |
-
if (!data.jobId) throw new Error("Keine Job-ID erhalten.");
|
| 182 |
-
const jobId = data.jobId;
|
| 183 |
-
|
| 184 |
-
// Pollen bis Abschluss (max 30 Min)
|
| 185 |
-
const deadline = Date.now() + 30 * 60 * 1000;
|
| 186 |
-
while (Date.now() < deadline) {
|
| 187 |
-
await new Promise((r) => setTimeout(r, 5000));
|
| 188 |
-
const sr = await fetch(`/api/generate?jobId=${encodeURIComponent(jobId)}`);
|
| 189 |
-
const st: GenResult = await sr.json();
|
| 190 |
-
if (st.queuePosition != null) setQueuePos(st.queuePosition);
|
| 191 |
-
if (st.status === "done") return st;
|
| 192 |
-
if (st.status === "error") throw new Error(st.error || "Generierung fehlgeschlagen.");
|
| 193 |
-
if (!sr.ok) throw new Error(st.error || `HTTP ${sr.status}`);
|
| 194 |
-
}
|
| 195 |
-
throw new Error("Timeout: Generierung hat zu lange gedauert.");
|
| 196 |
-
},
|
| 197 |
-
[]
|
| 198 |
-
);
|
| 199 |
-
|
| 200 |
-
const generate = useCallback(async () => {
|
| 201 |
-
if (!prompt.trim() || loading || busyTool) return;
|
| 202 |
-
setLoading(true);
|
| 203 |
-
setError(null);
|
| 204 |
-
try {
|
| 205 |
-
const body: Record<string, unknown> = { prompt: prompt.trim(), mode, transparent };
|
| 206 |
-
if (mode === "manual") body.models = [manualModel];
|
| 207 |
-
const data = await submitAndPoll(body);
|
| 208 |
-
if (data.images?.length) {
|
| 209 |
-
setImages(data.images);
|
| 210 |
-
setActiveIdx(0);
|
| 211 |
-
pushToGallery(data.images);
|
| 212 |
-
if (data.error && data.images.length < 3) {
|
| 213 |
-
setError(data.error);
|
| 214 |
-
}
|
| 215 |
-
} else if (data.image) {
|
| 216 |
-
const single: GenImage[] = [{ image: data.image, contentType: data.contentType || "image/png", provider: data.provider || "", model: data.model || "" }];
|
| 217 |
-
setImages(single);
|
| 218 |
-
setActiveIdx(0);
|
| 219 |
-
pushToGallery(single);
|
| 220 |
-
}
|
| 221 |
-
setLastProvider(data.provider || data.images?.[0]?.provider || null);
|
| 222 |
-
setZoom(1);
|
| 223 |
-
} catch (e) {
|
| 224 |
-
setError(e instanceof Error ? e.message : String(e));
|
| 225 |
-
} finally {
|
| 226 |
-
setLoading(false);
|
| 227 |
-
setQueuePos(null);
|
| 228 |
-
}
|
| 229 |
-
}, [prompt, mode, manualModel, transparent, loading, busyTool, submitAndPoll, pushToGallery]);
|
| 230 |
-
|
| 231 |
-
const editImage = useCallback(
|
| 232 |
-
async (kind: "bg" | "crop" | "custom" | "upscale", customPrompt?: string) => {
|
| 233 |
-
if (!activeDataUrl || loading || busyTool) return;
|
| 234 |
-
|
| 235 |
-
// ===== Client-seitig: Hintergrund entfernen (imgly WASM, 100% lokal & sofort) =====
|
| 236 |
-
if (kind === "bg") {
|
| 237 |
-
setBusyTool("bg");
|
| 238 |
-
setBgProgress(0);
|
| 239 |
-
setError(null);
|
| 240 |
-
try {
|
| 241 |
-
const { removeBackground } = await import("@imgly/background-removal");
|
| 242 |
-
const blob = await removeBackground(activeDataUrl, {
|
| 243 |
-
progress: (_key, current, total) => {
|
| 244 |
-
setBgProgress(total > 0 ? (current / total) * 100 : 100);
|
| 245 |
-
},
|
| 246 |
-
});
|
| 247 |
-
const dataUrl = await new Promise<string>((resolve, reject) => {
|
| 248 |
-
const reader = new FileReader();
|
| 249 |
-
reader.onload = () => resolve(reader.result as string);
|
| 250 |
-
reader.onerror = () => reject(new Error("Konnte Bild nicht lesen."));
|
| 251 |
-
reader.readAsDataURL(blob);
|
| 252 |
-
});
|
| 253 |
-
const newImg: GenImage = {
|
| 254 |
-
image: dataUrl.split(",")[1] || dataUrl,
|
| 255 |
-
contentType: (blob.type || "image/png").includes("png") ? "image/png" : blob.type || "image/png",
|
| 256 |
-
provider: "Lokal (WASM)",
|
| 257 |
-
model: "Hintergrund entfernt",
|
| 258 |
-
};
|
| 259 |
-
setImages((prev) => {
|
| 260 |
-
const next = [...prev];
|
| 261 |
-
next[activeIdx] = newImg;
|
| 262 |
-
return next;
|
| 263 |
-
});
|
| 264 |
-
pushToGallery([newImg]);
|
| 265 |
-
setZoom(1);
|
| 266 |
-
} catch (e) {
|
| 267 |
-
setError(
|
| 268 |
-
e instanceof Error
|
| 269 |
-
? `Hintergrund-Entfernung fehlgeschlagen: ${e.message}`
|
| 270 |
-
: "Hintergrund-Entfernung fehlgeschlagen."
|
| 271 |
-
);
|
| 272 |
-
} finally {
|
| 273 |
-
setBusyTool(null);
|
| 274 |
-
setBgProgress(null);
|
| 275 |
-
}
|
| 276 |
-
return;
|
| 277 |
-
}
|
| 278 |
-
|
| 279 |
-
// ===== Client-seitig: Schere (Auto-Crop leere/transparente Ränder, Canvas) =====
|
| 280 |
-
if (kind === "crop") {
|
| 281 |
-
setBusyTool("crop");
|
| 282 |
-
setError(null);
|
| 283 |
-
try {
|
| 284 |
-
const dataUrl = await new Promise<string>((resolve, reject) => {
|
| 285 |
-
const img = new Image();
|
| 286 |
-
img.onload = () => {
|
| 287 |
-
try {
|
| 288 |
-
const canvas = document.createElement("canvas");
|
| 289 |
-
canvas.width = img.naturalWidth;
|
| 290 |
-
canvas.height = img.naturalHeight;
|
| 291 |
-
const ctx = canvas.getContext("2d");
|
| 292 |
-
if (!ctx) throw new Error("Canvas nicht verfügbar.");
|
| 293 |
-
ctx.drawImage(img, 0, 0);
|
| 294 |
-
const { data, width, height } = ctx.getImageData(0, 0, canvas.width, canvas.height);
|
| 295 |
-
|
| 296 |
-
// Bounding-Box der nicht-transparenten Pixel (Alpha > 10)
|
| 297 |
-
let minX = width,
|
| 298 |
-
minY = height,
|
| 299 |
-
maxX = 0,
|
| 300 |
-
maxY = 0;
|
| 301 |
-
let hasContent = false;
|
| 302 |
-
for (let y = 0; y < height; y++) {
|
| 303 |
-
for (let x = 0; x < width; x++) {
|
| 304 |
-
if (data[(y * width + x) * 4 + 3] > 10) {
|
| 305 |
-
hasContent = true;
|
| 306 |
-
if (x < minX) minX = x;
|
| 307 |
-
if (x > maxX) maxX = x;
|
| 308 |
-
if (y < minY) minY = y;
|
| 309 |
-
if (y > maxY) maxY = y;
|
| 310 |
-
}
|
| 311 |
-
}
|
| 312 |
-
}
|
| 313 |
-
|
| 314 |
-
// Kein Transparenz-Hinweis → konservativ 4% Rand beschneiden
|
| 315 |
-
if (!hasContent) {
|
| 316 |
-
const m = Math.round(Math.min(width, height) * 0.04);
|
| 317 |
-
minX = m;
|
| 318 |
-
minY = m;
|
| 319 |
-
maxX = width - m;
|
| 320 |
-
maxY = height - m;
|
| 321 |
-
}
|
| 322 |
-
|
| 323 |
-
const w = maxX - minX + 1;
|
| 324 |
-
const h = maxY - minY + 1;
|
| 325 |
-
const out = document.createElement("canvas");
|
| 326 |
-
out.width = w;
|
| 327 |
-
out.height = h;
|
| 328 |
-
out.getContext("2d")!.drawImage(canvas, minX, minY, w, h, 0, 0, w, h);
|
| 329 |
-
resolve(out.toDataURL("image/png"));
|
| 330 |
-
} catch (e) {
|
| 331 |
-
reject(e);
|
| 332 |
-
}
|
| 333 |
-
};
|
| 334 |
-
img.onerror = () => reject(new Error("Konnte Bild nicht laden."));
|
| 335 |
-
img.src = activeDataUrl;
|
| 336 |
-
});
|
| 337 |
-
|
| 338 |
-
const newImg: GenImage = {
|
| 339 |
-
image: dataUrl.split(",")[1] || dataUrl,
|
| 340 |
-
contentType: "image/png",
|
| 341 |
-
provider: "Lokal (Canvas)",
|
| 342 |
-
model: "Zugeschnitten",
|
| 343 |
-
};
|
| 344 |
-
setImages((prev) => {
|
| 345 |
-
const next = [...prev];
|
| 346 |
-
next[activeIdx] = newImg;
|
| 347 |
-
return next;
|
| 348 |
-
});
|
| 349 |
-
pushToGallery([newImg]);
|
| 350 |
-
setZoom(1);
|
| 351 |
-
} catch (e) {
|
| 352 |
-
setError(e instanceof Error ? `Zuschneiden fehlgeschlagen: ${e.message}` : "Zuschneiden fehlgeschlagen.");
|
| 353 |
-
} finally {
|
| 354 |
-
setBusyTool(null);
|
| 355 |
-
}
|
| 356 |
-
return;
|
| 357 |
-
}
|
| 358 |
-
|
| 359 |
-
// ===== Server-seitig: Upscale (Größe + Qualität via Horde img2img, bestes freies Modell) =====
|
| 360 |
-
if (kind === "upscale") {
|
| 361 |
-
const base64 = activeDataUrl.split(",")[1];
|
| 362 |
-
setBusyTool("upscale");
|
| 363 |
-
setError(null);
|
| 364 |
-
try {
|
| 365 |
-
const data = await submitAndPoll({
|
| 366 |
-
prompt: "same design, preserve composition, enhance details",
|
| 367 |
-
image: base64,
|
| 368 |
-
mode: "manual",
|
| 369 |
-
models: ["sdxl"],
|
| 370 |
-
upscale: true,
|
| 371 |
-
});
|
| 372 |
-
const newImg: GenImage = data.images?.[0] ?? {
|
| 373 |
-
image: data.image!,
|
| 374 |
-
contentType: data.contentType || "image/png",
|
| 375 |
-
provider: data.provider || "",
|
| 376 |
-
model: data.model || "",
|
| 377 |
-
};
|
| 378 |
-
setImages((prev) => {
|
| 379 |
-
const next = [...prev];
|
| 380 |
-
next[activeIdx] = newImg;
|
| 381 |
-
return next;
|
| 382 |
-
});
|
| 383 |
-
pushToGallery([newImg]);
|
| 384 |
-
setZoom(1);
|
| 385 |
-
} catch (e) {
|
| 386 |
-
setError(e instanceof Error ? e.message : String(e));
|
| 387 |
-
} finally {
|
| 388 |
-
setBusyTool(null);
|
| 389 |
-
}
|
| 390 |
-
return;
|
| 391 |
-
}
|
| 392 |
-
|
| 393 |
-
// ===== Server-seitig: Prompt-Bearbeitung (Horde img2img, bestes freies Modell) =====
|
| 394 |
-
const base64 = activeDataUrl.split(",")[1];
|
| 395 |
-
const promptText = customPrompt || "";
|
| 396 |
-
if (!promptText.trim()) return;
|
| 397 |
-
|
| 398 |
-
setBusyTool(kind);
|
| 399 |
-
try {
|
| 400 |
-
const data = await submitAndPoll({
|
| 401 |
-
prompt: promptText,
|
| 402 |
-
image: base64,
|
| 403 |
-
mode: "manual",
|
| 404 |
-
models: ["sdxl"],
|
| 405 |
-
});
|
| 406 |
-
const newImg: GenImage = data.images?.[0] ?? {
|
| 407 |
-
image: data.image!,
|
| 408 |
-
contentType: data.contentType || "image/png",
|
| 409 |
-
provider: data.provider || "",
|
| 410 |
-
model: data.model || "",
|
| 411 |
-
};
|
| 412 |
-
setImages((prev) => {
|
| 413 |
-
const next = [...prev];
|
| 414 |
-
next[activeIdx] = newImg;
|
| 415 |
-
return next;
|
| 416 |
-
});
|
| 417 |
-
pushToGallery([newImg]);
|
| 418 |
-
setZoom(1);
|
| 419 |
-
} catch (e) {
|
| 420 |
-
setError(e instanceof Error ? e.message : String(e));
|
| 421 |
-
} finally {
|
| 422 |
-
setBusyTool(null);
|
| 423 |
-
if (kind === "custom") setEditMode(false);
|
| 424 |
-
}
|
| 425 |
-
},
|
| 426 |
-
[activeDataUrl, activeIdx, loading, busyTool, submitAndPoll, pushToGallery]
|
| 427 |
-
);
|
| 428 |
-
|
| 429 |
-
const download = useCallback(() => {
|
| 430 |
-
if (!activeDataUrl) return;
|
| 431 |
-
const a = document.createElement("a");
|
| 432 |
-
a.href = activeDataUrl;
|
| 433 |
-
a.download = `drip-design-${Date.now()}.png`;
|
| 434 |
-
a.click();
|
| 435 |
-
}, [activeDataUrl]);
|
| 436 |
-
|
| 437 |
-
const zoomIn = useCallback(() => {
|
| 438 |
-
setZoom((z) => (z < zoomLevels[zoomLevels.length - 1] ? zoomLevels[zoomLevels.indexOf(z) + 1] : z));
|
| 439 |
-
}, []);
|
| 440 |
-
|
| 441 |
-
const zoomOut = useCallback(() => {
|
| 442 |
-
setZoom((z) => (z > 1 ? zoomLevels[Math.max(0, zoomLevels.indexOf(z) - 1)] : z));
|
| 443 |
-
}, []);
|
| 444 |
-
|
| 445 |
-
const handleTool = useCallback(
|
| 446 |
-
(id: string) => {
|
| 447 |
-
if (loading || busyTool) return;
|
| 448 |
-
switch (id) {
|
| 449 |
-
case "download":
|
| 450 |
-
download();
|
| 451 |
-
break;
|
| 452 |
-
case "zoom-in":
|
| 453 |
-
zoomIn();
|
| 454 |
-
break;
|
| 455 |
-
case "zoom-out":
|
| 456 |
-
zoomOut();
|
| 457 |
-
break;
|
| 458 |
-
case "bg":
|
| 459 |
-
editImage("bg");
|
| 460 |
-
break;
|
| 461 |
-
case "crop":
|
| 462 |
-
editImage("crop");
|
| 463 |
-
break;
|
| 464 |
-
case "upscale":
|
| 465 |
-
editImage("upscale");
|
| 466 |
-
break;
|
| 467 |
-
case "edit":
|
| 468 |
-
setEditMode((m) => !m);
|
| 469 |
-
setError(null);
|
| 470 |
-
break;
|
| 471 |
-
}
|
| 472 |
-
},
|
| 473 |
-
[loading, busyTool, download, zoomIn, zoomOut, editImage]
|
| 474 |
-
);
|
| 475 |
-
|
| 476 |
-
useEffect(() => {
|
| 477 |
-
const onKey = (e: KeyboardEvent) => {
|
| 478 |
-
if (e.key === "Enter" && !e.shiftKey) {
|
| 479 |
-
const el = document.activeElement;
|
| 480 |
-
if (el && el.tagName === "TEXTAREA" && !loading && !busyTool) generate();
|
| 481 |
-
}
|
| 482 |
-
if (e.key === "Escape") setEditMode(false);
|
| 483 |
-
};
|
| 484 |
-
window.addEventListener("keydown", onKey);
|
| 485 |
-
return () => window.removeEventListener("keydown", onKey);
|
| 486 |
-
}, [generate, loading, busyTool]);
|
| 487 |
-
|
| 488 |
-
const dockItems = [
|
| 489 |
-
{
|
| 490 |
-
id: "download",
|
| 491 |
-
label: "Download",
|
| 492 |
-
icon: <Download className="h-6 w-6" />,
|
| 493 |
-
disabled: !activeImage || !!loading || !!busyTool,
|
| 494 |
-
},
|
| 495 |
-
{
|
| 496 |
-
id: "zoom-out",
|
| 497 |
-
label: "Zoom −",
|
| 498 |
-
icon: <ZoomOut className="h-6 w-6" />,
|
| 499 |
-
disabled: !activeImage || !!loading || !!busyTool || zoom <= 1,
|
| 500 |
-
},
|
| 501 |
-
{
|
| 502 |
-
id: "zoom-in",
|
| 503 |
-
label: `Zoom + (${zoom}×)`,
|
| 504 |
-
icon: <ZoomIn className="h-6 w-6" />,
|
| 505 |
-
disabled: !activeImage || !!loading || !!busyTool || zoom >= zoomLevels[zoomLevels.length - 1],
|
| 506 |
-
},
|
| 507 |
-
{
|
| 508 |
-
id: "bg",
|
| 509 |
-
label: "Transparenter Hintergrund",
|
| 510 |
-
icon: <Eraser className="h-6 w-6" />,
|
| 511 |
-
disabled: !activeImage || !!loading || !!busyTool,
|
| 512 |
-
},
|
| 513 |
-
{
|
| 514 |
-
id: "crop",
|
| 515 |
-
label: "Schere · Zuschneiden",
|
| 516 |
-
icon: <Scissors className="h-6 w-6" />,
|
| 517 |
-
disabled: !activeImage || !!loading || !!busyTool,
|
| 518 |
-
},
|
| 519 |
-
{
|
| 520 |
-
id: "upscale",
|
| 521 |
-
label: "Upscale · Größe & Qualität",
|
| 522 |
-
icon: <Maximize2 className="h-6 w-6" />,
|
| 523 |
-
disabled: !activeImage || !!loading || !!busyTool,
|
| 524 |
-
},
|
| 525 |
-
{
|
| 526 |
-
id: "edit",
|
| 527 |
-
label: editMode ? "Bearbeiten schließen" : "Marker · Prompt-Bearbeitung",
|
| 528 |
-
icon: <PenLine className="h-6 w-6" />,
|
| 529 |
-
active: editMode,
|
| 530 |
-
disabled: !activeImage || !!loading || !!busyTool,
|
| 531 |
-
},
|
| 532 |
-
];
|
| 533 |
-
|
| 534 |
-
const modeOptions: { id: Mode; label: string; icon: React.ReactNode; hint: string }[] = [
|
| 535 |
-
{ id: "auto", label: "Auto-Router", icon: <Brain className="h-4 w-4" />, hint: "Intelligente Modellwahl" },
|
| 536 |
-
{ id: "manual", label: "Manuell", icon: <SlidersHorizontal className="h-4 w-4" />, hint: "Modell selbst wählen" },
|
| 537 |
-
{ id: "triple", label: "Triple", icon: <Zap className="h-4 w-4" />, hint: "3 Modelle parallel" },
|
| 538 |
-
];
|
| 539 |
-
|
| 540 |
-
return (
|
| 541 |
-
<div className="relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-4 py-24">
|
| 542 |
-
{/* Hintergrund-Orbs */}
|
| 543 |
-
<div className="pointer-events-none absolute -top-32 -left-32 h-[480px] w-[480px] animate-float rounded-full bg-sky-500/25 blur-[130px]" />
|
| 544 |
-
<div className="pointer-events-none absolute top-1/3 -right-40 h-[520px] w-[520px] animate-float rounded-full bg-purple-600/25 blur-[140px]" style={{ animationDelay: "-2.5s" }} />
|
| 545 |
-
<div className="pointer-events-none absolute -bottom-40 left-1/4 h-[460px] w-[460px] animate-float rounded-full bg-fuchsia-500/20 blur-[130px]" style={{ animationDelay: "-5s" }} />
|
| 546 |
-
<div
|
| 547 |
-
className="pointer-events-none absolute inset-0 opacity-[0.06]"
|
| 548 |
-
style={{
|
| 549 |
-
backgroundImage:
|
| 550 |
-
"linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px)",
|
| 551 |
-
backgroundSize: "56px 56px",
|
| 552 |
-
}}
|
| 553 |
-
/>
|
| 554 |
-
|
| 555 |
-
{/* ===== Zentrale Card ===== */}
|
| 556 |
-
<div className="glass glow-ring relative z-10 w-full max-w-3xl animate-fade-up rounded-[2.5rem] p-8 sm:p-10">
|
| 557 |
-
<button
|
| 558 |
-
onClick={() => (window.location.href = "/gallery")}
|
| 559 |
-
className="absolute top-6 right-6 flex items-center gap-1.5 rounded-full border border-white/10 bg-white/[0.05] px-3.5 py-2 text-xs font-semibold text-slate-300 transition-all hover:bg-white/10 hover:text-white"
|
| 560 |
-
title="Zur Galerie (Designs & Shop-Fotos)"
|
| 561 |
-
>
|
| 562 |
-
<Images className="h-4 w-4 text-sky-300" />
|
| 563 |
-
Galerie
|
| 564 |
-
<span className="rounded-full bg-sky-400/20 px-1.5 py-0.5 text-[10px] font-bold text-sky-300">{galleryCount}</span>
|
| 565 |
-
</button>
|
| 566 |
-
<div className="mb-8 flex flex-col items-center text-center">
|
| 567 |
-
<div className="animate-float mb-4 flex h-20 w-20 items-center justify-center rounded-[1.6rem] bg-gradient-to-br from-sky-400 via-blue-500 to-purple-600 text-5xl shadow-[0_10px_50px_-10px_rgba(56,189,248,0.6)]">
|
| 568 |
-
💧
|
| 569 |
-
</div>
|
| 570 |
-
<h1 className="font-display text-5xl font-extrabold tracking-tight sm:text-6xl">
|
| 571 |
-
<span className="text-gradient">DRIP-CREATOR</span>
|
| 572 |
-
</h1>
|
| 573 |
-
<p className="mt-3 max-w-md text-balance text-sm leading-relaxed text-slate-300/80">
|
| 574 |
-
Kostenlose KI-Designs über mehrere Modelle — generieren, bearbeiten,
|
| 575 |
-
Hintergrund entfernen, zuschneiden. Für <span className="font-semibold text-sky-300">Printify</span>-Drucke.
|
| 576 |
-
</p>
|
| 577 |
-
</div>
|
| 578 |
-
|
| 579 |
-
{/* Modus-Auswahl */}
|
| 580 |
-
<div className="mb-5 grid grid-cols-3 gap-2">
|
| 581 |
-
{modeOptions.map((m) => (
|
| 582 |
-
<button
|
| 583 |
-
key={m.id}
|
| 584 |
-
onClick={() => setMode(m.id)}
|
| 585 |
-
className={`flex flex-col items-center gap-1 rounded-2xl border px-3 py-3 transition-all duration-300 ${
|
| 586 |
-
mode === m.id
|
| 587 |
-
? "border-sky-400/60 bg-sky-400/10 shadow-[0_0_20px_rgba(56,189,248,0.2)]"
|
| 588 |
-
: "border-white/10 bg-white/[0.03] hover:bg-white/[0.07]"
|
| 589 |
-
}`}
|
| 590 |
-
>
|
| 591 |
-
<span className={`flex items-center gap-1.5 font-display text-sm font-bold ${mode === m.id ? "text-white" : "text-slate-300"}`}>
|
| 592 |
-
{m.icon}
|
| 593 |
-
{m.label}
|
| 594 |
-
</span>
|
| 595 |
-
<span className="text-[10px] text-slate-500">{m.hint}</span>
|
| 596 |
-
{mode === m.id && <Check className="h-3 w-3 text-sky-400" />}
|
| 597 |
-
</button>
|
| 598 |
-
))}
|
| 599 |
-
</div>
|
| 600 |
-
|
| 601 |
-
{/* Modell-Auswahl (Manuell) / Router-Hinweis (Auto) */}
|
| 602 |
-
{mode === "manual" && (
|
| 603 |
-
<div className="mb-4 animate-fade-up rounded-2xl border border-purple-400/20 bg-purple-500/5 p-3">
|
| 604 |
-
<label className="mb-2 block text-xs font-semibold tracking-wide text-purple-200 uppercase">
|
| 605 |
-
Modell wählen
|
| 606 |
-
</label>
|
| 607 |
-
<select
|
| 608 |
-
value={manualModel}
|
| 609 |
-
onChange={(e) => setManualModel(e.target.value)}
|
| 610 |
-
className="w-full rounded-2xl border border-white/10 bg-white/[0.05] px-4 py-3 text-sm text-white outline-none focus:border-purple-400/60 [&>option]:bg-slate-900"
|
| 611 |
-
>
|
| 612 |
-
{MODELS.map((m) => (
|
| 613 |
-
<option key={m.id} value={m.id}>
|
| 614 |
-
{m.name} — {m.style}
|
| 615 |
-
</option>
|
| 616 |
-
))}
|
| 617 |
-
</select>
|
| 618 |
-
</div>
|
| 619 |
-
)}
|
| 620 |
-
{mode === "auto" && prompt.trim() && (
|
| 621 |
-
<div className="mb-4 animate-fade-up rounded-2xl border border-sky-400/20 bg-sky-400/5 px-4 py-2.5 text-xs text-sky-200/90">
|
| 622 |
-
🧠 Router wählt: <span className="font-semibold text-sky-200">{routedModelName}</span>
|
| 623 |
-
</div>
|
| 624 |
-
)}
|
| 625 |
-
|
| 626 |
-
{/* Prompt */}
|
| 627 |
-
<div className="space-y-4">
|
| 628 |
-
<div className="relative">
|
| 629 |
-
<textarea
|
| 630 |
-
value={prompt}
|
| 631 |
-
onChange={(e) => setPrompt(e.target.value)}
|
| 632 |
-
placeholder="Beschreibe dein Design … z. B. „dripping chrome logo, neon purple on black“"
|
| 633 |
-
rows={3}
|
| 634 |
-
className="w-full resize-none rounded-[1.5rem] border border-white/10 bg-white/[0.05] px-5 py-4 pr-24 text-base text-white placeholder:text-slate-500 shadow-inner transition-all duration-300 outline-none focus:border-sky-400/60 focus:bg-white/[0.07] focus:shadow-[0_0_0_4px_rgba(56,189,248,0.15)]"
|
| 635 |
-
/>
|
| 636 |
-
<span className="pointer-events-none absolute right-4 bottom-3 text-[10px] font-medium tracking-wide text-slate-600 uppercase">
|
| 637 |
-
Enter ↵
|
| 638 |
-
</span>
|
| 639 |
-
{/* Zauberstab: Prompt per KI druck-optimieren */}
|
| 640 |
-
<button
|
| 641 |
-
onClick={enchantPrompt}
|
| 642 |
-
disabled={!prompt.trim() || optimizing || !!loading || !!busyTool}
|
| 643 |
-
title={optimizing ? "Verzaubere …" : "Prompt verzaubern — KI-optimiert für den Druck"}
|
| 644 |
-
className={`group absolute top-1/2 right-4 flex h-12 w-12 -translate-y-1/2 items-center justify-center rounded-2xl transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-40 ${
|
| 645 |
-
optimizedFlash
|
| 646 |
-
? "bg-gradient-to-br from-amber-300 via-fuchsia-400 to-purple-500 shadow-[0_0_35px_rgba(251,191,36,0.8)]"
|
| 647 |
-
: "bg-gradient-to-br from-purple-500 to-fuchsia-600 shadow-[0_8px_30px_-6px_rgba(217,70,239,0.7)] hover:shadow-[0_10px_40px_-4px_rgba(251,191,36,0.6)] hover:brightness-110 active:scale-90"
|
| 648 |
-
}`}
|
| 649 |
-
>
|
| 650 |
-
<Wand2
|
| 651 |
-
className={`h-6 w-6 text-white transition-transform duration-500 ${
|
| 652 |
-
optimizing ? "animate-spin" : optimizedFlash ? "rotate-12 scale-125" : "group-hover:rotate-12 group-hover:scale-110"
|
| 653 |
-
}`}
|
| 654 |
-
/>
|
| 655 |
-
<span className="absolute -top-1 -right-1 h-3 w-3 rounded-full bg-amber-300 shadow-[0_0_12px_rgba(251,191,36,1)]" />
|
| 656 |
-
</button>
|
| 657 |
-
</div>
|
| 658 |
-
|
| 659 |
-
{/* Aktionen: Transparenz-Toggle */}
|
| 660 |
-
<div className="flex items-center justify-between gap-3">
|
| 661 |
-
<button
|
| 662 |
-
onClick={() => setTransparent((t) => !t)}
|
| 663 |
-
className={`flex items-center gap-2.5 rounded-2xl border px-4 py-2.5 text-sm font-semibold transition-all duration-300 ${
|
| 664 |
-
transparent
|
| 665 |
-
? "border-emerald-400/50 bg-emerald-400/10 text-emerald-200 shadow-[0_0_20px_rgba(52,211,153,0.15)]"
|
| 666 |
-
: "border-white/10 bg-white/[0.03] text-slate-400 hover:bg-white/[0.07] hover:text-slate-200"
|
| 667 |
-
}`}
|
| 668 |
-
title="Fügt dem Prompt Transparenz hinzu — perfekt für Textildruck ohne Hintergrund-Box"
|
| 669 |
-
>
|
| 670 |
-
<span
|
| 671 |
-
className={`relative h-5 w-9 shrink-0 rounded-full transition-colors duration-300 ${
|
| 672 |
-
transparent ? "bg-emerald-400" : "bg-slate-600"
|
| 673 |
-
}`}
|
| 674 |
-
>
|
| 675 |
-
<span
|
| 676 |
-
className={`absolute top-0.5 h-4 w-4 rounded-full bg-white shadow transition-all duration-300 ${
|
| 677 |
-
transparent ? "left-[18px]" : "left-0.5"
|
| 678 |
-
}`}
|
| 679 |
-
/>
|
| 680 |
-
</span>
|
| 681 |
-
<Eraser className="h-4 w-4" />
|
| 682 |
-
Transparenter Hintergrund
|
| 683 |
-
</button>
|
| 684 |
-
|
| 685 |
-
{optimizedFlash && (
|
| 686 |
-
<span className="animate-fade-up text-xs font-semibold text-amber-300">
|
| 687 |
-
✨ Prompt verzaubert — druckoptimiert!
|
| 688 |
-
</span>
|
| 689 |
-
)}
|
| 690 |
-
</div>
|
| 691 |
-
|
| 692 |
-
<button
|
| 693 |
-
onClick={generate}
|
| 694 |
-
disabled={!prompt.trim() || !!loading || !!busyTool}
|
| 695 |
-
className="group relative w-full overflow-hidden rounded-[1.5rem] bg-gradient-to-r from-sky-400 via-blue-500 to-purple-600 px-8 py-4 font-display text-lg font-bold text-white shadow-[0_14px_50px_-12px_rgba(99,102,241,0.65)] transition-all duration-300 hover:shadow-[0_16px_60px_-10px_rgba(168,85,247,0.7)] hover:brightness-110 active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:brightness-100"
|
| 696 |
-
style={{ paddingBlock: "1.1rem" }}
|
| 697 |
-
>
|
| 698 |
-
<span className="relative z-10 flex items-center justify-center gap-2">
|
| 699 |
-
<Sparkles className="h-5 w-5 transition-transform duration-300 group-hover:rotate-12 group-hover:scale-125" />
|
| 700 |
-
{mode === "triple" ? "3 Designs generieren" : "Design generieren"}
|
| 701 |
-
</span>
|
| 702 |
-
<span className="absolute top-0 left-[-100%] h-full w-1/2 skew-x-[-20deg] bg-white/25 blur-sm transition-all duration-700 group-hover:left-[120%]" />
|
| 703 |
-
</button>
|
| 704 |
-
</div>
|
| 705 |
-
|
| 706 |
-
{/* Status / Fehler */}
|
| 707 |
-
{status && (
|
| 708 |
-
<div className="mt-5 flex animate-fade-up items-center justify-center gap-2 rounded-2xl border border-sky-400/20 bg-sky-400/10 px-4 py-3 text-sm font-medium text-sky-200">
|
| 709 |
-
<span className="h-2 w-2 animate-pulse rounded-full bg-sky-400 shadow-[0_0_10px_rgba(56,189,248,1)]" />
|
| 710 |
-
{status}
|
| 711 |
-
</div>
|
| 712 |
-
)}
|
| 713 |
-
{error && (
|
| 714 |
-
<div className="mt-5 animate-fade-up rounded-2xl border border-rose-400/25 bg-rose-500/10 px-4 py-3 text-sm leading-relaxed break-words text-rose-200">
|
| 715 |
-
{error}
|
| 716 |
-
</div>
|
| 717 |
-
)}
|
| 718 |
-
{lastProvider && !loading && (
|
| 719 |
-
<div className="mt-3 text-center text-[11px] text-slate-500">
|
| 720 |
-
zuletzt geliefert von: <span className="font-semibold text-slate-300">{lastProvider}</span>
|
| 721 |
-
</div>
|
| 722 |
-
)}
|
| 723 |
-
|
| 724 |
-
{/* Edit-Leiste */}
|
| 725 |
-
{editMode && activeImage && (
|
| 726 |
-
<div className="mt-5 animate-fade-up rounded-[1.5rem] border border-purple-400/25 bg-purple-500/10 p-4">
|
| 727 |
-
<div className="mb-2 flex items-center gap-2 text-sm font-semibold text-purple-200">
|
| 728 |
-
<Wand2 className="h-4 w-4" />
|
| 729 |
-
Bearbeitungs-Prompt
|
| 730 |
-
</div>
|
| 731 |
-
<div className="flex gap-2">
|
| 732 |
-
<input
|
| 733 |
-
value={editPrompt}
|
| 734 |
-
onChange={(e) => setEditPrompt(e.target.value)}
|
| 735 |
-
placeholder="z. B. „make it look like liquid gold dripping“"
|
| 736 |
-
className="min-w-0 flex-1 rounded-2xl border border-white/10 bg-white/[0.05] px-4 py-3 text-sm text-white placeholder:text-slate-500 outline-none focus:border-purple-400/60"
|
| 737 |
-
/>
|
| 738 |
-
<button
|
| 739 |
-
onClick={() => editImage("custom", editPrompt)}
|
| 740 |
-
disabled={!editPrompt.trim() || !!busyTool}
|
| 741 |
-
className="shrink-0 rounded-2xl bg-gradient-to-r from-purple-500 to-fuchsia-500 px-5 text-sm font-semibold text-white transition-all hover:brightness-110 active:scale-95 disabled:opacity-40"
|
| 742 |
-
>
|
| 743 |
-
Anwenden
|
| 744 |
-
</button>
|
| 745 |
-
<button
|
| 746 |
-
onClick={() => setEditMode(false)}
|
| 747 |
-
className="shrink-0 rounded-2xl border border-white/10 bg-white/5 p-3 text-slate-300 transition-colors hover:bg-white/10 hover:text-white"
|
| 748 |
-
aria-label="Schließen"
|
| 749 |
-
>
|
| 750 |
-
<X className="h-4 w-4" />
|
| 751 |
-
</button>
|
| 752 |
-
</div>
|
| 753 |
-
</div>
|
| 754 |
-
)}
|
| 755 |
-
|
| 756 |
-
{/* Ergebnis-Grid */}
|
| 757 |
-
{images.length > 0 && (
|
| 758 |
-
<div className="mt-6 animate-fade-up">
|
| 759 |
-
<div
|
| 760 |
-
className={`grid gap-4 ${
|
| 761 |
-
images.length > 1 ? "grid-cols-1 sm:grid-cols-3" : "grid-cols-1"
|
| 762 |
-
}`}
|
| 763 |
-
>
|
| 764 |
-
{images.map((img, i) => (
|
| 765 |
-
<div
|
| 766 |
-
key={i}
|
| 767 |
-
onClick={() => {
|
| 768 |
-
setActiveIdx(i);
|
| 769 |
-
setZoom(1);
|
| 770 |
-
}}
|
| 771 |
-
className={`group relative cursor-pointer overflow-hidden rounded-[1.8rem] border p-1.5 transition-all duration-300 ${
|
| 772 |
-
i === activeIdx
|
| 773 |
-
? "border-sky-400/70 bg-sky-400/10 shadow-[0_0_30px_rgba(56,189,248,0.25)]"
|
| 774 |
-
: "border-white/10 bg-white/[0.03] hover:border-white/25"
|
| 775 |
-
}`}
|
| 776 |
-
>
|
| 777 |
-
<div className="flex items-center justify-center overflow-hidden rounded-[1.4rem] bg-slate-950/60">
|
| 778 |
-
<img
|
| 779 |
-
src={toDataUrl(img)}
|
| 780 |
-
alt={img.model}
|
| 781 |
-
className="h-auto max-h-[420px] w-full object-contain transition-transform duration-500 ease-out"
|
| 782 |
-
style={{ transform: i === activeIdx ? `scale(${zoom})` : "scale(1)" }}
|
| 783 |
-
/>
|
| 784 |
-
</div>
|
| 785 |
-
<div className="mt-1.5 flex items-center justify-between px-2 pb-1">
|
| 786 |
-
<span className="truncate text-[11px] font-semibold text-slate-300">{img.model}</span>
|
| 787 |
-
{i === activeIdx && (
|
| 788 |
-
<span className="flex items-center gap-1 rounded-full bg-sky-400/20 px-2 py-0.5 text-[9px] font-bold tracking-wide text-sky-300 uppercase">
|
| 789 |
-
<Check className="h-2.5 w-2.5" /> Aktiv
|
| 790 |
-
</span>
|
| 791 |
-
)}
|
| 792 |
-
</div>
|
| 793 |
-
</div>
|
| 794 |
-
))}
|
| 795 |
-
</div>
|
| 796 |
-
{images.length > 1 && (
|
| 797 |
-
<p className="mt-2 text-center text-[11px] text-slate-500">
|
| 798 |
-
Klicke auf ein Design, um es auszuwählen — Download & Tools wirken auf das aktive Design.
|
| 799 |
-
</p>
|
| 800 |
-
)}
|
| 801 |
-
<p className="mt-3 text-center text-xs text-slate-500">
|
| 802 |
-
Tipp: Perfekt für <span className="font-semibold text-slate-300">Printify</span> — lade dein Design
|
| 803 |
-
herunter und drucke es auf Shirts, Hoodies & mehr.
|
| 804 |
-
</p>
|
| 805 |
-
</div>
|
| 806 |
-
)}
|
| 807 |
-
|
| 808 |
-
{/* Leerer Zustand */}
|
| 809 |
-
{images.length === 0 && !loading && (
|
| 810 |
-
<div className="mt-8 flex flex-col items-center gap-3 rounded-[1.8rem] border border-dashed border-white/10 bg-white/[0.02] px-6 py-10 text-center">
|
| 811 |
-
<div className="text-4xl opacity-40">🖼️</div>
|
| 812 |
-
<p className="max-w-sm text-sm text-slate-400">
|
| 813 |
-
Dein Design erscheint hier. Wähle einen Modus, tippe einen Prompt und drücke
|
| 814 |
-
„Design generieren".
|
| 815 |
-
</p>
|
| 816 |
-
</div>
|
| 817 |
-
)}
|
| 818 |
-
</div>
|
| 819 |
-
|
| 820 |
-
{/* ===== Dock ===== */}
|
| 821 |
-
{activeImage && (
|
| 822 |
-
<div className="fixed bottom-6 left-1/2 z-20 -translate-x-1/2 animate-fade-up">
|
| 823 |
-
<Dock items={dockItems} onSelect={handleTool} />
|
| 824 |
-
</div>
|
| 825 |
-
)}
|
| 826 |
-
|
| 827 |
-
{/* ===== Liquid-Loader-Overlay ===== */}
|
| 828 |
-
{(loading || busyTool) && (
|
| 829 |
-
<div className="fixed inset-0 z-50 flex flex-col items-center justify-center bg-slate-950/80 backdrop-blur-md">
|
| 830 |
-
<div className="glass animate-fade-up rounded-[2.5rem] px-10 py-8">
|
| 831 |
-
<LiquidLoading />
|
| 832 |
-
<p className="mt-2 text-center font-display text-lg font-semibold text-white">{status}</p>
|
| 833 |
-
<p className="mt-1 text-center text-xs text-slate-400">
|
| 834 |
-
{busyTool === "bg" || busyTool === "crop"
|
| 835 |
-
? "Läuft direkt in deinem Browser — keine Warteschlange, keine Kosten"
|
| 836 |
-
: mode === "triple"
|
| 837 |
-
? "3 Modelle parallel · Job läuft im Hintergrund weiter"
|
| 838 |
-
: queuePos != null
|
| 839 |
-
? `Warteschlange: Position ${queuePos} · Job läuft im Hintergrund weiter`
|
| 840 |
-
: "Job läuft im Hintergrund weiter — du kannst die Seite offen lassen"}
|
| 841 |
-
</p>
|
| 842 |
-
</div>
|
| 843 |
-
</div>
|
| 844 |
-
)}
|
| 845 |
-
</div>
|
| 846 |
-
);
|
| 847 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
postcss.config.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
export default {
|
| 2 |
-
plugins: {
|
| 3 |
-
tailwindcss: {},
|
| 4 |
-
autoprefixer: {},
|
| 5 |
-
},
|
| 6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/favicon.svg
DELETED
public/icon-maskable.svg
DELETED
public/manifest.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"name": "DRIP-CREATOR",
|
| 3 |
-
"short_name": "Drip",
|
| 4 |
-
"description": "KI-Design-Studio für Print-on-Demand — generieren, bearbeiten, drucken.",
|
| 5 |
-
"id": "/",
|
| 6 |
-
"start_url": "/",
|
| 7 |
-
"scope": "/",
|
| 8 |
-
"display": "standalone",
|
| 9 |
-
"orientation": "portrait-primary",
|
| 10 |
-
"background_color": "#020617",
|
| 11 |
-
"theme_color": "#0ea5e9",
|
| 12 |
-
"categories": ["graphics", "productivity", "design"],
|
| 13 |
-
"icons": [
|
| 14 |
-
{
|
| 15 |
-
"src": "/favicon.svg",
|
| 16 |
-
"sizes": "any",
|
| 17 |
-
"type": "image/svg+xml",
|
| 18 |
-
"purpose": "any"
|
| 19 |
-
},
|
| 20 |
-
{
|
| 21 |
-
"src": "/icon-maskable.svg",
|
| 22 |
-
"sizes": "any",
|
| 23 |
-
"type": "image/svg+xml",
|
| 24 |
-
"purpose": "maskable"
|
| 25 |
-
}
|
| 26 |
-
]
|
| 27 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/sw.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
| 1 |
-
/* ============================================================
|
| 2 |
-
* DRIP-CREATOR Service Worker (konservativ)
|
| 3 |
-
* - Shell + statische Assets: cache-first
|
| 4 |
-
* - Seiten: network-first mit Cache-Fallback
|
| 5 |
-
* - /api/* wird NIE gecacht (Jobs sind serverseitig)
|
| 6 |
-
* ============================================================ */
|
| 7 |
-
|
| 8 |
-
const CACHE = "drip-shell-v1";
|
| 9 |
-
const SHELL = ["/", "/gallery", "/manifest.json", "/favicon.svg", "/icon-maskable.svg"];
|
| 10 |
-
|
| 11 |
-
self.addEventListener("install", (event) => {
|
| 12 |
-
event.waitUntil(
|
| 13 |
-
caches
|
| 14 |
-
.open(CACHE)
|
| 15 |
-
.then((cache) => cache.addAll(SHELL))
|
| 16 |
-
.then(() => self.skipWaiting())
|
| 17 |
-
);
|
| 18 |
-
});
|
| 19 |
-
|
| 20 |
-
self.addEventListener("activate", (event) => {
|
| 21 |
-
event.waitUntil(
|
| 22 |
-
caches
|
| 23 |
-
.keys()
|
| 24 |
-
.then((keys) => Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k))))
|
| 25 |
-
.then(() => self.clients.claim())
|
| 26 |
-
);
|
| 27 |
-
});
|
| 28 |
-
|
| 29 |
-
self.addEventListener("fetch", (event) => {
|
| 30 |
-
const { request } = event;
|
| 31 |
-
if (request.method !== "GET") return;
|
| 32 |
-
|
| 33 |
-
const url = new URL(request.url);
|
| 34 |
-
|
| 35 |
-
// API und Cross-Origin niemals cachen
|
| 36 |
-
if (url.origin !== self.location.origin) return;
|
| 37 |
-
if (url.pathname.startsWith("/api/")) return;
|
| 38 |
-
|
| 39 |
-
// Statische Assets: cache-first (immutable Hash-URLs)
|
| 40 |
-
if (url.pathname.startsWith("/_next/static/") || url.pathname === "/favicon.svg" || url.pathname === "/icon-maskable.svg") {
|
| 41 |
-
event.respondWith(
|
| 42 |
-
caches.match(request).then(
|
| 43 |
-
(hit) =>
|
| 44 |
-
hit ||
|
| 45 |
-
fetch(request).then((resp) => {
|
| 46 |
-
const copy = resp.clone();
|
| 47 |
-
caches.open(CACHE).then((cache) => cache.put(request, copy));
|
| 48 |
-
return resp;
|
| 49 |
-
})
|
| 50 |
-
)
|
| 51 |
-
);
|
| 52 |
-
return;
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
// Seiten/Navigations-Requests: network-first, Fallback Cache, dann "/"
|
| 56 |
-
event.respondWith(
|
| 57 |
-
fetch(request)
|
| 58 |
-
.then((resp) => {
|
| 59 |
-
const copy = resp.clone();
|
| 60 |
-
caches.open(CACHE).then((cache) => cache.put(request, copy));
|
| 61 |
-
return resp;
|
| 62 |
-
})
|
| 63 |
-
.catch(() => caches.match(request).then((hit) => hit || caches.match("/")))
|
| 64 |
-
);
|
| 65 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
accelerate
|
| 2 |
+
diffusers
|
| 3 |
+
invisible_watermark
|
| 4 |
+
torch
|
| 5 |
+
transformers
|
| 6 |
+
xformers
|
styles/globals.css
DELETED
|
@@ -1,114 +0,0 @@
|
|
| 1 |
-
@tailwind base;
|
| 2 |
-
@tailwind components;
|
| 3 |
-
@tailwind utilities;
|
| 4 |
-
|
| 5 |
-
@layer base {
|
| 6 |
-
:root {
|
| 7 |
-
--background: 240 33% 6%;
|
| 8 |
-
--foreground: 226 100% 95%;
|
| 9 |
-
--card: 240 30% 9%;
|
| 10 |
-
--card-foreground: 226 100% 95%;
|
| 11 |
-
--popover: 240 30% 9%;
|
| 12 |
-
--popover-foreground: 226 100% 95%;
|
| 13 |
-
--primary: 199 95% 60%;
|
| 14 |
-
--primary-foreground: 240 33% 6%;
|
| 15 |
-
--secondary: 271 91% 65%;
|
| 16 |
-
--secondary-foreground: 226 100% 95%;
|
| 17 |
-
--muted: 240 20% 14%;
|
| 18 |
-
--muted-foreground: 228 18% 65%;
|
| 19 |
-
--accent: 271 91% 65%;
|
| 20 |
-
--accent-foreground: 226 100% 95%;
|
| 21 |
-
--destructive: 0 84% 60%;
|
| 22 |
-
--destructive-foreground: 210 40% 98%;
|
| 23 |
-
--border: 240 18% 16%;
|
| 24 |
-
--input: 240 18% 16%;
|
| 25 |
-
--ring: 199 95% 60%;
|
| 26 |
-
--radius: 1.25rem;
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
* {
|
| 30 |
-
@apply border-border;
|
| 31 |
-
}
|
| 32 |
-
|
| 33 |
-
html {
|
| 34 |
-
scroll-behavior: smooth;
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
body {
|
| 38 |
-
@apply bg-background text-foreground antialiased;
|
| 39 |
-
font-feature-settings: "ss01", "ss02", "cv01";
|
| 40 |
-
}
|
| 41 |
-
|
| 42 |
-
::selection {
|
| 43 |
-
background: hsl(var(--secondary) / 0.4);
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
/* Weiche, glühende Scrollbar */
|
| 47 |
-
::-webkit-scrollbar {
|
| 48 |
-
width: 10px;
|
| 49 |
-
}
|
| 50 |
-
::-webkit-scrollbar-track {
|
| 51 |
-
background: hsl(var(--background));
|
| 52 |
-
}
|
| 53 |
-
::-webkit-scrollbar-thumb {
|
| 54 |
-
background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--secondary)));
|
| 55 |
-
border-radius: 999px;
|
| 56 |
-
border: 2px solid hsl(var(--background));
|
| 57 |
-
}
|
| 58 |
-
}
|
| 59 |
-
|
| 60 |
-
@layer utilities {
|
| 61 |
-
.text-gradient {
|
| 62 |
-
background: linear-gradient(120deg, #38bdf8 0%, #a855f7 55%, #f472b6 100%);
|
| 63 |
-
-webkit-background-clip: text;
|
| 64 |
-
-webkit-text-fill-color: transparent;
|
| 65 |
-
background-clip: text;
|
| 66 |
-
}
|
| 67 |
-
|
| 68 |
-
.glass {
|
| 69 |
-
background: linear-gradient(
|
| 70 |
-
160deg,
|
| 71 |
-
hsl(var(--card) / 0.75),
|
| 72 |
-
hsl(var(--card) / 0.35)
|
| 73 |
-
);
|
| 74 |
-
backdrop-filter: blur(18px);
|
| 75 |
-
-webkit-backdrop-filter: blur(18px);
|
| 76 |
-
border: 1px solid hsl(var(--border) / 0.8);
|
| 77 |
-
}
|
| 78 |
-
|
| 79 |
-
.glow-ring {
|
| 80 |
-
box-shadow:
|
| 81 |
-
0 0 0 1px hsl(var(--border) / 0.6),
|
| 82 |
-
0 20px 60px -20px hsl(199 95% 60% / 0.35),
|
| 83 |
-
0 20px 60px -30px hsl(271 91% 65% / 0.4);
|
| 84 |
-
}
|
| 85 |
-
|
| 86 |
-
.animate-float {
|
| 87 |
-
animation: float 7s ease-in-out infinite;
|
| 88 |
-
}
|
| 89 |
-
|
| 90 |
-
.animate-fade-up {
|
| 91 |
-
animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
@keyframes float {
|
| 95 |
-
0%,
|
| 96 |
-
100% {
|
| 97 |
-
transform: translateY(0);
|
| 98 |
-
}
|
| 99 |
-
50% {
|
| 100 |
-
transform: translateY(-14px);
|
| 101 |
-
}
|
| 102 |
-
}
|
| 103 |
-
|
| 104 |
-
@keyframes fadeUp {
|
| 105 |
-
from {
|
| 106 |
-
opacity: 0;
|
| 107 |
-
transform: translateY(18px) scale(0.98);
|
| 108 |
-
}
|
| 109 |
-
to {
|
| 110 |
-
opacity: 1;
|
| 111 |
-
transform: translateY(0) scale(1);
|
| 112 |
-
}
|
| 113 |
-
}
|
| 114 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tailwind.config.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
| 1 |
-
import type { Config } from "tailwindcss";
|
| 2 |
-
|
| 3 |
-
const config: Config = {
|
| 4 |
-
darkMode: ["class"],
|
| 5 |
-
content: [
|
| 6 |
-
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
| 7 |
-
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
| 8 |
-
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
| 9 |
-
],
|
| 10 |
-
theme: {
|
| 11 |
-
container: {
|
| 12 |
-
center: true,
|
| 13 |
-
padding: "2rem",
|
| 14 |
-
screens: {
|
| 15 |
-
"2xl": "1400px",
|
| 16 |
-
},
|
| 17 |
-
},
|
| 18 |
-
extend: {
|
| 19 |
-
colors: {
|
| 20 |
-
border: "hsl(var(--border))",
|
| 21 |
-
input: "hsl(var(--input))",
|
| 22 |
-
ring: "hsl(var(--ring))",
|
| 23 |
-
background: "hsl(var(--background))",
|
| 24 |
-
foreground: "hsl(var(--foreground))",
|
| 25 |
-
primary: {
|
| 26 |
-
DEFAULT: "hsl(var(--primary))",
|
| 27 |
-
foreground: "hsl(var(--primary-foreground))",
|
| 28 |
-
},
|
| 29 |
-
secondary: {
|
| 30 |
-
DEFAULT: "hsl(var(--secondary))",
|
| 31 |
-
foreground: "hsl(var(--secondary-foreground))",
|
| 32 |
-
},
|
| 33 |
-
destructive: {
|
| 34 |
-
DEFAULT: "hsl(var(--destructive))",
|
| 35 |
-
foreground: "hsl(var(--destructive-foreground))",
|
| 36 |
-
},
|
| 37 |
-
muted: {
|
| 38 |
-
DEFAULT: "hsl(var(--muted))",
|
| 39 |
-
foreground: "hsl(var(--muted-foreground))",
|
| 40 |
-
},
|
| 41 |
-
accent: {
|
| 42 |
-
DEFAULT: "hsl(var(--accent))",
|
| 43 |
-
foreground: "hsl(var(--accent-foreground))",
|
| 44 |
-
},
|
| 45 |
-
popover: {
|
| 46 |
-
DEFAULT: "hsl(var(--popover))",
|
| 47 |
-
foreground: "hsl(var(--popover-foreground))",
|
| 48 |
-
},
|
| 49 |
-
card: {
|
| 50 |
-
DEFAULT: "hsl(var(--card))",
|
| 51 |
-
foreground: "hsl(var(--card-foreground))",
|
| 52 |
-
},
|
| 53 |
-
},
|
| 54 |
-
borderRadius: {
|
| 55 |
-
lg: "var(--radius)",
|
| 56 |
-
md: "calc(var(--radius) - 4px)",
|
| 57 |
-
sm: "calc(var(--radius) - 8px)",
|
| 58 |
-
},
|
| 59 |
-
keyframes: {
|
| 60 |
-
"accordion-down": {
|
| 61 |
-
from: { height: "0" },
|
| 62 |
-
to: { height: "var(--radix-accordion-content-height)" },
|
| 63 |
-
},
|
| 64 |
-
"accordion-up": {
|
| 65 |
-
from: { height: "var(--radix-accordion-content-height)" },
|
| 66 |
-
to: { height: "0" },
|
| 67 |
-
},
|
| 68 |
-
"pulse-glow": {
|
| 69 |
-
"0%, 100%": { opacity: "0.6" },
|
| 70 |
-
"50%": { opacity: "1" },
|
| 71 |
-
},
|
| 72 |
-
},
|
| 73 |
-
animation: {
|
| 74 |
-
"accordion-down": "accordion-down 0.2s ease-out",
|
| 75 |
-
"accordion-up": "accordion-up 0.2s ease-out",
|
| 76 |
-
"pulse-glow": "pulse-glow 2.4s ease-in-out infinite",
|
| 77 |
-
},
|
| 78 |
-
fontFamily: {
|
| 79 |
-
display: ["var(--font-display)", "system-ui", "sans-serif"],
|
| 80 |
-
body: ["var(--font-body)", "system-ui", "sans-serif"],
|
| 81 |
-
},
|
| 82 |
-
},
|
| 83 |
-
},
|
| 84 |
-
plugins: [require("tailwindcss-animate")],
|
| 85 |
-
};
|
| 86 |
-
|
| 87 |
-
export default config;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tsconfig.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"compilerOptions": {
|
| 3 |
-
"target": "ES2020",
|
| 4 |
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
| 5 |
-
"jsx": "preserve",
|
| 6 |
-
"module": "ESNext",
|
| 7 |
-
"moduleResolution": "bundler",
|
| 8 |
-
"resolveJsonModule": true,
|
| 9 |
-
"allowJs": true,
|
| 10 |
-
"strict": true,
|
| 11 |
-
"noEmit": true,
|
| 12 |
-
"esModuleInterop": true,
|
| 13 |
-
"skipLibCheck": true,
|
| 14 |
-
"forceConsistentCasingInFileNames": true,
|
| 15 |
-
"isolatedModules": true,
|
| 16 |
-
"incremental": true,
|
| 17 |
-
"plugins": [
|
| 18 |
-
{
|
| 19 |
-
"name": "next"
|
| 20 |
-
}
|
| 21 |
-
],
|
| 22 |
-
"paths": {
|
| 23 |
-
"@/*": ["./*"]
|
| 24 |
-
}
|
| 25 |
-
},
|
| 26 |
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
| 27 |
-
"exclude": ["node_modules"]
|
| 28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|