-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. CORS and Request to Ripe Atlas New Pages: 1. Latency Test Bugs Corrected: To Be Corrected:
- Loading branch information
1 parent
13de195
commit 96e1dda
Showing
29 changed files
with
235 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
import { LatencyTestPage } from './latency-test.page'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: LatencyTestPage | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule], | ||
}) | ||
export class LatencyTestPageRoutingModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { FormsModule } from '@angular/forms'; | ||
|
||
import { IonicModule } from '@ionic/angular'; | ||
|
||
import { LatencyTestPageRoutingModule } from './latency-test-routing.module'; | ||
|
||
import { LatencyTestPage } from './latency-test.page'; | ||
import {ComponentsModule} from "../../components/components.module"; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
IonicModule, | ||
LatencyTestPageRoutingModule, | ||
ComponentsModule | ||
], | ||
declarations: [LatencyTestPage] | ||
}) | ||
export class LatencyTestPageModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<app-header [title]="'Latency Test'"></app-header> | ||
|
||
<ion-content [fullscreen]="true"> | ||
<ion-grid> | ||
<app-title [title]="'Latency Test'"></app-title> | ||
<ion-row class="lg:m-10 md:m-10"> | ||
<ion-col size="12" size-md="4" size-lg="4" class=""> | ||
<ion-input class="" label="Target" placeholder="Enter a url target" type="text" labelPlacement="stacked" [(ngModel)]="target"></ion-input> | ||
</ion-col> | ||
<ion-col size="12" size-md="4" size-lg="4"> | ||
<ion-input class="" label="Description" placeholder="Enter a description" type="text" labelPlacement="stacked" [(ngModel)]="description"></ion-input> | ||
</ion-col> | ||
<ion-col size="12" size-md="4" size-lg="4"> | ||
<ion-list> | ||
<ion-item> | ||
<ion-select | ||
placeholder="Select a Type" | ||
(ionChange)="changeType($event)" | ||
> | ||
<div slot="label">Select a Type <ion-text color="danger">(Required)</ion-text></div> | ||
<ion-select-option value="ping" [(ngModel)]="type">Ping</ion-select-option> | ||
<ion-select-option value="traceroute" [(ngModel)]="type">Traceroute</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
</ion-list> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row class="lg:m-10 md:m-10"> | ||
<ion-col size="12" size-md="12" size-lg="12" class="flex flex-row justify-end"> | ||
<ion-button class="" (click)="sendMeasurementRequest()" color="primary">Add Test</ion-button> | ||
<ion-button class="" (click)="getMeasurementResults()" color="primary">Get Test Results</ion-button> | ||
</ion-col> | ||
</ion-row> | ||
</ion-grid> | ||
</ion-content> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { LatencyTestPage } from './latency-test.page'; | ||
|
||
describe('LatencyTestPage', () => { | ||
let component: LatencyTestPage; | ||
let fixture: ComponentFixture<LatencyTestPage>; | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(LatencyTestPage); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import {Component, Input, OnInit} from '@angular/core'; | ||
import {RipeService} from "../../services/ripe.service"; | ||
|
||
@Component({ | ||
selector: 'app-latency-test', | ||
templateUrl: './latency-test.page.html', | ||
styleUrls: ['./latency-test.page.scss'], | ||
}) | ||
export class LatencyTestPage implements OnInit { | ||
|
||
@Input() target: string = 'portfoliojuanfranciscocisneros.web.app'; | ||
@Input() description: string = 'IONIC-TEST'; | ||
@Input() type: string = 'ping'; | ||
|
||
|
||
constructor( | ||
private ripeService: RipeService | ||
) { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
async sendMeasurementRequest() { | ||
console.log(this.target, this.description, this.type); | ||
await this.ripeService.sendMeasurementRequest(this.target, this.description, this.type); | ||
} | ||
|
||
async getMeasurementResults() { | ||
let response = await this.ripeService.getMeasurementResults(); | ||
console.log(response); | ||
} | ||
|
||
changeType($event: any) { | ||
this.type = $event.detail.value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.