-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update App Launcher Create App Form based on new design (#146)
* Add create and edit app pages. Update routing for pages on separate base. * Add app form to create and edit app pages. Update styling. Update theme. * Add view thumbnail action to thumbnail component. Add icons to buttons. * Add conda_env to dummy app data. * Update form to replace custom formgroup with mui formcontrol. * Fix unit tests. * Misc form updates to match designs. * Add back button to app form pages. * Update server types page styling. * Updates to submit on server types page. Misc cleanup. * Add routes and page template for new pages. Misc styling updates. * Add and update unit tests. * Add new build. * Update to add server type click event to card. * Update to provide app creation through main form when new server types are available. * Update thumbnail component styling to match mockup. * Update to persist form data on back. Updates to server type styling. * Update jhub styling. * Fix integration test. * Add and update unit tests. Misc cleanup. * Fix issue loading env variables into edit form. * Fix lint issue. * Add unit tests. Unit test cleanup. * Update jinja template path. * Fix env field when clicking back. * Update template_path import.
- Loading branch information
Showing
33 changed files
with
1,564 additions
and
818 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -293,3 +293,4 @@ cython_debug/ | |
jupyterhub.sqlite | ||
jupyterhub_cookie_secret | ||
.DS_Store | ||
videos/ |
This file contains 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 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,17 @@ | ||
from fastapi import APIRouter, FastAPI, Request | ||
from fastapi.responses import HTMLResponse | ||
from fastapi.templating import Jinja2Templates | ||
|
||
from jhub_apps import TEMPLATE_PATH | ||
|
||
app = FastAPI() | ||
|
||
templates = Jinja2Templates(directory=TEMPLATE_PATH) | ||
router = APIRouter(prefix="/services/japps") | ||
|
||
|
||
@router.get("/create-app", response_class=HTMLResponse) | ||
@router.get("/edit-app", response_class=HTMLResponse) | ||
@router.get("/server-types", response_class=HTMLResponse) | ||
async def handle_apps(request: Request): | ||
return templates.TemplateResponse("japps_home.html", {"request": request}) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,16 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="/hub/static/css/style.min.css" /> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script src="/services/japps/static/js/index.js?v={{version_hash}}"></script> | ||
<link | ||
rel="stylesheet" | ||
href="/services/japps/static/css/index.css?v={{version_hash}}" | ||
/> | ||
<style> | ||
{% include 'style.css' %} | ||
</style> | ||
</body> | ||
</html> |
This file contains 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 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 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 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
Oops, something went wrong.