-
Notifications
You must be signed in to change notification settings - Fork 401
Rewrite the frontend #1856
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
Merged
Merged
Rewrite the frontend #1856
Changes from 59 commits
Commits
Show all changes
99 commits
Select commit
Hold shift + click to select a range
31910bc
Rewrite the frontend completely
yuvipanda 5c1183f
Split homepage into its own file
yuvipanda 2e2a3ea
Add a loading page
yuvipanda 55e0a41
Add nbviewer support
yuvipanda bb480e8
Re-implement the loader animation & text
yuvipanda f63e9b9
Update favicon correctly based on phases
yuvipanda ea7dbe7
Remove and cleanup unused stuff
yuvipanda abbf864
Add more type annotations
yuvipanda 5661f17
Fix a few more typescript detected errors
yuvipanda b02256e
Don't enforce strict type checks yet
yuvipanda ffb3884
Create a central spec class
yuvipanda d6b549f
Document & rename spec class to be better
yuvipanda 5da4111
Pass launchSpec correctly
yuvipanda 23e491e
Remove GA code, add back extra_footer_scripts
yuvipanda b5c1c38
Move redirect calculation to Spec object
yuvipanda 1bc530a
Remove unused static font
yuvipanda e4becd7
Move about page to frontend rendering
yuvipanda 5a6adac
Fix case of component file
yuvipanda 354118a
Remove remaining reference to `_config`
yuvipanda 484680b
Support setting banner message
yuvipanda 3e31936
Merge remote-tracking branch 'upstream/main' into closure
yuvipanda 0ad9347
Remove unused functionality from binderhub-client
yuvipanda ea9d565
Add functionality to view logs in raw form
yuvipanda 2c9d89f
Kill some unnecessary useEffects
yuvipanda 7c55383
Add badge generator
yuvipanda c65214d
Merge remote-tracking branch 'upstream/main' into closure
yuvipanda c46a691
Add OpenGraph social card support
yuvipanda f942938
Fix copy buttons
yuvipanda ab59cb1
Tweak style of badge generator a little
yuvipanda 97f1bfd
Fix lint
oliverroick e858fa8
Ignore spec.js in tests
oliverroick a4733b4
gitignore coverage directory
oliverroick 6193fb1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ae035cb
Add basic link-generator tests
oliverroick 5b7329a
Fix repo-select input group layout
oliverroick ce6a4bc
Fix label alignment
oliverroick e70e260
Replace links with buttons in dropdowns
oliverroick 729b563
Add Github and Zenodo test cases
oliverroick 1d6e8d4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d92e6b7
Remove test for custom template
yuvipanda 85113b0
Remove about handler test
yuvipanda 28dc23c
Add router test for homepage and about page
oliverroick d8816cf
Remove template based custom error and 404 pages
yuvipanda ddf6371
Don't stop after only 2 test failures
yuvipanda 54f6e04
Add Not Found page
oliverroick 7c2035a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2c87b24
Run test_loading_page with Playwright
oliverroick cf1e6cc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] cc4b551
s/status_code/status/ for playwright response object
yuvipanda 22b8366
Remove excessive inline comments
yuvipanda 74a71b7
Remove unnecessary pytest mark
yuvipanda 26ec60f
Install firefox for tests, not chrome
yuvipanda 422d383
Dynamically determine port binderhub listens on
yuvipanda 50f2879
Merge branch 'binderhub-local' into closure
yuvipanda 279e232
Fix tests to match rewrite
yuvipanda 1965809
Add handling for misconfigured specs
oliverroick cc09f36
Remove encoded url from loading-page test
oliverroick cf6a2ee
Verify by matching URL
oliverroick 55d4318
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3ee5069
Remove 'some errors disappear' error
yuvipanda f26d970
Merge remote-tracking branch 'upstream/main' into closure
yuvipanda a6522be
Add note about nbviewer URL
yuvipanda d16f2ea
Support build tokens
yuvipanda aa19f64
Handle situation where ref isn't enabled
yuvipanda a947c82
Validate spec for each repo provider separately
yuvipanda 78bcdbf
Fix JS unit tests
oliverroick 771b52b
Add info about wether repo should be urlencoded or not
yuvipanda 8d0f089
Switch from react-router v6 to wouter
yuvipanda 424f831
Generate build tokens correctly
yuvipanda ba212f5
Fix *some* jest tests
yuvipanda 2f2b327
Fix route regex in Jest config
oliverroick b30a9e9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] bded394
Remove jquery
yuvipanda 352e4c1
Move chp to a dev dependency
yuvipanda 42708a3
Upgrade version of xtermjs
yuvipanda ac62ba7
Remove unused 'clipboard' library
yuvipanda 49d0f86
Write a clearer description for package.json
yuvipanda c089327
Mark the binderhub package itself as private
yuvipanda 0fe56ae
Move react types to dev dependencies
yuvipanda 73cc8f4
Upgrade version of react & related packages
yuvipanda dcd6bb1
Clarify Gist is GitHub Gist
yuvipanda 9a73e00
Remove unused display_name property
yuvipanda 4d670a5
Fix typo
yuvipanda b498b23
Fix typo
yuvipanda 1927d34
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b2dfd27
Fix off by 1 error with help messages
yuvipanda f379956
Remove debugging message
yuvipanda 0fd5bb1
Add thicker borders to some controls
yuvipanda 7276451
Make form background darker
yuvipanda 3c895d9
Cleanup padding and rounded corners
yuvipanda 2480656
Widen the form
yuvipanda b185b66
Clarify what binderhub supports for hydroshare
yuvipanda e117f39
Provide outline for buttons
yuvipanda 7e0d5fb
Clarify what happens to the GA traitlets
yuvipanda e158610
Clarify what happens to the GA traitlets
yuvipanda acdc9fe
Turn tsc checking on (but don't enforce it)
yuvipanda 54b6c19
Don't check js in our tsconfig
yuvipanda fbeb074
Revert adding noEmit
yuvipanda 8679ba5
Make default opengraph title configurable
yuvipanda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,48 @@ | ||
| module.exports = { | ||
| env: { | ||
| browser: true, | ||
| jquery: true, | ||
| node: true, | ||
| es6: true, | ||
| "jest/globals": true, | ||
| }, | ||
| extends: ["eslint:recommended"], | ||
| ignorePatterns: ["**/dist"], | ||
| parser: "@babel/eslint-parser", | ||
| plugins: ["jest"], | ||
| rules: {}, | ||
| es2021: true, | ||
| }, | ||
| extends: ["eslint:recommended", "plugin:react/recommended"], | ||
| ignorePatterns: ["dist"], | ||
| overrides: [ | ||
| { | ||
| env: { | ||
| node: true, | ||
| }, | ||
| files: [".eslintrc.{js,cjs}"], | ||
| parserOptions: { | ||
| sourceType: "script", | ||
| }, | ||
| }, | ||
| { | ||
| files: ["**/*.test.js", "**/*.test.jsx"], | ||
| env: { | ||
| jest: true, | ||
| node: true, | ||
| }, | ||
| }, | ||
| ], | ||
| parserOptions: { | ||
| ecmaVersion: "latest", | ||
| sourceType: "module", | ||
| }, | ||
| plugins: ["react"], | ||
| rules: { | ||
| "react/react-in-jsx-scope": "off", | ||
| "react/jsx-uses-react": "off", | ||
| // Temporarily turn off prop-types | ||
| "react/prop-types": "off", | ||
| "no-unused-vars": ["error", { args: "after-used" }], | ||
| }, | ||
| ignorePatterns: [ | ||
| "jupyterhub_fancy_profiles/static/*.js", | ||
| "webpack.config.js", | ||
| "babel.config.js", | ||
| ], | ||
| settings: { | ||
| react: { | ||
| version: "detect", | ||
| }, | ||
| }, | ||
| }; |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,6 +81,7 @@ coverage.xml | |
| *.py,cover | ||
| .hypothesis/ | ||
| .pytest_cache/ | ||
| coverage | ||
|
|
||
| # Translations | ||
| *.mo | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| { | ||
| "presets": ["@babel/preset-env"] | ||
| "presets": [ | ||
| "@babel/preset-env", | ||
| ["@babel/preset-react", { "runtime": "automatic" }] | ||
| ] | ||
| } |
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
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
Empty file.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import json | ||
|
|
||
| from ..base import BaseHandler | ||
|
|
||
|
|
||
| class RepoProvidersHandlers(BaseHandler): | ||
| """Serve config""" | ||
|
|
||
| async def get(self): | ||
| config = [ | ||
| repo_provider_class.display_config | ||
| for repo_provider_class in self.settings["repo_providers"].values() | ||
| ] | ||
| self.set_header("Content-type", "application/json") | ||
| self.write(json.dumps(config)) |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.