Cleanup code
parent
d99310c9b6
commit
5a19cc0dc4
@ -1,4 +1,5 @@
|
|||||||
<div class='sidenav'>
|
<div class='sidenav'>
|
||||||
<span (click)='newDoc()'>New Document</span>
|
<span (click)='newDoc()'>New Document</span>
|
||||||
<span [class.selected]='docId === currentDoc' (click)='loadDoc(docId)' *ngFor='let docId of documents | async'>{{ docId }}</span>
|
<span [class.selected]='docId === currentDoc' (click)='loadDoc(docId)'
|
||||||
|
*ngFor='let docId of documents | async'>{{ docId }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,33 +1,38 @@
|
|||||||
<div id="register">
|
<div id="register">
|
||||||
<mat-card style="text-align: center;" >
|
<mat-card style="text-align: center;">
|
||||||
<mat-card-title>
|
<mat-card-title>
|
||||||
Register
|
Register
|
||||||
</mat-card-title>
|
</mat-card-title>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div class="example-container" (keyup.enter)="onClickSubmit(username.value,email.value,password.value, repeatpassword.value)">
|
<div class="example-container"
|
||||||
|
(keyup.enter)="onClickSubmit(username.value,email.value,password.value, repeatpassword.value)">
|
||||||
<mat-error *ngIf="errorOccurred">{{errorMessage}}</mat-error>
|
<mat-error *ngIf="errorOccurred">{{errorMessage}}</mat-error>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput placeholder="Enter your email" #email >
|
<input matInput placeholder="Enter your email" #email>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput placeholder="Enter your username" #username >
|
<input matInput placeholder="Enter your username" #username>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput placeholder="Enter your password" [type]="hide1 ? 'password' : 'text'" #password>
|
<input matInput placeholder="Enter your password" [type]="hide1 ? 'password' : 'text'" #password>
|
||||||
<button mat-icon-button matSuffix (click)="hide1 = !hide1" [attr.aria-label]="'Hide password'" [attr.aria-pressed]="hide1">
|
<button mat-icon-button matSuffix (click)="hide1 = !hide1" [attr.aria-label]="'Hide password'"
|
||||||
|
[attr.aria-pressed]="hide1">
|
||||||
<mat-icon>{{hide1 ? 'visibility_off' : 'visibility'}}</mat-icon>
|
<mat-icon>{{hide1 ? 'visibility_off' : 'visibility'}}</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput placeholder="Repeat your password" [type]="hide2 ? 'password' : 'text'" #repeatpassword>
|
<input matInput placeholder="Repeat your password" [type]="hide2 ? 'password' : 'text'" #repeatpassword>
|
||||||
<button mat-icon-button matSuffix (click)="hide2 = !hide2" [attr.aria-label]="'Hide password'" [attr.aria-pressed]="hide2">
|
<button mat-icon-button matSuffix (click)="hide2 = !hide2" [attr.aria-label]="'Hide password'"
|
||||||
|
[attr.aria-pressed]="hide2">
|
||||||
<mat-icon>{{hide2 ? 'visibility_off' : 'visibility'}}</mat-icon>
|
<mat-icon>{{hide2 ? 'visibility_off' : 'visibility'}}</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<button mat-raised-button color="primary" (click)="onClickSubmit(username.value,email.value,password.value, repeatpassword.value)">Register</button>
|
<button mat-raised-button color="primary"
|
||||||
|
(click)="onClickSubmit(username.value,email.value,password.value, repeatpassword.value)">Register
|
||||||
|
</button>
|
||||||
<p>You are already part of greenvironment?</p>
|
<p>You are already part of greenvironment?</p>
|
||||||
<a mat-stroked-button color="primary" routerLink="/login">Login</a>
|
<a mat-stroked-button color="primary" routerLink="/login">Login</a>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { User } from 'src/app/models/user';
|
import {User} from 'src/app/models/user';
|
||||||
import { Event } from 'src/app/models/event';
|
import {Event} from 'src/app/models/event';
|
||||||
|
|
||||||
export class Group {
|
export class Group {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
handle: string;
|
handle: string;
|
||||||
creator: User = new User();
|
creator: User = new User();
|
||||||
members: User[] = new Array();
|
members: User[] = [];
|
||||||
admins: User[] = new Array();
|
admins: User[] = [];
|
||||||
events: Event[] = new Array();
|
events: Event[] = [];
|
||||||
joined: boolean;
|
joined: boolean;
|
||||||
allowedToJoinGroup = false;
|
allowedToJoinGroup = false;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import { Hash } from 'crypto';
|
|
||||||
|
|
||||||
export interface Login {
|
export interface Login {
|
||||||
email: string;
|
email: string;
|
||||||
passwordHash: string;
|
passwordHash: string;
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue