mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:50:42 +00:00
refactor: prune stale extension types
This commit is contained in:
@@ -15,7 +15,6 @@ import {
|
||||
type DiffLayout,
|
||||
type DiffMode,
|
||||
type DiffOutputFormat,
|
||||
type DiffPresentationDefaults,
|
||||
type DiffTheme,
|
||||
type DiffToolDefaults,
|
||||
} from "./types.js";
|
||||
@@ -314,31 +313,6 @@ export function resolveDiffsPluginViewerBaseUrl(config: unknown): string | undef
|
||||
return normalized ? normalizeViewerBaseUrl(normalized) : undefined;
|
||||
}
|
||||
|
||||
export function toPresentationDefaults(defaults: DiffToolDefaults): DiffPresentationDefaults {
|
||||
const {
|
||||
fontFamily,
|
||||
fontSize,
|
||||
lineSpacing,
|
||||
layout,
|
||||
showLineNumbers,
|
||||
diffIndicators,
|
||||
wordWrap,
|
||||
background,
|
||||
theme,
|
||||
} = defaults;
|
||||
return {
|
||||
fontFamily,
|
||||
fontSize,
|
||||
lineSpacing,
|
||||
layout,
|
||||
showLineNumbers,
|
||||
diffIndicators,
|
||||
wordWrap,
|
||||
background,
|
||||
theme,
|
||||
};
|
||||
}
|
||||
|
||||
function normalizeFontFamily(fontFamily?: string): string {
|
||||
const normalized = fontFamily?.trim();
|
||||
return normalized || DEFAULT_DIFFS_TOOL_DEFAULTS.fontFamily;
|
||||
|
||||
Reference in New Issue
Block a user