Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
feat(webui): configure new project/service screens
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jun 4, 2023
1 parent a1558c6 commit 873e59b
Show file tree
Hide file tree
Showing 40 changed files with 1,736 additions and 111 deletions.
36 changes: 36 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/webui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ version = "0.1.0"

[dependencies]
actix-cors = "0.6.4"
actix-files = "0.6.2"
actix-web = "4.3.1"
async-graphql = "5.0.6"
async-graphql-actix-web = "5.0.6"
Expand Down
13 changes: 13 additions & 0 deletions crates/webui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use actix_cors::Cors;
use actix_files::Files;
use actix_web::{
guard,
http::header::HOST,
Expand Down Expand Up @@ -42,6 +43,16 @@ async fn dist(path: web::Path<String>) -> impl Responder {
handle_embedded_file(path.as_str())
}

#[actix_web::get("/service-worker.js")]
async fn service_worker() -> impl Responder {
handle_embedded_file("service-worker.js")
}

#[actix_web::get("/manifest.json")]
async fn manifest() -> impl Responder {
handle_embedded_file("manifest.json")
}

#[actix_web::get("/")]
async fn index() -> impl Responder {
handle_embedded_file("index.html")
Expand Down Expand Up @@ -140,6 +151,8 @@ pub async fn start_webui(
.service(index_new)
.service(index_projects)
.service(dist)
.service(service_worker)
.service(manifest)
})
.bind(addr)?
.run()
Expand Down
7 changes: 4 additions & 3 deletions crates/webui/webui/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"files": {
"main.css": "/static/css/main.61403641.css",
"main.js": "/static/js/main.abb3a14f.js",
"main.js": "/static/js/main.650773b9.js",
"static/js/787.cb4325f6.chunk.js": "/static/js/787.cb4325f6.chunk.js",
"static/media/ubuntu-all-400-normal.woff": "/static/media/ubuntu-all-400-normal.8629f83ad2c45e75a914.woff",
"static/media/RockfordSans-ExtraBold.otf": "/static/media/RockfordSans-ExtraBold.1513e8fd97078bfb7708.otf",
"static/media/RockfordSans-Bold.otf": "/static/media/RockfordSans-Bold.c9f599ae01b13e565598.otf",
"static/media/RockfordSans-Medium.otf": "/static/media/RockfordSans-Medium.e10344a796535b513215.otf",
"static/media/RockfordSans-Regular.otf": "/static/media/RockfordSans-Regular.652654f28f1c111914b9.otf",
"static/media/RockfordSans-Light.otf": "/static/media/RockfordSans-Light.b4a12e8abb38f7d105c4.otf",
"service-worker.js": "/service-worker.js",
"static/media/ubuntu-latin-ext-400-normal.woff2": "/static/media/ubuntu-latin-ext-400-normal.9967dbf10fc3cb92edfb.woff2",
"static/media/ubuntu-latin-400-normal.woff2": "/static/media/ubuntu-latin-400-normal.2f02effe392a63dc07a5.woff2",
"static/media/ubuntu-cyrillic-ext-400-normal.woff2": "/static/media/ubuntu-cyrillic-ext-400-normal.80c010be16bde8b7e613.woff2",
Expand All @@ -27,11 +28,11 @@
"index.html": "/index.html",
"static/media/wasm.svg": "/static/media/wasm.d2b14cf4214ab0d03cbe5738090c6c22.svg",
"main.61403641.css.map": "/static/css/main.61403641.css.map",
"main.abb3a14f.js.map": "/static/js/main.abb3a14f.js.map",
"main.650773b9.js.map": "/static/js/main.650773b9.js.map",
"787.cb4325f6.chunk.js.map": "/static/js/787.cb4325f6.chunk.js.map"
},
"entrypoints": [
"static/css/main.61403641.css",
"static/js/main.abb3a14f.js"
"static/js/main.650773b9.js"
]
}
2 changes: 1 addition & 1 deletion crates/webui/webui/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Superviseur Dashboard</title><script defer="defer" src="/static/js/main.abb3a14f.js"></script><link href="/static/css/main.61403641.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#630be2"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Superviseur Dashboard</title><script defer="defer" src="/static/js/main.650773b9.js"></script><link href="/static/css/main.61403641.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
8 changes: 4 additions & 4 deletions crates/webui/webui/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Superviseur",
"name": "Superviseur Dashboard",
"icons": [
{
"src": "favicon.ico",
Expand All @@ -20,6 +20,6 @@
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"theme_color": "#630be2",
"background_color": "#ffffff"
}
}
3 changes: 3 additions & 0 deletions crates/webui/webui/build/service-worker.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions crates/webui/webui/build/service-worker.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions crates/webui/webui/build/service-worker.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions crates/webui/webui/build/static/js/main.650773b9.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions crates/webui/webui/build/static/js/main.abb3a14f.js

This file was deleted.

Binary file modified crates/webui/webui/bun.lockb
Binary file not shown.
Loading

0 comments on commit 873e59b

Please sign in to comment.