New features: - HLS video encoding/streaming (hls routes, hls-encoder) and a media transcripts pipeline (transcripts route + media-transcript queries) - AI assistant chat vs. run model: agent-course-generation worker/queue, run-monitor pane, chat-changes card, content ask-ai bar - Per-theme course-page previews across org landing-page themes (bold, classic, corporate, editorial, etc.) with a shared course token/component set - View-as-student mode and login-link / link-invite invite flows Refactor: - Extract packages/core consolidating config (env, storage, dashboard-url), services and utils previously duplicated under apps/api/src/config - Remove legacy agent service modules (chat-tools, chat-context, context-window, document, fetch-url, lesson-content) - Relax Cross-Origin-Resource-Policy to allow cross-origin media embedding - Add format script to tenant-router so turbo run format covers it
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import type { OrgLandingPageTheme } from './types';
|
|
import { baseTokenVars, type LandingThemeVars } from './theme-vars-base';
|
|
import { vars as minimalVars } from './minimal/vars';
|
|
import { vars as boldVars } from './bold/vars';
|
|
import { vars as classicVars } from './classic/vars';
|
|
import { vars as saasVars } from './saas/vars';
|
|
import { vars as techVars } from './tech/vars';
|
|
import { vars as studioVars } from './studio/vars';
|
|
import { vars as corporateVars } from './corporate/vars';
|
|
import { vars as terminalVars } from './terminal/vars';
|
|
import { vars as editorialVars } from './editorial/vars';
|
|
import { vars as vibrantVars } from './vibrant/vars';
|
|
|
|
export type { LandingThemeVarName, LandingThemeVars } from './theme-vars-base';
|
|
|
|
export const LANDING_THEME_VARS: Record<OrgLandingPageTheme, LandingThemeVars> = {
|
|
minimal: minimalVars,
|
|
bold: boldVars,
|
|
classic: classicVars,
|
|
saas: saasVars,
|
|
tech: techVars,
|
|
studio: studioVars,
|
|
corporate: corporateVars,
|
|
vibrant: vibrantVars,
|
|
terminal: terminalVars,
|
|
editorial: editorialVars
|
|
};
|
|
|
|
export function themeStyle(theme: OrgLandingPageTheme): string {
|
|
const vars = LANDING_THEME_VARS[theme] ?? baseTokenVars;
|
|
return Object.entries(vars)
|
|
.map(([name, value]) => `${name}: ${value}`)
|
|
.join('; ');
|
|
}
|