feat:公告
This commit is contained in:
15
README.md
15
README.md
@@ -1,6 +1,6 @@
|
|||||||
# 实时基金估值 (Real-time Fund Valuation)
|
# 实时基金估值 (Real-time Fund Valuation)
|
||||||
|
|
||||||
一个基于 Next.js 开发的纯前端基金估值与重仓股实时追踪工具。采用玻璃拟态设计(Glassmorphism),支持移动端适配,且无需后端服务器即可运行。
|
一个基于 Next.js 开发的纯前端基金估值与重仓股实时追踪工具。采用玻璃拟态设计(Glassmorphism),支持移动端适配。
|
||||||
预览地址:[https://hzm0321.github.io/real-time-fund/](https://hzm0321.github.io/real-time-fund/)
|
预览地址:[https://hzm0321.github.io/real-time-fund/](https://hzm0321.github.io/real-time-fund/)
|
||||||
|
|
||||||
## ✨ 特性
|
## ✨ 特性
|
||||||
@@ -56,19 +56,24 @@
|
|||||||
访问 [http://localhost:3000](http://localhost:3000) 查看效果。
|
访问 [http://localhost:3000](http://localhost:3000) 查看效果。
|
||||||
|
|
||||||
### supabase 配置说明
|
### supabase 配置说明
|
||||||
1. 邮件数量修改
|
1. NEXT_PUBLIC_SUPABASE_URL 和 NEXT_PUBLIC_SUPABASE_ANON_KEY 获取
|
||||||
|
|
||||||
|
NEXT_PUBLIC_SUPABASE_URL:supabase控制台 → Project Settings → General → Project ID
|
||||||
|
NEXT_PUBLIC_SUPABASE_ANON_KEY: supabase控制台 → Project Settings → API Keys → Publishable key
|
||||||
|
|
||||||
|
2. 邮件数量修改
|
||||||
|
|
||||||
supabase 免费项目自带每小时2条邮件服务。如果觉得额度不够,可以改成自己的邮箱SMTP。修改路径在 supabase控制台 → Authentication → Email → SMTP Settings。
|
supabase 免费项目自带每小时2条邮件服务。如果觉得额度不够,可以改成自己的邮箱SMTP。修改路径在 supabase控制台 → Authentication → Email → SMTP Settings。
|
||||||
之后可在 Rate Limits ,自由修改每小时邮件数量。
|
之后可在 Rate Limits ,自由修改每小时邮件数量。
|
||||||
|
|
||||||
2. 修改接收到的邮件为验证码
|
3. 修改接收到的邮件为验证码
|
||||||
|
|
||||||
在 supabase控制台 → Authentication → Email → Confirm sign up,选择 `{{.token}}`。
|
在 supabase控制台 → Authentication → Email → Confirm sign up,选择 `{{.token}}`。
|
||||||
|
|
||||||
3. 目前项目用到的 sql 语句,查看项目 supabase.sql 文件。
|
4. 目前项目用到的 sql 语句,查看项目 supabase.sql 文件。
|
||||||
|
|
||||||
更多 supabase 相关内容查阅官方文档。
|
更多 supabase 相关内容查阅官方文档。
|
||||||
|
|
||||||
|
|
||||||
### 构建与部署
|
### 构建与部署
|
||||||
|
|
||||||
本项目已配置 GitHub Actions。每次推送到 `main` 分支时,会自动执行构建并部署到 GitHub Pages。
|
本项目已配置 GitHub Actions。每次推送到 `main` 分支时,会自动执行构建并部署到 GitHub Pages。
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { motion, AnimatePresence } from 'framer-motion';
|
import { motion, AnimatePresence } from 'framer-motion';
|
||||||
|
|
||||||
const ANNOUNCEMENT_KEY = 'hasClosedAnnouncement_v6';
|
const ANNOUNCEMENT_KEY = 'hasClosedAnnouncement_v7';
|
||||||
|
|
||||||
export default function Announcement() {
|
export default function Announcement() {
|
||||||
const [isVisible, setIsVisible] = useState(false);
|
const [isVisible, setIsVisible] = useState(false);
|
||||||
@@ -62,16 +62,14 @@ export default function Announcement() {
|
|||||||
</svg>
|
</svg>
|
||||||
<span>公告</span>
|
<span>公告</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ color: 'var(--text)', lineHeight: '1.6', fontSize: '15px' }}>
|
<div style={{ color: 'var(--text)', lineHeight: '1.6', fontSize: '15px' }}>
|
||||||
感谢大家反馈的需求,现已增加如下功能:
|
因为节前放假因素,所以节前不会有大的功能更新调整。
|
||||||
<p>1. 邮箱账号登录,以支持同步本地数据至云端。</p>
|
综合目前大家的需求,以下功能将会在节后上线:
|
||||||
<p>2. 加减仓。</p>
|
|
||||||
<p>3. 版本更新提示。</p>
|
|
||||||
<p>4. 性能优化。</p>
|
|
||||||
以下功能会在下一个版本上线:
|
|
||||||
<p>1. 定投。</p>
|
<p>1. 定投。</p>
|
||||||
<p>2. 基金历史 K 线。</p>
|
<p>2. 自定义内容展示布局。</p>
|
||||||
|
<p>3. 基金历史曲线图。</p>
|
||||||
|
<p>4. 基金实时估值曲线。</p>
|
||||||
|
<p>5. OCR 识别截图导入基金。</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '8px' }}>
|
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '8px' }}>
|
||||||
|
|||||||
12
app/page.jsx
12
app/page.jsx
@@ -5084,18 +5084,6 @@ export default function HomePage() {
|
|||||||
|
|
||||||
<form onSubmit={handleSendOtp}>
|
<form onSubmit={handleSendOtp}>
|
||||||
<div className="form-group" style={{ marginBottom: 16 }}>
|
<div className="form-group" style={{ marginBottom: 16 }}>
|
||||||
<div style={{
|
|
||||||
marginBottom: 12,
|
|
||||||
padding: '8px 12px',
|
|
||||||
background: 'rgba(230, 162, 60, 0.1)',
|
|
||||||
border: '1px solid rgba(230, 162, 60, 0.2)',
|
|
||||||
borderRadius: '4px',
|
|
||||||
fontSize: '0.8rem',
|
|
||||||
color: '#e6a23c',
|
|
||||||
lineHeight: '1.4'
|
|
||||||
}}>
|
|
||||||
⚠️ 登录功能目前正在测试,使用过程中如遇到问题欢迎大家在 <a href="https://github.com/hzm0321/real-time-fund/issues" target="_blank" style={{ textDecoration: 'underline', color: 'inherit' }}>Github</a> 上反馈
|
|
||||||
</div>
|
|
||||||
<div className="muted" style={{ marginBottom: 8, fontSize: '0.8rem' }}>
|
<div className="muted" style={{ marginBottom: 8, fontSize: '0.8rem' }}>
|
||||||
请输入邮箱,我们将发送验证码到您的邮箱
|
请输入邮箱,我们将发送验证码到您的邮箱
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user