Refactor: Load UserTemplates from embedded yaml file (#575)

* Refactor: Load UserTemplates from embedded yaml file

* feat: add version field to UserTemplates

* refactor: use shell script to fetch frontends

* chore: add *-dist to .gitignore

* refactor: rename to FrontendTemplates

BREAKING CHANGE: This commit changes the `user_templates` filed
in the communication json between backend and the admin-frontend.

Keep user config.yml `user_template` filed.
This commit is contained in:
Moraxyc
2024-12-10 21:57:20 +08:00
committed by GitHub
parent 96cbec9dd3
commit 8f8a30c02c
9 changed files with 98 additions and 70 deletions

3
.gitignore vendored
View File

@@ -17,8 +17,7 @@
.DS_Store
/cmd/dashboard/data
/cmd/dashboard/main
/cmd/dashboard/admin-dist/*
/cmd/dashboard/user-dist/*
/cmd/dashboard/*-dist
!/cmd/dashboard/admin-dist/.gitkeep
!/cmd/dashboard/user-dist/.gitkeep
/config.yml