-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
530 additions
and
239 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,37 @@ | ||
import {NgModule} from "@angular/core"; | ||
import {RouterModule, Routes} from "@angular/router"; | ||
import {StartseiteComponent} from "./startseite/startseite.component"; | ||
import {HomepageComponent} from "./homepage/homepage.component"; | ||
import {ExponentiationComponent} from "./exponentiation/exponentiation.component"; | ||
import {ExtendedGcdComponent} from "./extendedgcd/extended-gcd.component"; | ||
import {ShanksComponent} from "./shanks/shanks.component"; | ||
import {ClientComponent} from "./client/client.component"; | ||
import {ModularInverseComponent} from "./modular-inverse/modular-inverse.component"; | ||
import {MultiplicationComponent} from "./multiplication/multiplication.component"; | ||
import {MenezesVanstoneComponent} from "./menezes-vanstone/menezes-vanstone.component"; | ||
import {RsaComponent} from "./rsa/rsa.component"; | ||
|
||
/** | ||
* Defines the routes of the application. | ||
* The routing takes place in navbar.component.html and homepage.html | ||
*/ | ||
export const routes: Routes = [ | ||
{path: "startseite", component: StartseiteComponent}, | ||
{path: "homepage", component: HomepageComponent}, | ||
{path: "client/:client", component: ClientComponent}, | ||
{path: "menezesVanstone", component: MenezesVanstoneComponent}, | ||
{path: "rsa", component: RsaComponent}, | ||
{path: "exponentiation", component: ExponentiationComponent}, | ||
{path: "extendedGcd", component: ExtendedGcdComponent}, | ||
{path: "shanks", component: ShanksComponent}, | ||
{path: "modularInverse", component: ModularInverseComponent}, | ||
{path: `multiplication`, component: MultiplicationComponent}, | ||
{path: "", redirectTo: "/startseite", pathMatch: "full"}, | ||
{path: "**", component: StartseiteComponent} | ||
{path: "", redirectTo: "/homepage", pathMatch: "full"}, | ||
{path: "**", component: HomepageComponent} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forRoot(routes)], | ||
exports: [RouterModule] | ||
}) | ||
|
||
export class AppRoutingModule { | ||
} |
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 |
---|---|---|
@@ -1,86 +1,25 @@ | ||
.global-container { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
} | ||
// Style for the app component | ||
|
||
.sidenav-header { | ||
font-size: 1.8vw; | ||
.big-server-not-reachable-text { | ||
font-size: 2.5vh; | ||
font-weight: bold; | ||
margin-bottom: 1vw; | ||
margin-top: 1vw; | ||
text-align: center; | ||
margin-top: 40vh; | ||
} | ||
|
||
.sidenav-header > div { | ||
line-height: 3vh; | ||
} | ||
|
||
.sidenav-logo { | ||
width: 100%; | ||
margin-bottom: 1vh; | ||
} | ||
|
||
.sidenav-content { | ||
.main-content { | ||
height: 96vh; | ||
width: 77vw; | ||
background-color: #eee; | ||
padding: 2vh 2vw; | ||
} | ||
|
||
.sidenav-footer { | ||
margin-top: auto; | ||
width: 100%; | ||
text-align: center; | ||
font-size: 1.2vh; | ||
} | ||
|
||
.inner-sidenav-container { | ||
height: 100%; | ||
.sidenav-container { | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
row-gap: 1vh; | ||
overflow: hidden; | ||
flex-direction: row; | ||
} | ||
|
||
.sidenav { | ||
height: 100%; | ||
width: 19vw; | ||
position: fixed; | ||
z-index: 1; | ||
top: 0; | ||
left: 0; | ||
background-color: #fff; | ||
padding: 2vh 2vw; | ||
} | ||
|
||
.sidenav button { | ||
width: 100%; | ||
cursor: pointer; | ||
font-size: 1.8vh; | ||
padding: 2vh 2vw; | ||
} | ||
|
||
.sidenav-client-button-container { | ||
display: flex; | ||
flex-direction: column; | ||
row-gap: 1vh; | ||
justify-content: flex-end; | ||
} | ||
|
||
.big-server-not-reachable-text { | ||
font-size: 2.5vh; | ||
font-weight: bold; | ||
text-align: center; | ||
margin-top: 40vh; | ||
} | ||
|
||
.turbo-toggle-button { | ||
display: flex; | ||
width: 1vw; | ||
height: 1vh; | ||
font-size: 1.8vh; | ||
cursor: pointer; | ||
} | ||
width: 20vw; | ||
} |
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,22 @@ | ||
<mat-accordion multi> | ||
<div class="encription-container"> | ||
<mat-expansion-panel expanded> | ||
<mat-expansion-panel-header> | ||
<mat-panel-title> | ||
<!-- todo, text auslagern in component für besseres databinding (two-way-binding)--> | ||
Wählen Sie eine Art ver Verschlüsselung aus | ||
</mat-panel-title> | ||
</mat-expansion-panel-header> | ||
|
||
<div class="button-container"> | ||
<button mat-raised-button routerLink="/menezesVanstone" color="primary">Menezes-Vanstone</button> | ||
<button mat-raised-button routerLink="/rsa" color="primary">RSA</button> | ||
</div> | ||
</mat-expansion-panel> | ||
</div> | ||
</mat-accordion> | ||
<div class="element-below-accordion-container"> | ||
<button mat-fab color="primary" (click)="openNameInputDialog()"> | ||
<mat-icon>person_add</mat-icon> | ||
</button> | ||
</div> |
Oops, something went wrong.