mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
removed redux completely
This commit is contained in:
parent
26e6d8d41b
commit
a4bb07e9cf
323 changed files with 2464 additions and 3348 deletions
25
src/constants/auth/index.ts
Normal file
25
src/constants/auth/index.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { IUser } from '~/types/auth';
|
||||
|
||||
export enum Role {
|
||||
Guest = 'guest',
|
||||
User = 'user',
|
||||
Admin = 'admin',
|
||||
}
|
||||
|
||||
export const EMPTY_USER: IUser = {
|
||||
id: 0,
|
||||
role: Role.Guest,
|
||||
email: '',
|
||||
name: '',
|
||||
username: '',
|
||||
photo: undefined,
|
||||
cover: undefined,
|
||||
is_activated: false,
|
||||
is_user: false,
|
||||
fullname: '',
|
||||
description: '',
|
||||
|
||||
last_seen: '',
|
||||
last_seen_messages: '',
|
||||
last_seen_boris: '',
|
||||
};
|
6
src/constants/auth/socials.ts
Normal file
6
src/constants/auth/socials.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { OAuthProvider } from '~/types/auth';
|
||||
|
||||
export const SOCIAL_ICONS: Record<OAuthProvider, string> = {
|
||||
vkontakte: 'vk',
|
||||
google: 'google',
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue