reformat
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m24s

This commit is contained in:
Johannes Kirschbauer 2023-09-16 16:28:19 +02:00
parent 3db0285a3b
commit 18714d6657
4 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi.routing import APIRoute
from fastapi.staticfiles import StaticFiles
from fastapi.middleware.cors import CORSMiddleware
from .assets import asset_path
from .routers import health, machines, root, vms
@ -10,6 +10,7 @@ origins = [
"http://localhost:3000",
]
def setup_app() -> FastAPI:
app = FastAPI()
app.add_middleware(

View File

@ -55,7 +55,7 @@ def start_server(args: argparse.Namespace) -> None:
with ExitStack() as stack:
headers: list[tuple[str, str]] = []
if args.dev:
# stack.enter_context(spawn_node_dev_server(args.dev_host, args.dev_port))
stack.enter_context(spawn_node_dev_server(args.dev_host, args.dev_port))
open_url = f"http://{args.dev_host}:{args.dev_port}"
host = args.dev_host

View File

@ -18258,4 +18258,4 @@
};
};
};
}
}

View File

@ -54,7 +54,7 @@ export function CustomConfig(props: FormStepContentProps) {
}
return acc;
}, {}),
[schema]
[schema],
);
return isLoading ? (
@ -124,7 +124,7 @@ function PureCustomConfig(props: PureCustomConfigProps) {
message: "invalid config",
});
toast.error(
"Configuration is invalid. Please check the highlighted fields for details."
"Configuration is invalid. Please check the highlighted fields for details.",
);
} else {
formHooks.clearErrors("config");