* change root dit and change way to import modules * update deps to latest versions * use latest tools for building bundles * rewrite webpack config * use nomodule technique for loading modern bundle * inject polyfills by babel usebuiltins * update eslint rules * rename all style files to CSS * use postcss preset env for building styles * proper typescript typing * put all html files to templates folder * etc
12 lines
393 B
TypeScript
12 lines
393 B
TypeScript
import parseQuery from 'utils/parseQuery';
|
|
|
|
import type { UserInfo } from './types';
|
|
|
|
export const userInfo: UserInfo = parseQuery();
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
export const isDefaultPicture = ((userInfo.isDefaultPicture as any) as string) !== '1';
|
|
export const id = userInfo.id;
|
|
export const name = userInfo.name;
|
|
export const picture = userInfo.picture;
|