import { Injectable } from '@angular/core' ; import { LocalStorageService } from 'ngx-store' ; import { HttpClient } from '@angular/common/http' ; import { ProjectSettings } from '../settings/settings.component' ; @ Injectable ( ) export class ProjectSettingsService { public endpointSettings : ProjectSettings ; constructor ( public lss ) { } public saveTriplestoreSettings ( object ) { this . lss . set ( 'endpointSettings' , object ) ; } public getTriplestoreSettings ( ) { this . endpointSettings = this . lss . get ( 'endpointSettings' ) ; return this . endpointSettings ; } public saveDataSettings ( object ) { object . filePath = object . filePath . replace ( 'www.dropbox' , 'dl.dropboxusercontent' ) ; this . lss . set ( 'dataSettings' , object ) ; } public getDataSettings ( ) { return this . lss . get ( 'dataSettings' ) ; } }