Skip to content

Commit

Permalink
New Features:
Browse files Browse the repository at this point in the history
1. Folder optimization moving into directories
New Pages:
Bugs Corrected:
To Be Corrected:
0. On product delete, delete trace results
1. On product delete, delete flamegraph result
2. Add AI to System Tests
  • Loading branch information
juanfranciscocis committed Sep 3, 2024
1 parent feecc20 commit 98a1c05
Show file tree
Hide file tree
Showing 196 changed files with 172 additions and 172 deletions.
54 changes: 27 additions & 27 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ const routes: Routes = [
},
{
path: 'home',
loadChildren: () => import('./pages/home/home.module').then(m => m.HomePageModule),
loadChildren: () => import('./pages/main_graphs/home/home.module').then(m => m.HomePageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'register',
loadChildren: () => import('./pages/register/register.module').then( m => m.RegisterPageModule),
loadChildren: () => import('./pages/login_register/register/register.module').then(m => m.RegisterPageModule),
...canActivate(redirectLoggedInToHome)
},
{
path: 'login',
loadChildren: () => import('./pages/login/login.module').then( m => m.LoginPageModule),
loadChildren: () => import('./pages/login_register/login/login.module').then(m => m.LoginPageModule),
...canActivate(redirectLoggedInToHome)

},
Expand All @@ -34,72 +34,72 @@ const routes: Routes = [
},
{
path: 'model-product',
loadChildren: () => import('./pages/model-product/model-product.module').then( m => m.ModelProductPageModule),
loadChildren: () => import('./pages/model_the_product/model-product/model-product.module').then(m => m.ModelProductPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'new-product',
loadChildren: () => import('./pages/new-product/new-product.module').then( m => m.NewProductPageModule),
loadChildren: () => import('./pages/model_the_product/new-product/new-product.module').then(m => m.NewProductPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'view-product',
loadChildren: () => import('./pages/view-product/view-product.module').then( m => m.ViewProductPageModule),
loadChildren: () => import('./pages/model_the_product/view-product/view-product.module').then(m => m.ViewProductPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'show-map',
loadChildren: () => import('./pages/show-map/show-map.module').then( m => m.ShowMapPageModule),
loadChildren: () => import('./pages/latency_test/show-map/show-map.module').then(m => m.ShowMapPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'latency-test',
loadChildren: () => import('./pages/latency-test/latency-test.module').then( m => m.LatencyTestPageModule),
loadChildren: () => import('./pages/latency_test/latency-test/latency-test.module').then(m => m.LatencyTestPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'latency-chooser',
loadChildren: () => import('./pages/latency-chooser/latency-chooser.module').then( m => m.LatencyChooserPageModule),
loadChildren: () => import('./pages/latency_test/latency-chooser/latency-chooser.module').then(m => m.LatencyChooserPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'latency-results',
loadChildren: () => import('./pages/latency-results/latency-results.module').then( m => m.LatencyResultsPageModule),
loadChildren: () => import('./pages/latency_test/latency-results/latency-results.module').then(m => m.LatencyResultsPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'graph-latency',
loadChildren: () => import('./pages/graph-latency/graph-latency.module').then(m => m.GraphPageModule),
loadChildren: () => import('./pages/main_graphs/latency_graph/graph-latency/graph-latency.module').then(m => m.GraphPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'trace-chooser',
loadChildren: () => import('./pages/trace-chooser/trace-chooser.module').then( m => m.TraceChooserPageModule),
loadChildren: () => import('./pages/trace_test/trace-chooser/trace-chooser.module').then(m => m.TraceChooserPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'trace-test',
loadChildren: () => import('./pages/trace-test/trace-test.module').then( m => m.TraceTestPageModule),
loadChildren: () => import('./pages/trace_test/trace-test/trace-test.module').then(m => m.TraceTestPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'trace-results',
loadChildren: () => import('./pages/trace-results/trace-results.module').then( m => m.TraceResultsPageModule),
loadChildren: () => import('./pages/trace_test/trace-results/trace-results.module').then(m => m.TraceResultsPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'show-map-trace',
loadChildren: () => import('./pages/show-map-trace/show-map-trace.module').then( m => m.ShowMapTracePageModule),
loadChildren: () => import('./pages/trace_test/show-map-trace/show-map-trace.module').then(m => m.ShowMapTracePageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'graph-data-for',
loadChildren: () => import('./pages/graph-data-for/graph-data-for.module').then( m => m.GraphDataForPageModule),
loadChildren: () => import('./pages/main_graphs/graph-data-for/graph-data-for.module').then(m => m.GraphDataForPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'graph-trace',
loadChildren: () => import('./pages/graph-trace/graph-trace.module').then( m => m.GraphTracePageModule),
loadChildren: () => import('./pages/main_graphs/traceroute_graph/graph-trace/graph-trace.module').then(m => m.GraphTracePageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
Expand All @@ -109,42 +109,42 @@ const routes: Routes = [
},
{
path: 'flame-graph',
loadChildren: () => import('./pages/flame-graph/flame-graph.module').then( m => m.FlameGraphPageModule),
loadChildren: () => import('./pages/flame_graph/flame-graph/flame-graph.module').then(m => m.FlameGraphPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'flame-graph-for',
loadChildren: () => import('./pages/flame-graph-for/flame-graph-for.module').then( m => m.FlameGraphForPageModule),
loadChildren: () => import('./pages/flame_graph/flame-graph-for/flame-graph-for.module').then(m => m.FlameGraphForPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'flame-graph-date',
loadChildren: () => import('./pages/flame-graph-date/flame-graph-date.module').then( m => m.FlameGraphDatePageModule),
loadChildren: () => import('./pages/flame_graph/flame-graph-date/flame-graph-date.module').then(m => m.FlameGraphDatePageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'flame-graph-compare',
loadChildren: () => import('./pages/flame-graph-compare/flame-graph-compare.module').then( m => m.FlameGraphComparePageModule),
loadChildren: () => import('./pages/flame_graph/flame-graph-compare/flame-graph-compare.module').then(m => m.FlameGraphComparePageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'software-testing',
loadChildren: () => import('./pages/software-testing/software-testing.module').then( m => m.SoftwareTestingPageModule),
loadChildren: () => import('./pages/software_testing/software-testing/software-testing.module').then(m => m.SoftwareTestingPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'software-testing-chooser',
loadChildren: () => import('./pages/software-testing-chooser/software-testing-chooser.module').then( m => m.SoftwareTestingChooserPageModule),
loadChildren: () => import('./pages/software_testing/software-testing-chooser/software-testing-chooser.module').then(m => m.SoftwareTestingChooserPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'create-system-test',
loadChildren: () => import('./pages/create-system-test/create-system-test.module').then( m => m.CreateSystemTestPageModule),
loadChildren: () => import('./pages/software_testing/system_tests/create-system-test/create-system-test.module').then(m => m.CreateSystemTestPageModule),
...canActivate(redirectUnauthorizedToLogin),
},
{
path: 'execute-system-test',
loadChildren: () => import('./pages/execute-system-test/execute-system-test.module').then( m => m.ExecuteSystemTestPageModule),
loadChildren: () => import('./pages/software_testing/system_tests/execute-system-test/execute-system-test.module').then(m => m.ExecuteSystemTestPageModule),
...canActivate(redirectUnauthorizedToLogin),
},

Expand All @@ -166,11 +166,11 @@ const routes: Routes = [
},
{
path: 'view-history-system-test',
loadChildren: () => import('./pages/view-history-system-test/view-history-system-test.module').then( m => m.ViewHistorySystemTestPageModule)
loadChildren: () => import('./pages/software_testing/system_tests/view-history-system-test/view-history-system-test.module').then(m => m.ViewHistorySystemTestPageModule)
},
{
path: 'view-system-test',
loadChildren: () => import('./pages/view-system-test/view-system-test.module').then( m => m.ViewSystemTestPageModule)
loadChildren: () => import('./pages/software_testing/system_tests/view-system-test/view-system-test.module').then(m => m.ViewSystemTestPageModule)
},

];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular';
import { FlameGraphComparePageRoutingModule } from './flame-graph-compare-routing.module';

import { FlameGraphComparePage } from './flame-graph-compare.page';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";
import {NgxFlamegraphModule} from "ngx-flamegraph";
import {MarkdownComponent} from "ngx-markdown";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, ElementRef, inject, OnInit, ViewChild} from '@angular/core';
import {FlamegraphColor, RawData} from "ngx-flamegraph/lib/utils";
import { Product } from "../../interfaces/product";
import { FlameGraphService } from "../../services/flame-graph.service";
import { Product } from "../../../interfaces/product";
import { FlameGraphService } from "../../../services/flame-graph.service";
import { LoadingController } from "@ionic/angular";
import { ActivatedRoute } from "@angular/router";
import { User } from "../../interfaces/user";
import { User } from "../../../interfaces/user";
import {getGenerativeModel, VertexAI} from "@angular/fire/vertexai-preview";
import {AiMessage} from "../../interfaces/ai-message";
import {AiMessage} from "../../../interfaces/ai-message";

@Component({
selector: 'app-flame-graph-compare',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular';
import { FlameGraphDatePageRoutingModule } from './flame-graph-date-routing.module';

import { FlameGraphDatePage } from './flame-graph-date.page';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";

@NgModule({
imports: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Component, OnInit } from '@angular/core';
import {FlameGraphService} from "../../services/flame-graph.service";
import {FlameGraphService} from "../../../services/flame-graph.service";
import {LoadingController} from "@ionic/angular";
import {ActivatedRoute, Router} from "@angular/router";
import {User} from "../../interfaces/user";
import {Product} from "../../interfaces/product";
import {User} from "../../../interfaces/user";
import {Product} from "../../../interfaces/product";


@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular';
import { FlameGraphForPageRoutingModule } from './flame-graph-for-routing.module';

import { FlameGraphForPage } from './flame-graph-for.page';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";

@NgModule({
imports: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Component, OnInit } from '@angular/core';
import {Product} from "../../interfaces/product";
import {ProductService} from "../../services/product.service";
import {Product} from "../../../interfaces/product";
import {ProductService} from "../../../services/product.service";
import {AlertController, LoadingController} from "@ionic/angular";
import {ActivatedRoute, Router} from "@angular/router";
import {User} from "../../interfaces/user";
import {FlameGraphService} from "../../services/flame-graph.service";
import {User} from "../../../interfaces/user";
import {FlameGraphService} from "../../../services/flame-graph.service";


@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { FlameGraphPageRoutingModule } from './flame-graph-routing.module';

import { FlameGraphPage } from './flame-graph.page';
import {NgxFlamegraphModule} from "ngx-flamegraph";
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";

@NgModule({
imports: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Component, OnInit } from '@angular/core';
import {FlameGraphConfig} from "ngx-flamegraph";
import {FlamegraphColor, RawData} from "ngx-flamegraph/lib/utils";
import {FlameGraphService} from "../../services/flame-graph.service";
import {FlameGraphService} from "../../../services/flame-graph.service";
import {LoadingController} from "@ionic/angular";
import {ActivatedRoute, Router} from "@angular/router";
import {Product} from "../../interfaces/product";
import {User} from "../../interfaces/user";
import {Product} from "../../../interfaces/product";
import {User} from "../../../interfaces/user";



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular';
import { LatencyChooserPageRoutingModule } from './latency-chooser-routing.module';

import { LatencyChooserPage } from './latency-chooser.page';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";

@NgModule({
imports: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

import { Component, OnInit } from '@angular/core';
import {ProductService} from "../../services/product.service";
import {User} from "../../interfaces/user";
import {Product} from "../../interfaces/product";
import {ProductService} from "../../../services/product.service";
import {User} from "../../../interfaces/user";
import {Product} from "../../../interfaces/product";
import {Router} from "@angular/router";
import {LoadingController} from "@ionic/angular";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular';
import { LatencyResultsPageRoutingModule } from './latency-results-routing.module';

import { LatencyResultsPage } from './latency-results.page';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";

@NgModule({
imports: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {Component, Input, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from "@angular/router";
import {RipeService} from "../../services/ripe.service";
import {User} from "../../interfaces/user";
import {Ripe} from "../../interfaces/ripe";
import {RipeService} from "../../../services/ripe.service";
import {User} from "../../../interfaces/user";
import {Ripe} from "../../../interfaces/ripe";
import {AlertController, LoadingController} from "@ionic/angular";
import {LocationService} from "../../services/location.service";
import {Countries} from "../../interfaces/countries";
import {LocationService} from "../../../services/location.service";
import {Countries} from "../../../interfaces/countries";

@Component({
selector: 'app-latency-results',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular';
import { LatencyTestPageRoutingModule } from './latency-test-routing.module';

import { LatencyTestPage } from './latency-test.page';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";

@NgModule({
imports: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {Component, Input, OnInit} from '@angular/core';
import {RipeService} from "../../services/ripe.service";
import {Ripe} from "../../interfaces/ripe";
import {User} from "../../interfaces/user";
import {RipeService} from "../../../services/ripe.service";
import {Ripe} from "../../../interfaces/ripe";
import {User} from "../../../interfaces/user";
import {AlertController, LoadingController} from "@ionic/angular";
import {LocationService} from "../../services/location.service";
import {LocationService} from "../../../services/location.service";
import {ActivatedRoute, Router} from "@angular/router";
import {Countries} from "../../interfaces/countries";
import {Countries} from "../../../interfaces/countries";
import {compass} from "ionicons/icons";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular';
import { ShowMapPageRoutingModule } from './show-map-routing.module';

import { ShowMapPage } from './show-map.page';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";

@NgModule({
imports: [
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {Component, OnDestroy, OnInit} from '@angular/core';
import * as Leaflet from 'leaflet';
// @ts-ignore
import { antPath } from 'leaflet-ant-path';
import {RipeService} from "../../services/ripe.service";
import {RipeService} from "../../../services/ripe.service";
import {LatLngExpression} from "leaflet";
import {Ripe} from "../../interfaces/ripe";
import {Ripe} from "../../../interfaces/ripe";
import {LoadingController} from "@ionic/angular";
import {ActivatedRoute} from "@angular/router";

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Component, Input, OnInit} from '@angular/core';
import {AuthService} from "../../services/auth.service";
import {User} from "../../interfaces/user";
import {AuthService} from "../../../services/auth.service";
import {User} from "../../../interfaces/user";
import {AlertController, LoadingController, NavController} from "@ionic/angular";

@Component({
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Component, Input, OnInit} from '@angular/core';
import {User} from "../../interfaces/user";
import {AuthService} from "../../services/auth.service";
import {User} from "../../../interfaces/user";
import {AuthService} from "../../../services/auth.service";
import {AlertController, LoadingController, NavController} from "@ionic/angular";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular';
import { GraphDataForPageRoutingModule } from './graph-data-for-routing.module';

import { GraphDataForPage } from './graph-data-for.page';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";

@NgModule({
imports: [
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FormsModule } from '@angular/forms';
import { HomePage } from './home.page';

import { HomePageRoutingModule } from './home-routing.module';
import {ComponentsModule} from "../../components/components.module";
import {ComponentsModule} from "../../../components/components.module";


@NgModule({
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 98a1c05

Please sign in to comment.