import { IService } from '../../interfaces/interface.service' ; import { Entry , ESettingType } from '../../controller/settings/field.store' ; import { ClientTestStrings } from './settings.client.string' ; import { ClientTestNumbers } from './setings.client.number' ; import SettingsService from '../service.settings' ; import * as Toolkit from 'chipmunk.client.toolkit' ; export const CSettings = { client : { strings : new ClientTestStrings ( { key : 'strings' , name : 'Strings' , desc : 'Test of string setting' , path : 'client' , type : ESettingType . standard , value : '' } ) , numbers : new ClientTestNumbers ( { key : 'numbers' , name : 'Numbers' , desc : 'Test of number setting' , path : 'client' , type : ESettingType . standard , value : 25 } ) , } , general : { client : { strings : new ClientTestStrings ( { key : 'strings' , name : 'Strings G' , desc : 'Test of string setting' , path : 'general.client' , type : ESettingType . standard , value : 'something' } ) , numbers : new ClientTestNumbers ( { key : 'numbers' , name : 'Numbers G' , desc : 'Test of number setting' , path : 'general.client' , type : ESettingType . standard , value : 34 } ) , } } , } ; export class SettingsDefaultsService implements IService { private _logger : Toolkit . Logger = new Toolkit . Logger ( 'SettingsDefaultsService' ) ; constructor ( ) { } public init ( ) { return new Promise ( ( resolve ) => { resolve ( ) ; } ) ; } public getName ( ) { return 'SettingsDefaultsService' ; } public destroy ( ) { } } export default ( new SettingsDefaultsService ( ) ) ;