Giter Site home page Giter Site logo

ineo6 / git-master Goto Github PK

View Code? Open in Web Editor NEW
479.0 8.0 33.0 11.15 MB

Git Master Extension for git file tree, support GitHub、GitLab 、 Gitee、Gitea、Gogs

License: MIT License

JavaScript 58.40% TypeScript 28.12% CSS 0.05% HTML 4.71% Less 8.14% Swift 0.53% Shell 0.05%
github tree git gitlab gitee chrome-extension gitmaster gitea gogs firefox-addon

git-master's Introduction

🚀 Git Master

Git code tree extension.

Chrome Web Store Chrome Web Store Chrome Web Store GitHub

🙋‍♂️ Made by neo

English | 简体中文

Install

Edge
Edge
Firefox
Firefox
Chrome
Chrome
Edge Web Store Firefox Addon Chrome Web Store

Features

  • Git file tree (GitHub && GitLab && Gitee && Gitea && Gogs)
  • File search
  • Show GitHub repo size and file download support
  • GitHub notifications
  • GitHub dark mode, also work for gist
  • Code Snippet
  • Browse the history of files (GitHub && GitLab)

Usage

By default, the extension only loads on domains below. You can manually enable the extension for your custom domain by clicking the extension icon and choosing Enable xxx.

  • github.com
  • gitlab.com
  • git.oschina.net, gitee.com
  • gitea.com, try.gitea.io

Pin first

guide-pin-en.png

Mark site

guide-mark-en.png

Settings

Access Token

By default, GitMaster makes unauthenticated requests to get repository metadata. However, there are two situations when GitHub require such requests to be authenticated:

  • You access a private repository
  • You exceed the API rate limit

When that happens, GitMaster will ask for your GitHub personal access token. If you don't already have one, create one, then copy and paste it into the token textbox in the Settings screen. Note that the minimal scopes that should be granted are public_repo and repo.

GitLab and Gitee have same configuration.

Access tokens are stored in the browser's local storage, only enter access tokens when you use a trusted computer.

Hotkeys

Hotkeys to pin or unpin the sidebar. You can enter multiple hotkeys by separating them with a comma.

  • Supported modifiers: , shift, option, , alt, ctrl, control, command, and .
  • Supported special keys: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete and f1 through f19.

Learn more at keymaster.

Contribute

We welcome all contributions. Please read CONTRIBUTING.md first.

Coffee or Star

Give a ⭐️ if this project helped you!

Coffee is also welcome.

WeChat
wechat-like

Licence

Code released under the MIT License.

git-master's People

Contributors

ineo6 avatar lunny avatar semantic-release-bot avatar tw93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git-master's Issues

在github文件页,点击下载按钮,会同时下载三次同名文件。

缺陷描述
进入一个文件的展示页面,点击下载按钮,同时弹出三个下载

如何重现

  1. 打开https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/schemes/VibrantInk.itermcolors
  2. 点击右上角"Go to file"旁边的下载按钮

预期描述
希望只下载一次。

截图
image

环境信息 (请完善下面的信息):

  • 平台(GitHub, GitLab, Gitee, Gitea): Github
  • 浏览器和对应的版本: Microsoft Edge(86.0.622.69)
  • GitMaster 版本:1.11.3

补充的环境信息
windows 10 最新正式版

【新功能】重命名、删除

我不清楚 Github API 是否允许这一点。如果可行的话,希望能加入对文件、文件夹的重命名和删除功能。

Neither Gitmaster sidetab nor Dark theme works for gists.

It would be great if it would also work for gist.github.com (As gists are also repository only) and would provide all these great features for gists too.

At this moment I am using following three different extensions along with git-master to work with github:

  1. github-dark-theme => https://github.com/poychang/github-dark-theme
  • To apply dark theme on gists too (as git-master provides for repo)
  1. better-gists => https://github.com/farskid/better-gists
  • To add download/copy buttons to each gist file (as git-master provides for repo)
  1. github-one-dark-vivid => https://github.com/ljosberinn/github-one-dark-vivid
  • To apply vs code dark theme along with fira-code/Jetbrains-mono ligatures everywhere to make the code more readable and easy on eyes.

And still looking for an extension which can provide a side tab as git-master to explore all the gists :)

Would really be great if all these are combined in git-master itself...

Chrome下gitlab,左边小图标没出来

环境:

  • Ubuntu 1604
  • Chrome 77.0.3865.90
  • Gitlab Community Edition 11.2.1

现象:

没有左边的小图标出来、

image

github正常

image

最近更新比较频繁,没有太注意情况。好像是1.11.2的时候就有点小问题,但点进某个文件小图标就出来了。1.11.3彻底没了

没有找到下载功能在哪

目前只看到在浏览单个文件时, 右上角有copy的按钮
但是下载单个文件和某个目录的功能没有看到
我在插件的介绍里看到有这个功能

文件下载功能

作者可以添加像谷歌商店的GitZip下载单个文件的功能吗?或者是多选文件下载而不是一次性把仓库文件全部下载下来

youtube回退失效

测试环境:无痕窗口,无其他插件
浏览器:edge 86,chrome 86
问题:打开youtube,打开一个视频,回退,无法回退。
插件版本:1.11.1

gitea项目点击路径下某个文件后,跳转页面中插件无法定位文件路径,仍显示在根路径

缺陷描述
简洁准确得描述问题。
在gitea项目中,在插件中点击某个子路径下文件,页面跳转至该文件页面,插件路径会回到根路径页面,无法定位到当前文件所在路径。
如何重现
重现步骤:
1、进入gitea项目页面,插件加载
2、任选一个存放于子路径的文件,跳转至该文件页面
3、插件重新加载后,回到根路径状态,未定位至当前文件

预期描述
简洁准确得预期结果。
插件能够定位至对应文件路径
截图
可以的话,添加相关截图能更准确说明问题。
image
通过点击插件内文件链接已经打开了src/App.vue文件,但插件回到了初始状态,未定位到对应文件路径

环境信息 (请完善下面的信息):

  • 平台(GitHub, GitLab, Gitee, Gitea): Gitea1.12.4
  • 浏览器和对应的版本: chrome 86
  • GitMaster 版本: 1.11.4

补充的环境信息
额外可以补充说明的信息

目录层级问题

遇到目录多的项目就是这种
QQ截图20200716173824
能不能把目录展示成这样

provider-sample
    src/main
        java
           org/apache/dubbo/spring/boot/sample/provider
               bootstrap
                   xxx.java
               service
                   xxx.java
        resources

Wrong URLs in tree sidebar

URLs in the tree sidebar links do not contain a file's path. It is like all files were in a repo's root.

To reproduce:

  • Open https://github.com/ineo6/git-master/ with GitMaster active.
  • Open the sidebar.
  • Click on the views folder.
  • Click on inject.js.
  • Say hello to the Octocat on GitHub's 404 page.
  • Observe that the URL you tried to open is https://github.com/ineo6/git-master/blob/master/inject.js instead of https://github.com/ineo6/git-master/blob/master/views/inject.js.

Microsoft Edge v80.0.361.111 on WIndows 10 x64.
Feel free to ask for any further clarification you may need.

gitee插件一直处于加载中

缺陷描述
简洁准确得描述问题。
打开gitee任意项目,插件一直无法加载代码树

如何重现
重现步骤:
打开gitee任意项目

截图
image

环境信息 (请完善下面的信息):

  • 平台(GitHub, GitLab, Gitee, Gitea): gitee
  • 浏览器和对应的版本: QQ浏览器 10.6.1 Chrome 86.0.4240.183
  • GitMaster 版本: 1.11.4

补充的环境信息
额外可以补充说明的信息

gitlab不能显示tree???

Describe the bug
A clear and concise description of what the bug is.
image

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Context (please complete the following information):

  • Platform(GitHub, GitLab, Gitee, Gitea):
  • Browser and Version:
  • GitMaster Version:

Additional context
Add any other context about the problem here.

浏览大项目时出现的错误

缺陷描述

github上大的项目会显示Error: API limit exceeded

另外,如果页面长时间不同的话,会出现改页面卡死(有很大概率,但无法百分百确定是本插件问题)。
如何重现

重现步骤:
github上查看一个比较大的项目。目录无法正常显示。
我这出现问题的项目为140M

卡死问题: 有时候浏览器直接卡死,有时候是该页面卡死,页面无法滚动,鼠标无效。
预期描述
简洁准确得预期结果。

截图
image

环境信息 (请完善下面的信息):

  • 平台(GitHub, GitLab, Gitee, Gitea): github
  • 浏览器和对应的版本: 谷歌最新(87.0.4280.88)
  • GitMaster 版本: 1.11.5

补充的环境信息
额外可以补充说明的信息

GitMaster need you ❤️

Please consider following this project's author: ineo6 and consider starring the project to show your ❤️ and support.

You can also give five stars. It helps more people find GItMaster.


如果喜欢GitMaster,请考虑关注作者:ineo6 和本项目。我们需要你的爱和支持。

如果你还能五星好评就更好了,这样可以让更多人发现GItMaster

gitlab多层group时路径解析错误

git master版本v1.11.0

gitlab版本GitLab Community Edition 11.2.1

Chrome版本77.0.3865.90 (Official Build) unknown (64-bit)

真正目录 http://192.168.1.20/group1/group2/group3/project_name/blob/master/.clang-format
git master出来目录 http://192.168.1.20/group1/group2/group3/blob/master/.clang-format

后面少了project_name。

实际测试,如果group少于3个是可以正确解析的

Gitlab路径生成错误

版本: 1.11.1
例如工程结构如下:
test
|
test-dal
|
src/main/java/com.test
|
AClass.java BClass.java

通过导航访问AClass文件。
路径: https://gitlab.com/xxxx/xxxx/xxxx/test/blob/master/test-dal/src/main/java/com/test/AClass.java 访问正常。
此时在通过导航方位BClass文件。
https://gitlab.com/xxxx/xxxx/xxxx/test/blob/master/test-dal/src/main/java/com/test/blob/master/test-dal/src/main/java/com/test/BClass.java
生成的访问路径错误。

github暗黑模式缺陷

缺陷描述
watch字体显示不清晰,custom选项暗黑模式没有渲染成功

截图
image
image

环境信息 (请完善下面的信息):

  • 平台(GitHub, GitLab, Gitee, Gitea):Github
  • 浏览器和对应的版本: Microsoft Edge 87.0.664.41 (官方内部版本) (64 位)
  • GitMaster 版本:1.11.4

[BUG]团队下的项目,文件路径匹配错误,404

场景:
如果一个项目A是放在团队G下的,A下的文件README.md文件路径会缺少项目名信息导致404
现状:/团队/分组/blob/master/README.md
正确的是:/团队/分组/项目/blob/master/README.md

Request for minor tweaks in UI to improve the user experiance and make the design more fluent for GitHub

Thanks a lot for considering my suggestions as requested in issue-30.

After using git-master these days, I want to add a few more suggestions for UI improvement, which I thought would make the extension more user friendly its design more fluent and appealing.

Note:

  • I have numbered all the changes in the last picture of this comment and numbered the suggestions here as per that picture only
  • The red rectangles shown in pictures suggest that this part of the current design can be changed as suggested by green rectangles in other pictures and in the last picture.

Suggestions:

  • (1 & 2 talks about UI improvement while viewing a file)
  1. While viewing a file the size shown beside the download button (after opening a file) can be removed as it is redundant and is shown by default in GitHub (as can be seen in the snapshot below)
    Move Download and Remove Size Current

  2. The download button can be moved just beside the copy button to make the UI more fluent (as can be seen in the snapshot below) as the user can download, copy, or view as raw from one place only
    Move Download and Remove Size Future

  • (3 & 4 talks about the position of existing buttons in side tab)
  1. The Pin button can be moved from top-right to bottom-left

  2. The settings button can also be moved from top-right to bottom-left

  • (5, 7 & 8 talks about the future plans to add support for some famous themes, fonts & ligatures to make the code more readable and easy on eyes as discussed in the issue-30)
  • (6, & 9 talks about just the rearrangement of positions of existing buttons)
  1. If there is a plan to add support for some famous themes such as material theme, vs code default dark plus theme, jetbrains themes etc. then this button can be used to change the themes (as currently Octotree, github-one-dark-vivid, github-dark-theme etc. extensions are there to change themes)

  2. If theme support is added then the toggle button for light and dark theme would be better just beside the theme button

  3. If there is a plan to add support for some famous fonts such as Fira Code, Jetbrains Mono, Cascadia Code, Victor Mono etc, then this button can be used to toggle fonts (as Octotree, github-one-dark-vivid extension currently uses Fira Code to make the code more readable)

  4. If font support is added then this button can toggle on/off the ligatures if supported by the font (as their might be some people who may like to turn off the ligatures)

  5. The position toggle button is better suited at the end (showing 'click me' if you want to push me that side :) )

  • (10 talks about position rearrangement after moving Pin & Settings icon in the bottom to utilize that space)
  1. Moving the branch name just beside the repository name makes the view more pretty and also utilizes the space created by moving Pin and Settings icon (giving the folder structure a slightly more space) as can be seen in the last picture
  • Picture highlighting the change in current view
    Move Settings, Pin, and Add Options Current

  • Picture (called as 'Last picture' in above sentences) shows the final modified view (numbering all the changes requested above) and shows the final UI
    Move Settings, Pin, and Add Options Future

  • Please don't forget to add all these supports for 'Gists' too :)

  • Excited to think that version 2.0.0 would be a great release with at least support for gist and with this tweaked UI (The support for themes, fonts and ligatures can be added later)

加个黑暗模式皮肤就更完美了

希望能加入黑暗模式的皮肤, 之前一直用octotree,挺喜欢它的皮肤黑暗模式的。但是最近不知道这玩意什么原因 ,经常左侧树状图加载不出来,而且速度又慢,还不支持gitee,心累,放弃那玩意了。

Firefox

Is firefox support planned?

插件不支持子路径下的gitea

我们的gitea是部署在域名下的git子路径下的,但是插件不能识别到这一点,因此在请求gitea api的时候出现404

如何重现
重现步骤:
安装gitea
将gitea映射到任一子目录,比如git,参考https://docs.gitea.io/zh-cn/reverse-proxies/#使用-nginx-作为反向代理服务并将-gitea-路由至一个子路径
在浏览器中打开gitea,开启插件

截图
image

环境信息:

  • 平台(GitHub, GitLab, Gitee, Gitea): Gitea
  • 浏览器和对应的版本: Microsoft Edge 86.0.622.63
  • GitMaster 版本: 1.11.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.