实现用户登录功能 — 前端示例 #2

Open
beppeb wants to merge 0 commits from dev-feature into main
Owner

本 PR 实现了 issue 中的“实现用户登录功能”的前端 PoC:

变更点:

  • 新增 login.html(登录页)
  • 新增 static/js/login.js(表单校验与本地模拟认证)
  • 新增 static/css/style.css(样式)
  • 新增 index.html(主页,检查登录状态并支持退出)
  • 更新 README.md(运行说明与示例账号)

说明:

  • 此实现为本地演示,使用内置示例账号(alice、bob、beppeb),并将模拟 token 存储在 localStorage
  • 在本地运行:在仓库根目录运行 python3 -m http.server 8000,访问 http://localhost:8000/login.html

后续建议:

  • 如需将登录接入后端,我可以把 login.js 改为请求真实 API 并处理会话/错误。
本 PR 实现了 issue 中的“实现用户登录功能”的前端 PoC: 变更点: - 新增 `login.html`(登录页) - 新增 `static/js/login.js`(表单校验与本地模拟认证) - 新增 `static/css/style.css`(样式) - 新增 `index.html`(主页,检查登录状态并支持退出) - 更新 `README.md`(运行说明与示例账号) 说明: - 此实现为本地演示,使用内置示例账号(alice、bob、beppeb),并将模拟 token 存储在 `localStorage`。 - 在本地运行:在仓库根目录运行 `python3 -m http.server 8000`,访问 `http://localhost:8000/login.html`。 后续建议: - 如需将登录接入后端,我可以把 `login.js` 改为请求真实 API 并处理会话/错误。
Some checks failed
ai-reviews / review (pull_request) Failing after 6m45s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin dev-feature:dev-feature
git checkout dev-feature
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: beppeb/demo-ai-develops#2
No description provided.