Remove logging, add favicon
This commit is contained in:
@ -120,7 +120,6 @@ def create_admin_app(
|
|||||||
@app.get("/")
|
@app.get("/")
|
||||||
def serve_frontend(request: Request) -> FileResponse:
|
def serve_frontend(request: Request) -> FileResponse:
|
||||||
"""Serve the frontend SPA index."""
|
"""Serve the frontend SPA index."""
|
||||||
LOG.info("Got this request: %r", request.url)
|
|
||||||
if not settings.frontend_dir:
|
if not settings.frontend_dir:
|
||||||
raise HTTPException(status_code=404, detail="Not found.")
|
raise HTTPException(status_code=404, detail="Not found.")
|
||||||
return FileResponse(settings.frontend_dir / "index.html")
|
return FileResponse(settings.frontend_dir / "index.html")
|
||||||
@ -128,7 +127,6 @@ def create_admin_app(
|
|||||||
@app.get("/{frontend_path:path}")
|
@app.get("/{frontend_path:path}")
|
||||||
def serve_frontend_path(frontend_path: str) -> FileResponse:
|
def serve_frontend_path(frontend_path: str) -> FileResponse:
|
||||||
"""Serve the frontend SPA.."""
|
"""Serve the frontend SPA.."""
|
||||||
LOG.info("Got request for %s", frontend_path)
|
|
||||||
if not settings.frontend_dir:
|
if not settings.frontend_dir:
|
||||||
raise HTTPException(status_code=404, detail="Not found.")
|
raise HTTPException(status_code=404, detail="Not found.")
|
||||||
static_file = settings.frontend_dir / frontend_path
|
static_file = settings.frontend_dir / frontend_path
|
||||||
|
|||||||
@ -3,6 +3,8 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml" />
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Sshecret Admin</title>
|
<title>Sshecret Admin</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 18 KiB |
26
packages/sshecret-frontend/public/favicon.svg
Normal file
26
packages/sshecret-frontend/public/favicon.svg
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg width="100%" height="100%" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||||
|
<rect id="Artboard1" x="0" y="0" width="64" height="64" style="fill:none;"/>
|
||||||
|
<g id="Artboard11" serif:id="Artboard1">
|
||||||
|
<g id="grid">
|
||||||
|
<rect x="0" y="0" width="64" height="64" style="fill:none;"/>
|
||||||
|
<g transform="matrix(0.17843,0,0,0.17843,-64.901,-47.058)">
|
||||||
|
<g transform="matrix(1,0,0,1,8.07567,42.4671)">
|
||||||
|
<path d="M535,250L561.806,335L613.462,308.734L605.179,367.467L691.924,367.467L621.746,420L661.954,462.5L605.179,472.533L631.985,557.533L561.806,505L535,557.533L508.194,505L438.015,557.533L464.821,472.533L408.046,462.5L448.254,420L378.076,367.467L464.821,367.467L456.538,308.734L508.194,335L535,250Z"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.8125,0,0,0.8125,331.826,19.4716)">
|
||||||
|
<path d="M246.833,633.448C236.413,655.429 209.771,670 180,670L180,557.533C209.771,557.533 236.413,572.104 246.833,594.085L275.336,594.085C285.418,572.104 311.195,557.533 340,557.533L340,670C311.195,670 285.418,655.429 275.336,633.448L246.833,633.448Z" style="fill:rgb(241,90,36);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,258.076,2.46711)">
|
||||||
|
<ellipse cx="250" cy="415" rx="20" ry="15" style="fill:white;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,328.076,2.46711)">
|
||||||
|
<ellipse cx="250" cy="415" rx="20" ry="15" style="fill:white;"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g id="icon">
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.9 KiB |
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 276 B |
Reference in New Issue
Block a user