- Fixed Image avatar user list, q-qvatar rounded image

This commit is contained in:
Paolo Arena
2019-10-25 19:07:56 +02:00
parent 44305d8778
commit 345cf7381f
23 changed files with 333 additions and 250 deletions

View File

@@ -1,30 +1,38 @@
import { IToken } from 'model/other'
import { IMessage } from '@src/model/Calendar'
export const DefaultUser = <IUserState>{
export const DefaultUser: IUserFields = {
email: '',
username: '',
name: '',
surname: '',
password: '',
lang: 'it'
}
export interface IUserState {
userId?: string
export interface IUserFields {
_id?: string
email?: string
username?: string
name?: string
surname?: string
password?: string
lang?: string
ipaddr?: string
perm?: number
img?: string
verified_email?: boolean
tokens?: IToken[]
}
/*
password?: string
lang
*/
export interface IUserState {
my: IUserFields
lang?: string
repeatPassword?: string
tokens?: IToken[]
verified_email?: boolean
categorySel?: string
tokenforgot?: string
@@ -35,14 +43,7 @@ export interface IUserState {
isLogged?: boolean
isAdmin?: boolean
isManager?: boolean
usersList?: IUserList[]
usersList?: IUserFields[]
countusers?: number
msgs?: IMessage[]
}
export interface IUserList {
_id: string
username: string
name?: string
surname?: string
}