Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for read-only mode for web UI. #407

Merged
merged 11 commits into from
Jun 27, 2020

Commits on Jun 27, 2020

  1. Configuration menu
    Copy the full SHA
    4a28f25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43c78da View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dfdb5e0 View commit details
    Browse the repository at this point in the history
  4. Refactor webui changes.

    Don't use contexts, just raw Apollo, since it's cached anyway.
    
    Change "ReadonlyHidden" to "IfLoggedIn".
    lukegb authored and MichaelMure committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    cf67c78 View commit details
    Browse the repository at this point in the history
  5. Add context.go to identity, used for attaching identities to and retr…

    …ieving them from a context.Context
    lukegb authored and MichaelMure committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    8a38897 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    766aff2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e5a316e View commit details
    Browse the repository at this point in the history
  8. Use ErrNotAuthenticated

    lukegb authored and MichaelMure committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    5f72b04 View commit details
    Browse the repository at this point in the history
  9. Reorganize the webUI and API code

    Included in the changes:
    - create a new /api root package to hold all API code, migrate /graphql in there
    - git API handlers all use the cache instead of the repo directly
    - git API handlers are now tested
    - git API handlers now require a "repo" mux parameter
    - lots of untangling of API/handlers/middleware
    - less code in commands/webui.go
    MichaelMure committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    2ab6381 View commit details
    Browse the repository at this point in the history
  10. webui: render component's children as a function to avoid uncecessary…

    … rendering
    
    Co-authored-by: Quentin Gliech <quentingliech@gmail.com>
    MichaelMure and sandhose committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    07d6c6a View commit details
    Browse the repository at this point in the history
  11. webui: pack

    MichaelMure committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    3aaf775 View commit details
    Browse the repository at this point in the history