Loading src/app/shared-service.spec.ts 0 → 100644 +7 −0 Original line number Diff line number Diff line import { SharedService } from './shared-service'; describe('SharedService', () => { it('should create an instance', () => { expect(new SharedService()).toBeTruthy(); }); }); src/app/shared-service.ts 0 → 100644 +31 −0 Original line number Diff line number Diff line export class SharedService { userInfoURL: string; siteURL: string; siteShortURL: string; signInURL: string; redirectionURL: string; baseURL: string; hostsURL: string; serviceCompURL: string; address: string; pagesize: number; constructor( ) { this.address = 'https://svmon-dev-test.scc.kit.edu:8443'; this.baseURL = this.address + '/api/'; this.userInfoURL = this.baseURL + 'user/me' ; this.siteURL = this.baseURL + 'sites'; this.hostsURL = this.baseURL + 'sites/hosts/'; this.siteShortURL = this.baseURL + 'sites/briefreport'; this.signInURL = this.baseURL + 'auth/signin'; this.redirectionURL = this.address + '/login'; this.serviceCompURL = this.baseURL + 'serviceComponent/all/historic/'; this.pagesize = 50; } } Loading
src/app/shared-service.spec.ts 0 → 100644 +7 −0 Original line number Diff line number Diff line import { SharedService } from './shared-service'; describe('SharedService', () => { it('should create an instance', () => { expect(new SharedService()).toBeTruthy(); }); });
src/app/shared-service.ts 0 → 100644 +31 −0 Original line number Diff line number Diff line export class SharedService { userInfoURL: string; siteURL: string; siteShortURL: string; signInURL: string; redirectionURL: string; baseURL: string; hostsURL: string; serviceCompURL: string; address: string; pagesize: number; constructor( ) { this.address = 'https://svmon-dev-test.scc.kit.edu:8443'; this.baseURL = this.address + '/api/'; this.userInfoURL = this.baseURL + 'user/me' ; this.siteURL = this.baseURL + 'sites'; this.hostsURL = this.baseURL + 'sites/hosts/'; this.siteShortURL = this.baseURL + 'sites/briefreport'; this.signInURL = this.baseURL + 'auth/signin'; this.redirectionURL = this.address + '/login'; this.serviceCompURL = this.baseURL + 'serviceComponent/all/historic/'; this.pagesize = 50; } }