UNPKG

@fntio/infra-client

Version:

Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.

16 lines (15 loc) • 815 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LOGO_URL_RE = exports.LOGO_MAX = exports.HEX_RE = void 0; exports.isBrandColor = isBrandColor; // One definition of the branding value shapes — the runtime admin API (brandingService) and // deploy-time synth validation (WebStack) must agree, or a value one accepts fails in the other. exports.HEX_RE = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i; // Enough for a ~48 KB image as base64 (or any inline SVG); the whole overlay // must stay a quick pre-paint fetch. exports.LOGO_MAX = 64_000; exports.LOGO_URL_RE = /^(https:\/\/|data:image\/)/; /** 'mono' is the wizard's mode-aware neutral accent (primary only). */ function isBrandColor(key, value) { return exports.HEX_RE.test(value) || (key === "primaryColor" && value === "mono"); }