* 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
20 lines
345 B
TypeScript
20 lines
345 B
TypeScript
import type { User } from 'common/types';
|
|
|
|
const user: Readonly<User> = {
|
|
id: 'email_1',
|
|
name: 'John',
|
|
picture: 'some_picture',
|
|
admin: false,
|
|
ip: '127.0.0.1',
|
|
block: false,
|
|
verified: false,
|
|
email_subscription: false,
|
|
};
|
|
|
|
const anonymousUser: Readonly<User> = {
|
|
...user,
|
|
id: 'anonymous_1',
|
|
};
|
|
|
|
export { user, anonymousUser };
|