Thin-overlay white-label: branding driven by a single config, applied into onyx/web by apply-branding.mjs; only the web image is built locally while all other services use official Onyx images. - branding/branding.config.json: single source of truth (name, assets, links) - branding/apply-branding.mjs: asset fetch + logo swap + favicon repoint + codemod - docker-compose.branding.yml + Makefile: build only livtec/aido-web, pull the rest - .env/.env.nginx examples + README (update-branding & upgrade-Onyx workflows) Community Edition only; no EE/commercial features used.
21 lines
1.2 KiB
TypeScript
21 lines
1.2 KiB
TypeScript
import type { IconProps } from "@opal/types";
|
|
|
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
// WHITE-LABEL OVERRIDE — generated by branding/apply-branding.mjs. Do not edit by
|
|
// hand; edit branding/branding.config.json and re-run the apply script instead.
|
|
// Renders the brand symbol (square mark) in place of the original Onyx SVG, while
|
|
// keeping the SvgOnyxLogo export + IconProps signature so all call sites are
|
|
// unchanged.
|
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
const SvgOnyxLogo = ({ size, className }: IconProps) => (
|
|
// eslint-disable-next-line @next/next/no-img-element
|
|
<img
|
|
src="__MARK_SRC__"
|
|
alt="__BRAND_NAME__"
|
|
height={size}
|
|
width={size}
|
|
className={className}
|
|
style={{ height: size, width: size, objectFit: "contain" }}
|
|
/>
|
|
);
|
|
export default SvgOnyxLogo;
|