Skip to content

Commit

Permalink
remove unused page and template
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-goeldi committed Aug 20, 2023
1 parent 82cf2ec commit 58dc123
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
11 changes: 0 additions & 11 deletions src/kweb/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@
templates = Jinja2Templates(directory=module_path / "templates")


@app.get("/")
async def root(request: Request) -> _TemplateResponse:
return templates.TemplateResponse(
"file_browser.html",
{
"request": request,
"message": "Welcome to kweb visualizer",
},
)


@app.get("/gds/{gds_name:path}", response_class=HTMLResponse)
async def gds_view_static(
request: Request,
Expand Down
3 changes: 1 addition & 2 deletions src/kweb/templates/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@
{% if cell is defined %}
<script>var ws_url="{{ url }}"; var layer_props="{{ layer_props }}"; var gds_file="{{ gds_file }}"; var cell="{{ cell }}"</script>
{% else %}
<script>var ws_url="{{ url }}"; var layer_props="{{ layer_props }}"; var gds_file="{{ gds_file }}"</script>
<script>var ws_url="{{ url }}"; var layer_props="{{ layer_props }}"; var gds_file="{{ gds_file }}"; var cell=null</script>
{% endif %}
<script type="text/javascript" src="{{ url_for("kweb_static", path="client.js") }}"></script>
<script src={{ url_for("kweb_static", path="/bootstrap/bootstrap.bundle.min.js") }}></script>
</body>
</html>
23 changes: 0 additions & 23 deletions src/kweb/templates/file_browser.html

This file was deleted.

0 comments on commit 58dc123

Please sign in to comment.