diff --git a/HISTORY.md b/HISTORY.md new file mode 100644 index 0000000..b90d292 --- /dev/null +++ b/HISTORY.md @@ -0,0 +1,89 @@ +### v2.0.3 +* Fix bug cannot load Octotree in GitHub Enterprise + +### v2.0.0 +* Support GitLab +* Add ability to lazy-load individual folders +* Simplify Octotree settings +* Store settings for each host separately +* Support new GitHub layout +* And various bug fixes + +### v1.7.2 +* Fix bug long branches are not loaded correctly due to GitHub DOM change + +### v1.7.1 +* Fix space between tree and GitHub contents due to GitHub DOM change + +### v1.7.0 +* Support direct downloading when hovering a file + +### v1.6.4 +* Fix bug detecting branch/tag due to GitHub DOM change + +### v1.6.3 +* Fix bug when switching to branches with slashes in their names + +### v1.6.2 +* Fix branch selection no longer works due to GitHub change + +### v1.6.1 +* Update buttons' style to match GitHub new button style + +### v1.6 +* Update all dependencies to latest version +* Allow navigating to commit trees https://github.com/buunguyen/octotree/issues/157 +* Support keyboard navigation https://github.com/buunguyen/octotree/issues/158 +* Fix bug handling back tick in paths https://github.com/buunguyen/octotree/issues/160 + +### v1.5.3 +* Fix bug https://github.com/buunguyen/octotree/pull/149 +* Fix bug https://github.com/buunguyen/octotree/issues/151 +* Fix bug https://github.com/buunguyen/octotree/issues/155 + +### v1.5.2 +* Fix bug https://github.com/buunguyen/octotree/issues/147 + +### v1.5 +* Option to show in non-code pages +* Option to load tree only when sidebar is visible +* Option to configure tab size +* Bug fixes + +### v1.4.1 +* New header to match new GitHub design +* Bug fixes + +### v1.4 +* Support GitHub enterprise +* Change default hotkey (`cmd+b` for Safari and `cmd+shift+s` for all other browsers) +* Some other minor changes + +### v1.3 +* Setting panel allowing: + * Changing access token + * Changing hotkeys + * Changing sidebar default visibility + * Changing folder collapsing option +* Sidebar appears better in large monitors +* More responsive in big repositories +* And bug fixes + +### v1.2 +* Hide sidebar by default (upon many user requests) +* Hotkey (`cmd+b`, `ctrl+b`) to toggle sidebar +* Sidebar is now resizable +* Support rendering submodules +* Reflect GitHub selection to Octotree +* New sidebar header and progress indicator +* And bug fixes + +### v1.1 +* New UI that blends better with GitHub! +* Hide Octotree on non-code pages +* When asking for token, show more detailed message and not fly out automatically +* Extend pjax timeout to work better with big files +* Sanitize file and folder names before displaying +* Fix error when a branch name contains slashes +* Gulp script to build for Chrome, Firefox and Safari +* And some other minor changes diff --git a/README.md b/README.md index b6e63ba..62770a9 100644 --- a/README.md +++ b/README.md @@ -56,96 +56,6 @@ By default, Octotree only works on `github.com` and `gitlab.com`. To support ent * __Show in non-code pages__: if checked, allow Octotree to show in non-code pages such as Issues and Pull Requests. * __Load entire tree at once__: if checked, load and render the entire code tree at once. To avoid long loading, this should be unchecked if you frequently work with very large repos. - -## Changelog - -### v2.0.0 -* Support GitLab -* Add ability to lazy-load individual folders -* Simplify Octotree settings -* Store settings for each host separately -* Support new GitHub layout -* And various bug fixes - -### v1.7.2 -* Fix bug long branches are not loaded correctly due to GitHub DOM change - -### v1.7.1 -* Fix space between tree and GitHub contents due to GitHub DOM change - -### v1.7.0 -* Support direct downloading when hovering a file - -### v1.6.4 -* Fix bug detecting branch/tag due to GitHub DOM change - -### v1.6.3 -* Fix bug when switching to branches with slashes in their names - -### v1.6.2 -* Fix branch selection no longer works due to GitHub change - -### v1.6.1 -* Update buttons' style to match GitHub new button style - -### v1.6 -* Update all dependencies to latest version -* Allow navigating to commit trees https://github.com/buunguyen/octotree/issues/157 -* Support keyboard navigation https://github.com/buunguyen/octotree/issues/158 -* Fix bug handling back tick in paths https://github.com/buunguyen/octotree/issues/160 - -### v1.5.3 -* Fix bug https://github.com/buunguyen/octotree/pull/149 -* Fix bug https://github.com/buunguyen/octotree/issues/151 -* Fix bug https://github.com/buunguyen/octotree/issues/155 - -### v1.5.2 -* Fix bug https://github.com/buunguyen/octotree/issues/147 - -### v1.5 -* Option to show in non-code pages -* Option to load tree only when sidebar is visible -* Option to configure tab size -* Bug fixes - -### v1.4.1 -* New header to match new GitHub design -* Bug fixes - -### v1.4 -* Support GitHub enterprise -* Change default hotkey (`cmd+b` for Safari and `cmd+shift+s` for all other browsers) -* Some other minor changes - -### v1.3 -* Setting panel allowing: - * Changing access token - * Changing hotkeys - * Changing sidebar default visibility - * Changing folder collapsing option -* Sidebar appears better in large monitors -* More responsive in big repositories -* And bug fixes - -### v1.2 -* Hide sidebar by default (upon many user requests) -* Hotkey (`cmd+b`, `ctrl+b`) to toggle sidebar -* Sidebar is now resizable -* Support rendering submodules -* Reflect GitHub selection to Octotree -* New sidebar header and progress indicator -* And bug fixes - -### v1.1 -* New UI that blends better with GitHub! -* Hide Octotree on non-code pages -* When asking for token, show more detailed message and not fly out automatically -* Extend pjax timeout to work better with big files -* Sanitize file and folder names before displaying -* Fix error when a branch name contains slashes -* Gulp script to build for Chrome, Firefox and Safari -* And some other minor changes - ## Credits * @crashbell for helping GitLab and others * @Ephemera for fixing many bugs diff --git a/dist/chrome.crx b/dist/chrome.crx index 58869d7..eb262d8 100644 Binary files a/dist/chrome.crx and b/dist/chrome.crx differ diff --git a/dist/chrome.zip b/dist/chrome.zip index 681cfde..1305fd7 100755 Binary files a/dist/chrome.zip and b/dist/chrome.zip differ diff --git a/dist/firefox.xpi b/dist/firefox.xpi index 1bfcdab..1f0fa0a 100644 Binary files a/dist/firefox.xpi and b/dist/firefox.xpi differ diff --git a/dist/opera.nex b/dist/opera.nex index 58869d7..eb262d8 100644 Binary files a/dist/opera.nex and b/dist/opera.nex differ diff --git a/src/octotree.js b/src/octotree.js index bbca4ef..a45d368 100755 --- a/src/octotree.js +++ b/src/octotree.js @@ -14,6 +14,7 @@ $(document).ready(() => { const githubUrls = store.get(STORE.GHEURLS).split(/\n/) .map((url) => url.replace(/(.*?:\/\/[^/]+)(.*)/, '$1')) .concat('https://github.com') + return ~githubUrls.indexOf(`${location.protocol}//${location.host}`) ? new GitHub(store) : new GitLab(store)