jeffreycwitt / tei-web-editor

GNU General Public License v3.0
23 stars 5 forks source link

Enterprise changes #20

Closed ColeDCrawford closed 7 years ago

ColeDCrawford commented 7 years ago

-Added ability to use on GitHub Enterprise. Add your GH Enterprise installation URL in github.json base variable. Defaults to github.com if not set. Also, change baseUrl and apiBaseUrl in start.js to your GitHub Enterprise repo and API (usually /api/v3/) -Added help menu. Will eventually have ability to add multiple help files. For now, loads [0]. Set the help file info in start.js. Can load markdown files from GitHub if display is set to "md", or uses an iframe for other URLS. -Added ability to hide preview styles, suggested repos, fork another repo, and PRs. Set these flags in start.js. Defaults to show. -Fixed CSS for Views menu (z-index) and Mirador Add button - set in style.scss. -Added jQuery UI Resizable handles for editor / preview / Mirador viewers. This is now a package dependency. Needed to add a <div> around editor to resize Ace correctly, so needed to also change Util.toggleEditor / .togglePreview slightly. -Previously, attempting to overwrite files would fail if the user manually selected the save location rather than choosing the default (409 PUT error - conflict). Error persisted after closing save window, so unless user saved as new file, there was no way to overwrite and save changes. Change ensures we use the right sha value.