mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-02 11:06:44 +00:00
Changed uppercase to lowercase
This commit is contained in:
parent
434bf57cd1
commit
2816202ee5
@ -135,7 +135,6 @@ export class AddIouTemplateComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.iouService.addTemplate(this.server, this.iouTemplate).subscribe((template: IouTemplate) => {
|
this.iouService.addTemplate(this.server, this.iouTemplate).subscribe((template: IouTemplate) => {
|
||||||
debugger
|
|
||||||
this.goBack();
|
this.goBack();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -18,7 +18,7 @@ export class ApplianceService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getUploadPath(server: Server, emulator: string, filename: string) {
|
getUploadPath(server: Server, emulator: string, filename: string) {
|
||||||
return `${server.protocol}//${server.host}:${server.port}/${environment.current_Version}/images/upload/${filename}`;
|
return `${server.protocol}//${server.host}:${server.port}/${environment.current_version}/images/upload/${filename}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
updateAppliances(server: Server): Observable<Appliance[]> {
|
updateAppliances(server: Server): Observable<Appliance[]> {
|
||||||
|
@ -35,7 +35,7 @@ describe('ImageManagerService', () => {
|
|||||||
|
|
||||||
it('should be get Images', inject([ImageManagerService], (service: ImageManagerService) => {
|
it('should be get Images', inject([ImageManagerService], (service: ImageManagerService) => {
|
||||||
service.getImages(server).subscribe();
|
service.getImages(server).subscribe();
|
||||||
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_Version}/images`);
|
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/images`);
|
||||||
expect(req.request.method).toEqual('GET');
|
expect(req.request.method).toEqual('GET');
|
||||||
expect(service).toBeTruthy();
|
expect(service).toBeTruthy();
|
||||||
}));
|
}));
|
||||||
@ -54,7 +54,7 @@ describe('ImageManagerService', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
service.uploadedImage(server, install_appliance, image.filename, image).subscribe();
|
service.uploadedImage(server, install_appliance, image.filename, image).subscribe();
|
||||||
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_Version}/images/upload/?install_appliances=true`);
|
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/images/upload/?install_appliances=true`);
|
||||||
expect(req.request.method).toEqual('POST');
|
expect(req.request.method).toEqual('POST');
|
||||||
expect(req.request.body).toEqual(image);
|
expect(req.request.body).toEqual(image);
|
||||||
}));
|
}));
|
||||||
|
@ -15,7 +15,7 @@ export class IosService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getImagePath(server: Server, filename: string): string {
|
getImagePath(server: Server, filename: string): string {
|
||||||
return `${server.protocol}//${server.host}:${server.port}/${environment.current_Version}/images/upload/${filename}`;
|
return `${server.protocol}//${server.host}:${server.port}/${environment.current_version}/images/upload/${filename}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
getTemplates(server: Server): Observable<IosTemplate[]> {
|
getTemplates(server: Server): Observable<IosTemplate[]> {
|
||||||
|
@ -23,7 +23,7 @@ export class IouService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getImagePath(server: Server, filename: string): string {
|
getImagePath(server: Server, filename: string): string {
|
||||||
return `${server.protocol}//${server.host}:${server.port}/${environment.current_Version}/images/upload/${filename}`;
|
return `${server.protocol}//${server.host}:${server.port}/${environment.current_version}/images/upload/${filename}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
addTemplate(server: Server, iouTemplate: any): Observable<any> {
|
addTemplate(server: Server, iouTemplate: any): Observable<any> {
|
||||||
|
@ -2,5 +2,5 @@ export const environment = {
|
|||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
production: true,
|
production: true,
|
||||||
electron: true,
|
electron: true,
|
||||||
current_Version:'v3'
|
current_version:'v3'
|
||||||
};
|
};
|
||||||
|
@ -2,5 +2,5 @@ export const environment = {
|
|||||||
production: false,
|
production: false,
|
||||||
electron: true,
|
electron: true,
|
||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
current_Version:'v3'
|
current_version:'v3'
|
||||||
};
|
};
|
||||||
|
@ -3,5 +3,5 @@ export const environment = {
|
|||||||
electron: false,
|
electron: false,
|
||||||
githubio: true,
|
githubio: true,
|
||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
current_Version:'v3'
|
current_version:'v3'
|
||||||
};
|
};
|
||||||
|
@ -3,5 +3,5 @@ export const environment = {
|
|||||||
electron: false,
|
electron: false,
|
||||||
githubio: false,
|
githubio: false,
|
||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
current_Version:'v3'
|
current_version:'v3'
|
||||||
};
|
};
|
||||||
|
@ -7,7 +7,7 @@ export const environment = {
|
|||||||
electron: false,
|
electron: false,
|
||||||
githubio: false,
|
githubio: false,
|
||||||
solarputty_download_url: '',
|
solarputty_download_url: '',
|
||||||
current_Version:'v3'
|
current_version:'v3'
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user