Ajoute le pipeline PageSpec (validation, rendu, publication /p/{slug}),
les démos TipTap /demo, et le simulateur Carnot (modes frigo/PAC/moteur,
énergie kJ vs puissance W, unités K/°C/°F) avec correctifs d’équations KaTeX.
Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
829 B
TypeScript
28 lines
829 B
TypeScript
import type { ComponentType } from 'react'
|
|
import { CarnotCycleView } from './carnot-cycle-view'
|
|
import { CarnotCycleAnimView } from './carnot-cycle-anim-view'
|
|
import { TsDiagramView } from './ts-diagram-view'
|
|
|
|
export type CatalogSimViewProps = {
|
|
preset?: Record<string, number>
|
|
title?: string
|
|
disclaimer?: string
|
|
lang: string
|
|
}
|
|
|
|
export type CatalogAnimViewProps = {
|
|
step: number
|
|
lang: string
|
|
}
|
|
|
|
/** Registry: catalog simId → bespoke slider-simulation view. */
|
|
export const SIMULATOR_VIEWS: Record<string, ComponentType<CatalogSimViewProps>> = {
|
|
'carnot-cycle': CarnotCycleView,
|
|
}
|
|
|
|
/** Registry: catalog simId → bespoke animated scene (step-driven). */
|
|
export const ANIM_VIEWS: Record<string, ComponentType<CatalogAnimViewProps>> = {
|
|
'carnot-cycle-anim': CarnotCycleAnimView,
|
|
'ts-diagram': TsDiagramView,
|
|
}
|