mirror of
https://github.com/truewhile/MeBox.git
synced 2026-11-16 20:54:23 +08:00
feat(reader): P2 收尾——冒烟 CLI、书架正文链路、替换净化规则
- SmokeChain 结构化全链路冒烟(搜索→详情→目录→正文,分阶段失败定位), SmokeSource 支持不落库直测;Debug 接口改为结构化日志输出 - cmd/reader-smoke:批量书源冒烟 CLI(-file/-url 导入、并发、 各阶段通过率汇总、-json 完整报告) - GetContentForBook:书架维度正文(章节缓存 + 书源 replaceRegex + 用户替换净化规则),前端阅读器切换到该接口 - 替换净化规则 CRUD(后端 + /reader/replace 前端页),用户规则 按 scope/excludeScope 书名过滤、正则带匹配超时防回溯挂死 - rule.ApplyUserReplace 导出(regexp2 MatchTimeout)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { Link, useNavigate } from 'react-router-dom'
|
||||
import toast from 'react-hot-toast'
|
||||
import { ArrowLeft, Bug, Download, Loader2, Play, Trash2 } from 'lucide-react'
|
||||
|
||||
@@ -102,6 +102,9 @@ export default function ReaderSourcesPage() {
|
||||
<ArrowLeft size={18} />
|
||||
</button>
|
||||
<h1 className="flex-1 font-display text-lg text-ink-600">书源管理</h1>
|
||||
<Link to="/reader/replace" className="btn-outline mr-2 text-xs">
|
||||
替换净化
|
||||
</Link>
|
||||
<button type="button" onClick={() => setShowImport((v) => !v)} className="btn-primary text-xs">
|
||||
<Download size={13} className="mr-1 inline" /> 导入书源
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user