Skip to content

Commit

Permalink
Scaffold new module import subscription details #758
Browse files Browse the repository at this point in the history
  • Loading branch information
caebr committed Feb 6, 2025
1 parent fac48e1 commit 579eea0
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ export const routes: Routes = [
loadChildren: () =>
import("./events/events.routes").then((m) => m.EVENTS_ROUTES),
},
{
path: "import-subscription-details",
canActivate: [authGuard()],
loadChildren: () =>
import(
"./import-subscription-details/import-subscription-details.routes"
).then((m) => m.IMPORT_SUBSCRIPTION_DETAILS_ROUTES),
},
{
path: "my-absences",
canActivate: [authGuard()],
Expand Down
1 change: 1 addition & 0 deletions src/app/home/components/home.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ describe("HomeComponent", () => {
"/evaluate-absences",
"/events",
"/events/current",
"/import-subscription-details",
"/my-absences",
"/my-profile",
"/my-grades",
Expand Down
1 change: 1 addition & 0 deletions src/app/home/components/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class HomeComponent {
{ path: "evaluate-absences" },
{ path: "events" },
{ path: "events/current", name: "events.current" },
{ path: "import-subscription-details" },
{ path: "my-absences" },
{ path: "my-profile" },
{ path: "my-grades" },
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>import-subscription-details works!</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { buildTestModuleMetadata } from "../../../../spec-helpers";
import { ImportSubscriptionDetailsComponent } from "./import-subscription-details.component";

describe("ImportSubscriptionDetailsComponent", () => {
let component: ImportSubscriptionDetailsComponent;
let fixture: ComponentFixture<ImportSubscriptionDetailsComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule(
buildTestModuleMetadata({
imports: [ImportSubscriptionDetailsComponent],
}),
).compileComponents();

fixture = TestBed.createComponent(ImportSubscriptionDetailsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it("should create", () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ChangeDetectionStrategy, Component } from "@angular/core";

@Component({
selector: "bkd-import-subscription-details",
imports: [],
templateUrl: "./import-subscription-details.component.html",
styleUrl: "./import-subscription-details.component.scss",
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ImportSubscriptionDetailsComponent {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Routes } from "@angular/router";
import { ImportSubscriptionDetailsComponent } from "./components/import-subscription-details/import-subscription-details.component";

export const IMPORT_SUBSCRIPTION_DETAILS_ROUTES: Routes = [
{
path: "",
component: ImportSubscriptionDetailsComponent,
},
];
3 changes: 3 additions & 0 deletions src/assets/locales/de-CH.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@
}
}
},
"import-subscription-details": {
"title": "Anmeldedetails einlesen"
},
"my-absences": {
"title": "Meine Absenzen",
"description": "Hier können Sie Absenzen melden und Ihre offenen Absenzen bearbeiten.",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/locales/fr-CH.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@
}
}
},
"import-subscription-details": {
"title": "Saisir des détails d'inscription"
},
"my-absences": {
"title": "Mes absences",
"description": "Vous pouvez annoncer des absences et traiter vos absences en suspens.",
Expand Down

0 comments on commit 579eea0

Please sign in to comment.