Migrate components to typescript

This commit is contained in:
Qolzam
2017-10-30 20:48:18 +07:00
parent 97c2e0f157
commit 7bbb1679ad
346 changed files with 6045 additions and 3946 deletions

View File

@@ -0,0 +1,7 @@
import {User} from './user'
import {Profile} from './profile'
export {
User,
Profile
}

View File

@@ -0,0 +1,45 @@
import { BaseDomain } from 'core/domain/common'
export class Profile extends BaseDomain {
/**
* User avatar address
*
* @type {string}
* @memberof Profile
*/
public avatar: string
/**
* User email
*
* @type {string}
* @memberof Profile
*/
public email?: string | null
/**
* User full name
*
* @type {string}
* @memberof Profile
*/
public fullName: string
/**
* The banner address of user profile
*
* @type {string}
* @memberof Profile
*/
public banner: string
/**
* User tag line
*
* @type {string}
* @memberof Profile
*/
public tagLine: string
}

View File

@@ -0,0 +1,53 @@
import { BaseDomain } from 'core/domain/common'
export class User extends BaseDomain {
/**
* Full name of user
*
* @type {string}
* @memberof User
*/
public fullName: string
/**
* User avatar address
*
* @type {string}
* @memberof User
*/
public avatar: string
/**
* Email of the user
*
* @type {string}
* @memberof User
*/
public email?: string | null
/**
* Password of the user
*
* @type {string}
* @memberof User
*/
public password?: string | null
/**
* User identifier
*
* @type {string}
* @memberof User
*/
public userId?: string | null
/**
* User creation date
*
* @type {number}
* @memberof User
*/
public creationDate: number
}