mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 09:06:36 +08:00
裁剪
swagger 移除 merchant swagger 改造首页内容为通用后台管理系统定位 - 修改首页标题从 'LINUX DO Credit' 改为 'Modern Platform' - 更新副标题为 '为二次开发而生' - 更新首页描述为通用平台的特点 - 更新首页特性标签为 '开箱即用、高度可扩展、工业级基建' - 修改展示卡片为技术栈和二次开发相关 - 更新开发者示例代码为通用的注册和 API Key 获取示例 - 更新页脚品牌名为 'Modern Platform' - 调整页脚导航链接为通用平台相关内容 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 去除遗留 裁剪 移除 /api/v1/user/pay-key 相关代码 - 删除后端 UpdatePayKey 处理器函数和 UpdatePayKeyRequest 结构体 - 删除 User 模型中的 PayKey 字段 - 删除 User.VerifyPayKey 方法 - 删除 EncryptPayKeyFailed 错误常量 - 删除 /api/v1/user/pay-key PUT 路由 - 删除 OAuth 返回中的 IsPayKey 字段 - 删除前端 UserService.updatePayKey 方法 - 删除前端所有支付密钥 UI 和逻辑 - 更新相关的导出和注释 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 去除遗留 api 修正 系统配置 前端裁剪 后端裁剪 init
This commit is contained in:
@@ -15,11 +15,14 @@ export interface DeveloperSectionProps {
|
||||
export const DeveloperSection = React.memo(function DeveloperSection({ className }: DeveloperSectionProps) {
|
||||
const [copied, setCopied] = React.useState(false);
|
||||
|
||||
const codeContent = `curl https://credit.linux.do/epay/submit.php \\
|
||||
-u sk_live_...: \\
|
||||
-d amount=1000 \\
|
||||
-d currency="cny" \\
|
||||
-d description="Pro Plan"`;
|
||||
const codeContent = `# 注册用户
|
||||
curl -X POST https://api.example.com/api/v1/auth/register \\
|
||||
-H "Content-Type: application/json" \\
|
||||
-d '{
|
||||
"username": "developer",
|
||||
"email": "dev@example.com",
|
||||
"password": "secure_password"
|
||||
}'`;
|
||||
|
||||
const onCopy = async () => {
|
||||
try {
|
||||
@@ -79,11 +82,10 @@ export const DeveloperSection = React.memo(function DeveloperSection({ className
|
||||
</div>
|
||||
<pre className="text-xs sm:text-sm font-mono text-neutral-300 leading-relaxed whitespace-pre-wrap break-all sm:whitespace-pre sm:break-normal overflow-x-auto">
|
||||
<code className="block">
|
||||
<span className="text-purple-400">curl</span> <span className="text-green-400">https://credit.linux.do/epay/submit.php</span> \{'\n'}
|
||||
{' '}-u <span className="text-yellow-400">sk_live_...:</span> \{'\n'}
|
||||
{' '}-d <span className="text-blue-400">amount</span>=<span className="text-orange-400">1000</span> \{'\n'}
|
||||
{' '}-d <span className="text-blue-400">currency</span>=<span className="text-green-400">"cny"</span> \{'\n'}
|
||||
{' '}-d <span className="text-blue-400">description</span>=<span className="text-green-400">"Pro Plan"</span>
|
||||
<span className="text-green-400"># 快速开始</span>{'\n'}
|
||||
<span className="text-purple-400">curl</span> -X <span className="text-yellow-400">POST</span> <span className="text-green-400">https://api.example.com/api/v1/auth/register</span> \{'\n'}
|
||||
{' '}-H <span className="text-blue-400">"Content-Type: application/json"</span> \{'\n'}
|
||||
{' '}-d <span className="text-orange-400">"username=dev&password=***"</span>
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
||||
@@ -100,19 +102,19 @@ export const DeveloperSection = React.memo(function DeveloperSection({ className
|
||||
transition={{ duration: 0.8 }}
|
||||
>
|
||||
<h2 className="text-3xl md:text-5xl font-bold tracking-tight text-foreground leading-[1.1] mb-6">
|
||||
简单直接,<br />
|
||||
开发者快速集成
|
||||
开发者友好,<br />
|
||||
极速集成上手
|
||||
</h2>
|
||||
<p className="text-muted-foreground text-lg leading-relaxed mb-8">
|
||||
标准化的 RESTful API 接口,清晰的错误提示,完善的调试工具。无论您使用什么编程语言,只需几行代码,即可完成积分服务功能接入。
|
||||
标准化的 RESTful API 接口,完整的 TypeScript 类型定义,详细的文档和 Swagger UI。无论使用什么编程语言,只需几行代码,即可快速集成。
|
||||
</p>
|
||||
|
||||
<ul className="space-y-4 mb-8">
|
||||
{[
|
||||
"RESTful API 接口,语义清晰",
|
||||
"完善的 Webhook 回调通知",
|
||||
"简单调试,开发测试零成本",
|
||||
"完善的文档和示例代码"
|
||||
"RESTful API,语义清晰,易于理解",
|
||||
"OpenAPI / Swagger 接口文档",
|
||||
"TypeScript 类型定义,开发友好",
|
||||
"丰富的代码示例和集成指南"
|
||||
].map((item, i) => (
|
||||
<li key={i} className="flex items-center gap-3 text-sm text-foreground/80">
|
||||
<div className="w-6 h-6 rounded-full bg-primary/10 flex items-center justify-center text-primary">
|
||||
@@ -130,12 +132,6 @@ export const DeveloperSection = React.memo(function DeveloperSection({ className
|
||||
API 文档
|
||||
</Button>
|
||||
</Link>
|
||||
<Link href="/merchant">
|
||||
<Button variant="default" className="rounded-full text-xs hover:bg-primary/70">
|
||||
<Key className="w-3 h-3" />
|
||||
获取 API Key
|
||||
</Button>
|
||||
</Link>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
@@ -20,12 +20,12 @@ export const FooterSection = React.memo(function FooterSection({ className }: Fo
|
||||
<div className="lg:col-span-2 space-y-6">
|
||||
<Link href="/" className="flex items-center gap-2">
|
||||
<div className="w-10 h-10 p-2 rounded bg-primary text-sm text-primary-foreground flex items-center justify-center font-bold">
|
||||
LDC
|
||||
MP
|
||||
</div>
|
||||
<span className="text-2xl font-bold tracking-tight text-foreground">LINUX DO Credit</span>
|
||||
<span className="text-2xl font-bold tracking-tight text-foreground">Modern Platform</span>
|
||||
</Link>
|
||||
<p className="text-muted-foreground text-base leading-relaxed max-w-sm">
|
||||
专为 LINUX DO 社区打造的积分服务基础服务设施,快速集成、全球覆盖、安全可靠,致力于打造积分生态,助您轻松流通积分。
|
||||
通用的、现代化的后台管理系统脚手架。基于 Go + React 构建,开箱即用、完整基建、极易扩展。
|
||||
</p>
|
||||
<div className="flex gap-4 pt-2">
|
||||
<SocialLink icon={Github} href="https://github.com/linux-do/credit/" />
|
||||
@@ -33,35 +33,34 @@ export const FooterSection = React.memo(function FooterSection({ className }: Fo
|
||||
</div>
|
||||
|
||||
<div className="lg:col-span-1">
|
||||
<h3 className="font-semibold text-foreground mb-6">动态</h3>
|
||||
<h3 className="font-semibold text-foreground mb-6">产品</h3>
|
||||
<ul className="space-y-4 text-sm text-muted-foreground">
|
||||
<li><FooterLink href="https://github.com/linux-do/credit/commits/master/">更新日志</FooterLink></li>
|
||||
<li><FooterLink href="https://github.com/linux-do/credit/graphs/contributors">开源贡献</FooterLink></li>
|
||||
<li><FooterLink href="http://github.com/linux-do/credit/releases">发行版本</FooterLink></li>
|
||||
<li><FooterLink href="/home">仪表盘</FooterLink></li>
|
||||
<li><FooterLink href="/settings">系统设置</FooterLink></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className="lg:col-span-1">
|
||||
<h3 className="font-semibold text-foreground mb-6">资源</h3>
|
||||
<h3 className="font-semibold text-foreground mb-6">开发</h3>
|
||||
<ul className="space-y-4 text-sm text-muted-foreground">
|
||||
<li><FooterLink href="/docs/how-to-use">使用文档</FooterLink></li>
|
||||
<li><FooterLink href="/docs/how-to-use">快速开始</FooterLink></li>
|
||||
<li><FooterLink href="/docs/api">API 文档</FooterLink></li>
|
||||
<li><FooterLink href="https://linux.do/t/topic/1365853">积分脚本</FooterLink></li>
|
||||
<li><FooterLink href="https://github.com/linux-do/credit">源代码</FooterLink></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className="lg:col-span-1">
|
||||
<h3 className="font-semibold text-foreground mb-6">友链</h3>
|
||||
<h3 className="font-semibold text-foreground mb-6">社区</h3>
|
||||
<ul className="space-y-4 text-sm text-muted-foreground">
|
||||
<li><FooterLink href="https://github.com/linux-do/credit/issues">GitHub Issues</FooterLink></li>
|
||||
<li><FooterLink href="https://github.com/linux-do/credit/discussions">讨论</FooterLink></li>
|
||||
<li><FooterLink href="https://linux.do/">LINUX DO</FooterLink></li>
|
||||
<li><FooterLink href="https://wiki.linux.do/">LINUX DO Wiki</FooterLink></li>
|
||||
<li><FooterLink href="https://cdk.linux.do/">LINUX DO CDK</FooterLink></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="pt-8 border-t border-border flex flex-col md:flex-row justify-between items-center gap-4 text-sm text-muted-foreground">
|
||||
<p>© 2026 LINUX DO Credit. All rights reserved.</p>
|
||||
<p>© 2026 Modern Platform. All rights reserved.</p>
|
||||
<div className="flex gap-8">
|
||||
<Link href="/docs/privacy-policy" className="hover:text-foreground transition-colors">隐私政策</Link>
|
||||
<Link href="/docs/terms-of-service" className="hover:text-foreground transition-colors">服务条款</Link>
|
||||
@@ -72,7 +71,7 @@ export const FooterSection = React.memo(function FooterSection({ className }: Fo
|
||||
|
||||
<div className="absolute bottom-0 left-0 w-full overflow-hidden pointer-events-none opacity-[0.02]">
|
||||
<div className="text-[12vw] 2xl:text-[180px] font-black leading-none text-foreground whitespace-nowrap select-none text-center transform translate-y-1/3 transition-all duration-700">
|
||||
LINUX DO Credit
|
||||
Modern Platform
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -49,9 +49,9 @@ export const HeroSection = React.memo(function HeroSection({ className }: HeroSe
|
||||
transition={{ duration: 0.6, delay: 0.1, ease: [0.16, 1, 0.3, 1] }}
|
||||
className="text-4xl md:text-5xl lg:text-6xl font-extrabold tracking-tight leading-[1.1] mb-6 text-foreground"
|
||||
>
|
||||
LINUX DO Credit <br />
|
||||
Modern Platform <br />
|
||||
<span className="bg-clip-text text-primary">
|
||||
让积分流通更简单
|
||||
为二次开发而生
|
||||
</span>
|
||||
</motion.h1>
|
||||
|
||||
@@ -62,9 +62,9 @@ export const HeroSection = React.memo(function HeroSection({ className }: HeroSe
|
||||
transition={{ duration: 0.6, delay: 0.2, ease: [0.16, 1, 0.3, 1] }}
|
||||
className="text-sm md:text-base text-muted-foreground max-w-xl leading-relaxed mb-10"
|
||||
>
|
||||
专为 LINUX DO 社区打造的积分流通基础设施
|
||||
通用的、现代化的后台管理系统脚手架
|
||||
<br className="hidden md:block" />
|
||||
快速集成、全球覆盖、安全可靠,助您轻松流通积分。
|
||||
开箱即用、完整基建、极易扩展,助您快速构建企业级应用。
|
||||
</motion.p>
|
||||
|
||||
<motion.div
|
||||
@@ -104,15 +104,15 @@ export const HeroSection = React.memo(function HeroSection({ className }: HeroSe
|
||||
>
|
||||
<div className="flex items-center gap-2">
|
||||
<Zap className="w-5 h-5 text-yellow-500" />
|
||||
<span>极速到账</span>
|
||||
<span>开箱即用</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<Globe className="w-5 h-5 text-blue-500" />
|
||||
<span>全球覆盖</span>
|
||||
<span>高度可扩展</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<Shield className="w-5 h-5 text-green-500" />
|
||||
<span>安全加密</span>
|
||||
<span>工业级基建</span>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
@@ -131,25 +131,22 @@ export const HeroSection = React.memo(function HeroSection({ className }: HeroSe
|
||||
<div className="relative z-10 w-full h-64 bg-background/40 backdrop-blur-2xl border border-white/10 rounded-3xl shadow-2xl p-6 flex flex-col justify-between transform transition-transform hover:scale-[1.02] duration-500">
|
||||
<div className="flex gap-4 items-center">
|
||||
<CreditCard className="size-6" />
|
||||
<span>LINUX DO Credit</span>
|
||||
<span>Modern Platform</span>
|
||||
</div>
|
||||
|
||||
<div className="space-y-4">
|
||||
<div className="space-y-2">
|
||||
<div className="h-2 w-24 bg-white/10 rounded-full" />
|
||||
<div className="h-2 w-16 bg-white/10 rounded-full" />
|
||||
<div className="text-xs text-muted-foreground mb-2">Stack</div>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<span className="inline-block px-2 py-1 bg-blue-500/10 text-blue-500 rounded text-xs font-medium">Go • Gin</span>
|
||||
<span className="inline-block px-2 py-1 bg-purple-500/10 text-purple-500 rounded text-xs font-medium">React • Next.js</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex justify-between items-end">
|
||||
<div>
|
||||
<p className="text-sm text-muted-foreground mb-1">Total Balance</p>
|
||||
<div className="text-3xl font-bold tracking-tight text-foreground flex items-center gap-1">
|
||||
<span>LDC</span>
|
||||
<CountingNumber
|
||||
number={balance}
|
||||
decimalPlaces={2}
|
||||
thousandSeparator=","
|
||||
initiallyStable={true}
|
||||
/>
|
||||
<p className="text-sm text-muted-foreground mb-1">Ready for</p>
|
||||
<div className="text-lg font-bold tracking-tight text-foreground flex items-center gap-1">
|
||||
<span>Develop</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="h-8 w-8 rounded-full bg-primary" />
|
||||
@@ -163,22 +160,13 @@ export const HeroSection = React.memo(function HeroSection({ className }: HeroSe
|
||||
className="absolute -top-6 -right-6 z-20 bg-background/60 backdrop-blur-xl border border-white/20 p-4 rounded-2xl shadow-xl"
|
||||
>
|
||||
<div className="flex items-center gap-3">
|
||||
<div className={cn(
|
||||
"w-10 h-10 rounded-full flex items-center justify-center transition-colors duration-500",
|
||||
income < 0 ? "bg-red-500/20 text-red-500" : "bg-green-500/20 text-green-500"
|
||||
)}>
|
||||
<Wallet className="size-5" />
|
||||
<div className="w-10 h-10 rounded-full flex items-center justify-center bg-emerald-500/20 text-emerald-500">
|
||||
<Zap className="size-5" />
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs text-muted-foreground">Income</p>
|
||||
<div className="text-sm font-bold flex items-center gap-1">
|
||||
<span>{income < 0 ? "-" : "+"} LDC</span>
|
||||
<CountingNumber
|
||||
number={Math.abs(income)}
|
||||
decimalPlaces={2}
|
||||
thousandSeparator=","
|
||||
initiallyStable={true}
|
||||
/>
|
||||
<p className="text-xs text-muted-foreground">Features</p>
|
||||
<div className="text-sm font-bold">
|
||||
<span>Modern</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user