- Finish to fix IOperators

- Fixit Date not change correctly
This commit is contained in:
Paolo Arena
2019-11-01 15:52:58 +01:00
parent 2c62c27e64
commit cdfc32c620
23 changed files with 365 additions and 135 deletions

View File

@@ -1,3 +1,4 @@
import { IOperators } from '@src/model/GlobalStore'
export interface IEvents {
_id?: any
@@ -41,18 +42,6 @@ export interface IBookedEvent {
booked: boolean
}
export interface IOperators {
username: string
cell: string
webpage?: string
img: string
skype?: string
days_working?: string
facebook?: string
disciplines?: string
offers?: string
}
export interface IWheres {
code: string
placename: string
@@ -75,7 +64,6 @@ export interface IBookedEventPage {
state: EState
}
export interface ICalendarState {
editable: boolean
eventlist: IEvents[]

View File

@@ -98,21 +98,22 @@ export interface IListRoutes {
separator?: boolean
}
export interface IPerson {
index?: number
tab?: string
export interface IOperators {
username: string
name: string
sub1: string
sub2?: string
sub3?: string
img: string
cell?: string
surname: string
email?: string
qualification?: string
disciplines?: string
certifications?: string
img?: string
cell?: string
paginaweb?: string
paginafb?: string
intro?: string
info?: string
vario?: string
tab?: string
}
export interface IPreloadImages {

View File

@@ -5,7 +5,23 @@ export const DefaultUser: IUserFields = {
username: '',
name: '',
surname: '',
password: ''
password: '',
profile: {
img: ''
}
}
const enum ESexType {
None = 0,
Male = 1,
Female = 2
}
export interface IUserProfile {
img?: string
cell?: string
dateofbirth?: Date
sex?: ESexType
}
export interface IUserFields {
@@ -17,10 +33,10 @@ export interface IUserFields {
password?: string
ipaddr?: string
perm?: number
img?: string
verified_email?: boolean
tokens?: IToken[]
lasttimeonline?: Date
profile?: IUserProfile
}
/*