Skip to content

Commit d8c6e37

Browse files
committed
Start connecting the UI to the API (#34)
# Description This loads the list of stacklets from a mock endpoint in the API, with a type schema generated by utoipa. It also fixes up the cases where OpenAPI didn't quite line up with the actual APIs. Fixes #33, part of #14.
1 parent 8fb8eb1 commit d8c6e37

25 files changed

+4419
-2318
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/target
2-
/Cargo.lock
32
.env
43
/node_modules

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ repos:
66
rev: v4.2.0
77
hooks:
88
- id: trailing-whitespace
9+
# Generated file
10+
exclude: ^web/src/api/schema.d.ts$
911
- id: end-of-file-fixer
1012
- id: detect-aws-credentials
1113
args: ["--allow-missing-credentials"]
@@ -50,8 +52,16 @@ repos:
5052
language: system
5153
entry: cargo xtask gen-man
5254
stages: [commit, merge-commit, manual]
55+
pass_filenames: false
5356
- id: gen-comp
5457
name: gen-comp
5558
language: system
5659
entry: cargo xtask gen-comp
5760
stages: [commit, merge-commit, manual]
61+
pass_filenames: false
62+
- id: gen-openapi
63+
name: gen-openapi
64+
language: system
65+
entry: cargo xtask gen-openapi
66+
stages: [commit, merge-commit, manual]
67+
pass_filenames: false

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web/src/api/schema.d.ts

0 commit comments

Comments
 (0)