ng-hub-ui-avatar
Version:
A powerful, flexible, and standalone Angular avatar component that generates and fetches user avatars from multiple sources including social media, Gravatar, or custom images with intelligent fallback system
18 lines (17 loc) • 490 B
TypeScript
import { AsyncSource } from './async-source';
import { AvatarSource } from './avatar-source.enum';
/**
* GitHub source implementation.
* Fetch avatar source based on github identifier
*/
export declare class Github extends AsyncSource {
readonly sourceType: AvatarSource;
constructor(sourceId: string);
getAvatar(): string;
/**
* extract github avatar from json data
*/
processResponse(data: {
avatar_url: string;
}, size?: number): string;
}