Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
bead69c
ui(web): 训前检测移除顶部正确错误栏,开始识记按钮显示勾选个数
17793426456 Aug 30, 2026
f133d27
chore: remove temp commit message file
17793426456 Aug 30, 2026
b926792
feat: 个人中心新增额度栏与每日签到功能
17793426456 Aug 30, 2026
5b5fe65
chore: remove temp commit message file
17793426456 Aug 30, 2026
e32b010
merge: 合并上游 upstream/main,移除自定义额度模块改用上游签到系统
17793426456 Aug 30, 2026
5a38cd5
chore: remove temp commit message file
17793426456 Aug 30, 2026
f68c6c5
refactor(web): 抗遗忘次数移至学员管理,课后弹窗改为展示具体复习日期
17793426456 Aug 30, 2026
c9abd85
chore: remove temp commit message file
17793426456 Aug 30, 2026
7da6718
style(web): 训后检测5个正确按钮改为实心色块与5个错误统一
17793426456 Aug 30, 2026
d0efcf6
chore: remove temp commit message file
17793426456 Aug 30, 2026
2eae321
feat: 九宫格开始复习改为对所有已学单词复习,对则推进格子错则不推进
17793426456 Aug 30, 2026
0c659fc
chore: remove temp commit message file
17793426456 Aug 30, 2026
8af05bb
fix(web): 单组快闪完成弹窗按钮改为训后检测
17793426456 Aug 30, 2026
b8fd3b5
chore: remove temp commit message file
17793426456 Aug 30, 2026
72ffcf0
feat(web): 训后检测新增拼写模式,单词遮罩后弹窗输入拼写
17793426456 Aug 30, 2026
b81b913
chore: remove temp commit message file
17793426456 Aug 30, 2026
72f2a31
style(web): 随心记面板整体改小,按钮和文本字号都调小
17793426456 Aug 30, 2026
0cc82c2
chore: remove temp commit message file
17793426456 Aug 30, 2026
4d6b0a3
refactor(web): 所有随心记统一为左右分屏,新增 NoteContext 统一管理
17793426456 Aug 30, 2026
3edc073
chore: remove temp commit message file
17793426456 Aug 30, 2026
2fe8e46
style(web): 随心记关闭按钮移至标题栏右上角
17793426456 Aug 30, 2026
8c4b4cd
chore: remove temp commit message file
17793426456 Aug 30, 2026
3246196
fix(web): 随心记文字工具从第一行开始直接输入,无需占位文本框
17793426456 Aug 30, 2026
39a300f
chore: remove temp commit message file
17793426456 Aug 30, 2026
70f5b8a
fix(web): 随心记文字在左上角展示,无边框,双击可编辑打字
17793426456 Aug 30, 2026
594f891
chore: remove temp commit message file
17793426456 Aug 30, 2026
2ae5185
style(web): 训后检测页面按设计稿重排布局
17793426456 Aug 30, 2026
210aa23
chore: remove temp commit message file
17793426456 Aug 30, 2026
f4ab824
Merge remote-tracking branch 'upstream/main'
17793426456 Aug 31, 2026
5fbb989
chore(web): 同步上游后更新 package-lock
17793426456 Aug 31, 2026
dda9e82
style(web): 单词 hover 高亮主题色补齐所有界面
17793426456 Aug 31, 2026
5ce5cdd
chore: remove temp commit message file
17793426456 Aug 31, 2026
1b211e5
style(web): 训后检测5个正确按钮改为绿色填充
17793426456 Aug 31, 2026
dfd9a85
fix(web): 随心记文字可双击编辑,无边框直接打字
17793426456 Aug 31, 2026
1818335
feat(web): 随心记双击画布即可创建文字并直接打字
17793426456 Aug 31, 2026
a7d6572
fix(web): 随心记文字双击画布直接打字,用 HTML overlay 替代 Leafer textEditor
17793426456 Aug 31, 2026
ad8081d
fix(web): 随心记文字编辑防止 Enter+blur 重复调用导致文字消失
17793426456 Aug 31, 2026
bbc1ccb
fix(web): 随心记文字编辑彻底修复删除问题
17793426456 Aug 31, 2026
7c2a058
fix(web): 随心记文字拖动规则和删除问题修复
17793426456 Aug 31, 2026
320baa6
fix(web): 随心记编辑文字时隐藏背后的 Leafer Text,删除立即生效
17793426456 Aug 31, 2026
55c779a
fix(web): 随心记编辑时清空背后旧文字内容,不用 visible 属性
17793426456 Aug 31, 2026
686ba02
fix(web): 修复 mergeConfig 只读属性导致的崩溃,改用 config
17793426456 Aug 31, 2026
c0af60b
style(web): 随心记关闭按钮移到面板右上角,浮动在内容之上
17793426456 Aug 31, 2026
90f5906
style(web): 随心记关闭按钮固定在标题栏最右侧
17793426456 Aug 31, 2026
f232eb4
style(web): 随心记关闭按钮贴到标题栏最右侧
17793426456 Aug 31, 2026
a3cf1aa
style(web): 随心记关闭按钮贴到标题栏最右侧
17793426456 Aug 31, 2026
846eefc
fix(web): 随心记双击新建文字默认从第一排开始写
17793426456 Aug 31, 2026
a3dfeae
fix(web): 随心记文字输入像文档一样,回车换行,不能拖动
17793426456 Aug 31, 2026
88cc816
fix(web): 随心记文字占满全宽,像 Word 文档一样自动换行
17793426456 Aug 31, 2026
52dea92
fix(web): 随心记文字占满整个画板宽度
17793426456 Aug 31, 2026
cda7eb1
fix(web): 随心记输入框占满整个画板宽度
17793426456 Aug 31, 2026
1825b04
fix(web): 随心记文字换行宽度始终跟随当前画板大小
17793426456 Aug 31, 2026
b2c5e79
fix(web): 随心记文字区域避开左侧活页环
17793426456 Aug 31, 2026
84c236d
style(web): 课后检测拼写占位改为连续主题色块
17793426456 Aug 31, 2026
a4fe682
style(web): 拼写弹窗按钮与输入框间距加大
17793426456 Aug 31, 2026
76ab961
Merge upstream/main: 合并上游最新代码,本地修改保留为主
17793426456 Aug 31, 2026
3c52364
style(web): 适配训后检测页面手机端布局
17793426456 Aug 31, 2026
9269ffc
style(web): 删除单词练习卡片中的笔记按钮,并完成手机端适配
17793426456 Aug 31, 2026
0f4773a
chore: remove commit_msg.txt
17793426456 Aug 31, 2026
d054944
fix(web): 调整单词练习标记顺序为 1,2,1,2,3,2,1,...,5,4,3,2,1
17793426456 Aug 31, 2026
1f6f944
fix(web): 标记序列最后一段降回0
17793426456 Aug 31, 2026
4a2243d
style(web): 手机端卡片模式下一按钮固定右侧
17793426456 Aug 31, 2026
c9f25e6
chore: remove commit_msg.txt
17793426456 Aug 31, 2026
ee4aa63
style(web): WordPractice 手机端下一按钮固定右下角,底部工具栏精简
17793426456 Aug 31, 2026
6d63351
style(web): 手机端前进按钮靠近底部工具栏
17793426456 Aug 31, 2026
348c101
chore: remove commit_msg.txt
17793426456 Aug 31, 2026
8cdf407
style(web): 统一所有页面内容距顶部 24px (mt-6)
17793426456 Aug 31, 2026
283d7b4
chore: remove commit_msg.txt
17793426456 Aug 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions internal/handlers/review.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ import (
"gorm.io/gorm/clause"
)

// handleReviewToday GET /review/today?wordBookId=1&date=YYYY-MM-DD&timeZone=Asia/Shanghai
// handleReviewToday GET /review/today?wordBookId=1&date=YYYY-MM-DD&timeZone=Asia/Shanghai&all=true
// 取词口径与 /review/books-by-date 对齐:今日含逾期至本地明日 0 点前;其它日仅该日 due。
// all=true 时忽略日期,返回所有已学待复习单词(不限 due_at)。
func (h *Handlers) handleReviewToday(c *gin.Context) {
db := c.MustGet(lbconstants.DbField).(*gorm.DB)
user := auth.CurrentUser(c)
Expand All @@ -33,6 +34,9 @@ func (h *Handlers) handleReviewToday(c *gin.Context) {
limit = 100
}

// all=true:返回所有已学待复习单词(不限 due_at)
allMode := c.Query("all") == "true"

tzName := c.DefaultQuery("timeZone", "Asia/Shanghai")
loc, err := time.LoadLocation(tzName)
if err != nil {
Expand Down Expand Up @@ -68,10 +72,12 @@ func (h *Handlers) handleReviewToday(c *gin.Context) {
uint(studySessionID), uint(studySessionID),
)
}
if isSelectedToday {
q = q.Where("due_at < ?", dayEnd)
} else {
q = q.Where("due_at >= ? AND due_at < ?", dayStart, dayEnd)
if !allMode {
if isSelectedToday {
q = q.Where("due_at < ?", dayEnd)
} else {
q = q.Where("due_at >= ? AND due_at < ?", dayStart, dayEnd)
}
}

var items []models.ReviewQueue
Expand Down
68 changes: 67 additions & 1 deletion web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion web/src/api/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface CompleteReviewResult {

export const getReviewToday = async (
wordBookId: number,
opts?: { date?: string; timeZone?: string; limit?: number; studySessionId?: number }
opts?: { date?: string; timeZone?: string; limit?: number; studySessionId?: number; all?: boolean }
): Promise<ApiResponse<ReviewTodayResponse>> => {
const tz = opts?.timeZone || Intl.DateTimeFormat().resolvedOptions().timeZone || 'Asia/Shanghai'
return get<ReviewTodayResponse>('/review/today', {
Expand All @@ -38,6 +38,7 @@ export const getReviewToday = async (
timeZone: tz,
...(opts?.limit ? { limit: opts.limit } : {}),
...(opts?.studySessionId ? { studySessionId: opts.studySessionId } : {}),
...(opts?.all ? { all: 'true' } : {}),
},
})
}
Expand Down
Loading
Loading