vite-plugin-trae-solo-badge
Version:
TRAE Badge component - A beautiful 'Powered by TRAE' badge for web applications
34 lines (28 loc) • 709 B
text/typescript
/**
* TRAE Badge 主入口
*/
// 导出主要类和类型
export { TraeBadge } from './badge';
export type { TraeBadgeOptions, TraeBadgeInstance, BadgeVariant, BadgePosition } from './types';
// 导出工具函数
export {
autoInit,
createBadge,
destroyAllBadges,
isSupported,
getGlobalInstance
} from './utils';
// 导出主题相关的函数
export {
autoSelectTheme,
detectBackgroundColor,
isDarkBackground,
getLuminance,
parseColor
} from './theme';
// 导出常量
export { TRAE_LOGOS, BADGE_CSS, DEFAULT_OPTIONS } from './constants';
// 导出 Vite 插件
export { traeBadgePlugin } from './vite-plugin';
// 默认导出
export { TraeBadge as default } from './badge';