Migrate actions,reducers and action types to TS #15
This commit is contained in:
67
app/reducers/imageGallery/ImageGalleryState.ts
Normal file
67
app/reducers/imageGallery/ImageGalleryState.ts
Normal file
@@ -0,0 +1,67 @@
|
||||
import { Image } from "domain/imageGallery";
|
||||
|
||||
/**
|
||||
* ImageGallery state
|
||||
*
|
||||
* @export
|
||||
* @class ImageGalleryState
|
||||
*/
|
||||
export class ImageGalleryState {
|
||||
|
||||
/**
|
||||
* Image gallery is open {true} or not {false}
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
status: Boolean = false;
|
||||
|
||||
/**
|
||||
* The list of image
|
||||
*
|
||||
* @type {(Image[] | null)}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
images: Image[] = [];
|
||||
|
||||
/**
|
||||
* Selected image name
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
selectImage: string = '';
|
||||
|
||||
/**
|
||||
* Selected image address
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
selectURL: string = '';
|
||||
|
||||
/**
|
||||
* If image gallery is loaded {true} or not false
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
loaded: Boolean = false;
|
||||
|
||||
/**
|
||||
* Images address list
|
||||
*
|
||||
* @type {*}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
imageURLList: any = {};
|
||||
|
||||
/**
|
||||
* Store image requested
|
||||
*
|
||||
* @type {*}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
imageRequests: any = {};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user