Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【开源自荐】类似Github的Diff View组件,支持React / Vue #4105

Open
MrWangJustToDo opened this issue Mar 8, 2024 · 2 comments
Open
Labels

Comments

@MrWangJustToDo
Copy link

项目地址

git-diff-view

Demo地址

demo

核心功能

  1. 0配置渲染Diff View组件
  2. 支持纯Diff / 可折叠Diff(需要源文件内容)
  3. SSR支持
  4. Web worker支持
  5. Widget支持
  6. Unified View / Split View
  7. Scroll View / Wrap View

截图

  1. 完整视图(git --diff + 源文件内容)
image 2. 纯Diff(`git --diff`) image 3. React + Vue image 4. Unified / Split image

Packages

Package Version
@git-diff-view/core npm (scoped)
@git-diff-view/react npm (scoped)
@git-diff-view/vue npm (scoped)
@leiless
Copy link

leiless commented Mar 11, 2024

很不错!好奇问下,diff组件是自己实现的还是用的第三方库?

@MrWangJustToDo
Copy link
Author

很不错!好奇问下,diff组件是自己实现的还是用的第三方库?

diff parse 部分逻辑来自于 github-desktop, 语法高亮采用兼容 hast tree 的 lowlight

@ruanyf ruanyf added the weekly label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants