biketag-vue
Version:
<h1 align=center>BikeTag-Vue</h1> <div align="center"> <img alt="biketag-vue logo" src="https://raw.githubusercontent.com/keneucker/biketag-website/production/public/img/Tag-Logo-Stacked-V2-medium.png" height="auto" width="200" style="border-radius:25%;">
47 lines (46 loc) • 3.12 kB
TypeScript
import { Game, Tag } from 'biketag/dist/common/schema';
import { BikeTagProfile, BiketagQueueFormSteps, DomainInfo } from '.';
export declare const stringifyNumber: (n: number) => string;
export declare const ordinalSuffixOf: (n: number) => string;
export declare const getBikeTagHash: (val: string) => string;
export declare const getImgurImageSized: (imgurUrl?: string, size?: string) => string;
export declare const getDomainInfo: (req: any) => DomainInfo;
export declare const getTagDate: (time: number) => Date;
export declare const getBikeTagClientOpts: (win?: Window, withToken?: boolean) => {
game: string | undefined;
imgur: {
clientId: string | undefined;
clientSecret: string | undefined;
refreshToken: string | undefined;
};
sanity: {
projectId: string | undefined;
dataset: string | undefined;
};
};
export declare const getProfileFromCookie: (profileCookieKey?: string) => BikeTagProfile;
export declare const getQueuedTagFromCookie: (biketagCookieKey?: string) => Tag | undefined;
export declare const setQueuedTagInCookie: (queuedTag?: Tag, biketagCookieKey?: string) => boolean;
export declare const setProfileCookie: (profile?: BikeTagProfile, profileCookieKey?: string) => boolean;
export declare const encodeBikeTagString: (basic: string) => string;
export declare const getMostRecentlyViewedBikeTagTagnumber: (currentTagnumber: number, mostRecentCookieKey?: string) => number;
export declare const sendNetlifyError: (message: any, then?: ((value: Response) => Response | PromiseLike<Response>) | undefined, action?: string) => Promise<Response>;
export declare const sendNetlifyForm: (action: string, body: any, then: (value: Response) => Response | PromiseLike<Response>, error?: (message: any, then?: ((value: Response) => Response | PromiseLike<Response>) | undefined, action?: string) => Promise<Response>) => Promise<Response>;
export declare const GetQueryString: (win: Window, name: string) => string | null;
export declare const getQueuedTagState: (queuedTag: Tag) => BiketagQueueFormSteps;
export declare const getSupportedGames: (games: Game[]) => Game[];
export declare const getSanityImageActualSize: (logo: string) => string;
export declare const getSanityImageResizedSize: (logo: string) => string;
export declare const getSanityImageUrl: (logo: string, size?: string, sanityBaseCDNUrl?: string, squared?: boolean) => string;
export declare const getApiUrl: (path?: string) => string;
export declare const exportHtmlToDownload: (filename: string, node?: any, selector?: string) => any;
export declare const debug: (message: string, context?: any) => void;
export declare const feetToKm: (feets: number) => number;
export declare const isPointInPolygon: (geojson: any, gps: {
lng: number;
lat: number;
}, distanceOffInFeet: number) => boolean;
export declare const isOnline: (checkExternally?: boolean) => Promise<boolean>;
export declare const isAuthenticationEnabled: () => boolean;
export declare const isGmapsEnabled: () => boolean;
export declare const dequeueErrorNotify: (toast: any) => (error: string) => any;