rename /privacy to /about since there is a user called privacy
このコミットが含まれているのは:
コミット
5a0e930224
|
@ -10,7 +10,7 @@ import (
|
|||
var rootCmd = &cobra.Command{
|
||||
Use: "gothub",
|
||||
Short: "An alternative front-end for GitHub.",
|
||||
Long: `An alternative front-end for GitHub, written by Odyssey346 and Midou360.`,
|
||||
Long: `An alternative front-end for GitHub written in Go Fiber.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
type PrivacyInfo struct {
|
||||
IPAddr string
|
||||
ReqURL string
|
||||
UserAgent string
|
||||
UserAgentLogged string
|
||||
Diagnostics string
|
||||
Country string
|
||||
Provider string
|
||||
|
@ -19,6 +19,7 @@ type PrivacyInfo struct {
|
|||
Version string
|
||||
GoVersion string
|
||||
FiberVersion string
|
||||
UserAgent string
|
||||
}
|
||||
|
||||
func HandlePrivacy(c *fiber.Ctx) error {
|
|
@ -98,7 +98,7 @@ func Serve() {
|
|||
app.Static("/robots.txt", "./public/robots.txt", staticConfig)
|
||||
app.Static("/favicon.ico", "./public/assets/favicon.ico", staticConfig)
|
||||
app.Static("/logo.svg", "./public/assets/logo.svg", staticConfig)
|
||||
app.Get("/privacy", pages.HandlePrivacy)
|
||||
app.Get("/about", pages.HandleAbout)
|
||||
app.Get("/explore", ratelimiter, pages.HandleExplore)
|
||||
app.Get("/:user", pages.HandleUser)
|
||||
app.Get("/avatar/:id", func(c *fiber.Ctx) error {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
{{template "header" .}}
|
||||
|
||||
<main>
|
||||
<h2>Instance Privacy</h2>
|
||||
<h2>About this GotHub instance</h2>
|
||||
{{ if .privacyInformation}} {{ range $key, $value := .privacyInformation}}
|
||||
<h3>Instance Privacy</h3>
|
||||
<p>
|
||||
The goal of this page is to bring transparency to the data collected by the
|
||||
instances and to encourage privacy friendly practices.
|
||||
|
@ -11,7 +12,7 @@
|
|||
<ul>
|
||||
<li><b>IP Address logged:</b> {{.IPAddr}}</li>
|
||||
<li><b>Request URL logged:</b> {{.ReqURL}}</li>
|
||||
<li><b>User Agent logged:</b> {{.UserAgent}}</li>
|
||||
<li><b>User Agent logged:</b> {{.UserAgentLogged}}</li>
|
||||
<li><b>Diagnostic Information logged:</b> {{.Diagnostics}}</li>
|
||||
</ul>
|
||||
{{ if .PrivacyPolicy }}
|
||||
|
@ -28,9 +29,7 @@
|
|||
>
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Go Version</b>: Fiber {{ .FiberVersion}} running on {{ .GoVersion}}
|
||||
</li>
|
||||
<li><b>Go Version</b>: Fiber {{ .FiberVersion}} running on {{ .GoVersion}}</li>
|
||||
<li><b>Country:</b> {{.Country}}</li>
|
||||
<li><b>Cloudflare:</b> {{.Cloudflare}}</li>
|
||||
<li><b>ISP:</b> {{.Provider}}</li>
|
|
@ -24,7 +24,7 @@
|
|||
>
|
||||
<div class="navbarLinks">
|
||||
<a href="/explore">Explore</a>
|
||||
<a href="/privacy">Privacy</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="https://codeberg.org/gothub/gothub">Source code</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
読み込み中…
新しいイシューから参照