From e2c325505a735ea1a50af4fc46a3828008082335 Mon Sep 17 00:00:00 2001 From: huangzhenpc Date: Fri, 30 Jan 2026 01:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E5=8C=96=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=9A=E5=B0=86Sub2API=E6=9B=BF=E6=8D=A2=E4=B8=BAStarFireAPI?= =?UTF-8?q?=EF=BC=8CGitHub=E9=93=BE=E6=8E=A5=E6=94=B9=E4=B8=BA=E5=AE=98?= =?UTF-8?q?=E7=BD=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 前端界面修改: - index.html: 页面标题改为 "StarFireAPI - AI API Gateway" - 中英文语言包:所有用户可见的 "Sub2API" 改为 "StarFireAPI" - GitHub 菜单项改为"官网/Official Site" - 移除 GitHub 仓库链接,改为官网 https://anthropic.edu.pl 修改文件: - frontend/index.html - frontend/src/i18n/locales/zh.ts - frontend/src/i18n/locales/en.ts - frontend/src/components/layout/AppHeader.vue - frontend/src/views/HomeView.vue - frontend/src/views/auth/EmailVerifyView.vue - frontend/src/views/auth/RegisterView.vue Co-Authored-By: Claude Opus 4.5 --- frontend/index.html | 2 +- frontend/src/components/layout/AppHeader.vue | 8 ++------ frontend/src/i18n/locales/en.ts | 20 ++++++++++---------- frontend/src/i18n/locales/zh.ts | 20 ++++++++++---------- frontend/src/views/HomeView.vue | 10 +++++----- frontend/src/views/auth/EmailVerifyView.vue | 2 +- frontend/src/views/auth/RegisterView.vue | 2 +- 7 files changed, 30 insertions(+), 34 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 3180a5fb..ce54c687 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - Sub2API - AI API Gateway + StarFireAPI - AI API Gateway
diff --git a/frontend/src/components/layout/AppHeader.vue b/frontend/src/components/layout/AppHeader.vue index 9d2b40fb..6d19bf12 100644 --- a/frontend/src/components/layout/AppHeader.vue +++ b/frontend/src/components/layout/AppHeader.vue @@ -120,18 +120,14 @@ - + {{ t('nav.github') }} diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index dc93d37c..4c0afee3 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -1,7 +1,7 @@ export default { // Home Page home: { - viewOnGithub: 'View on GitHub', + viewOnGithub: 'View Documentation', viewDocs: 'View Documentation', docs: 'Docs', switchToLight: 'Switch to Light Mode', @@ -43,8 +43,8 @@ export default { // Setup Wizard setup: { - title: 'Sub2API Setup', - description: 'Configure your Sub2API instance', + title: 'StarFireAPI Setup', + description: 'Configure your StarFireAPI instance', database: { title: 'Database Configuration', description: 'Connect to your PostgreSQL database', @@ -204,7 +204,7 @@ export default { collapse: 'Collapse', expand: 'Expand', logout: 'Logout', - github: 'GitHub', + github: 'Official Site', mySubscriptions: 'My Subscriptions', buySubscription: 'Purchase Subscription', docs: 'Docs' @@ -2836,7 +2836,7 @@ export default { secretKeyConfiguredHint: 'Secret key configured. Leave empty to keep the current value.' }, linuxdo: { title: 'LinuxDo Connect Login', - description: 'Configure LinuxDo Connect OAuth for Sub2API end-user login', + description: 'Configure LinuxDo Connect OAuth for StarFireAPI end-user login', enable: 'Enable LinuxDo Login', enableHint: 'Show LinuxDo login on the login/register pages', clientId: 'Client ID', @@ -2866,7 +2866,7 @@ export default { title: 'Site Settings', description: 'Customize site branding', siteName: 'Site Name', - siteNamePlaceholder: 'Sub2API', + siteNamePlaceholder: 'StarFireAPI', siteNameHint: 'Displayed in emails and page titles', siteSubtitle: 'Site Subtitle', siteSubtitlePlaceholder: 'Subscription to API Conversion Platform', @@ -2925,7 +2925,7 @@ export default { fromEmail: 'From Email', fromEmailPlaceholder: "noreply{'@'}example.com", fromName: 'From Name', - fromNamePlaceholder: 'Sub2API', + fromNamePlaceholder: 'StarFireAPI', useTls: 'Use TLS', useTlsHint: 'Enable TLS encryption for SMTP connection' }, @@ -3106,7 +3106,7 @@ export default { // Admin tour steps admin: { welcome: { - title: '👋 Welcome to Sub2API', + title: '👋 Welcome to StarFireAPI', description: '

Sub2API is a powerful AI service gateway platform that helps you easily manage and distribute AI services.

🎯 Core Features:

  • 📦 Group Management - Create service tiers (VIP, Free Trial, etc.)
  • 🔗 Account Pool - Connect multiple upstream AI service accounts
  • 🔑 Key Distribution - Generate independent API Keys for users
  • 💰 Billing Control - Flexible rate and quota management

Let\'s complete the initial setup in 3 minutes →

', nextBtn: 'Start Setup 🚀', prevBtn: 'Skip' @@ -3206,8 +3206,8 @@ export default { // User tour steps user: { welcome: { - title: '👋 Welcome to Sub2API', - description: '

Hello! Welcome to the Sub2API AI service platform.

🎯 Quick Start:

  • 🔑 Create API Key
  • 📋 Copy key to your application
  • 🚀 Start using AI services

Just 1 minute, let\'s get started →

', + title: '👋 Welcome to StarFireAPI', + description: '

Hello! Welcome to the StarFireAPI AI service platform.

🎯 Quick Start:

  • 🔑 Create API Key
  • 📋 Copy key to your application
  • 🚀 Start using AI services

Just 1 minute, let\'s get started →

', nextBtn: 'Start 🚀', prevBtn: 'Skip' }, diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 4b6a9be6..bdbae4e4 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -1,7 +1,7 @@ export default { // Home Page home: { - viewOnGithub: '在 GitHub 上查看', + viewOnGithub: '查看文档', viewDocs: '查看文档', docs: '文档', switchToLight: '切换到浅色模式', @@ -40,8 +40,8 @@ export default { // Setup Wizard setup: { - title: 'Sub2API 安装向导', - description: '配置您的 Sub2API 实例', + title: 'StarFireAPI 安装向导', + description: '配置您的 StarFireAPI 实例', database: { title: '数据库配置', description: '连接到您的 PostgreSQL 数据库', @@ -201,7 +201,7 @@ export default { collapse: '收起', expand: '展开', logout: '退出登录', - github: 'GitHub', + github: '官网', mySubscriptions: '我的订阅', buySubscription: '购买订阅', docs: '文档' @@ -2989,7 +2989,7 @@ export default { secretKeyConfiguredHint: '密钥已配置,留空以保留当前值。' }, linuxdo: { title: 'LinuxDo Connect 登录', - description: '配置 LinuxDo Connect OAuth,用于 Sub2API 用户登录', + description: '配置 LinuxDo Connect OAuth,用于 StarFireAPI 用户登录', enable: '启用 LinuxDo 登录', enableHint: '在登录/注册页面显示 LinuxDo 登录入口', clientId: 'Client ID', @@ -3019,7 +3019,7 @@ export default { description: '自定义站点品牌', siteName: '站点名称', siteNameHint: '显示在邮件和页面标题中', - siteNamePlaceholder: 'Sub2API', + siteNamePlaceholder: 'StarFireAPI', siteSubtitle: '站点副标题', siteSubtitleHint: '显示在登录和注册页面', siteSubtitlePlaceholder: '订阅转 API 转换平台', @@ -3076,7 +3076,7 @@ export default { fromEmail: '发件人邮箱', fromEmailPlaceholder: "noreply{'@'}example.com", fromName: '发件人名称', - fromNamePlaceholder: 'Sub2API', + fromNamePlaceholder: 'StarFireAPI', useTls: '使用 TLS', useTlsHint: '为 SMTP 连接启用 TLS 加密' }, @@ -3254,7 +3254,7 @@ export default { // Admin tour steps admin: { welcome: { - title: '👋 欢迎使用 Sub2API', + title: '👋 欢迎使用 StarFireAPI', description: '

Sub2API 是一个强大的 AI 服务中转平台,让您轻松管理和分发 AI 服务。

🎯 核心功能:

  • 📦 分组管理 - 创建不同的服务套餐(VIP、免费试用等)
  • 🔗 账号池 - 连接多个上游 AI 服务商账号
  • 🔑 密钥分发 - 为用户生成独立的 API Key
  • 💰 计费管理 - 灵活的费率和配额控制

接下来,我们将用 3 分钟带您完成首次配置 →

', nextBtn: '开始配置 🚀', prevBtn: '跳过' @@ -3354,8 +3354,8 @@ export default { // User tour steps user: { welcome: { - title: '👋 欢迎使用 Sub2API', - description: '

您好!欢迎来到 Sub2API AI 服务平台。

🎯 快速开始:

  • 🔑 创建 API 密钥
  • 📋 复制密钥到您的应用
  • 🚀 开始使用 AI 服务

只需 1 分钟,让我们开始吧 →

', + title: '👋 欢迎使用 StarFireAPI', + description: '

您好!欢迎来到 StarFireAPI AI 服务平台。

🎯 快速开始:

  • 🔑 创建 API 密钥
  • 📋 复制密钥到您的应用
  • 🚀 开始使用 AI 服务

只需 1 分钟,让我们开始吧 →

', nextBtn: '开始 🚀', prevBtn: '跳过' }, diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue index 6a3753f1..d3a5b16d 100644 --- a/frontend/src/views/HomeView.vue +++ b/frontend/src/views/HomeView.vue @@ -391,12 +391,12 @@ {{ t('home.docs') }} - GitHub + 官网 @@ -417,7 +417,7 @@ const authStore = useAuthStore() const appStore = useAppStore() // Site settings - directly from appStore (already initialized from injected config) -const siteName = computed(() => appStore.cachedPublicSettings?.site_name || appStore.siteName || 'Sub2API') +const siteName = computed(() => appStore.cachedPublicSettings?.site_name || appStore.siteName || 'StarFireAPI') const siteLogo = computed(() => appStore.cachedPublicSettings?.site_logo || appStore.siteLogo || '') const siteSubtitle = computed(() => appStore.cachedPublicSettings?.site_subtitle || 'AI API Gateway Platform') const docUrl = computed(() => appStore.cachedPublicSettings?.doc_url || appStore.docUrl || '') @@ -432,8 +432,8 @@ const isHomeContentUrl = computed(() => { // Theme const isDark = ref(document.documentElement.classList.contains('dark')) -// GitHub URL -const githubUrl = 'https://github.com/Wei-Shaw/sub2api' +// Official Site URL +const officialUrl = 'https://anthropic.edu.pl' // Auth state const isAuthenticated = computed(() => authStore.isAuthenticated) diff --git a/frontend/src/views/auth/EmailVerifyView.vue b/frontend/src/views/auth/EmailVerifyView.vue index 3b6b45ba..bcba66aa 100644 --- a/frontend/src/views/auth/EmailVerifyView.vue +++ b/frontend/src/views/auth/EmailVerifyView.vue @@ -206,7 +206,7 @@ const hasRegisterData = ref(false) // Public settings const turnstileEnabled = ref(false) const turnstileSiteKey = ref('') -const siteName = ref('Sub2API') +const siteName = ref('StarFireAPI') // Turnstile for resend const turnstileRef = ref | null>(null) diff --git a/frontend/src/views/auth/RegisterView.vue b/frontend/src/views/auth/RegisterView.vue index e1355bbd..e5946326 100644 --- a/frontend/src/views/auth/RegisterView.vue +++ b/frontend/src/views/auth/RegisterView.vue @@ -263,7 +263,7 @@ const emailVerifyEnabled = ref(false) const promoCodeEnabled = ref(true) const turnstileEnabled = ref(false) const turnstileSiteKey = ref('') -const siteName = ref('Sub2API') +const siteName = ref('StarFireAPI') const linuxdoOAuthEnabled = ref(false) // Turnstile