Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>FlexGen Studio - MyBatis Flex 代码生成器</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> | |
| </head> | |
| <body class="min-h-screen bg-gray-900"> | |
| <custom-navbar></custom-navbar> | |
| <!-- Hero Section --> | |
| <section id="hero" class="relative min-h-screen flex items-center justify-center overflow-hidden bg-gradient-to-br from-gray-900 via-blue-900 to-gray-900"> | |
| <div class="absolute inset-0 z-0 opacity-20"> | |
| <div class="absolute top-1/4 left-1/4 w-64 h-64 bg-blue-500 rounded-full filter blur-3xl"></div> | |
| <div class="absolute bottom-1/4 right-1/4 w-64 h-64 bg-purple-500 rounded-full filter blur-3xl"></div> | |
| </div> | |
| <div class="relative z-10 max-w-6xl mx-auto px-4 text-center"> | |
| <h1 class="text-5xl md:text-7xl font-bold text-white mb-6"> | |
| FlexGen Studio | |
| </h1> | |
| <p class="text-xl md:text-2xl text-gray-300 mb-8"> | |
| 轻松生成 MyBatis Flex 代码 🎯 | |
| </p> | |
| <div class="flex flex-col sm:flex-row gap-4 justify-center"> | |
| <a href="#generator" class="bg-blue-600 hover:bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-300 transform hover:scale-105 shadow-lg"> | |
| 开始生成 | |
| </a> | |
| <a href="#features" class="border-2 border-white text-white hover:bg-white hover:text-gray-900 px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-300"> | |
| 了解更多 | |
| </a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features Section --> | |
| <section id="features" class="py-20 bg-gray-900"> | |
| <div class="max-w-6xl mx-auto px-4"> | |
| <h2 class="text-4xl font-bold text-center text-white mb-16">为什么选择 FlexGen Studio?</h2> | |
| <div class="grid md:grid-cols-3 gap-8"> | |
| <div class="text-center p-6 bg-gray-800 rounded-2xl hover:bg-gray-700 transition-all duration-300"> | |
| <div class="w-16 h-16 bg-blue-900 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i data-feather="zap" class="text-blue-400"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-4 text-white">闪电般快速</h3> | |
| <p class="text-gray-400">使用智能模板,在几秒钟内生成优化的 MyBatis Flex 代码。</p> | |
| </div> | |
| <div class="text-center p-6 bg-gray-800 rounded-2xl hover:bg-gray-700 transition-all duration-300"> | |
| <div class="w-16 h-16 bg-green-900 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i data-feather="code" class="text-green-400"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-4 text-white">简洁代码</h3> | |
| <p class="text-gray-400">生产就绪、结构良好的代码,遵循最佳实践和约定。</p> | |
| </div> | |
| <div class="text-center p-6 bg-gray-800 rounded-2xl hover:bg-gray-700 transition-all duration-300"> | |
| <div class="w-16 h-16 bg-purple-900 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i data-feather="settings" class="text-purple-400"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-4 text-white">高度可定制</h3> | |
| <p class="text-gray-400">根据您的特定项目需求和偏好定制生成的代码。</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Code Generator Section --> | |
| <section id="generator" class="py-20 bg-gray-800"> | |
| <div class="max-w-6xl mx-auto px-4"> | |
| <h2 class="text-4xl font-bold text-center text-white mb-16">代码生成器</h2> | |
| <div class="bg-gray-900 rounded-2xl shadow-2xl p-8 border border-gray-700"> | |
| <div class="grid lg:grid-cols-2 gap-8"> | |
| <!-- Input Section --> | |
| <div class="space-y-6"> | |
| <div> | |
| <label class="block text-sm font-medium text-white mb-2">数据库配置</label> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <input type="text" placeholder="Database URL" class="w-full px-4 py-3 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent text-white"> | |
| <input type="text" placeholder="Username" class="w-full px-4 py-3 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent text-white"> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-white mb-2">表选择</label> | |
| <select class="w-full px-4 py-3 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent text-white"> | |
| <option>选择表...</option> | |
| <option>user</option> | |
| <option>order</option> | |
| <option>product</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-white mb-2">输出配置</label> | |
| <div class="space-y-3"> | |
| <label class="flex items-center text-white"> | |
| <input type="checkbox" class="rounded border-gray-700 bg-gray-800 text-blue-500 focus:ring-blue-500"> | |
| <span class="ml-2">生成实体类</span> | |
| </label> | |
| <label class="flex items-center text-white"> | |
| <input type="checkbox" class="rounded border-gray-700 bg-gray-800 text-blue-500 focus:ring-blue-500" checked> | |
| <span class="ml-2">生成 Mapper 接口</span> | |
| </label> | |
| <label class="flex items-center text-white"> | |
| <input type="checkbox" class="rounded border-gray-700 bg-gray-800 text-blue-500 focus:ring-blue-500"> | |
| <span class="ml-2">生成 Service 类</span> | |
| </label> | |
| </div> | |
| </div> | |
| <button onclick="generateCode()" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-4 px-6 rounded-lg font-semibold text-lg transition-all duration-300 transform hover:scale-105"> | |
| 生成代码 | |
| </button> | |
| </div> | |
| <!-- Output Preview --> | |
| <div> | |
| <label class="block text-sm font-medium text-white mb-2">生成代码预览</label> | |
| <div class="bg-black rounded-lg p-4 h-96 overflow-auto border border-gray-700"> | |
| <pre id="code-output" class="text-green-400 text-sm font-mono">// Generated code will appear here...</pre> | |
| </div> | |
| <div class="mt-4 flex gap-3"> | |
| <button onclick="copyCode()" class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-3 px-4 rounded-lg font-medium transition-colors"> | |
| <i data-feather="copy" class="inline w-4 h-4 mr-2"></i> | |
| 复制代码 | |
| </button> | |
| <button onclick="downloadCode()" class="flex-1 bg-green-700 hover:bg-green-600 text-white py-3 px-4 rounded-lg font-medium transition-colors"> | |
| <i data-feather="download" class="inline w-4 h-4 mr-2"></i> | |
| 下载 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <custom-footer></custom-footer> | |
| <!-- Documentation Section --> | |
| <section id="documentation" class="py-20 bg-gray-900"> | |
| <div class="max-w-6xl mx-auto px-4"> | |
| <h2 class="text-4xl font-bold text-center text-white mb-16">MyBatis-Flex 代码生成器文档</h2> | |
| <div class="bg-gray-800 rounded-2xl p-8 border border-gray-700"> | |
| <div class="grid md:grid-cols-2 gap-8"> | |
| <div class="space-y-6"> | |
| <div class="bg-blue-900 p-6 rounded-lg border border-blue-700"> | |
| <h3 class="text-xl font-semibold mb-4 text-white">快速开始</h3> | |
| <p class="text-gray-300 mb-4">添加 mybatis-flex-codegen 的 Maven 依赖:</p> | |
| <pre class="bg-black text-green-400 p-4 rounded-lg text-sm border border-gray-700"> | |
| <dependency> | |
| <groupId>com.mybatis-flex</groupId> | |
| <artifactId>mybatis-flex-codegen</artifactId> | |
| <version>1.11.3</version> | |
| </dependency></pre> | |
| </div> | |
| <div class="bg-green-900 p-6 rounded-lg border border-green-700"> | |
| <h3 class="text-xl font-semibold mb-4 text-white">AI 代码生成功能</h3> | |
| <p class="text-gray-300 mb-4">MyBatis-Flex 提供了一个在线的 AI 代码生成器,可以通过您的产品需求描述,自动生成完整的 SpringBoot + MyBatisFlex 项目代码以及 SQL 脚本。</p> | |
| <a href="https://ai.mybatis-flex.com" target="_blank" class="inline-block bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium transition-colors"> | |
| 访问 AI 代码生成器 | |
| </a> | |
| </div> | |
| </div> | |
| <div class="space-y-6"> | |
| <div class="bg-purple-900 p-6 rounded-lg border border-purple-700"> | |
| <h3 class="text-xl font-semibold mb-4 text-white">支持生成的产物</h3> | |
| <ul class="list-disc list-inside text-gray-300 space-y-2"> | |
| <li>Entity 实体类</li> | |
| <li>Mapper 映射类</li> | |
| <li>TableDef 表定义辅助类</li> | |
| <li>Service 服务类</li> | |
| <li>ServiceImpl 服务实现类</li> | |
| <li>Controller 控制类</li> | |
| <li>MapperXml 文件</li> | |
| <li>package-info.java 文件</li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <custom-footer></custom-footer> | |
| <!-- Scripts --> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |