Skip to content

Commit

Permalink
when everything was normal
Browse files Browse the repository at this point in the history
  • Loading branch information
pranaysashank committed Sep 9, 2016
1 parent cd4ce2c commit 20a9bf7
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 58 deletions.
7 changes: 5 additions & 2 deletions app/app.module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/app.module.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ import {AuthService} from "./login/auth.service";
import {LoggedOutGuard} from "./login/logged-out.guard";
import {MenuComponent} from "./menu/menu.component";
import {ProfileComponent} from "./user/profile/profile.component";
import {CoursesComponent} from "./user/courses/courses.component";
import {PostsComponent} from "./user/posts/posts.component";
import {PostsService} from "./user/posts/posts.service";

@NgModule({
imports: [BrowserModule, FormsModule, routing, HttpModule],
declarations: [AppComponent, UserComponent, LoginComponent, MenuComponent, ProfileComponent, KeysPipe],
providers: [UserService, LoggedInGuard, AuthService, LoggedOutGuard],
declarations: [AppComponent, UserComponent, LoginComponent, MenuComponent, ProfileComponent, CoursesComponent, PostsComponent, KeysPipe],
providers: [UserService, PostsService, LoggedInGuard, AuthService, LoggedOutGuard],
bootstrap: [ AppComponent ]
})
export class AppModule {
Expand Down
6 changes: 6 additions & 0 deletions app/app.routing.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/app.routing.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/app.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {LoginComponent} from "./login/login.component";
import {LoggedInGuard} from "./login/logged-in.guard";
import {LoggedOutGuard} from "./login/logged-out.guard";
import {ProfileComponent} from "./user/profile/profile.component";
import {CoursesComponent} from "./user/courses/courses.component";
/**
* Created by Pranay Sashank on 9/4/2016.
*/
Expand All @@ -26,6 +27,11 @@ const appRoutes : Routes = [
path: 'profile',
component: ProfileComponent,
canActivate: [LoggedInGuard]
},
{
path: 'courses',
component: CoursesComponent,
canActivate: [LoggedInGuard]
}
]

Expand Down
2 changes: 1 addition & 1 deletion app/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2 class="ui header">
<div class="field">
<input name="password" type="password" placeholder="password" required>
</div>
<button class="ui fluid large submit primary button">Login</button>
<button class="ui fluid large submit primary button"><i class="unlock alternate icon"></i>Login</button>
</div>
</form>
</div>
Expand Down
1 change: 1 addition & 0 deletions app/menu/menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Upbeat
</a>
<div class="right item">
<a class="ui secondary button" routerLink="/courses" routerLinkActive="active">Courses</a>
<a class="ui secondary button" routerLink="/profile" routerLinkActive="active">Profile</a>
<button class="ui negative button" (click)="logout();">Logout</button>
</div>
Expand Down
28 changes: 0 additions & 28 deletions app/posts.component.js

This file was deleted.

1 change: 0 additions & 1 deletion app/posts.component.js.map

This file was deleted.

13 changes: 0 additions & 13 deletions app/posts.component.ts

This file was deleted.

28 changes: 22 additions & 6 deletions app/user/profile/profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,25 @@
<p *ngFor="let key of user['Personal Details'] | keys" class="ui segment" (click)="gotoCourse()">
{{key}}:{{user['Personal Details'][key]}}
</p>
<div *ngFor="let key of user['Attendance_Dates'] | keys">
{{key}}
<p *ngFor="let days of key | keys">
{{days}}
</p>
</div>
<table>
<thead>
<tr>
<th>Attendance Date</th>
<th>P1 (9:40 - 10:30)</th>
<th>P2 (10:30 - 11:20)</th>
<th>P3 (11:20 - 12:10)</th>
<th>P4 (12:10 - 1:00)</th>
<th>P5 (1:40 - 2:30)</th>
<th>P6 (2:30 - 3:20)</th>
<th>P7 (3:20 - 4:10)</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let key of user['Attendance_Dates'] | keys">
<td>{{key}}</td>
<td *ngFor="let days of user['Attendance_Dates'][key] | keys">
{{days}}
</td>
</tr>
</tbody>
</table>
3 changes: 2 additions & 1 deletion app/user/user.component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/user/user.component.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion app/user/user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {AuthService} from "../login/auth.service";

@Component({
selector: 'user',
templateUrl: 'app/user/user.component.html',
template: `
<div class="ui main container"><posts></posts></div>`,
// templateUrl: 'app/user/user.component.html',
styleUrls: ['app/user/user.component.css']
})
export class UserComponent implements OnInit {
Expand Down

0 comments on commit 20a9bf7

Please sign in to comment.