fix: resolve RemnaWave SVG icons and icon colors on connection page

SVG library entries from RemnaWave API are plain strings, not objects
with svgString property. Also map named colors (violet, cyan, teal, etc.)
to hex values for correct icon background rendering.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
c0mrade
2026-02-05 12:02:32 +03:00
parent 42e70f72ff
commit 91afbbf3c6
2 changed files with 21 additions and 23 deletions

View File

@@ -545,7 +545,7 @@ export interface AppConfig {
// RemnaWave format (isRemnawave: true)
isRemnawave?: boolean;
svgLibrary?: Record<string, { svgString: string }>;
svgLibrary?: Record<string, string | { svgString: string }>;
baseTranslations?: Record<string, LocalizedText>;
baseSettings?: { isShowTutorialButton: boolean; tutorialUrl: string };