import { Field } from '../../../../common/settings/field.store' ; import ServicePath from '../service.paths' ; export class CoreIndex extends Field < string > { public getDefault ( ) { return new Promise ( ( resolve ) => { resolve ( 'client/index.html' ) ; } ) ; } public validate ( path ) { return new Promise ( ( resolve , reject ) => { const clientPath = ServicePath . resoveRootFolder ( path ) ; if ( ! ServicePath . isExist ( clientPath ) ) { return reject ( new Error ( `Cannot find client on path "${ clientPath }"` ) ) ; } resolve ( ) ; } ) ; } public getElement ( ) { return undefined ; } }