forked from abner/for-legacy-web
More version information in settings.
This commit is contained in:
@@ -20,7 +20,7 @@ import {
|
||||
User
|
||||
} from "@styled-icons/feather";
|
||||
import { Megaphone } from "@styled-icons/bootstrap";
|
||||
import { GIT_REVISION, REPO_URL } from "../../revision";
|
||||
import { GIT_BRANCH, GIT_REVISION, REPO_URL } from "../../revision";
|
||||
import LineDivider from "../../components/ui/LineDivider";
|
||||
import RequiresOnline from "../../context/revoltjs/RequiresOnline";
|
||||
import ButtonItem from "../../components/navigation/items/ButtonItem";
|
||||
@@ -147,8 +147,12 @@ export default function Settings() {
|
||||
<a href={`${REPO_URL}/${GIT_REVISION}`} target="_blank">
|
||||
{ GIT_REVISION.substr(0, 7) }
|
||||
</a>
|
||||
{` `}
|
||||
<a href={GIT_BRANCH !== 'DETACHED' ? `https://gitlab.insrt.uk/revolt/client/-/tree/${GIT_BRANCH}` : undefined} target="_blank">
|
||||
({ GIT_BRANCH })
|
||||
</a>
|
||||
</span>
|
||||
<span>Stable {APP_VERSION}</span>
|
||||
<span>{ GIT_BRANCH === 'production' ? 'Stable' : 'Nightly' } {APP_VERSION}</span>
|
||||
<span>API: {client.configuration?.revolt ?? "N/A"}</span>
|
||||
<span>revolt.js: {LIBRARY_VERSION}</span>
|
||||
</div>
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
export const GIT_REVISION = '__GIT_REVISION__';
|
||||
export const REPO_URL = 'https://gitlab.insrt.uk/revolt/revite/-/commit';
|
||||
export const GIT_REVISION = '__GIT_REVISION__';
|
||||
export const GIT_BRANCH: string = '__GIT_BRANCH__';
|
||||
|
||||
Reference in New Issue
Block a user