Files
service-aware-frontend/pkgs/ui
ui-asset-bot 894081a5c8
All checks were successful
checks-impure / test (push) Has been skipped
checks / test (push) Has been skipped
assets1 / test (push) Has been skipped
update ui-assets.nix
2024-01-23 11:23:55 +00:00
..
2023-10-30 13:26:09 +01:00
2024-01-23 11:23:55 +00:00
2023-09-27 15:18:51 +02:00
2023-08-25 13:40:52 +02:00
2023-08-27 10:27:34 +02:00
2023-10-23 02:50:45 +02:00
2023-09-16 16:21:33 +02:00
2023-08-05 12:10:58 +00:00

cLan - awesome UI

The files in src/api are autogenerated from the openapi.json. The openapi.json comes from the backend, from fastapi which autogenerates the openapi.json file from the python code.

We then use orval to generate typescript files to src/api

Build Development Web UI

To build the dev web ui with hotreloading

npm run dev

Build release Web UI

To build the release version execute

npm run build

Updating dependencies

After changing dependencies with

npm <dep> i --package-lock-only

Update floco dependencies:

nix run github:aakropotkin/floco -- translate -pt -o ./nix/pdefs.nix

The prettier tailwind class sorting is not yet working properly with our devShell integration.

To sort classnames manually:

cd /clan-core/pkgs/ui/

Troubleshooting

Sometimes new endpoints don't appear in src/api. Delete the ui/openapi.json file and execute direnv reload