diff --git a/.gitignore b/.gitignore index 9dbf81b3..34ea6e08 100644 --- a/.gitignore +++ b/.gitignore @@ -43,7 +43,6 @@ Thumbs.db # go workspace go.work go.work.sum -/credit main # upload diff --git a/docker/Dockerfile.frontend b/docker/Dockerfile.frontend index 5d03df01..11b32cc0 100644 --- a/docker/Dockerfile.frontend +++ b/docker/Dockerfile.frontend @@ -12,10 +12,10 @@ RUN corepack enable && corepack prepare pnpm@10.10.0 --activate FROM base AS builder ENV NODE_ENV=production -ENV NEXT_PUBLIC_LINUX_DO_CREDIT_BACKEND_URL=https://build-placeholder.invalid -ENV LINUX_DO_CREDIT_SESSION_COOKIE_NAME=__LINUX_DO_CREDIT_SESSION_COOKIE_NAME__ -ENV LINUX_DO_CREDIT_RATE_LIMIT_ENABLED=__LINUX_DO_CREDIT_RATE_LIMIT_ENABLED__ -ENV LINUX_DO_CREDIT_BACKEND_URL=https://build-placeholder-2.invalid +ENV NEXT_PUBLIC_WAVELET_BACKEND_URL=https://build-placeholder.invalid +ENV WAVELET_SESSION_COOKIE_NAME=__WAVELET_SESSION_COOKIE_NAME__ +ENV WAVELET_RATE_LIMIT_ENABLED=__WAVELET_RATE_LIMIT_ENABLED__ +ENV WAVELET_BACKEND_URL=https://build-placeholder-2.invalid ARG VERSION="" ARG BUILD_DATE="" @@ -36,8 +36,8 @@ RUN pnpm build RUN grep -rl \ -e "https://build-placeholder.invalid" \ -e "https://build-placeholder-2.invalid" \ - -e "__LINUX_DO_CREDIT_SESSION_COOKIE_NAME__" \ - -e "__LINUX_DO_CREDIT_RATE_LIMIT_ENABLED__" \ + -e "__WAVELET_SESSION_COOKIE_NAME__" \ + -e "__WAVELET_RATE_LIMIT_ENABLED__" \ /app/.next > /app/.replace.files FROM base AS runner diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index 89ad1202..5781fee2 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -196,7 +196,7 @@ server { exec_mode: 'cluster', env: { NODE_ENV: 'production', - LINUX_DO_CREDIT_BACKEND_URL: 'https://api.yourdomain.com' + WAVELET_BACKEND_URL: 'https://api.yourdomain.com' } } ] diff --git a/docs/docs.go b/docs/docs.go index fb3e3a31..04b6e2d2 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -10,8 +10,8 @@ const docTemplate = `{ "description": "{{escape .Description}}", "title": "{{.Title}}", "contact": { - "name": "LINUX DO Credit", - "url": "https://linux.do" + "name": "Wavelet", + "url": "https://github.com/Rain-kl/Wavelet" }, "license": { "name": "Apache 2.0", @@ -4399,8 +4399,8 @@ var SwaggerInfo = &swag.Spec{ Host: "", BasePath: "/", Schemes: []string{}, - Title: "LINUX DO Credit", - Description: "LINUX DO Credit 平台后端 API,提供用户认证、商户 API Key 管理、系统配置等功能。", + Title: "Wavelet API", + Description: "Wavelet 平台后端 API,提供用户认证、系统配置、任务调度等通用功能。", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", diff --git a/docs/swagger.json b/docs/swagger.json index be2a0be3..4457b72c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1,11 +1,11 @@ { "swagger": "2.0", "info": { - "description": "LINUX DO Credit 平台后端 API,提供用户认证、商户 API Key 管理、系统配置等功能。", - "title": "LINUX DO Credit", + "description": "Wavelet 平台后端 API,提供用户认证、系统配置、任务调度等通用功能。", + "title": "Wavelet API", "contact": { - "name": "LINUX DO Credit", - "url": "https://linux.do" + "name": "Wavelet", + "url": "https://github.com/Rain-kl/Wavelet" }, "license": { "name": "Apache 2.0", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 4335a4b5..102b156b 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -788,13 +788,13 @@ definitions: type: object info: contact: - name: LINUX DO Credit - url: https://linux.do - description: LINUX DO Credit 平台后端 API,提供用户认证、商户 API Key 管理、系统配置等功能。 + name: Wavelet + url: https://github.com/Rain-kl/Wavelet + description: Wavelet 平台后端 API,提供用户认证、系统配置、任务调度等通用功能。 license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html - title: LINUX DO Credit + title: Wavelet API version: 1.0.0 paths: /api/cap/challenge: diff --git a/frontend/.env.example b/frontend/.env.example index a855cd4f..1027682d 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,11 +1,11 @@ # 前端 URL -LINUX_DO_CREDIT_FRONTEND_URL=http://localhost:3000 +WAVELET_FRONTEND_URL=http://localhost:3000 # 后端 URL -LINUX_DO_CREDIT_BACKEND_URL=http://localhost:8000 +WAVELET_BACKEND_URL=http://localhost:8000 # Session Cookie -LINUX_DO_CREDIT_SESSION_COOKIE_NAME=linux_do_credit_session_id +WAVELET_SESSION_COOKIE_NAME=wavelet_session_id # 环境 NODE_ENV=production \ No newline at end of file diff --git a/frontend/README.md b/frontend/README.md index 412a6b4b..82b40cd8 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -1,6 +1,6 @@ -# Linux Do Credit Frontend +# Wavelet Frontend -Modern frontend application for the Linux Do Credit system. +Modern frontend application for the Wavelet scaffold framework. [中文](./README_zh.md) | English diff --git a/frontend/README_zh.md b/frontend/README_zh.md index 33b0b12c..a4cd846a 100644 --- a/frontend/README_zh.md +++ b/frontend/README_zh.md @@ -1,6 +1,6 @@ -# Linux Do Credit Frontend +# Wavelet Frontend -Linux Do Credit 系统的现代化前端应用。 +Wavelet 脚手架系统的现代化前端应用。 [English](./README.md) | 中文 diff --git a/frontend/app/(docs)/docs/api/page.tsx b/frontend/app/(docs)/docs/api/page.tsx index 8ba38086..3daac034 100644 --- a/frontend/app/(docs)/docs/api/page.tsx +++ b/frontend/app/(docs)/docs/api/page.tsx @@ -1,6 +1,5 @@ - -import { LegalPageLayout } from "@/components/common/docs/legal-page-layout"; -import { apiSections, DOCS_LAST_UPDATED } from "@/components/common/docs/api"; +import {LegalPageLayout} from "@/components/common/docs/legal-page-layout"; +import {apiSections, DOCS_LAST_UPDATED} from "@/components/common/docs/api"; export default function ApiDocPage() { return ( @@ -10,7 +9,7 @@ export default function ApiDocPage() { sections={apiSections} description={
- LINUX DO Credit 提供简单、强大的 API 接口,支持多种编程语言和开发环境。通过标准化的 HTTP 接口,您可以轻松将积分服务集成到您的应用中。 + Wavelet 提供简单、强大的 API 接口,支持多种编程语言和开发环境。通过标准化的 RESTful 接口,您可以轻松地与后端服务进行集成与二次开发。
} /> diff --git a/frontend/app/(docs)/docs/how-to-use/page.tsx b/frontend/app/(docs)/docs/how-to-use/page.tsx index 0724d257..27e87ba5 100644 --- a/frontend/app/(docs)/docs/how-to-use/page.tsx +++ b/frontend/app/(docs)/docs/how-to-use/page.tsx @@ -1,7 +1,6 @@ - -import { LegalPageLayout } from "@/components/common/docs/legal-page-layout"; -import { howToUseSections } from "@/components/common/docs/how-to-use"; -import { DOCS_LAST_UPDATED } from "@/components/common/docs/api"; +import {LegalPageLayout} from "@/components/common/docs/legal-page-layout"; +import {howToUseSections} from "@/components/common/docs/how-to-use"; +import {DOCS_LAST_UPDATED} from "@/components/common/docs/api"; export default function HowToUsePage() { return ( @@ -11,7 +10,7 @@ export default function HowToUsePage() { sections={howToUseSections} description={- 欢迎使用 LINUX DO Credit。本文档将引导您快速了解平台的核心功能、角色定义及使用流程,帮助您更好地使用我们的服务。 + 欢迎使用 Wavelet 脚手架系统。本文档将引导您快速了解平台的核心组件、角色权限设计及二次开发流程,帮助您快速上手开发。
} /> diff --git a/frontend/app/(main)/components/page.tsx b/frontend/app/(main)/components/page.tsx index 56ad7f4f..a9a36b90 100644 --- a/frontend/app/(main)/components/page.tsx +++ b/frontend/app/(main)/components/page.tsx @@ -1,40 +1,16 @@ "use client" import * as React from "react" -import { useState, useMemo } from "react" -import { motion, AnimatePresence } from "motion/react" -import { - Card, - CardContent, - CardHeader, - CardTitle, - CardDescription -} from "@/components/ui/card" -import { Badge } from "@/components/ui/badge" -import { Button } from "@/components/ui/button" -import { Progress } from "@/components/ui/progress" -import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs" -import { - Coins, - Gift, - Layers, - Shield, - Info, - ArrowRight, - Activity, - User, - Code2, - Copy, - Check -} from "lucide-react" -import { - Area, - AreaChart, - XAxis, - ResponsiveContainer, - Tooltip as RechartsTooltip -} from "recharts" -import { toast } from "sonner" +import {useMemo, useState} from "react" +import {AnimatePresence, motion} from "motion/react" +import {Card, CardContent, CardDescription, CardHeader, CardTitle} from "@/components/ui/card" +import {Badge} from "@/components/ui/badge" +import {Button} from "@/components/ui/button" +import {Progress} from "@/components/ui/progress" +import {Tabs, TabsContent, TabsList, TabsTrigger} from "@/components/ui/tabs" +import {Activity, ArrowRight, Check, Code2, Coins, Copy, Gift, Info, Layers, Shield, User} from "lucide-react" +import {Area, AreaChart, ResponsiveContainer, Tooltip as RechartsTooltip, XAxis} from "recharts" +import {toast} from "sonner" // ========================================== // 1. 卡片类组件 (Cards) @@ -650,7 +626,7 @@ export function MockTradeTabs() {