Improvment in tslint standard (#16)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Image } from "domain/imageGallery";
|
||||
import { Image } from 'domain/imageGallery'
|
||||
|
||||
/**
|
||||
* ImageGallery state
|
||||
@@ -14,7 +14,7 @@ export class ImageGalleryState {
|
||||
* @type {Boolean}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
status: Boolean = false;
|
||||
status: Boolean = false
|
||||
|
||||
/**
|
||||
* The list of image
|
||||
@@ -22,7 +22,7 @@ export class ImageGalleryState {
|
||||
* @type {(Image[] | null)}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
images: Image[] = [];
|
||||
images: Image[] = []
|
||||
|
||||
/**
|
||||
* Selected image name
|
||||
@@ -30,7 +30,7 @@ export class ImageGalleryState {
|
||||
* @type {string}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
selectImage: string = '';
|
||||
selectImage: string = ''
|
||||
|
||||
/**
|
||||
* Selected image address
|
||||
@@ -38,7 +38,7 @@ export class ImageGalleryState {
|
||||
* @type {string}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
selectURL: string = '';
|
||||
selectURL: string = ''
|
||||
|
||||
/**
|
||||
* If image gallery is loaded {true} or not false
|
||||
@@ -46,7 +46,7 @@ export class ImageGalleryState {
|
||||
* @type {Boolean}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
loaded: Boolean = false;
|
||||
loaded: Boolean = false
|
||||
|
||||
/**
|
||||
* Images address list
|
||||
@@ -54,7 +54,7 @@ export class ImageGalleryState {
|
||||
* @type {*}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
imageURLList: any = {};
|
||||
imageURLList: any = {}
|
||||
|
||||
/**
|
||||
* Store image requested
|
||||
@@ -62,6 +62,6 @@ export class ImageGalleryState {
|
||||
* @type {*}
|
||||
* @memberof ImageGalleryState
|
||||
*/
|
||||
imageRequests: any = {};
|
||||
imageRequests: any = {}
|
||||
|
||||
}
|
||||
@@ -2,21 +2,21 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
// - Import domain
|
||||
import { User } from "domain/users";
|
||||
import { Image } from "domain/imageGallery";
|
||||
import { User } from 'domain/users'
|
||||
import { Image } from 'domain/imageGallery'
|
||||
|
||||
// - Import image gallery action types
|
||||
import {ImageGalleryActionType} from 'constants/imageGalleryActionType'
|
||||
|
||||
|
||||
import { IImageGalleryAction } from "./IImageGalleryAction";
|
||||
import { ImageGalleryState } from "./ImageGalleryState";
|
||||
import { IImageGalleryAction } from './IImageGalleryAction'
|
||||
import { ImageGalleryState } from './ImageGalleryState'
|
||||
|
||||
|
||||
/**
|
||||
* Image gallery reducer
|
||||
*/
|
||||
export var imageGalleryReducer = (state: ImageGalleryState = new ImageGalleryState(), action: IImageGalleryAction) => {
|
||||
export let imageGalleryReducer = (state: ImageGalleryState = new ImageGalleryState(), action: IImageGalleryAction) => {
|
||||
const { payload } = action
|
||||
|
||||
switch (action.type) {
|
||||
@@ -66,6 +66,6 @@ export var imageGalleryReducer = (state: ImageGalleryState = new ImageGallerySta
|
||||
|
||||
|
||||
default:
|
||||
return state;
|
||||
return state
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { imageGalleryReducer } from "./imageGalleryReducer";
|
||||
import { imageGalleryReducer } from './imageGalleryReducer'
|
||||
|
||||
export {imageGalleryReducer};
|
||||
export {imageGalleryReducer}
|
||||
Reference in New Issue
Block a user