buunguyen / octotree
- понедельник, 16 мая 2016 г. в 03:11:23
JavaScript
Code tree for GitHub and GitLab
Browser extensions (Chrome, Firefox, Opera and Safari) to display GitHub and GitLab code in tree format. Useful for developers who frequently read source and do not want to download or checkout too many repositories. Features:
Octotree is not available on the Safari gallery. Instead, you must use the prebuilt package or build one from source.
Develop
> Show Extension Builder
+
button and select Add Extension...
Install
Prebuilt packages are available in the dist folder. For security reason, only download Octotree from this location.
Firefox 43+ requires add-ons to be signed. Therefore, you should install Octotree from the Mozilla store. For some reason if you want to install the prebuilt package instead, you have to disable sign-check.
Octotree uses GitHub API to retrieve repository metadata. By default, it makes unauthenticated requests to the GitHub API. However, there are two situations when requests must be authenticated:
When that happens, Octotree will ask for your GitHub personal access token. If you don't already have one, create one, then copy and paste it into the textbox. Note that the minimal scopes that should be granted are public_repo
and repo
(if you need access to private repositories).
Octotree uses GitLab API to retrieve repository metadata. By default, Octotree attempts to retrieve the access token embedded in the GitLab DOM and use the token to authenticate against the GitLab API. If Octotree cannot retrieve the token, it will prompt you to create one.
By default, Octotree only works on github.com
and gitlab.com
. To support enterprise version on Chrome and Opera, you must grant Octotree sufficient permissions. Follow these steps to do so: