feat: add missing fields to Edit Dialog

Extend dialog to include secret, algorithm, digits, and period for full editing.

Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
v0
2026-02-04 15:10:54 +00:00
parent bad93bb877
commit b0aa34da7b
17 changed files with 815 additions and 844 deletions

View File

@@ -1,59 +1,30 @@
# Frontend 2FA Tool
# Frontend 2FA tool
这是一个安全、离线优先的前端双因素认证 (2FA) 工具,基于 Next.js 构建。
*Automatically synced with your [v0.app](https://v0.app) deployments*
## 功能特性
[![Deployed on Vercel](https://img.shields.io/badge/Deployed%20on-Vercel-black?style=for-the-badge&logo=vercel)](https://vercel.com/kdaugh14-4907s-projects/v0-frontend-2-fa-tool)
[![Built with v0](https://img.shields.io/badge/Built%20with-v0.app-black?style=for-the-badge)](https://v0.app/chat/cHtdgE8H6EW)
- 🔒 **安全**: 所有数据存储在本地,不上传服务器
- 📱 **QR 扫码**: 支持直接扫描 QR 码添加令牌 (使用 jsQR)
- ⌨️ **手动录入**: 支持手动输入密钥添加
- 🌓 **深色模式**: 内置明亮/深色主题切换
- 📤 **导入/导出**: 支持令牌数据的备份与恢复
- 🌐 **多语言**: 支持国际化
## Overview
## 技术栈
This repository will stay in sync with your deployed chats on [v0.app](https://v0.app).
Any changes you make to your deployed app will be automatically pushed to this repository from [v0.app](https://v0.app).
- **框架**: Next.js 14
- **UI 组件**: Radix UI
- **样式**: Tailwind CSS
- **工具库**: jsQR, date-fns
## Deployment
## 环境变量
Your project is live at:
可以在部署时设置以下环境变量来配置页脚信息:
**[https://vercel.com/kdaugh14-4907s-projects/v0-frontend-2-fa-tool](https://vercel.com/kdaugh14-4907s-projects/v0-frontend-2-fa-tool)**
- `NEXT_PUBLIC_SHOW_FOOTER`: 是否显示页脚 (默认: true, 设置为 "false" 隐藏)
- `NEXT_PUBLIC_FILING_ICP`: ICP 备案号 (例如: 滇ICP备xxxxxxxx号)
- `NEXT_PUBLIC_FILING_SECURITY`: 公安联网备案号 (例如: 滇公网安备xxxxxxxxxxxxxx号)
## Build your app
## 声明
Continue building your app on:
本项目由阿里云ESA提供加速、计算和保护
**[https://v0.app/chat/cHtdgE8H6EW](https://v0.app/chat/cHtdgE8H6EW)**
![阿里云ESA Pages](public/images/aliyun-esa.png)
## How It Works
## 开始使用
1. 安装依赖:
```bash
pnpm install
```
2. 启动开发服务器:
```bash
pnpm dev
```
3. 访问 [http://localhost:3000](http://localhost:3000)
## 构建
```bash
pnpm build
```
## 部署
本项目可以直接部署在阿里云 ESA Pages 上。
1. Create and modify your project using [v0.app](https://v0.app)
2. Deploy your chats from the v0 interface
3. Changes are automatically pushed to this repository
4. Vercel deploys the latest version from this repository