Signed-off-by: Odyssium <hi@odyssey346.dev>
このコミットが含まれているのは:
コミット
739c53aa92
|
@ -1,6 +1,7 @@
|
||||||
package pages
|
package pages
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"codeberg.org/gothub/gothub/utils"
|
"codeberg.org/gothub/gothub/utils"
|
||||||
|
@ -13,5 +14,6 @@ func HandleIndex(c *fiber.Ctx) error {
|
||||||
"version": utils.Version(),
|
"version": utils.Version(),
|
||||||
"fiberversion": fiber.Version,
|
"fiberversion": fiber.Version,
|
||||||
"goversion": runtime.Version(),
|
"goversion": runtime.Version(),
|
||||||
|
"setupstatus": os.Getenv("GOTHUB_SETUP_COMPLETE"),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
--secondary-background: #353535;
|
--secondary-background: #353535;
|
||||||
--background-darker: #151515;
|
--background-darker: #151515;
|
||||||
--accent: #00b7c3;
|
--accent: #00b7c3;
|
||||||
|
--yellow: #8B8000;
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,6 +91,24 @@ a:hover {
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.setup-notice {
|
||||||
|
background-color: var(--yellow);
|
||||||
|
padding: 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.setup-notice > a {
|
||||||
|
text-decoration: underline;
|
||||||
|
text-underline-offset: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.setup-notice > a:hover {
|
||||||
|
color: var(--text);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* URI: /explore */
|
/* URI: /explore */
|
||||||
|
|
||||||
.explore-card, .user-repo-card {
|
.explore-card, .user-repo-card {
|
||||||
|
@ -254,6 +273,7 @@ a:hover {
|
||||||
--secondary-background: #f5f5f5;
|
--secondary-background: #f5f5f5;
|
||||||
--background-darker: #dddddd;
|
--background-darker: #dddddd;
|
||||||
--accent: #005ec3;
|
--accent: #005ec3;
|
||||||
|
--yellow: #f5f5a5;
|
||||||
color-scheme: light;
|
color-scheme: light;
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<h2>GotHub is an alternative front-end for GitHub.</h2>
|
<h2>GotHub is an alternative front-end for GitHub.</h2>
|
||||||
|
{{ if not .setupstatus }}
|
||||||
|
<div class="setup-notice">
|
||||||
|
<b>GotHub is not set up!</b> Please look at <a href="https://codeberg.org/gothub/gothub/issues/92">this issue</a> to see how to set up GotHub, or set the GOTHUB_SETUP_COMPLETE environment variable to true to suppress this message. If you are a user of this instance, please contact the instance maintainer.
|
||||||
|
</div>
|
||||||
|
{{ end}}
|
||||||
<h3>Features</h3>
|
<h3>Features</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Lightweight - for both you and the instance host</li>
|
<li>Lightweight - for both you and the instance host</li>
|
||||||
|
|
読み込み中…
新しいイシューから参照