Skip to content

Commit 039a1e1

Browse files
committed
refac: assets
1 parent 14a6c1f commit 039a1e1

File tree

11 files changed

+32
-0
lines changed

11 files changed

+32
-0
lines changed

backend/open_webui/config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,14 @@ def oidc_oauth_register(client):
587587

588588
STATIC_DIR = Path(os.getenv("STATIC_DIR", OPEN_WEBUI_DIR / "static")).resolve()
589589

590+
for file_path in (FRONTEND_BUILD_DIR / "static").glob("**/*"):
591+
if file_path.is_file():
592+
target_path = STATIC_DIR / file_path.relative_to(
593+
(FRONTEND_BUILD_DIR / "static")
594+
)
595+
target_path.parent.mkdir(parents=True, exist_ok=True)
596+
shutil.copyfile(file_path, target_path)
597+
590598
frontend_favicon = FRONTEND_BUILD_DIR / "static" / "favicon.png"
591599

592600
if frontend_favicon.exists():
7.34 KB
Loading
3.74 KB
Loading
15.5 KB
Loading
14.7 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Open WebUI",
3+
"short_name": "WebUI",
4+
"icons": [
5+
{
6+
"src": "/favicon/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/favicon/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#ffffff",
20+
"display": "standalone"
21+
}
5.29 KB
Loading
8.15 KB
Loading
29.4 KB
Loading

0 commit comments

Comments
 (0)