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 {
|
||||
Path string `json:"path,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
GitHub string `json:"github,omitempty"`
|
||||
Author string `json:"author,omitempty"`
|
||||
Community bool `json:"community,omitempty"`
|
||||
Path string `json:"path,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Repository string `json:"repository,omitempty"`
|
||||
Author string `json:"author,omitempty"`
|
||||
Community bool `json:"community,omitempty"`
|
||||
}
|
||||
|
||||
type SettingResponse struct {
|
||||
|
@ -21,16 +21,16 @@ var (
|
||||
Loc *time.Location
|
||||
UserTemplates = []model.UserTemplate{
|
||||
{
|
||||
Path: "user-dist",
|
||||
Name: "Official",
|
||||
GitHub: "https://github.com/hamster1963/nezha-dash",
|
||||
Author: "hamster1963",
|
||||
Path: "user-dist",
|
||||
Name: "Official",
|
||||
Repository: "https://github.com/hamster1963/nezha-dash",
|
||||
Author: "hamster1963",
|
||||
}, {
|
||||
Path: "nazhua-dist",
|
||||
Name: "Nazhua",
|
||||
GitHub: "https://github.com/hi2shark/nazhua",
|
||||
Author: "hi2hi",
|
||||
Community: true,
|
||||
Path: "nazhua-dist",
|
||||
Name: "Nazhua",
|
||||
Repository: "https://github.com/hi2shark/nazhua",
|
||||
Author: "hi2hi",
|
||||
Community: true,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user