From 8f70977a27fe549a49390119eb869bcaf5460f5e Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Thu, 7 Aug 2025 17:44:28 -0700 Subject: [PATCH 1/2] Update all pages to new angular format --- ToDo.yaml | 4 +- .../pages/main/company/company.component.html | 126 +++++++++++------- .../main/company/editor/editor.component.html | 8 +- .../main/jobs/editor/jobeditor.component.html | 50 +++---- .../app/pages/main/jobs/jobs.component.html | 38 +++--- .../main/jobs/viewer/jobviewer.component.html | 88 ++++++------ .../pages/main/resumes/resumes.component.html | 6 +- 7 files changed, 183 insertions(+), 137 deletions(-) diff --git a/ToDo.yaml b/ToDo.yaml index 011281a..35c717a 100755 --- a/ToDo.yaml +++ b/ToDo.yaml @@ -46,7 +46,9 @@ Client: Edit employees not implimented yet Company: - No employees for table yet + Need to impliment Add employee + Need to impliment Remove employee + Edit Company -> Dont allow edit of company email due to it being verified database: diff --git a/src/Client/src/app/pages/main/company/company.component.html b/src/Client/src/app/pages/main/company/company.component.html index 086f32e..f033da4 100644 --- a/src/Client/src/app/pages/main/company/company.component.html +++ b/src/Client/src/app/pages/main/company/company.component.html @@ -1,58 +1,84 @@
- - + @for(company of Employers; track company.accountID){ + + + }
-
- -
- - - -
-
- -

{{ Comp.name }}

- -
-
-

{{ Comp.city }}, {{ Comp.stateOrRegion }} {{ Comp.postalCode }}

-
-
-

{{ line }}

-
-
- -
-
- VERIFY EMAIL> - You must verify your company email before you can post job listings. -
-
-
-
-

Active Job Listings

-
-
-

{{ listing.title }}

-
- - - -
+ @if(Comp != null){ +
+ + -
-

Employees

- @for (listing of CompEmployees; track listing.id) { -
-
-

{{ listing.accountName }}

-
- - -
+
+ +

{{ Comp.name }}

+ +
+
+

{{ Comp.city }}, {{ Comp.stateOrRegion }} {{ Comp.postalCode }}

+
+
+ @for (line of Desc; track line.length){ +

{{ line }}

}
+
+
+
+ @if (Comp.emailVerified){ +
+ +
+ } @else { +
+ VERIFY EMAIL> + You must verify your company email before you can post job listings. +
+ } +
+

Active Job Listings

+ @for (listing of List; track listing.id) { +
+
+

{{ listing.title }}

+
+ + + +
+ } +
+
+ @if (Comp.emailVerified){ +
+ +
+ } @else { +
+ VERIFY EMAIL> + You must verify your company email before you can post job listings. +
+ } +
+

Employees

+ @for (listing of CompEmployees; track listing.id) { +
+
+

{{ listing.accountName }}

+
+ @if (listing.accountID != auth.loggedInUser.id){ + + } @else { + + } +
+ } +
+
-
+ }
\ No newline at end of file diff --git a/src/Client/src/app/pages/main/company/editor/editor.component.html b/src/Client/src/app/pages/main/company/editor/editor.component.html index bbca485..7f99919 100644 --- a/src/Client/src/app/pages/main/company/editor/editor.component.html +++ b/src/Client/src/app/pages/main/company/editor/editor.component.html @@ -148,9 +148,11 @@ postal code: {{ newListing.postalCode }}
-
- {{ descLine }}
-
+ @for(descLine of newListing.description.split('\n'); track descLine.length){ +
+ {{ descLine }}
+
+ }
diff --git a/src/Client/src/app/pages/main/jobs/editor/jobeditor.component.html b/src/Client/src/app/pages/main/jobs/editor/jobeditor.component.html index e60b47f..2b85627 100644 --- a/src/Client/src/app/pages/main/jobs/editor/jobeditor.component.html +++ b/src/Client/src/app/pages/main/jobs/editor/jobeditor.component.html @@ -40,35 +40,37 @@
-
-
-

Job Location

-
-
-
- - + @if(!Listing.remote){ +
+
+

Job Location

+
+
+
+ + +
+
+ + +
-
- - +
+
+ + +
+
+ + +
+ +
-
-
- - -
-
- - -
-
- -
-
+ }
diff --git a/src/Client/src/app/pages/main/jobs/jobs.component.html b/src/Client/src/app/pages/main/jobs/jobs.component.html index a92934d..c3faab1 100644 --- a/src/Client/src/app/pages/main/jobs/jobs.component.html +++ b/src/Client/src/app/pages/main/jobs/jobs.component.html @@ -1,20 +1,24 @@ -
-
-
-

{{ cur.title }}

-

${{ cur.salaryMin }} - ${{ cur.salaryMax }}

-
-
-

{{ cur.jobType }}

-

Remote

-
-
-

{{ cur.city }}

-

{{ cur.stateOrRegion }}

-
-
- + @for (cur of JobListingPage; track cur.id){ +
+
+
+

{{ cur.title }}

+

${{ cur.salaryMin }} - ${{ cur.salaryMax }}

+
+
+

{{ cur.jobType }}

+ @if(cur.remote){ +

Remote

+ } +
+
+

{{ cur.city }}

+

{{ cur.stateOrRegion }}

+
+
+ +
-
\ No newline at end of file + } \ No newline at end of file diff --git a/src/Client/src/app/pages/main/jobs/viewer/jobviewer.component.html b/src/Client/src/app/pages/main/jobs/viewer/jobviewer.component.html index 3da246a..00c1332 100644 --- a/src/Client/src/app/pages/main/jobs/viewer/jobviewer.component.html +++ b/src/Client/src/app/pages/main/jobs/viewer/jobviewer.component.html @@ -1,45 +1,53 @@
-
-
- - - -
-
- -

{{ jobsCompany.name }}

- -
-
-

{{ jobsCompany.city }}, {{ jobsCompany.stateOrRegion }} {{ jobsCompany.postalCode }}

-
-
-

{{ line }}

-
-
-
-
-

Opened: {{ selectedJob.createdTime }}

-

Modified: {{ selectedJob.modifiedTime }}

+ @if (jobsCompany != null){ +
+
+ + + +
+
+ +

{{ jobsCompany.name }}

+ +
+
+

{{ jobsCompany.city }}, {{ jobsCompany.stateOrRegion }} {{ jobsCompany.postalCode }}

+
+
+ @for(line of jobsCompany.description.split('\n'); track line.length){ +

{{ line }}

+ } +
+ } + @if (selectedJob != null) { +
+
+

Opened: {{ selectedJob.createdTime }}

+

Modified: {{ selectedJob.modifiedTime }}

+
-
-

THIS JOB POSTING IS CLOSED

+ @if (selectedJob.isDeleted){ +
+

THIS JOB POSTING IS CLOSED

+
+ } + +

{{ selectedJob.title }}

+ +

{{ selectedJob.jobType }}

+

{{ selectedJob.remote }}

+ +

{{ selectedJob.salaryMin }}

+

{{ selectedJob.salaryMax }}

+ +

{{ selectedJob.city }}

+

{{ selectedJob.stateOrRegion }}

+

{{ selectedJob.country }}

+

{{ selectedJob.postalCode }}

+ +

{{ selectedJob.description }}

- -

{{ selectedJob.title }}

- -

{{ selectedJob.jobType }}

-

{{ selectedJob.remote }}

- -

{{ selectedJob.salaryMin }}

-

{{ selectedJob.salaryMax }}

- -

{{ selectedJob.city }}

-

{{ selectedJob.stateOrRegion }}

-

{{ selectedJob.country }}

-

{{ selectedJob.postalCode }}

- -

{{ selectedJob.description }}

-
+ }
\ No newline at end of file diff --git a/src/Client/src/app/pages/main/resumes/resumes.component.html b/src/Client/src/app/pages/main/resumes/resumes.component.html index dad91d6..9039ec8 100644 --- a/src/Client/src/app/pages/main/resumes/resumes.component.html +++ b/src/Client/src/app/pages/main/resumes/resumes.component.html @@ -1,4 +1,6 @@ -
+ @if (auth.isLoggedIn){ +
-
\ No newline at end of file +
+ } \ No newline at end of file From 3b00b3d6671eb414d8798a300f1a31ea28dd5747 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Thu, 7 Aug 2025 22:54:48 -0700 Subject: [PATCH 2/2] Sort file structure --- src/Client/src/app/app.html | 6 ++--- src/Client/src/app/app.routes.ts | 23 ++++++----------- .../{main => }/company/company.component.css | 0 .../{main => }/company/company.component.html | 0 .../{main => }/company/company.component.ts | 0 .../company/editor/editor.component.css | 0 .../company/editor/editor.component.html | 0 .../company/editor/editor.component.ts | 0 .../pages/{main => }/home/home.component.css | 0 .../pages/{main => }/home/home.component.html | 0 .../pages/{main => }/home/home.component.ts | 0 .../jobs/editor/jobeditor.component.css | 0 .../jobs/editor/jobeditor.component.html | 0 .../jobs/editor/jobeditor.component.ts | 0 .../pages/{main => }/jobs/jobs.component.css | 0 .../pages/{main => }/jobs/jobs.component.html | 0 .../pages/{main => }/jobs/jobs.component.ts | 0 .../jobs/viewer/jobviewer.component.css | 0 .../jobs/viewer/jobviewer.component.html | 0 .../jobs/viewer/jobviewer.component.ts | 0 .../app/pages/legal/about/about.component.css | 16 ------------ .../pages/legal/about/about.component.html | 25 ------------------- .../app/pages/legal/about/about.component.ts | 20 --------------- .../pages/legal/contact/contact.component.css | 15 ----------- .../legal/contact/contact.component.html | 11 -------- .../pages/legal/contact/contact.component.ts | 20 --------------- .../pages/legal/privacy/privacy.component.css | 15 ----------- .../legal/privacy/privacy.component.html | 11 -------- .../pages/legal/privacy/privacy.component.ts | 20 --------------- .../{main => }/resumes/resumes.component.css | 0 .../{main => }/resumes/resumes.component.html | 0 .../{main => }/resumes/resumes.component.ts | 0 32 files changed, 11 insertions(+), 171 deletions(-) rename src/Client/src/app/pages/{main => }/company/company.component.css (100%) rename src/Client/src/app/pages/{main => }/company/company.component.html (100%) rename src/Client/src/app/pages/{main => }/company/company.component.ts (100%) rename src/Client/src/app/pages/{main => }/company/editor/editor.component.css (100%) rename src/Client/src/app/pages/{main => }/company/editor/editor.component.html (100%) rename src/Client/src/app/pages/{main => }/company/editor/editor.component.ts (100%) rename src/Client/src/app/pages/{main => }/home/home.component.css (100%) rename src/Client/src/app/pages/{main => }/home/home.component.html (100%) rename src/Client/src/app/pages/{main => }/home/home.component.ts (100%) rename src/Client/src/app/pages/{main => }/jobs/editor/jobeditor.component.css (100%) rename src/Client/src/app/pages/{main => }/jobs/editor/jobeditor.component.html (100%) rename src/Client/src/app/pages/{main => }/jobs/editor/jobeditor.component.ts (100%) rename src/Client/src/app/pages/{main => }/jobs/jobs.component.css (100%) rename src/Client/src/app/pages/{main => }/jobs/jobs.component.html (100%) rename src/Client/src/app/pages/{main => }/jobs/jobs.component.ts (100%) rename src/Client/src/app/pages/{main => }/jobs/viewer/jobviewer.component.css (100%) rename src/Client/src/app/pages/{main => }/jobs/viewer/jobviewer.component.html (100%) rename src/Client/src/app/pages/{main => }/jobs/viewer/jobviewer.component.ts (100%) delete mode 100644 src/Client/src/app/pages/legal/about/about.component.css delete mode 100644 src/Client/src/app/pages/legal/about/about.component.html delete mode 100644 src/Client/src/app/pages/legal/about/about.component.ts delete mode 100644 src/Client/src/app/pages/legal/contact/contact.component.css delete mode 100644 src/Client/src/app/pages/legal/contact/contact.component.html delete mode 100644 src/Client/src/app/pages/legal/contact/contact.component.ts delete mode 100644 src/Client/src/app/pages/legal/privacy/privacy.component.css delete mode 100644 src/Client/src/app/pages/legal/privacy/privacy.component.html delete mode 100644 src/Client/src/app/pages/legal/privacy/privacy.component.ts rename src/Client/src/app/pages/{main => }/resumes/resumes.component.css (100%) rename src/Client/src/app/pages/{main => }/resumes/resumes.component.html (100%) rename src/Client/src/app/pages/{main => }/resumes/resumes.component.ts (100%) diff --git a/src/Client/src/app/app.html b/src/Client/src/app/app.html index c02f3a9..cc27886 100644 --- a/src/Client/src/app/app.html +++ b/src/Client/src/app/app.html @@ -26,9 +26,9 @@
-
-
\ No newline at end of file diff --git a/src/Client/src/app/pages/legal/about/about.component.ts b/src/Client/src/app/pages/legal/about/about.component.ts deleted file mode 100644 index 24cb909..0000000 --- a/src/Client/src/app/pages/legal/about/about.component.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Component } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; -import { FormsModule } from '@angular/forms'; -import { Router, ActivatedRoute } from '@angular/router'; -import { Title } from '@angular/platform-browser'; -import { CommonModule } from '@angular/common'; - -@Component({ - selector: 'legal-about', - templateUrl: './about.component.html', - styleUrls: [ './about.component.css' ], - imports: [ FormsModule, CommonModule ] -}) -export class AboutComponent { - - constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title ) { - this.title.setTitle("About | Mistox"); - }; - -} \ No newline at end of file diff --git a/src/Client/src/app/pages/legal/contact/contact.component.css b/src/Client/src/app/pages/legal/contact/contact.component.css deleted file mode 100644 index 26081b8..0000000 --- a/src/Client/src/app/pages/legal/contact/contact.component.css +++ /dev/null @@ -1,15 +0,0 @@ -.center { - background-color: green; -} - -.tile-frame { - column-count: 4; - column-gap: 20px; - padding: 20px; - width: calc(100% - 40px); -} - -.tile{ - background-color: aqua; - height: 40px; -} \ No newline at end of file diff --git a/src/Client/src/app/pages/legal/contact/contact.component.html b/src/Client/src/app/pages/legal/contact/contact.component.html deleted file mode 100644 index 29da843..0000000 --- a/src/Client/src/app/pages/legal/contact/contact.component.html +++ /dev/null @@ -1,11 +0,0 @@ -
- -
- -
- -
- -
- -
\ No newline at end of file diff --git a/src/Client/src/app/pages/legal/contact/contact.component.ts b/src/Client/src/app/pages/legal/contact/contact.component.ts deleted file mode 100644 index eaa44cf..0000000 --- a/src/Client/src/app/pages/legal/contact/contact.component.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Component } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; -import { FormsModule } from '@angular/forms'; -import { Router, ActivatedRoute } from '@angular/router'; -import { Title } from '@angular/platform-browser'; -import { CommonModule } from '@angular/common'; - -@Component({ - selector: 'legal-contact', - templateUrl: './contact.component.html', - styleUrls: [ './contact.component.css' ], - imports: [ FormsModule, CommonModule ] -}) -export class ContactComponent { - - constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title ) { - this.title.setTitle("Contact | BoredCareers"); - }; - -} \ No newline at end of file diff --git a/src/Client/src/app/pages/legal/privacy/privacy.component.css b/src/Client/src/app/pages/legal/privacy/privacy.component.css deleted file mode 100644 index 26081b8..0000000 --- a/src/Client/src/app/pages/legal/privacy/privacy.component.css +++ /dev/null @@ -1,15 +0,0 @@ -.center { - background-color: green; -} - -.tile-frame { - column-count: 4; - column-gap: 20px; - padding: 20px; - width: calc(100% - 40px); -} - -.tile{ - background-color: aqua; - height: 40px; -} \ No newline at end of file diff --git a/src/Client/src/app/pages/legal/privacy/privacy.component.html b/src/Client/src/app/pages/legal/privacy/privacy.component.html deleted file mode 100644 index 29da843..0000000 --- a/src/Client/src/app/pages/legal/privacy/privacy.component.html +++ /dev/null @@ -1,11 +0,0 @@ -
- -
- -
- -
- -
- -
\ No newline at end of file diff --git a/src/Client/src/app/pages/legal/privacy/privacy.component.ts b/src/Client/src/app/pages/legal/privacy/privacy.component.ts deleted file mode 100644 index 9543545..0000000 --- a/src/Client/src/app/pages/legal/privacy/privacy.component.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Component } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; -import { FormsModule } from '@angular/forms'; -import { Router, ActivatedRoute } from '@angular/router'; -import { Title } from '@angular/platform-browser'; -import { CommonModule } from '@angular/common'; - -@Component({ - selector: 'legal-privacy', - templateUrl: './privacy.component.html', - styleUrls: [ './privacy.component.css' ], - imports: [ FormsModule, CommonModule ] -}) -export class PrivacyComponent { - - constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title ) { - this.title.setTitle("Privacy | BoredCareers"); - }; - -} \ No newline at end of file diff --git a/src/Client/src/app/pages/main/resumes/resumes.component.css b/src/Client/src/app/pages/resumes/resumes.component.css similarity index 100% rename from src/Client/src/app/pages/main/resumes/resumes.component.css rename to src/Client/src/app/pages/resumes/resumes.component.css diff --git a/src/Client/src/app/pages/main/resumes/resumes.component.html b/src/Client/src/app/pages/resumes/resumes.component.html similarity index 100% rename from src/Client/src/app/pages/main/resumes/resumes.component.html rename to src/Client/src/app/pages/resumes/resumes.component.html diff --git a/src/Client/src/app/pages/main/resumes/resumes.component.ts b/src/Client/src/app/pages/resumes/resumes.component.ts similarity index 100% rename from src/Client/src/app/pages/main/resumes/resumes.component.ts rename to src/Client/src/app/pages/resumes/resumes.component.ts