add pin or popular variable for frontend to use
このコミットが含まれているのは:
コミット
20eddd5b93
|
@ -35,6 +35,7 @@ type User struct {
|
||||||
Contributions string
|
Contributions string
|
||||||
Readme string
|
Readme string
|
||||||
MainRepos []RepoList
|
MainRepos []RepoList
|
||||||
|
PinOrPopular string
|
||||||
}
|
}
|
||||||
type RepoList struct {
|
type RepoList struct {
|
||||||
Name string
|
Name string
|
||||||
|
@ -161,6 +162,7 @@ func HandleUser(c *fiber.Ctx) error {
|
||||||
MainRepo.ForkOf = el.ChildText("p.text-small a.Link--muted")
|
MainRepo.ForkOf = el.ChildText("p.text-small a.Link--muted")
|
||||||
Scrape.MainRepos = append(Scrape.MainRepos, MainRepo)
|
Scrape.MainRepos = append(Scrape.MainRepos, MainRepo)
|
||||||
})
|
})
|
||||||
|
Scrape.PinOrPopular = e.ChildText("h2.text-normal")
|
||||||
})
|
})
|
||||||
sc.Visit("https://github.com/" + c.Params("user") + "/")
|
sc.Visit("https://github.com/" + c.Params("user") + "/")
|
||||||
// Fixing the output a bit
|
// Fixing the output a bit
|
||||||
|
|
読み込み中…
新しいイシューから参照