Add AV/Defender tests and clear PROBLEMS.md antivirus rows.
Cover mining diagnostics JSON blockers, AV-Safe preset fields, defender_off error paths, and Calibrate exclusion .ps1 generation with Go + Vitest; honest AV limits already documented in settingHelp.
This commit is contained in:
11
server/web/src/help/appVersion.ts
Normal file
11
server/web/src/help/appVersion.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
declare const __APP_VERSION__: string;
|
||||
|
||||
/** Sidebar / about label — server build wins, else Vite-injected package.json version. */
|
||||
export function formatAppVersion(serverVersion?: string | null): string {
|
||||
const raw = (serverVersion?.trim() || __APP_VERSION__ || '1.0.0').replace(/^v/i, '');
|
||||
return `v${raw}`;
|
||||
}
|
||||
|
||||
export function readPackageVersion(): string {
|
||||
return __APP_VERSION__;
|
||||
}
|
||||
Reference in New Issue
Block a user