feat: set up initial project infrastructure

This commit is contained in:
2025-05-09 16:42:54 -07:00
parent 683516dbb7
commit 73995a495d
35 changed files with 12606 additions and 14 deletions
View File
+3
View File
@@ -0,0 +1,3 @@
<main>
<router-outlet></router-outlet>
</main>
+18
View File
@@ -0,0 +1,18 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { Component } from "@angular/core";
import { RouterOutlet } from "@angular/router";
@Component({
imports: [ RouterOutlet ],
selector: "app-root",
styleUrl: "./app.component.css",
templateUrl: "./app.component.html",
})
export class AppComponent {
public title = "client";
}
+16
View File
@@ -0,0 +1,16 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { ApplicationConfig, provideZoneChangeDetection } from "@angular/core";
import { provideRouter } from "@angular/router";
import { routes } from "./app.routes";
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
],
};
+13
View File
@@ -0,0 +1,13 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { Routes } from "@angular/router";
import { LandingComponent } from "./landing/landing.component.js";
export const routes: Routes = [
{ path: "", pathMatch: "full", redirectTo: "/landing" },
{ component: LandingComponent, path: "landing" },
];
@@ -0,0 +1 @@
<p>landing works!</p>
@@ -0,0 +1,17 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { Component } from "@angular/core";
@Component({
imports: [],
selector: "app-landing",
styleUrl: "./landing.component.css",
templateUrl: "./landing.component.html",
})
export class LandingComponent {
}
+14
View File
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Client</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
</body>
<script src="https://cdn.nhcarrigan.com/headers/index.js"></script>
</html>
+15
View File
@@ -0,0 +1,15 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { bootstrapApplication } from "@angular/platform-browser";
import { AppComponent } from "./app/app.component";
import { appConfig } from "./app/app.config";
bootstrapApplication(AppComponent, appConfig).
// eslint-disable-next-line unicorn/prefer-top-level-await -- it's an angular thing?
catch((error: unknown) => {
console.error(error);
});
+1
View File
@@ -0,0 +1 @@
/* You can add global styles to this file, and also import other style files */