From 0d572730213625e3ef89ded98664da09bab906ce Mon Sep 17 00:00:00 2001 From: mars Date: Mon, 30 Jun 2025 19:34:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E9=9B=86=E6=88=90=E5=92=8C=E7=94=A8=E6=88=B7=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增用户注册和登录系统 (login.html, register.html) - 集成Supabase数据库连接 (config.js, api.js) - 完善数据库架构设计 (database-schema.sql) - 添加部署指南和配置文档 (DEPLOYMENT_GUIDE.md) - 修复主页面结构和功能完善 (index.html) - 支持通话记录保存到数据库 - 完整的账单管理和用户认证流程 - 集成OpenAI、Twilio、Stripe等API服务 --- index.html | 180 +++++++++++++- web-app/DATABASE_SETUP.md | 146 ++++++++++++ web-app/DEPLOYMENT_GUIDE.md | 297 +++++++++++++++++++++++ web-app/api.js | 352 +++++++++++++++++++++++++++ web-app/config.js | 40 ++++ web-app/database-init.sql | 199 ++++++++++++++++ web-app/database-schema.sql | 187 +++++++++++++++ web-app/get-api-keys.md | 65 +++++ web-app/init-database.js | 102 ++++++++ web-app/login.html | 325 +++++++++++++++++++++++++ web-app/register.html | 447 +++++++++++++++++++++++++++++++++++ web-app/test-connection.html | 223 +++++++++++++++++ 12 files changed, 2559 insertions(+), 4 deletions(-) create mode 100644 web-app/DATABASE_SETUP.md create mode 100644 web-app/DEPLOYMENT_GUIDE.md create mode 100644 web-app/api.js create mode 100644 web-app/config.js create mode 100644 web-app/database-init.sql create mode 100644 web-app/database-schema.sql create mode 100644 web-app/get-api-keys.md create mode 100644 web-app/init-database.js create mode 100644 web-app/login.html create mode 100644 web-app/register.html create mode 100644 web-app/test-connection.html diff --git a/index.html b/index.html index 7189203..8364fa3 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,12 @@ 翻译服务应用 + + + + + + + + +
+ +

欢迎回来

+

登录您的翻译服务账户

+ +
+ +
+
+ + +
+ +
+ + +
+ + +
+ + 忘记密码? + +
+ 还没有账户? +
+ + 立即注册 +
+ + + + + + + + + \ No newline at end of file diff --git a/web-app/register.html b/web-app/register.html new file mode 100644 index 0000000..e948626 --- /dev/null +++ b/web-app/register.html @@ -0,0 +1,447 @@ + + + + + + 注册 - 翻译服务平台 + + + +
+ +

创建账户

+

加入我们的翻译服务平台

+ +
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ + +
+ +
+ 注册即表示您同意我们的 + 服务条款 和 + 隐私政策 +
+ +
+ 已有账户? +
+ + +
+ + + + + + + + + \ No newline at end of file diff --git a/web-app/test-connection.html b/web-app/test-connection.html new file mode 100644 index 0000000..7e59209 --- /dev/null +++ b/web-app/test-connection.html @@ -0,0 +1,223 @@ + + + + + + Supabase 连接测试 + + + +
+

🔧 Supabase 连接测试

+ +
+ 说明: 这个页面用于测试 Supabase 数据库连接是否正常。 +
+ +

当前配置

+
+ +

连接测试

+ +
正在测试连接...
+ +
+ +

数据库表检查

+ +
+ +

解决方案

+
+

如果连接失败,请按以下步骤操作:

+
    +
  1. 访问 Supabase 控制台
  2. +
  3. 进入 Settings → API
  4. +
  5. 复制 "anon public" 密钥
  6. +
  7. 更新 config.js 文件中的 ANON_KEY
  8. +
  9. 刷新页面重新测试
  10. +
+
+
+ + + + + + + + \ No newline at end of file