PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FEATURE (arch): Add architecture to Databasus version in the bottom left of UI
Rostislav Dugin446b96c6c0aa
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.mdindex 5fbd7806..5f99bf2f 100644--- a/.github/ISSUE_TEMPLATE/bug_report.md+++ b/.github/ISSUE_TEMPLATE/bug_report.md@@ -4,7 +4,9 @@ about: Report a bug or unexpected behavior in Databasuslabels: bug----## Databasus version+## Databasus version (screenshot)++It is displayed in the bottom left corner of the Databasus UI. Please attach screenshot, not just version text<!-- e.g. 1.4.2 -->diff --git a/Dockerfile b/Dockerfileindex f672b4ee..91ed8479 100644--- a/Dockerfile+++ b/Dockerfile@@ -71,8 +71,10 @@ FROM debian:bookworm-slim# Add version metadata to runtime imageARG APP_VERSION=dev+ARG TARGETARCHLABEL org.opencontainers.image.version=$APP_VERSIONENV APP_VERSION=$APP_VERSION+ENV CONTAINER_ARCH=$TARGETARCH# Set production mode for Docker containersENV ENV_MODE=production@@ -269,7 +271,8 @@ window.__RUNTIME_CONFIG__ = {GITHUB_CLIENT_ID: '\${GITHUB_CLIENT_ID:-}',GOOGLE_CLIENT_ID: '\${GOOGLE_CLIENT_ID:-}',IS_EMAIL_CONFIGURED: '\$IS_EMAIL_CONFIGURED',- CLOUDFLARE_TURNSTILE_SITE_KEY: '\${CLOUDFLARE_TURNSTILE_SITE_KEY:-}'+ CLOUDFLARE_TURNSTILE_SITE_KEY: '\${CLOUDFLARE_TURNSTILE_SITE_KEY:-}',+ CONTAINER_ARCH: '\${CONTAINER_ARCH:-unknown}'};JSEOFdiff --git a/frontend/src/constants.ts b/frontend/src/constants.tsindex a21b16b7..d3164492 100644--- a/frontend/src/constants.ts+++ b/frontend/src/constants.ts@@ -4,6 +4,7 @@ interface RuntimeConfig {GOOGLE_CLIENT_ID?: string;IS_EMAIL_CONFIGURED?: string;CLOUDFLARE_TURNSTILE_SITE_KEY?: string;+ CONTAINER_ARCH?: string;}declare global {@@ -45,6 +46,10 @@ export const CLOUDFLARE_TURNSTILE_SITE_KEY =import.meta.env.VITE_CLOUDFLARE_TURNSTILE_SITE_KEY ||'';+const archMap: Record<string, string> = { amd64: 'x64', arm64: 'arm64' };+const rawArch = window.__RUNTIME_CONFIG__?.CONTAINER_ARCH || 'unknown';+export const CONTAINER_ARCH = archMap[rawArch] || rawArch;+export function getOAuthRedirectUri(): string {return `${window.location.origin}/auth/callback`;}diff --git a/frontend/src/widgets/main/MainScreenComponent.tsx b/frontend/src/widgets/main/MainScreenComponent.tsxindex 2580c4cb..69c9f79f 100644--- a/frontend/src/widgets/main/MainScreenComponent.tsx+++ b/frontend/src/widgets/main/MainScreenComponent.tsx@@ -2,7 +2,7 @@ import { LoadingOutlined, MenuOutlined } from '@ant-design/icons';import { App, Button, Spin, Tooltip } from 'antd';import { useEffect, useState } from 'react';-import { APP_VERSION } from '../../constants';+import { APP_VERSION, CONTAINER_ARCH } from '../../constants';import { type DiskUsage, diskApi } from '../../entity/disk';import {type UserProfile,@@ -365,6 +365,8 @@ export const MainScreenComponent = () => {<div className="absolute bottom-1 left-2 mb-[0px] hidden text-sm text-gray-400 md:block">v{APP_VERSION}+ <br />+ {CONTAINER_ARCH}</div></div>)}