diff --git a/Code/groupH_M32COM.Angular/ClientApp/src/app/account/component/account.component.ts b/Code/groupH_M32COM.Angular/ClientApp/src/app/account/component/account.component.ts index bd9a81a..7a3f9e5 100644 --- a/Code/groupH_M32COM.Angular/ClientApp/src/app/account/component/account.component.ts +++ b/Code/groupH_M32COM.Angular/ClientApp/src/app/account/component/account.component.ts @@ -1,5 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; +import { CrewMember } from 'src/app/models/CrewMember'; +import { AuthService } from 'src/app/auth/auth.service'; @Component({ selector: 'app-account', @@ -8,10 +10,15 @@ import { FormGroup, FormControl, Validators } from '@angular/forms'; }) export class AccountComponent implements OnInit { - constructor() { } + constructor(private authservice:AuthService) { } form: FormGroup; - + crewMember:CrewMember; ngOnInit() { + console.log("oninit") + + this.crewMember = this.authservice.getUser(); + + this.form = new FormGroup({ Email: new FormControl(null, { validators: [Validators.required, Validators.email] diff --git a/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/admin-dashboard/admin-dashboard.component.html b/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/admin-dashboard/admin-dashboard.component.html new file mode 100644 index 0000000..01f9e46 --- /dev/null +++ b/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/admin-dashboard/admin-dashboard.component.html @@ -0,0 +1,3 @@ +
+ admin-dashboard works! +
diff --git a/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/admin-dashboard/admin-dashboard.component.scss b/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/admin-dashboard/admin-dashboard.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/admin-dashboard/admin-dashboard.component.spec.ts b/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/admin-dashboard/admin-dashboard.component.spec.ts new file mode 100644 index 0000000..c8ca0e4 --- /dev/null +++ b/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/admin-dashboard/admin-dashboard.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AdminDashboardComponent } from './admin-dashboard.component'; + +describe('AdminDashboardComponent', () => { + let component: AdminDashboardComponent; + let fixture: ComponentFixture+ manage-events works! +
diff --git a/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/manage-events/manage-events.component.scss b/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/manage-events/manage-events.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/manage-events/manage-events.component.spec.ts b/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/manage-events/manage-events.component.spec.ts new file mode 100644 index 0000000..e0aafd9 --- /dev/null +++ b/Code/groupH_M32COM.Angular/ClientApp/src/app/admin/manage-events/manage-events.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ManageEventsComponent } from './manage-events.component'; + +describe('ManageEventsComponent', () => { + let component: ManageEventsComponent; + let fixture: ComponentFixture{{ modalData?.action }}+
{{ modalData?.event | json }}+
Title | +Primary color | +Secondary color | +Starts at | +Ends at | +Remove | +
---|---|---|---|---|---|
+ + | ++ + | ++ + | ++ + | ++ + | ++ + | +
+ Request ID: @Model.RequestId
+
+ Swapping to Development environment will display more detailed information about the error that occurred. +
++ Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. +
diff --git a/seema/Code/groupH_M32COM.Angular/Pages/Error.cshtml.cs b/seema/Code/groupH_M32COM.Angular/Pages/Error.cshtml.cs new file mode 100644 index 0000000..c61be86 --- /dev/null +++ b/seema/Code/groupH_M32COM.Angular/Pages/Error.cshtml.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace groupH_M32COM.Angular.Pages +{ + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + public class ErrorModel : PageModel + { + public string RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + public void OnGet() + { + RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; + } + } +} diff --git a/seema/Code/groupH_M32COM.Angular/Pages/_ViewImports.cshtml b/seema/Code/groupH_M32COM.Angular/Pages/_ViewImports.cshtml new file mode 100644 index 0000000..c8c31e2 --- /dev/null +++ b/seema/Code/groupH_M32COM.Angular/Pages/_ViewImports.cshtml @@ -0,0 +1,3 @@ +@using groupH_M32COM.Angular +@namespace groupH_M32COM.Angular.Pages +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/seema/Code/groupH_M32COM.Angular/Program.cs b/seema/Code/groupH_M32COM.Angular/Program.cs new file mode 100644 index 0000000..55da26a --- /dev/null +++ b/seema/Code/groupH_M32COM.Angular/Program.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; + +namespace groupH_M32COM.Angular +{ + public class Program + { + public static void Main(string[] args) + { + CreateWebHostBuilder(args).Build().Run(); + } + + public static IWebHostBuilder CreateWebHostBuilder(string[] args) => + WebHost.CreateDefaultBuilder(args) + .UseStartup