From 7e6a22733709f0e345a9bbabd3c94898983ee832 Mon Sep 17 00:00:00 2001 From: Brok3Turtl3 Date: Thu, 17 Oct 2024 17:05:26 -0400 Subject: [PATCH] Code formatting fixes... ugh --- angular-resources-page/angular.json | 18 ++------ .../src/app/app.component.html | 2 - .../src/app/app.component.spec.ts | 12 ++--- .../src/app/app.component.ts | 2 +- angular-resources-page/src/app/app.module.ts | 11 ++--- .../src/app/pages/books/books.component.html | 15 +++--- .../app/pages/books/books.component.spec.ts | 5 +- .../src/app/pages/home/home.component.html | 46 +++++++++++-------- .../src/app/pages/home/home.component.spec.ts | 5 +- .../src/app/pages/home/home.component.ts | 9 ++-- .../app/pages/people/people.component.spec.ts | 5 +- .../src/app/pages/people/people.component.ts | 9 ++-- .../app/pages/tools/tools.component.spec.ts | 5 +- .../src/app/pages/tools/tools.component.ts | 9 ++-- .../pages/websites/websites.component.spec.ts | 5 +- .../app/pages/websites/websites.component.ts | 9 ++-- .../src/environments/environment.prod.ts | 2 +- .../src/environments/environment.ts | 2 +- angular-resources-page/src/index.html | 20 ++++---- angular-resources-page/src/main.ts | 5 +- angular-resources-page/src/polyfills.ts | 3 +- angular-resources-page/src/test.ts | 13 +++--- angular-resources-page/tsconfig.app.json | 9 +--- angular-resources-page/tsconfig.json | 7 +-- angular-resources-page/tsconfig.spec.json | 14 ++---- 25 files changed, 99 insertions(+), 143 deletions(-) diff --git a/angular-resources-page/angular.json b/angular-resources-page/angular.json index 05a9fef..e7d4764 100644 --- a/angular-resources-page/angular.json +++ b/angular-resources-page/angular.json @@ -18,13 +18,8 @@ "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], + "assets": ["src/favicon.ico", "src/assets"], + "styles": ["src/styles.css"], "scripts": [] }, "configurations": { @@ -85,13 +80,8 @@ "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], + "assets": ["src/favicon.ico", "src/assets"], + "styles": ["src/styles.css"], "scripts": [] } } diff --git a/angular-resources-page/src/app/app.component.html b/angular-resources-page/src/app/app.component.html index 5950fc4..b8ccf20 100644 --- a/angular-resources-page/src/app/app.component.html +++ b/angular-resources-page/src/app/app.component.html @@ -7,5 +7,3 @@ - - diff --git a/angular-resources-page/src/app/app.component.spec.ts b/angular-resources-page/src/app/app.component.spec.ts index a6e213f..a31878d 100644 --- a/angular-resources-page/src/app/app.component.spec.ts +++ b/angular-resources-page/src/app/app.component.spec.ts @@ -5,12 +5,8 @@ import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [ - RouterTestingModule - ], - declarations: [ - AppComponent - ], + imports: [RouterTestingModule], + declarations: [AppComponent], }).compileComponents(); }); @@ -30,6 +26,8 @@ describe('AppComponent', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.nativeElement as HTMLElement; - expect(compiled.querySelector('.content span')?.textContent).toContain('angular-contact-page app is running!'); + expect(compiled.querySelector('.content span')?.textContent).toContain( + 'angular-contact-page app is running!', + ); }); }); diff --git a/angular-resources-page/src/app/app.component.ts b/angular-resources-page/src/app/app.component.ts index b792820..6ea5cce 100644 --- a/angular-resources-page/src/app/app.component.ts +++ b/angular-resources-page/src/app/app.component.ts @@ -3,7 +3,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', - styleUrls: ['./app.component.css'] + styleUrls: ['./app.component.css'], }) export class AppComponent { title = 'angular-contact-page'; diff --git a/angular-resources-page/src/app/app.module.ts b/angular-resources-page/src/app/app.module.ts index 9521981..bc30712 100644 --- a/angular-resources-page/src/app/app.module.ts +++ b/angular-resources-page/src/app/app.module.ts @@ -16,13 +16,10 @@ import { ToolsComponent } from './pages/tools/tools.component'; PeopleComponent, WebsitesComponent, BooksComponent, - ToolsComponent - ], - imports: [ - BrowserModule, - AppRoutingModule + ToolsComponent, ], + imports: [BrowserModule, AppRoutingModule], providers: [], - bootstrap: [AppComponent] + bootstrap: [AppComponent], }) -export class AppModule { } +export class AppModule {} diff --git a/angular-resources-page/src/app/pages/books/books.component.html b/angular-resources-page/src/app/pages/books/books.component.html index 25bd733..019e8fc 100644 --- a/angular-resources-page/src/app/pages/books/books.component.html +++ b/angular-resources-page/src/app/pages/books/books.component.html @@ -1,9 +1,8 @@
-

Books

- -
- +

Books

+ + diff --git a/angular-resources-page/src/app/pages/books/books.component.spec.ts b/angular-resources-page/src/app/pages/books/books.component.spec.ts index 0fef9ef..af3f84c 100644 --- a/angular-resources-page/src/app/pages/books/books.component.spec.ts +++ b/angular-resources-page/src/app/pages/books/books.component.spec.ts @@ -8,9 +8,8 @@ describe('BooksComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ BooksComponent ] - }) - .compileComponents(); + declarations: [BooksComponent], + }).compileComponents(); fixture = TestBed.createComponent(BooksComponent); component = fixture.componentInstance; diff --git a/angular-resources-page/src/app/pages/home/home.component.html b/angular-resources-page/src/app/pages/home/home.component.html index dcc8656..d49ecec 100644 --- a/angular-resources-page/src/app/pages/home/home.component.html +++ b/angular-resources-page/src/app/pages/home/home.component.html @@ -1,22 +1,28 @@
-

Alumni Resources

-

- Explore resources to help you stay connected and grow professionally, including alumni contacts, useful websites, recommended books, and essential tools. -

- -
- - - - -
+

Alumni Resources

+

+ Explore resources to help you stay connected and grow professionally, including alumni contacts, + useful websites, recommended books, and essential tools. +

+ +
+ + + +
- +
diff --git a/angular-resources-page/src/app/pages/home/home.component.spec.ts b/angular-resources-page/src/app/pages/home/home.component.spec.ts index 5075be7..7d04862 100644 --- a/angular-resources-page/src/app/pages/home/home.component.spec.ts +++ b/angular-resources-page/src/app/pages/home/home.component.spec.ts @@ -8,9 +8,8 @@ describe('HomeComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ HomeComponent ] - }) - .compileComponents(); + declarations: [HomeComponent], + }).compileComponents(); fixture = TestBed.createComponent(HomeComponent); component = fixture.componentInstance; diff --git a/angular-resources-page/src/app/pages/home/home.component.ts b/angular-resources-page/src/app/pages/home/home.component.ts index 007fef0..6335f66 100644 --- a/angular-resources-page/src/app/pages/home/home.component.ts +++ b/angular-resources-page/src/app/pages/home/home.component.ts @@ -3,13 +3,10 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-home', templateUrl: './home.component.html', - styleUrls: ['./home.component.css'] + styleUrls: ['./home.component.css'], }) export class HomeComponent implements OnInit { + constructor() {} - constructor() { } - - ngOnInit(): void { - } - + ngOnInit(): void {} } diff --git a/angular-resources-page/src/app/pages/people/people.component.spec.ts b/angular-resources-page/src/app/pages/people/people.component.spec.ts index fea0f06..b23a969 100644 --- a/angular-resources-page/src/app/pages/people/people.component.spec.ts +++ b/angular-resources-page/src/app/pages/people/people.component.spec.ts @@ -8,9 +8,8 @@ describe('PeopleComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ PeopleComponent ] - }) - .compileComponents(); + declarations: [PeopleComponent], + }).compileComponents(); fixture = TestBed.createComponent(PeopleComponent); component = fixture.componentInstance; diff --git a/angular-resources-page/src/app/pages/people/people.component.ts b/angular-resources-page/src/app/pages/people/people.component.ts index 72aaaab..f0e4f9b 100644 --- a/angular-resources-page/src/app/pages/people/people.component.ts +++ b/angular-resources-page/src/app/pages/people/people.component.ts @@ -3,13 +3,10 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-people', templateUrl: './people.component.html', - styleUrls: ['./people.component.css'] + styleUrls: ['./people.component.css'], }) export class PeopleComponent implements OnInit { + constructor() {} - constructor() { } - - ngOnInit(): void { - } - + ngOnInit(): void {} } diff --git a/angular-resources-page/src/app/pages/tools/tools.component.spec.ts b/angular-resources-page/src/app/pages/tools/tools.component.spec.ts index b43c977..3b40d18 100644 --- a/angular-resources-page/src/app/pages/tools/tools.component.spec.ts +++ b/angular-resources-page/src/app/pages/tools/tools.component.spec.ts @@ -8,9 +8,8 @@ describe('ToolsComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ ToolsComponent ] - }) - .compileComponents(); + declarations: [ToolsComponent], + }).compileComponents(); fixture = TestBed.createComponent(ToolsComponent); component = fixture.componentInstance; diff --git a/angular-resources-page/src/app/pages/tools/tools.component.ts b/angular-resources-page/src/app/pages/tools/tools.component.ts index 2af5b5f..1e37f50 100644 --- a/angular-resources-page/src/app/pages/tools/tools.component.ts +++ b/angular-resources-page/src/app/pages/tools/tools.component.ts @@ -3,13 +3,10 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-tools', templateUrl: './tools.component.html', - styleUrls: ['./tools.component.css'] + styleUrls: ['./tools.component.css'], }) export class ToolsComponent implements OnInit { + constructor() {} - constructor() { } - - ngOnInit(): void { - } - + ngOnInit(): void {} } diff --git a/angular-resources-page/src/app/pages/websites/websites.component.spec.ts b/angular-resources-page/src/app/pages/websites/websites.component.spec.ts index e802539..24ab844 100644 --- a/angular-resources-page/src/app/pages/websites/websites.component.spec.ts +++ b/angular-resources-page/src/app/pages/websites/websites.component.spec.ts @@ -8,9 +8,8 @@ describe('WebsitesComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ WebsitesComponent ] - }) - .compileComponents(); + declarations: [WebsitesComponent], + }).compileComponents(); fixture = TestBed.createComponent(WebsitesComponent); component = fixture.componentInstance; diff --git a/angular-resources-page/src/app/pages/websites/websites.component.ts b/angular-resources-page/src/app/pages/websites/websites.component.ts index dcf3888..e16fcf3 100644 --- a/angular-resources-page/src/app/pages/websites/websites.component.ts +++ b/angular-resources-page/src/app/pages/websites/websites.component.ts @@ -3,13 +3,10 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-websites', templateUrl: './websites.component.html', - styleUrls: ['./websites.component.css'] + styleUrls: ['./websites.component.css'], }) export class WebsitesComponent implements OnInit { + constructor() {} - constructor() { } - - ngOnInit(): void { - } - + ngOnInit(): void {} } diff --git a/angular-resources-page/src/environments/environment.prod.ts b/angular-resources-page/src/environments/environment.prod.ts index 3612073..c966979 100644 --- a/angular-resources-page/src/environments/environment.prod.ts +++ b/angular-resources-page/src/environments/environment.prod.ts @@ -1,3 +1,3 @@ export const environment = { - production: true + production: true, }; diff --git a/angular-resources-page/src/environments/environment.ts b/angular-resources-page/src/environments/environment.ts index f56ff47..66998ae 100644 --- a/angular-resources-page/src/environments/environment.ts +++ b/angular-resources-page/src/environments/environment.ts @@ -3,7 +3,7 @@ // The list of file replacements can be found in `angular.json`. export const environment = { - production: false + production: false, }; /* diff --git a/angular-resources-page/src/index.html b/angular-resources-page/src/index.html index 5a0f03e..9fd4cd2 100644 --- a/angular-resources-page/src/index.html +++ b/angular-resources-page/src/index.html @@ -1,13 +1,13 @@ - - - AngularContactPage - - - - - - - + + + AngularContactPage + + + + + + + diff --git a/angular-resources-page/src/main.ts b/angular-resources-page/src/main.ts index c7b673c..d9a2e7e 100644 --- a/angular-resources-page/src/main.ts +++ b/angular-resources-page/src/main.ts @@ -8,5 +8,6 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule) - .catch(err => console.error(err)); +platformBrowserDynamic() + .bootstrapModule(AppModule) + .catch((err) => console.error(err)); diff --git a/angular-resources-page/src/polyfills.ts b/angular-resources-page/src/polyfills.ts index 429bb9e..e4555ed 100644 --- a/angular-resources-page/src/polyfills.ts +++ b/angular-resources-page/src/polyfills.ts @@ -45,8 +45,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js'; // Included with Angular CLI. - +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/angular-resources-page/src/test.ts b/angular-resources-page/src/test.ts index c04c876..ff29784 100644 --- a/angular-resources-page/src/test.ts +++ b/angular-resources-page/src/test.ts @@ -4,21 +4,22 @@ import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; declare const require: { - context(path: string, deep?: boolean, filter?: RegExp): { + context( + path: string, + deep?: boolean, + filter?: RegExp, + ): { (id: string): T; keys(): string[]; }; }; // First, initialize the Angular testing environment. -getTestBed().initTestEnvironment( - BrowserDynamicTestingModule, - platformBrowserDynamicTesting(), -); +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); // Then we find all the tests. const context = require.context('./', true, /\.spec\.ts$/); diff --git a/angular-resources-page/tsconfig.app.json b/angular-resources-page/tsconfig.app.json index 82d91dc..ff396d4 100644 --- a/angular-resources-page/tsconfig.app.json +++ b/angular-resources-page/tsconfig.app.json @@ -5,11 +5,6 @@ "outDir": "./out-tsc/app", "types": [] }, - "files": [ - "src/main.ts", - "src/polyfills.ts" - ], - "include": [ - "src/**/*.d.ts" - ] + "files": ["src/main.ts", "src/polyfills.ts"], + "include": ["src/**/*.d.ts"] } diff --git a/angular-resources-page/tsconfig.json b/angular-resources-page/tsconfig.json index f5219e5..a4e7ab8 100644 --- a/angular-resources-page/tsconfig.json +++ b/angular-resources-page/tsconfig.json @@ -5,7 +5,7 @@ "baseUrl": "./", "outDir": "./dist/out-tsc", "forceConsistentCasingInFileNames": true, - "skipLibCheck": true, // Prevent type-checking conflicts with @types/node + "skipLibCheck": true, // Prevent type-checking conflicts with @types/node "strict": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, @@ -19,10 +19,7 @@ "importHelpers": true, "target": "es2020", "module": "es2020", - "lib": [ - "es2020", - "dom" - ] + "lib": ["es2020", "dom"] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, diff --git a/angular-resources-page/tsconfig.spec.json b/angular-resources-page/tsconfig.spec.json index 092345b..669344f 100644 --- a/angular-resources-page/tsconfig.spec.json +++ b/angular-resources-page/tsconfig.spec.json @@ -3,16 +3,8 @@ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./out-tsc/spec", - "types": [ - "jasmine" - ] + "types": ["jasmine"] }, - "files": [ - "src/test.ts", - "src/polyfills.ts" - ], - "include": [ - "src/**/*.spec.ts", - "src/**/*.d.ts" - ] + "files": ["src/test.ts", "src/polyfills.ts"], + "include": ["src/**/*.spec.ts", "src/**/*.d.ts"] }