feat: add GitHub storage backend support - #66
Open
pierre-monnet wants to merge 5 commits into
Open
Conversation
Author
|
@jochenchrist @simonharrer this PR is ready for review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "GITHUB" mode to the editor, allowing it to load and save data contract files directly from a GitHub repository. It adds support for configuring GitHub repository details, integrates a secure proxy option to avoid exposing tokens to the browser, and updates both the documentation and the application logic to support these features.
The most important changes are:
GITHUB Mode Support:
GITHUBmode to the editor, enabling direct integration with a GitHub repository for loading and saving a single data contract file. The editor can now be configured to auto-load a file from a specified repo and branch, or let the user pick the repo/branch/path at runtime. (CONFIGURATION.md,src/App.jsx) [1] [2] [3]GitHub Configuration Options:
GITHUB_OWNER,GITHUB_REPO,GITHUB_BRANCH,GITHUB_PATH,GITHUB_TOKEN,GITHUB_API_BASE_URL,GITHUB_PROXY_URL) to support GitHub integration, and updated the Dockerfile to inject these intoconfig.json. (CONFIGURATION.md,Dockerfile) [1] [2]Proxy Support for Secure Token Handling:
GITHUB_PROXY.md) and a reference implementation (github-proxy.js) for an optional server-side proxy that handles all GitHub API requests, keeping the GitHub token out of the browser for improved security in production/multi-user setups. (GITHUB_PROXY.md,github-proxy.js) [1] [2]Documentation Updates:
CONFIGURATION.mdwith detailed instructions and code samples for configuring and using the new GITHUB mode, including both direct and proxied setups. (CONFIGURATION.md) [1] [2]App Logic Enhancements:
src/App.jsx)