mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Cleanup: remove ems
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// /**
|
||||
// * AUTO-GENERATED — do not edit the symbol definitions or VI entries manually.
|
||||
// * AUTO-GENERATED - do not edit the symbol definitions or VI entries manually.
|
||||
// * Source of truth: individual vendor icon files in src/modules/llms/components/
|
||||
// *
|
||||
// * Regenerate: npm run gen:icon-sprites
|
||||
@@ -10,7 +10,7 @@
|
||||
//
|
||||
// import { PhRobot } from '~/common/components/icons/phosphor/PhRobot';
|
||||
//
|
||||
// // Symbol IDs for each vendor — generated from the vendor registry
|
||||
// // Symbol IDs for each vendor - generated from the vendor registry
|
||||
// const VI: Record<ModelVendorId, string> = {
|
||||
// /* __GENERATED_VI_ENTRIES__ */
|
||||
// } as const;
|
||||
@@ -18,7 +18,7 @@
|
||||
//
|
||||
// /**
|
||||
// * Memoized SVG sprite with all vendor icon `<symbol>` definitions.
|
||||
// * Mount once in the app root (ProviderTheming) — all `<use href="#vi-...">` references resolve from here.
|
||||
// * Mount once in the app root (ProviderTheming) - all `<use href="#vi-...">` references resolve from here.
|
||||
// *
|
||||
// * Joy's SvgIcon sets CSS `fill: currentColor` which overrides `fill='none'` props. To match,
|
||||
// * all `<g>` wrappers use `fill='currentColor'`. Paths with explicit `fill='none'` still override.
|
||||
@@ -38,7 +38,7 @@
|
||||
//
|
||||
// /**
|
||||
// * Lightweight vendor icon using SVG sprite `<use href>`.
|
||||
// * Near-zero per-instance cost — no Emotion/styled-components.
|
||||
// * Near-zero per-instance cost - no Emotion/styled-components.
|
||||
// *
|
||||
// * Uses Joy's CSS custom properties (--Icon-fontSize, --Icon-margin, --Icon-color)
|
||||
// * so parent components (ListItemDecorator, etc.) control sizing automatically.
|
||||
@@ -73,7 +73,7 @@
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// // Matches Joy's SvgIcon base styles — uses the same CSS custom properties
|
||||
// // Matches Joy's SvgIcon base styles - uses the same CSS custom properties
|
||||
// // const _lwBaseSx: React.CSSProperties = {
|
||||
// // width: '1em',
|
||||
// // height: '1em',
|
||||
|
||||
@@ -145,7 +145,7 @@ function stripQuotes(s: string): string {
|
||||
// ── Step 4: Generate output by replacing template placeholders ────────────────
|
||||
|
||||
function generateFromTemplate(vendors: VendorEntry[], symbols: string[]): string {
|
||||
// Template lines are prefixed with '// ' (or just '//') to avoid linter/tsc processing — strip them
|
||||
// Template lines are prefixed with '// ' (or just '//') to avoid linter/tsc processing - strip them
|
||||
const template = readFileSync(TEMPLATE_FILE, 'utf-8')
|
||||
.split('\n').map(l => l.startsWith('// ') ? l.slice(3) : l === '//' ? '' : l).join('\n');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user