Files
FixIt/assets/js/core/banner.ts
T
Cell 6f83bc6da5 refactor: restructure TypeScript modules and search config
- 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
2026-06-18 16:09:16 +08:00

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;',
)
}