feat: add GitHub and Docker Hub links to app templates
- Introduced `github` and `hub-docker` fields in the app template presentation schema. - Updated normalization logic to handle new fields and return appropriate values. - Enhanced frontend components to display GitHub and Docker Hub links for each app. - Added tests to validate the inclusion of new fields in app templates.
This commit is contained in:
1 parent
ae2013740b
commit
f38f8f16d3
6 files changed
+280
-5
No files matched your search
@@ -44,6 +44,8 @@ test("generic app template keeps its explicit category", () => {
|
||||
icon: "icon.png",
|
||||
color: "#f59e0b",
|
||||
installs: 42,
|
||||
github: "https://github.com/henrygd/beszel",
|
||||
"hub-docker": "https://hub.docker.com/r/henrygd/beszel",
|
||||
},
|
||||
},
|
||||
"beszel",
|
||||
@@ -57,6 +59,8 @@ test("generic app template keeps its explicit category", () => {
|
||||
icon: "https://raw.githubusercontent.com/DoktainerApp/templates/main/templates/beszel/icon.png",
|
||||
color: "#f59e0b",
|
||||
installs: 42,
|
||||
github: "https://github.com/henrygd/beszel",
|
||||
"hub-docker": "https://hub.docker.com/r/henrygd/beszel",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user