mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
6f83bc6da5
- Create PublicAPI class to encapsulate module initialization - Move search config types to modules/search/types.ts - Rename ui.ts to global.ts for clarity - Simplify pagefind engine (remove normalizeSortOrder, toObject) - Move pagefind config to top-level in FixItConfig - Add TSDoc comments and @param tags - Update PagefindConfig.sortOrder type to 'asc' | 'desc' - Improve pagefind detection warning message
15 lines
585 B
TypeScript
15 lines
585 B
TypeScript
/**
|
|
* Console banner — prints a styled FixIt version message in the browser console.
|
|
* @param version - The FixIt version string to display.
|
|
*/
|
|
export function printBanner(version: string) {
|
|
const color = '#FF735A'
|
|
// eslint-disable-next-line no-console
|
|
console.log(
|
|
`%c FixIt ${version} %c https://github.com/hugo-fixit %c`,
|
|
`background: ${color}; border: 1px solid ${color}; padding: 1px; border-radius: 2px 0 0 2px; color: #fff;`,
|
|
`border: 1px solid ${color}; padding: 1px; border-radius: 0 2px 2px 0; color: ${color};`,
|
|
'background: transparent;',
|
|
)
|
|
}
|