mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
UserTemplate GitHub -> Repository (#564)
This commit is contained in:
parent
9b0697491d
commit
64dde0215a
@ -19,11 +19,11 @@ type SettingForm struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UserTemplate struct {
|
type UserTemplate struct {
|
||||||
Path string `json:"path,omitempty"`
|
Path string `json:"path,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
GitHub string `json:"github,omitempty"`
|
Repository string `json:"repository,omitempty"`
|
||||||
Author string `json:"author,omitempty"`
|
Author string `json:"author,omitempty"`
|
||||||
Community bool `json:"community,omitempty"`
|
Community bool `json:"community,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SettingResponse struct {
|
type SettingResponse struct {
|
||||||
|
@ -21,16 +21,16 @@ var (
|
|||||||
Loc *time.Location
|
Loc *time.Location
|
||||||
UserTemplates = []model.UserTemplate{
|
UserTemplates = []model.UserTemplate{
|
||||||
{
|
{
|
||||||
Path: "user-dist",
|
Path: "user-dist",
|
||||||
Name: "Official",
|
Name: "Official",
|
||||||
GitHub: "https://github.com/hamster1963/nezha-dash",
|
Repository: "https://github.com/hamster1963/nezha-dash",
|
||||||
Author: "hamster1963",
|
Author: "hamster1963",
|
||||||
}, {
|
}, {
|
||||||
Path: "nazhua-dist",
|
Path: "nazhua-dist",
|
||||||
Name: "Nazhua",
|
Name: "Nazhua",
|
||||||
GitHub: "https://github.com/hi2shark/nazhua",
|
Repository: "https://github.com/hi2shark/nazhua",
|
||||||
Author: "hi2hi",
|
Author: "hi2hi",
|
||||||
Community: true,
|
Community: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user