Skip to content

Fix/mod#1

Merged
kooksee merged 6 commits into
masterfrom
fix/mod
Apr 30, 2026
Merged

Fix/mod#1
kooksee merged 6 commits into
masterfrom
fix/mod

Conversation

@kooksee
Copy link
Copy Markdown
Collaborator

@kooksee kooksee commented Apr 30, 2026

Summary by CodeRabbit

Release Notes

  • New Features

    • 新增 --dangerously-allow-remote-access CLI 标志选项
  • Documentation

    • 更新 CLI 帮助文本和用户指南
    • 更新项目文档和配置说明
    • 更新应用中显示的文本和用户界面标签
  • Chores

    • 更新项目构建配置和自动化工作流程
    • 更新本地存储和状态持久化路径

kooksee added 6 commits April 29, 2026 10:08
- Updated backup paths and filenames to reflect the new project name.
- Changed static data injection variable from `__MO_STATIC_DATA__` to `__MARKVIEW_STATIC_DATA__`.
- Modified frontend components and hooks to use "markview" in local storage keys and titles.
- Adjusted test data and documentation to reference "markview" instead of "mo".
- Updated logging and server configurations to align with the new naming convention.
…g, and language extraction

- Implement `resolveLink`, `resolveImageSrc`, and `extractLanguage` functions in `resolve.ts`.
- Create corresponding tests for link resolution and image source handling in `resolve.test.ts`.
- Add `findBestSearchTarget` function for improved search functionality in `searchJump.ts` with tests in `searchJump.test.ts`.
- Introduce static data handling in `staticData.ts` for SPA static mode.
- Configure TypeScript settings in `tsconfig.json` for better type checking and module resolution.
- Set up Vite configuration in `vite.config.ts` for optimized builds and development server proxying.
@kooksee kooksee merged commit 6212e48 into master Apr 30, 2026
2 of 5 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 12647729-44d7-4bb6-8c14-095d265219db

📥 Commits

Reviewing files that changed from the base of the PR and between c33a91f and 58c1792.

⛔ Files ignored due to path filters (2)
  • frontend/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • frontend/public/favicon.svg is excluded by !**/*.svg
📒 Files selected for processing (115)
  • .github/copilot-instructions.md
  • .github/dependabot.yml
  • .github/workflows/ci.yml
  • .github/workflows/tagpr.yml
  • .gitignore
  • .goreleaser.yml
  • .octocov.yml
  • CHANGELOG.md
  • CLAUDE.md
  • Makefile
  • README.md
  • cmd/build.go
  • cmd/root.go
  • cmd/root_test.go
  • docs/CREDITS
  • frontend/.gitignore
  • frontend/index.html
  • frontend/package.json
  • frontend/scripts/screenshots.mjs
  • frontend/src/App.tsx
  • frontend/src/components/BacklinksPanel.tsx
  • frontend/src/components/CopyButton.test.tsx
  • frontend/src/components/CopyButton.tsx
  • frontend/src/components/DropOverlay.tsx
  • frontend/src/components/FileContextMenu.tsx
  • frontend/src/components/FileIcon.tsx
  • frontend/src/components/GlobalSearchModal.test.tsx
  • frontend/src/components/GlobalSearchModal.tsx
  • frontend/src/components/GraphView.tsx
  • frontend/src/components/GroupDropdown.test.tsx
  • frontend/src/components/GroupDropdown.tsx
  • frontend/src/components/MarkdownViewer.tsx
  • frontend/src/components/MermaidBlock.test.tsx
  • frontend/src/components/OutlineGraphView.tsx
  • frontend/src/components/OutlineGravityView.tsx
  • frontend/src/components/OutlineTreeView.tsx
  • frontend/src/components/PdfExportButton.tsx
  • frontend/src/components/PlantUmlBlock.test.tsx
  • frontend/src/components/RawToggle.test.tsx
  • frontend/src/components/RawToggle.tsx
  • frontend/src/components/RemoveButton.tsx
  • frontend/src/components/RestartButton.tsx
  • frontend/src/components/SearchToggle.tsx
  • frontend/src/components/SettingsModal.tsx
  • frontend/src/components/Sidebar.test.tsx
  • frontend/src/components/Sidebar.tsx
  • frontend/src/components/SvgBobBlock.test.tsx
  • frontend/src/components/ThemeToggle.test.tsx
  • frontend/src/components/ThemeToggle.tsx
  • frontend/src/components/TocPanel.test.tsx
  • frontend/src/components/TocPanel.tsx
  • frontend/src/components/TocToggle.test.tsx
  • frontend/src/components/TocToggle.tsx
  • frontend/src/components/TreeView.tsx
  • frontend/src/components/ViewModeToggle.tsx
  • frontend/src/components/WidthToggle.test.tsx
  • frontend/src/components/WidthToggle.tsx
  • frontend/src/components/ZoomPanView.tsx
  • frontend/src/hooks/useActiveHeading.ts
  • frontend/src/hooks/useApi.test.ts
  • frontend/src/hooks/useApi.ts
  • frontend/src/hooks/useAppSettings.ts
  • frontend/src/hooks/useFileDrop.test.ts
  • frontend/src/hooks/useFileDrop.ts
  • frontend/src/hooks/useMermaidSettings.ts
  • frontend/src/hooks/useSSE.test.ts
  • frontend/src/hooks/useSSE.ts
  • frontend/src/hooks/useScrollRestoration.test.ts
  • frontend/src/hooks/useScrollRestoration.ts
  • frontend/src/main.tsx
  • frontend/src/styles/app.css
  • frontend/src/test-setup.ts
  • frontend/src/utils/buildTree.test.ts
  • frontend/src/utils/buildTree.ts
  • frontend/src/utils/extractText.test.ts
  • frontend/src/utils/extractText.ts
  • frontend/src/utils/frontmatter.test.ts
  • frontend/src/utils/frontmatter.ts
  • frontend/src/utils/fullTextSearch.test.ts
  • frontend/src/utils/fullTextSearch.ts
  • frontend/src/utils/groups.test.ts
  • frontend/src/utils/groups.ts
  • frontend/src/utils/markdownEnhance.test.ts
  • frontend/src/utils/markdownEnhance.ts
  • frontend/src/utils/mdx.test.ts
  • frontend/src/utils/mdx.ts
  • frontend/src/utils/pdfExport.test.ts
  • frontend/src/utils/pdfExport.ts
  • frontend/src/utils/resolve.test.ts
  • frontend/src/utils/resolve.ts
  • frontend/src/utils/searchJump.test.ts
  • frontend/src/utils/searchJump.ts
  • frontend/src/utils/staticData.ts
  • frontend/tsconfig.json
  • frontend/vite.config.ts
  • go.mod
  • graphviz-outline-demo.html
  • internal/backup/backup.go
  • internal/backup/backup_test.go
  • internal/build/build.go
  • internal/frontend/index.html
  • internal/logfile/logfile.go
  • internal/server/server.go
  • internal/static/static.go
  • main.go
  • outline-layout-comparison.html
  • testdata/basic.md
  • testdata/code-blocks.md
  • testdata/long-document.md
  • testdata/mermaid-mixed.md
  • testdata/plantuml-complete.md
  • testdata/plantuml.md
  • testdata/sample.mdx
  • testdata/svgbob-complex.md
  • version/version.go

Walkthrough

本次变更对项目进行全面的品牌重命名和结构调整:将"mo"重命名为"markview",模块路径从 github.com/k1LoW/mo 更改为 github.com/kooksee/markview;前端代码库从 internal/frontend/ 迁移至根目录 frontend/;所有本地存储键和 XDG 状态目录路径更新为使用新的命名空间;删除过时文档文件。

Changes

Cohort / File(s) Summary
GitHub Actions & CI 配置
.github/copilot-instructions.md, .github/dependabot.yml, .github/workflows/ci.yml, .github/workflows/tagpr.yml
更新 CI 工作流和 Dependabot 配置,将前端目录引用从 internal/frontend/ 改为 frontend/;更新包含 package.json 路径和模块引用为新的 markview 命名空间。
项目构建配置
.goreleaser.yml, go.mod, Makefile
更新 GoReleaser 构建元数据、Go 模块声明和 Makefile 目标:将所有构建 ID、二进制文件名、链接标志从 mo 改为 markview;调整前端命令执行路径为 frontend/
覆盖率与工具配置
.gitignore, .octocov.yml, frontend/vite.config.ts
更新 Git 忽略规则、代码覆盖率配置和 Vite 构建输出目录:更改忽略路径前缀、coverage 扫描路径和 SPA 输出目录位置。
CLI 核心实现
cmd/build.go, cmd/root.go, cmd/root_test.go, main.go, version/version.go
更新 CLI 命令实现、帮助文本、错误消息和包导入:将所有用户交互的品牌文案从 mo 改为 markview;更新日志文件名前缀和模块导入路径。
前端页面入口
frontend/index.html, internal/frontend/index.html
新增前端根目录的 index.html 入口文件,定义 HTML 结构、元标签、根挂载点和模块脚本加载;删除原 internal/frontend/ 的同名文件。
前端脚本与工具
frontend/scripts/screenshots.mjs
调整屏幕截图脚本的服务器二进制引用和 localStorage 主题键:从 mo 改为 markview;标准化异常处理代码块格式。
前端 React 组件
frontend/src/App.tsx, frontend/src/components/OutlineGraphView.tsx, frontend/src/components/OutlineTreeView.tsx, frontend/src/components/RestartButton.tsx, frontend/src/components/SettingsModal.tsx, frontend/src/components/Sidebar.tsx, frontend/src/components/ThemeToggle.tsx, frontend/src/components/ThemeToggle.test.tsx, frontend/src/components/TocPanel.tsx, frontend/src/components/TreeView.tsx
更新所有前端组件中的 localStorage 持久化键:统一从 mo-* 改为 markview-* 前缀;更新组件标签文案和样式类名格式化。
前端 Hooks
frontend/src/hooks/useAppSettings.ts, frontend/src/hooks/useMermaidSettings.ts, frontend/src/hooks/useScrollRestoration.ts
更新自定义 Hook 的存储键常量:调整 localStorage 和 sessionStorage 的键名从 mo-* 改为 markview-*
前端工具函数
frontend/src/utils/staticData.ts
更新静态导出集成的全局变量声明:从 window.__MO_STATIC_DATA__ 改为 window.__MARKVIEW_STATIC_DATA__;同时更新类型声明和数据获取逻辑。
内部包实现
internal/backup/backup.go, internal/backup/backup_test.go, internal/build/build.go, internal/logfile/logfile.go, internal/server/server.go, internal/static/static.go
更新内部包的命名空间、目录路径和临时文件前缀:更改备份/日志文件的命名从 mo-*markview-*;更新 XDG 状态目录路径;调整静态资源生成的工作目录;更新模块导入。
文档与说明
README.md, CHANGELOG.md, .github/copilot-instructions.md, docs/CREDITS
更新项目文档:统一品牌引用、徽章链接、CLI 示例和说明文案从 mo 改为 markview;规范化 CREDITS 文件的行尾格式。
测试数据
testdata/basic.md, testdata/code-blocks.md, testdata/long-document.md, testdata/mermaid-mixed.md, testdata/plantuml.md, testdata/plantuml-complete.md, testdata/sample.mdx, testdata/svgbob-complex.md
更新测试用例中的示例代码、CLI 命令和描述文本:将所有示例引用从 mo 改为 markview
已删除文件
CLAUDE.md, graphviz-outline-demo.html, outline-layout-comparison.html
移除过时的开发指南、图表演示和布局对比页面。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 Whiskers twitch with joy and care,
"mo" hops away into the air,
"markview" springs to life so new,
Storage keys reborn in markview blue,
Frontend bounds from folder deep,
Changes complete, the project leaps!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/mod

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant