generated from nhcarrigan/template
feat: components
This commit is contained in:
@@ -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",
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
<p>about works!</p>
|
||||
@@ -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<About>;
|
||||
|
||||
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();
|
||||
});
|
||||
});
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>bulletin works!</p>
|
||||
@@ -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<Bulletin>;
|
||||
|
||||
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();
|
||||
});
|
||||
});
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>disclaimer works!</p>
|
||||
@@ -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<Disclaimer>;
|
||||
|
||||
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();
|
||||
});
|
||||
});
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>faq works!</p>
|
||||
@@ -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<Faq>;
|
||||
|
||||
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();
|
||||
});
|
||||
});
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>footer works!</p>
|
||||
@@ -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<Footer>;
|
||||
|
||||
beforeEach(async() => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ Footer ],
|
||||
}).
|
||||
compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Footer);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it("should create", () => {
|
||||
expect.assertions(1);
|
||||
expect(component, "did not compile").toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @copyright NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
/**
|
||||
* Renders the footer.
|
||||
*/
|
||||
@Component({
|
||||
imports: [],
|
||||
selector: "app-footer",
|
||||
styleUrl: "./footer.css",
|
||||
templateUrl: "./footer.html",
|
||||
})
|
||||
export class Footer {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>handbook works!</p>
|
||||
@@ -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 { Handbook } from "./handbook";
|
||||
|
||||
describe("handbook", () => {
|
||||
let component: Handbook;
|
||||
let fixture: ComponentFixture<Handbook>;
|
||||
|
||||
beforeEach(async() => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ Handbook ],
|
||||
}).
|
||||
compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Handbook);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it("should create", () => {
|
||||
expect.assertions(1);
|
||||
expect(component, "did not compile").toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @copyright NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
/**
|
||||
* Renders the handbook page.
|
||||
*/
|
||||
@Component({
|
||||
imports: [],
|
||||
selector: "app-handbook",
|
||||
styleUrl: "./handbook.css",
|
||||
templateUrl: "./handbook.html",
|
||||
})
|
||||
export class Handbook {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>home works!</p>
|
||||
@@ -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 { Home } from "./home";
|
||||
|
||||
describe("home", () => {
|
||||
let component: Home;
|
||||
let fixture: ComponentFixture<Home>;
|
||||
|
||||
beforeEach(async() => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ Home ],
|
||||
}).
|
||||
compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Home);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it("should create", () => {
|
||||
expect.assertions(1);
|
||||
expect(component, "did not compile").toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @copyright NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
/**
|
||||
* Renders the home page.
|
||||
*/
|
||||
@Component({
|
||||
imports: [],
|
||||
selector: "app-home",
|
||||
styleUrl: "./home.css",
|
||||
templateUrl: "./home.html",
|
||||
})
|
||||
export class Home {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>nav works!</p>
|
||||
@@ -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 { Nav } from "./nav";
|
||||
|
||||
describe("nav", () => {
|
||||
let component: Nav;
|
||||
let fixture: ComponentFixture<Nav>;
|
||||
|
||||
beforeEach(async() => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ Nav ],
|
||||
}).
|
||||
compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Nav);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it("should create", () => {
|
||||
expect.assertions(1);
|
||||
expect(component, "did not compile").toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @copyright NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
/**
|
||||
* Renders the navigation bar.
|
||||
*/
|
||||
@Component({
|
||||
imports: [],
|
||||
selector: "app-nav",
|
||||
styleUrl: "./nav.css",
|
||||
templateUrl: "./nav.html",
|
||||
})
|
||||
export class Nav {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>reviews works!</p>
|
||||
@@ -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 { Reviews } from "./reviews";
|
||||
|
||||
describe("reviews", () => {
|
||||
let component: Reviews;
|
||||
let fixture: ComponentFixture<Reviews>;
|
||||
|
||||
beforeEach(async() => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ Reviews ],
|
||||
}).
|
||||
compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Reviews);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it("should create", () => {
|
||||
expect.assertions(1);
|
||||
expect(component, "did not compile").toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @copyright NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
/**
|
||||
* Renders the reviews page.
|
||||
*/
|
||||
@Component({
|
||||
imports: [],
|
||||
selector: "app-reviews",
|
||||
styleUrl: "./reviews.css",
|
||||
templateUrl: "./reviews.html",
|
||||
})
|
||||
export class Reviews {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>staff works!</p>
|
||||
@@ -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 { Staff } from "./staff";
|
||||
|
||||
describe("staff", () => {
|
||||
let component: Staff;
|
||||
let fixture: ComponentFixture<Staff>;
|
||||
|
||||
beforeEach(async() => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ Staff ],
|
||||
}).
|
||||
compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Staff);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it("should create", () => {
|
||||
expect.assertions(1);
|
||||
expect(component, "did not compile").toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @copyright NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
/**
|
||||
* Renders the staff page.
|
||||
*/
|
||||
@Component({
|
||||
imports: [],
|
||||
selector: "app-staff",
|
||||
styleUrl: "./staff.css",
|
||||
templateUrl: "./staff.html",
|
||||
})
|
||||
export class Staff {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>ticker works!</p>
|
||||
@@ -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 { Ticker } from "./ticker";
|
||||
|
||||
describe("ticker", () => {
|
||||
let component: Ticker;
|
||||
let fixture: ComponentFixture<Ticker>;
|
||||
|
||||
beforeEach(async() => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ Ticker ],
|
||||
}).
|
||||
compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Ticker);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it("should create", () => {
|
||||
expect.assertions(1);
|
||||
expect(component, "did not compile").toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @copyright NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
/**
|
||||
* Renders the ticker.
|
||||
*/
|
||||
@Component({
|
||||
imports: [],
|
||||
selector: "app-ticker",
|
||||
styleUrl: "./ticker.css",
|
||||
templateUrl: "./ticker.html",
|
||||
})
|
||||
export class Ticker {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user