Show public release version and GitHub link
This commit is contained in:
@@ -91,6 +91,8 @@ const AUTH_POLICY_STORAGE_KEY = 'chgridAuthPolicy';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
CHGRID_RELEASE_VERSION?: string;
|
||||
CHGRID_BUILD_REVISION?: string;
|
||||
CHGRID_WEB_VERSION?: string;
|
||||
}
|
||||
}
|
||||
@@ -210,7 +212,12 @@ function announceMenuEntry(title: string, firstOption: string): void {
|
||||
audio.sfxUiBlip();
|
||||
}
|
||||
|
||||
const APP_VERSION = String(window.CHGRID_WEB_VERSION ?? '').trim();
|
||||
const APP_RELEASE_VERSION = String(window.CHGRID_RELEASE_VERSION ?? '').trim();
|
||||
const APP_BUILD_REVISION = String(window.CHGRID_BUILD_REVISION ?? '').trim();
|
||||
const APP_VERSION = String(
|
||||
window.CHGRID_WEB_VERSION ??
|
||||
[APP_RELEASE_VERSION, APP_BUILD_REVISION].filter((value) => value.length > 0).join(' ')
|
||||
).trim();
|
||||
dom.appVersion.textContent = APP_VERSION
|
||||
? `Another AI experiment with Jage. Version ${APP_VERSION}`
|
||||
: 'Another AI experiment with Jage. Version unknown';
|
||||
|
||||
@@ -27,9 +27,22 @@ body {
|
||||
#appVersion {
|
||||
display: block;
|
||||
color: #94a3b8;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
#appGithubLinkWrap {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
#appGithubLink {
|
||||
color: #93c5fd;
|
||||
}
|
||||
|
||||
#appGithubLink:visited {
|
||||
color: #bfdbfe;
|
||||
}
|
||||
|
||||
#appFooter {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user