diff --git a/eslint.config.mjs b/eslint.config.mjs index 187ec70..73adedc 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -24,6 +24,8 @@ export default [ "import/extensions": "off", // This is a web app "no-console": "off", + // Sometimes a component class will be empty. Not all components require logic. + "@typescript-eslint/no-extraneous-class": "off", } }, { @@ -42,6 +44,8 @@ export default [ "import/extensions": "off", // We turn this off because the test bed has weak types. "@typescript-eslint/consistent-type-assertions": "off", + // This one allows us to define test globals. + "@typescript-eslint/init-declarations": "off", } } ] \ No newline at end of file diff --git a/src/app/about/about.css b/src/app/about/about.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/about/about.html b/src/app/about/about.html new file mode 100644 index 0000000..6094aa9 --- /dev/null +++ b/src/app/about/about.html @@ -0,0 +1 @@ +

about works!

diff --git a/src/app/about/about.spec.ts b/src/app/about/about.spec.ts new file mode 100644 index 0000000..c35292a --- /dev/null +++ b/src/app/about/about.spec.ts @@ -0,0 +1,29 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { type ComponentFixture, TestBed } from "@angular/core/testing"; +import { describe, beforeEach, it, expect } from "vitest"; +import { About } from "./about"; + +describe("about", () => { + let component: About; + let fixture: ComponentFixture; + + beforeEach(async() => { + await TestBed.configureTestingModule({ + imports: [ About ], + }). + compileComponents(); + + fixture = TestBed.createComponent(About); + component = fixture.componentInstance; + await fixture.whenStable(); + }); + + it("should create", () => { + expect.assertions(1); + expect(component, "did not compile").toBeTruthy(); + }); +}); diff --git a/src/app/about/about.ts b/src/app/about/about.ts new file mode 100644 index 0000000..d778c6a --- /dev/null +++ b/src/app/about/about.ts @@ -0,0 +1,19 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { Component } from "@angular/core"; + +/** + * Renders the about page. + */ +@Component({ + imports: [], + selector: "app-about", + styleUrl: "./about.css", + templateUrl: "./about.html", +}) +export class About { + +} diff --git a/src/app/bulletin/bulletin.css b/src/app/bulletin/bulletin.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/bulletin/bulletin.html b/src/app/bulletin/bulletin.html new file mode 100644 index 0000000..3f7fb8f --- /dev/null +++ b/src/app/bulletin/bulletin.html @@ -0,0 +1 @@ +

bulletin works!

diff --git a/src/app/bulletin/bulletin.spec.ts b/src/app/bulletin/bulletin.spec.ts new file mode 100644 index 0000000..6bb1110 --- /dev/null +++ b/src/app/bulletin/bulletin.spec.ts @@ -0,0 +1,29 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { type ComponentFixture, TestBed } from "@angular/core/testing"; +import { describe, beforeEach, it, expect } from "vitest"; +import { Bulletin } from "./bulletin"; + +describe("bulletin", () => { + let component: Bulletin; + let fixture: ComponentFixture; + + beforeEach(async() => { + await TestBed.configureTestingModule({ + imports: [ Bulletin ], + }). + compileComponents(); + + fixture = TestBed.createComponent(Bulletin); + component = fixture.componentInstance; + await fixture.whenStable(); + }); + + it("should create", () => { + expect.assertions(1); + expect(component, "did not compile").toBeTruthy(); + }); +}); diff --git a/src/app/bulletin/bulletin.ts b/src/app/bulletin/bulletin.ts new file mode 100644 index 0000000..0044d09 --- /dev/null +++ b/src/app/bulletin/bulletin.ts @@ -0,0 +1,19 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { Component } from "@angular/core"; + +/** + * Renders the bulletin page. + */ +@Component({ + imports: [], + selector: "app-bulletin", + styleUrl: "./bulletin.css", + templateUrl: "./bulletin.html", +}) +export class Bulletin { + +} diff --git a/src/app/disclaimer/disclaimer.css b/src/app/disclaimer/disclaimer.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/disclaimer/disclaimer.html b/src/app/disclaimer/disclaimer.html new file mode 100644 index 0000000..cb054f2 --- /dev/null +++ b/src/app/disclaimer/disclaimer.html @@ -0,0 +1 @@ +

disclaimer works!

diff --git a/src/app/disclaimer/disclaimer.spec.ts b/src/app/disclaimer/disclaimer.spec.ts new file mode 100644 index 0000000..7199995 --- /dev/null +++ b/src/app/disclaimer/disclaimer.spec.ts @@ -0,0 +1,29 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { type ComponentFixture, TestBed } from "@angular/core/testing"; +import { describe, beforeEach, it, expect } from "vitest"; +import { Disclaimer } from "./disclaimer"; + +describe("disclaimer", () => { + let component: Disclaimer; + let fixture: ComponentFixture; + + beforeEach(async() => { + await TestBed.configureTestingModule({ + imports: [ Disclaimer ], + }). + compileComponents(); + + fixture = TestBed.createComponent(Disclaimer); + component = fixture.componentInstance; + await fixture.whenStable(); + }); + + it("should create", () => { + expect.assertions(1); + expect(component, "did not compile").toBeTruthy(); + }); +}); diff --git a/src/app/disclaimer/disclaimer.ts b/src/app/disclaimer/disclaimer.ts new file mode 100644 index 0000000..9842aa6 --- /dev/null +++ b/src/app/disclaimer/disclaimer.ts @@ -0,0 +1,19 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { Component } from "@angular/core"; + +/** + * Renders the disclaimer page. + */ +@Component({ + imports: [], + selector: "app-disclaimer", + styleUrl: "./disclaimer.css", + templateUrl: "./disclaimer.html", +}) +export class Disclaimer { + +} diff --git a/src/app/faq/faq.css b/src/app/faq/faq.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/faq/faq.html b/src/app/faq/faq.html new file mode 100644 index 0000000..7ccd1b6 --- /dev/null +++ b/src/app/faq/faq.html @@ -0,0 +1 @@ +

faq works!

diff --git a/src/app/faq/faq.spec.ts b/src/app/faq/faq.spec.ts new file mode 100644 index 0000000..53302e9 --- /dev/null +++ b/src/app/faq/faq.spec.ts @@ -0,0 +1,29 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { type ComponentFixture, TestBed } from "@angular/core/testing"; +import { describe, beforeEach, it, expect } from "vitest"; +import { Faq } from "./faq"; + +describe("faq", () => { + let component: Faq; + let fixture: ComponentFixture; + + beforeEach(async() => { + await TestBed.configureTestingModule({ + imports: [ Faq ], + }). + compileComponents(); + + fixture = TestBed.createComponent(Faq); + component = fixture.componentInstance; + await fixture.whenStable(); + }); + + it("should create", () => { + expect.assertions(1); + expect(component, "did not compile").toBeTruthy(); + }); +}); diff --git a/src/app/faq/faq.ts b/src/app/faq/faq.ts new file mode 100644 index 0000000..fbc819e --- /dev/null +++ b/src/app/faq/faq.ts @@ -0,0 +1,19 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { Component } from "@angular/core"; + +/** + * Renders the FAQ page. + */ +@Component({ + imports: [], + selector: "app-faq", + styleUrl: "./faq.css", + templateUrl: "./faq.html", +}) +export class Faq { + +} diff --git a/src/app/footer/footer.css b/src/app/footer/footer.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/footer/footer.html b/src/app/footer/footer.html new file mode 100644 index 0000000..28c0d7d --- /dev/null +++ b/src/app/footer/footer.html @@ -0,0 +1 @@ +

footer works!

diff --git a/src/app/footer/footer.spec.ts b/src/app/footer/footer.spec.ts new file mode 100644 index 0000000..a3c3a89 --- /dev/null +++ b/src/app/footer/footer.spec.ts @@ -0,0 +1,29 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ +import { type ComponentFixture, TestBed } from "@angular/core/testing"; +import { describe, beforeEach, it, expect } from "vitest"; +import { Footer } from "./footer"; + +describe("footer", () => { + let component: Footer; + let fixture: ComponentFixture