diff --git a/kontor-angular/angular.json b/kontor-angular/angular.json
index 96caa46..6c196b3 100644
--- a/kontor-angular/angular.json
+++ b/kontor-angular/angular.json
@@ -15,6 +15,7 @@
"options": {
"browser": "src/main.ts",
"polyfills": [
+ "zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": [
diff --git a/kontor-angular/src/app/app.component.html b/kontor-angular/src/app/app.component.html
index 0fc5b3d..def9b90 100644
--- a/kontor-angular/src/app/app.component.html
+++ b/kontor-angular/src/app/app.component.html
@@ -1,6 +1,5 @@
-
diff --git a/kontor-angular/src/app/app.component.ts b/kontor-angular/src/app/app.component.ts
index a4f231b..f8f2137 100644
--- a/kontor-angular/src/app/app.component.ts
+++ b/kontor-angular/src/app/app.component.ts
@@ -2,11 +2,10 @@ import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { KontorHeaderComponent } from "./kontor/header/header.component";
import { KontorFooterComponent } from './kontor/footer/footer.component';
-import { KontorNavigationComponent } from "./kontor/navigation/kontor-navigation/kontor-navigation.component";
@Component({
selector: 'app-root',
- imports: [RouterOutlet, KontorHeaderComponent, KontorFooterComponent, KontorNavigationComponent],
+ imports: [RouterOutlet, KontorHeaderComponent, KontorFooterComponent],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
diff --git a/kontor-angular/src/app/app.config.ts b/kontor-angular/src/app/app.config.ts
index 874fd39..97842c8 100644
--- a/kontor-angular/src/app/app.config.ts
+++ b/kontor-angular/src/app/app.config.ts
@@ -1,4 +1,4 @@
-import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection, provideZonelessChangeDetection } from '@angular/core';
+import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
import { provideRouter, withComponentInputBinding } from '@angular/router';
import { routes } from './app.routes';
@@ -7,8 +7,7 @@ import { provideHttpClient } from '@angular/common/http';
export const appConfig: ApplicationConfig = {
providers: [
provideBrowserGlobalErrorListeners(),
- provideZonelessChangeDetection(),
- // provideZoneChangeDetection({ eventCoalescing: true }),
+ provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes, withComponentInputBinding()),
provideHttpClient(),
]
diff --git a/kontor-angular/src/app/app.routes.ts b/kontor-angular/src/app/app.routes.ts
index 9b196dd..7740668 100644
--- a/kontor-angular/src/app/app.routes.ts
+++ b/kontor-angular/src/app/app.routes.ts
@@ -1,27 +1,52 @@
import { Routes } from '@angular/router';
-import { routes as comicRoutes } from './kontor/comic/comic.routes';
-import { routes as tyscRoutes } from './kontor/tysc/tysc.routes';
-import { routes as mediaRoutes } from './kontor/media/media.routes';
-import { TyscSectionComponent } from './kontor/tysc/tysc-section.component';
-import { ComicSectionComponent } from './kontor/comic/comic-section.component';
-import { MediaComponent } from './kontor/media/media.component';
-import { KontorHomeComponent } from './kontor/home/kontor-home/kontor-home.component';
+import { KontorComponent } from './kontor/kontor.component';
+import { Login } from './common/login/login';
+import { ComicOverviewComponent } from './comic/comic-overview/comic-overview.component';
+import { MediaOverviewComponent } from './media/media-overview/media-overview.component';
+import { ArtistListComponent } from './comic/artist/artist-list/artist-list.component';
+import { ComicListComponent } from './comic/comic/comic-list/comic-list.component';
+import { MediaFileListComponent } from './media/media-file/media-file-list/media-file-list.component';
+import { MediaActorListComponent } from './media/media-actor/media-actor-list/media-actor-list.component';
+import { MediaVideoListComponent } from './media/media-video/media-video-list/media-video-list.component';
+import { PublisherListComponent } from './comic/publisher/publisher-list/publisher-list.component';
+import { TyscMenuComponent } from './tysc/tysc-menu/tysc-menu.component';
+import { TeamListComponent } from './tysc/team/team-list/team-list.component';
+import { VendorListComponent } from './tysc/vendor/vendor-list/vendor-list.component';
+import { CardsetListComponent } from './tysc/cardset/cardset-list/cardset-list.component';
+import { PositionListComponent } from './tysc/position/position-list/position-list.component';
+import { PlayerListComponent } from './tysc/player/player-list/player-list.component';
+import { SportListComponent } from './tysc/sport/sport-list/sport-list.component';
export const routes: Routes = [
+ { path: '', component: KontorComponent, },
+ { path: 'login', component: Login, },
{
- path: '',
- component: KontorHomeComponent,
+ path: 'comic', component: ComicOverviewComponent,
+ children: [
+ { path: '', component: ComicListComponent},
+ { path: 'comics', component: ComicListComponent},
+ { path: 'publisher', component: PublisherListComponent},
+ { path: 'artist', component: ArtistListComponent},
+ ],
},
{
- path: 'comic', component: ComicSectionComponent,
- children: comicRoutes,
+ path: 'tysc', component: TyscMenuComponent,
+ children: [
+ { path: '', component: SportListComponent},
+ { path: 'team', component: TeamListComponent},
+ { path: 'player', component: PlayerListComponent},
+ { path: 'position', component: PositionListComponent},
+ { path: 'cardset', component: CardsetListComponent},
+ { path: 'vendor', component: VendorListComponent},
+ ],
},
{
- path: 'tysc', component: TyscSectionComponent,
- children: tyscRoutes,
- },
- {
- path: 'media', component: MediaComponent,
- children: mediaRoutes,
+ path: 'media', component: MediaOverviewComponent,
+ children: [
+ { path: '', component: MediaFileListComponent},
+ { path: 'mediafiles', component: MediaFileListComponent},
+ { path: 'mediaactors', component: MediaActorListComponent},
+ { path: 'mediavideos', component: MediaVideoListComponent},
+ ],
},
];
diff --git a/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.css b/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.css
new file mode 100644
index 0000000..c34bfa6
--- /dev/null
+++ b/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.css
@@ -0,0 +1,5 @@
+div {
+ border-radius: 6px;
+ box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
+ overflow: hidden;
+}
diff --git a/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.html b/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.html
new file mode 100644
index 0000000..8c949f3
--- /dev/null
+++ b/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.html
@@ -0,0 +1,5 @@
+
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.spec.ts b/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.spec.ts
similarity index 52%
rename from kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.spec.ts
rename to kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.spec.ts
index 5d7d15a..cf1fa88 100644
--- a/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.spec.ts
+++ b/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.spec.ts
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { ComicDetailsComponent } from './comic-details.component';
+import { ArtistDetailComponent } from './artist-detail.component';
-describe('ComicDetailsComponent', () => {
- let component: ComicDetailsComponent;
- let fixture: ComponentFixture
;
+describe('ArtistDetailComponent', () => {
+ let component: ArtistDetailComponent;
+ let fixture: ComponentFixture;
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [ComicDetailsComponent]
+ imports: [ArtistDetailComponent]
})
.compileComponents();
- fixture = TestBed.createComponent(ComicDetailsComponent);
+ fixture = TestBed.createComponent(ArtistDetailComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
diff --git a/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.ts b/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.ts
new file mode 100644
index 0000000..5bf9f95
--- /dev/null
+++ b/kontor-angular/src/app/comic/artist/artist-detail/artist-detail.component.ts
@@ -0,0 +1,14 @@
+import { Component, input, signal } from '@angular/core';
+import { Artist } from '../artist.model';
+import { RouterLink, RouterLinkActive } from '@angular/router';
+
+@Component({
+ selector: 'app-artist-detail',
+ imports: [RouterLink, RouterLinkActive],
+ templateUrl: './artist-detail.component.html',
+ styleUrl: './artist-detail.component.css'
+})
+export class ArtistDetailComponent {
+ artist = input.required();
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.css b/kontor-angular/src/app/comic/artist/artist-list/artist-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.css
rename to kontor-angular/src/app/comic/artist/artist-list/artist-list.component.css
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.html b/kontor-angular/src/app/comic/artist/artist-list/artist-list.component.html
similarity index 64%
rename from kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.html
rename to kontor-angular/src/app/comic/artist/artist-list/artist-list.component.html
index 4912d0a..984357c 100644
--- a/kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.html
+++ b/kontor-angular/src/app/comic/artist/artist-list/artist-list.component.html
@@ -1,7 +1,7 @@
@for (artist of artists(); track artist.id) {
-
-
+
}
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.spec.ts b/kontor-angular/src/app/comic/artist/artist-list/artist-list.component.spec.ts
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.spec.ts
rename to kontor-angular/src/app/comic/artist/artist-list/artist-list.component.spec.ts
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.ts b/kontor-angular/src/app/comic/artist/artist-list/artist-list.component.ts
similarity index 72%
rename from kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.ts
rename to kontor-angular/src/app/comic/artist/artist-list/artist-list.component.ts
index 71d78ab..441b24a 100644
--- a/kontor-angular/src/app/kontor/comic/artists/artist-list/artist-list.component.ts
+++ b/kontor-angular/src/app/comic/artist/artist-list/artist-list.component.ts
@@ -1,11 +1,11 @@
-import { ArtistComponent } from './../artist/artist.component';
import { Component, DestroyRef, inject, OnInit, signal } from '@angular/core';
import { Artist } from '../artist.model';
-import { ArtistsService } from '../artists.service';
+import { ArtistService } from '../artist.service';
+import { ArtistDetailComponent } from "../artist-detail/artist-detail.component";
@Component({
selector: 'app-artist-list',
- imports: [ArtistComponent],
+ imports: [ArtistDetailComponent],
templateUrl: './artist-list.component.html',
styleUrl: './artist-list.component.css'
})
@@ -13,12 +13,12 @@ export class ArtistListComponent implements OnInit {
artists = signal(undefined);
isFetching = signal(false);
error = signal('');
- private artistsService = inject(ArtistsService);
+ private artistService = inject(ArtistService);
private destroyRef = inject(DestroyRef);
ngOnInit() {
this.isFetching.set(true);
- const subscription = this.artistsService.loadArtists().subscribe({
+ const subscription = this.artistService.loadArtists().subscribe({
next: (artists) => {
this.artists.set(artists);
},
@@ -27,11 +27,12 @@ export class ArtistListComponent implements OnInit {
},
complete: () => {
this.isFetching.set(false);
- }
+ },
});
this.destroyRef.onDestroy(() => {
subscription.unsubscribe();
- })
+ });
}
+
}
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist.model.ts b/kontor-angular/src/app/comic/artist/artist.model.ts
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/artists/artist.model.ts
rename to kontor-angular/src/app/comic/artist/artist.model.ts
diff --git a/kontor-angular/src/app/kontor/comic/artists/artists.service.ts b/kontor-angular/src/app/comic/artist/artist.service.ts
similarity index 82%
rename from kontor-angular/src/app/kontor/comic/artists/artists.service.ts
rename to kontor-angular/src/app/comic/artist/artist.service.ts
index e2ae1e6..6852eba 100644
--- a/kontor-angular/src/app/kontor/comic/artists/artists.service.ts
+++ b/kontor-angular/src/app/comic/artist/artist.service.ts
@@ -1,19 +1,21 @@
-import { HttpClient } from "@angular/common/http";
import { inject, Injectable, signal } from "@angular/core";
+import { ErrorService } from "../../shared/error.service";
+import { HttpClient } from "@angular/common/http";
import { Artist } from "./artist.model";
import { catchError, map, throwError } from "rxjs";
@Injectable({
- providedIn: 'root'
+ providedIn: 'root',
})
-export class ArtistsService {
+export class ArtistService {
+ private errorService = inject(ErrorService);
private httpClient = inject(HttpClient);
private artists = signal([]);
loadedArtists = this.artists.asReadonly();
loadArtists() {
- return this.fetchArtists('http://127.0.0.1:8800/api/comics/artists', 'Someting went wrong fetching artists. Please try again later.');
+ return this.fetchArtists('http://127.0.0.1:8800/api/comics/artists', 'Someting went wrong fetching artists. Please try again later-');
}
private fetchArtists(url: string, errorMessage: string) {
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.css b/kontor-angular/src/app/comic/comic-overview/comic-overview.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/artists/artist/artist.component.css
rename to kontor-angular/src/app/comic/comic-overview/comic-overview.component.css
diff --git a/kontor-angular/src/app/comic/comic-overview/comic-overview.component.html b/kontor-angular/src/app/comic/comic-overview/comic-overview.component.html
new file mode 100644
index 0000000..54c8b3c
--- /dev/null
+++ b/kontor-angular/src/app/comic/comic-overview/comic-overview.component.html
@@ -0,0 +1,16 @@
+
+
+
diff --git a/kontor-angular/src/app/kontor/tysc/teams/teams.component.spec.ts b/kontor-angular/src/app/comic/comic-overview/comic-overview.component.spec.ts
similarity index 55%
rename from kontor-angular/src/app/kontor/tysc/teams/teams.component.spec.ts
rename to kontor-angular/src/app/comic/comic-overview/comic-overview.component.spec.ts
index 224a144..a61f624 100644
--- a/kontor-angular/src/app/kontor/tysc/teams/teams.component.spec.ts
+++ b/kontor-angular/src/app/comic/comic-overview/comic-overview.component.spec.ts
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { TeamsComponent } from './teams.component';
+import { ComicOverview } from './comic-overview.component';
-describe('TeamsComponent', () => {
- let component: TeamsComponent;
- let fixture: ComponentFixture;
+describe('ComicOverview', () => {
+ let component: ComicOverview;
+ let fixture: ComponentFixture;
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [TeamsComponent]
+ imports: [ComicOverview]
})
.compileComponents();
- fixture = TestBed.createComponent(TeamsComponent);
+ fixture = TestBed.createComponent(ComicOverview);
component = fixture.componentInstance;
fixture.detectChanges();
});
diff --git a/kontor-angular/src/app/comic/comic-overview/comic-overview.component.ts b/kontor-angular/src/app/comic/comic-overview/comic-overview.component.ts
new file mode 100644
index 0000000..32c15f4
--- /dev/null
+++ b/kontor-angular/src/app/comic/comic-overview/comic-overview.component.ts
@@ -0,0 +1,12 @@
+import { Component } from '@angular/core';
+import { RouterLink, RouterOutlet, RouterLinkActive } from '@angular/router';
+
+@Component({
+ selector: 'app-comic-overview',
+ imports: [RouterLink, RouterOutlet, RouterLinkActive],
+ templateUrl: './comic-overview.component.html',
+ styleUrl: './comic-overview.component.css'
+})
+export class ComicOverviewComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.css b/kontor-angular/src/app/comic/comic/comic-list/comic-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.css
rename to kontor-angular/src/app/comic/comic/comic-list/comic-list.component.css
diff --git a/kontor-angular/src/app/comic/comic/comic-list/comic-list.component.html b/kontor-angular/src/app/comic/comic/comic-list/comic-list.component.html
new file mode 100644
index 0000000..5beb054
--- /dev/null
+++ b/kontor-angular/src/app/comic/comic/comic-list/comic-list.component.html
@@ -0,0 +1 @@
+comic-list works!
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.spec.ts b/kontor-angular/src/app/comic/comic/comic-list/comic-list.component.spec.ts
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.spec.ts
rename to kontor-angular/src/app/comic/comic/comic-list/comic-list.component.spec.ts
diff --git a/kontor-angular/src/app/comic/comic/comic-list/comic-list.component.ts b/kontor-angular/src/app/comic/comic/comic-list/comic-list.component.ts
new file mode 100644
index 0000000..a09eb12
--- /dev/null
+++ b/kontor-angular/src/app/comic/comic/comic-list/comic-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-comic-list',
+ imports: [],
+ templateUrl: './comic-list.component.html',
+ styleUrl: './comic-list.component.css'
+})
+export class ComicListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/artists/artists.component.css b/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/artists/artists.component.css
rename to kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.css
diff --git a/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.html b/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.html
new file mode 100644
index 0000000..d533325
--- /dev/null
+++ b/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.html
@@ -0,0 +1 @@
+publisher-list works!
diff --git a/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.spec.ts b/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.spec.ts
new file mode 100644
index 0000000..00f7266
--- /dev/null
+++ b/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { PublisherListComponent } from './publisher-list.component';
+
+describe('PublisherListComponent', () => {
+ let component: PublisherListComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [PublisherListComponent]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(PublisherListComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.ts b/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.ts
new file mode 100644
index 0000000..43daa01
--- /dev/null
+++ b/kontor-angular/src/app/comic/publisher/publisher-list/publisher-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-publisher-list',
+ imports: [],
+ templateUrl: './publisher-list.component.html',
+ styleUrl: './publisher-list.component.css'
+})
+export class PublisherListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.html b/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.html
deleted file mode 100644
index de0a005..0000000
--- a/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.ts b/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.ts
deleted file mode 100644
index 5903c94..0000000
--- a/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Component, input } from '@angular/core';
-import { RouterLink, RouterLinkActive } from '@angular/router';
-import { Artist } from '../artist.model';
-
-@Component({
- selector: 'app-artist',
- imports: [RouterLink, RouterLinkActive],
- templateUrl: './artist.component.html',
- styleUrl: './artist.component.css'
-})
-export class ArtistComponent {
- artist = input.required();
-}
diff --git a/kontor-angular/src/app/kontor/comic/artists/artists.component.html b/kontor-angular/src/app/kontor/comic/artists/artists.component.html
deleted file mode 100644
index 4e1ec74..0000000
--- a/kontor-angular/src/app/kontor/comic/artists/artists.component.html
+++ /dev/null
@@ -1,7 +0,0 @@
-artists works!
-
-
-
Artist Details
-
diff --git a/kontor-angular/src/app/kontor/comic/artists/artists.component.ts b/kontor-angular/src/app/kontor/comic/artists/artists.component.ts
deleted file mode 100644
index f063a8e..0000000
--- a/kontor-angular/src/app/kontor/comic/artists/artists.component.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Component } from '@angular/core';
-import { ArtistListComponent } from "./artist-list/artist-list.component";
-
-@Component({
- selector: 'app-artists',
- imports: [ArtistListComponent],
- templateUrl: './artists.component.html',
- styleUrl: './artists.component.css'
-})
-export class ArtistsComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.html b/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.html
deleted file mode 100644
index c7fb516..0000000
--- a/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.spec.ts b/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.spec.ts
deleted file mode 100644
index faab5bb..0000000
--- a/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { ComicNavigationComponent } from './comic-navigation.component';
-
-describe('ComicNavigationComponent', () => {
- let component: ComicNavigationComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [ComicNavigationComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(ComicNavigationComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.ts b/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.ts
deleted file mode 100644
index 62dce29..0000000
--- a/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Component } from '@angular/core';
-import { RouterLink, RouterLinkActive } from '@angular/router';
-
-@Component({
- selector: 'app-comic-navigation',
- imports: [RouterLink, RouterLinkActive],
- templateUrl: './comic-navigation.component.html',
- styleUrl: './comic-navigation.component.css'
-})
-export class ComicNavigationComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/comic/comic-section.component.html b/kontor-angular/src/app/kontor/comic/comic-section.component.html
deleted file mode 100644
index 570e4d6..0000000
--- a/kontor-angular/src/app/kontor/comic/comic-section.component.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/kontor-angular/src/app/kontor/comic/comic-section.component.ts b/kontor-angular/src/app/kontor/comic/comic-section.component.ts
deleted file mode 100644
index 3ee6a6f..0000000
--- a/kontor-angular/src/app/kontor/comic/comic-section.component.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Component } from '@angular/core';
-import { RouterOutlet } from '@angular/router';
-import { ComicNavigationComponent } from "./comic-navigation/comic-navigation.component";
-
-@Component({
- selector: 'app-comic-section',
- imports: [RouterOutlet, ComicNavigationComponent],
- templateUrl: './comic-section.component.html',
- styleUrl: './comic-section.component.css'
-})
-export class ComicSectionComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/comic/comic.routes.ts b/kontor-angular/src/app/kontor/comic/comic.routes.ts
deleted file mode 100644
index 389e589..0000000
--- a/kontor-angular/src/app/kontor/comic/comic.routes.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { Routes } from "@angular/router";
-import { ArtistsComponent } from "./artists/artists.component";
-import { PublishersComponent } from "./publishers/publishers.component";
-import { ComicDetailsComponent } from "./comics/comic-details/comic-details.component";
-import { ComicSectionComponent } from "./comic-section.component";
-import { ComicsComponent } from "./comics/comics.component";
-
-export const routes: Routes = [
- {
- path: '',
- component: ComicSectionComponent,
- children: [
- {
- path: 'comics',
- component: ComicsComponent,
- },
- {
- path: 'comics/:comicId',
- component: ComicDetailsComponent,
- },
- {
- path: 'artists',
- component: ArtistsComponent,
- },
- {
- path: 'artists/:artistId',
- component: ArtistsComponent,
- },
- {
- path: 'publishers',
- component: PublishersComponent,
- },
- {
- path: 'publishers/:publisherId',
- component: PublishersComponent,
- },
- ],
- },
-];
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.html b/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.html
deleted file mode 100644
index e6f30bf..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.html
+++ /dev/null
@@ -1,7 +0,0 @@
-comic-details works!
-
-
-
Comic Title
-
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.ts b/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.ts
deleted file mode 100644
index 89e3909..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Component, input } from '@angular/core';
-import { ComicListComponent } from "../comic-list/comic-list.component";
-import { Comic } from '../comic.model';
-
-@Component({
- selector: 'app-comic-details',
- imports: [ComicListComponent],
- templateUrl: './comic-details.component.html',
- styleUrl: './comic-details.component.css'
-})
-export class ComicDetailsComponent {
- comic = input.required();
-}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.html b/kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.html
deleted file mode 100644
index 755e184..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.html
+++ /dev/null
@@ -1,8 +0,0 @@
-comic-list works!
-
- @for (comic of comics(); track comic.id) {
- -
-
-
- }
-
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.ts b/kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.ts
deleted file mode 100644
index 2858e39..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comic-list/comic-list.component.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Component, DestroyRef, inject, OnInit, signal } from '@angular/core';
-import { Comic } from '../comic.model';
-import { ComicComponent } from "../comic/comic.component";
-import { ComicsService } from '../comics.service';
-
-@Component({
- selector: 'app-comic-list',
- imports: [ComicComponent],
- templateUrl: './comic-list.component.html',
- styleUrl: './comic-list.component.css'
-})
-export class ComicListComponent implements OnInit {
- comics = signal(undefined);
- isFetching = signal(false);
- error = signal('');
- private comicsService = inject(ComicsService);
- private destroyRef = inject(DestroyRef);
-
- ngOnInit() {
- this.isFetching.set(true);
- const subscription = this.comicsService.loadComics().subscribe({
- next: (comics) => {
- this.comics.set(comics);
- },
- error: (error: Error) => {
- this.error.set(error.message);
- },
- complete: () => {
- this.isFetching.set(false);
- }
- });
-
- this.destroyRef.onDestroy(() => {
- subscription.unsubscribe();
- })
- }
-
-}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic.model.ts b/kontor-angular/src/app/kontor/comic/comics/comic.model.ts
deleted file mode 100644
index 444d197..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comic.model.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export interface Comic {
- id: string;
- title: string;
- completed: boolean;
-}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.html b/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.html
deleted file mode 100644
index 6113794..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.html
+++ /dev/null
@@ -1,6 +0,0 @@
-comic works!
-
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.ts b/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.ts
deleted file mode 100644
index a45e42c..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Component, input } from '@angular/core';
-import { Comic } from '../comic.model';
-import { RouterLink, RouterLinkActive } from '@angular/router';
-
-@Component({
- selector: 'app-comic',
- imports: [RouterLink, RouterLinkActive],
- templateUrl: './comic.component.html',
- styleUrl: './comic.component.css'
-})
-export class ComicComponent {
- comic = input.required();
-}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comics.component.html b/kontor-angular/src/app/kontor/comic/comics/comics.component.html
deleted file mode 100644
index b29db66..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comics.component.html
+++ /dev/null
@@ -1,4 +0,0 @@
-comics works!
-
diff --git a/kontor-angular/src/app/kontor/comic/comics/comics.component.spec.ts b/kontor-angular/src/app/kontor/comic/comics/comics.component.spec.ts
deleted file mode 100644
index 3b0af25..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comics.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { ComicsComponent } from './comics.component';
-
-describe('ComicsComponent', () => {
- let component: ComicsComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [ComicsComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(ComicsComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/comic/comics/comics.component.ts b/kontor-angular/src/app/kontor/comic/comics/comics.component.ts
deleted file mode 100644
index 742b179..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comics.component.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Component, signal } from '@angular/core';
-import { ComicListComponent } from "./comic-list/comic-list.component";
-import { ComicDetailsComponent } from './comic-details/comic-details.component';
-
-@Component({
- selector: 'app-comics',
- imports: [ComicListComponent],
- templateUrl: './comics.component.html',
- styleUrl: './comics.component.css'
-})
-export class ComicsComponent {
-}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comics.service.ts b/kontor-angular/src/app/kontor/comic/comics/comics.service.ts
deleted file mode 100644
index b747385..0000000
--- a/kontor-angular/src/app/kontor/comic/comics/comics.service.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { HttpClient } from "@angular/common/http";
-import { inject, Injectable, signal } from "@angular/core";
-import { Comic } from "./comic.model";
-import { catchError, map, throwError } from "rxjs";
-
-@Injectable({
- providedIn: 'root'
-})
-export class ComicsService {
- private httpClient = inject(HttpClient);
- private comics = signal([]);
-
- loadedComics = this.comics.asReadonly();
-
- loadComics() {
- return this.fetchComics('http://127.0.0.1:8800/api/comics/comics', 'Someting went wrong fetching comics. Please try again later.');
- }
-
- private fetchComics(url: string, errorMessage: string) {
- return this.httpClient.get(url).pipe(
- map((resData) => resData),
- catchError((error) => {
- console.log(error);
- return throwError(() => new Error(errorMessage));
- })
- );
- }
-}
-
diff --git a/kontor-angular/src/app/kontor/comic/publishers/publishers.component.html b/kontor-angular/src/app/kontor/comic/publishers/publishers.component.html
deleted file mode 100644
index 2268b57..0000000
--- a/kontor-angular/src/app/kontor/comic/publishers/publishers.component.html
+++ /dev/null
@@ -1 +0,0 @@
-publishers works!
diff --git a/kontor-angular/src/app/kontor/comic/publishers/publishers.component.spec.ts b/kontor-angular/src/app/kontor/comic/publishers/publishers.component.spec.ts
deleted file mode 100644
index 91bfdee..0000000
--- a/kontor-angular/src/app/kontor/comic/publishers/publishers.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { PublishersComponent } from './publishers.component';
-
-describe('PublishersComponent', () => {
- let component: PublishersComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [PublishersComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(PublishersComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/comic/publishers/publishers.component.ts b/kontor-angular/src/app/kontor/comic/publishers/publishers.component.ts
deleted file mode 100644
index a7711a7..0000000
--- a/kontor-angular/src/app/kontor/comic/publishers/publishers.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-publishers',
- imports: [],
- templateUrl: './publishers.component.html',
- styleUrl: './publishers.component.css'
-})
-export class PublishersComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.css b/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.css
deleted file mode 100644
index 5bec969..0000000
--- a/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.css
+++ /dev/null
@@ -1,9 +0,0 @@
-footer {
- padding: 30px;
- text-align: center;
- background-color: lightblue;
-}
-
-footer div {
- font-size: 20px;
-}
diff --git a/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.html b/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.html
deleted file mode 100644
index 0cb97f4..0000000
--- a/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.ts b/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.ts
deleted file mode 100644
index 9c80368..0000000
--- a/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-kontor-footer',
- imports: [],
- templateUrl: './kontor-footer.component.html',
- styleUrl: './kontor-footer.component.css'
-})
-export class KontorFooterComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/header/header.component.html b/kontor-angular/src/app/kontor/header/header.component.html
index 3191f24..9c1f7a2 100644
--- a/kontor-angular/src/app/kontor/header/header.component.html
+++ b/kontor-angular/src/app/kontor/header/header.component.html
@@ -2,4 +2,18 @@
+
+
diff --git a/kontor-angular/src/app/kontor/header/header.component.ts b/kontor-angular/src/app/kontor/header/header.component.ts
index 269b9f0..8808cc8 100644
--- a/kontor-angular/src/app/kontor/header/header.component.ts
+++ b/kontor-angular/src/app/kontor/header/header.component.ts
@@ -3,7 +3,7 @@ import { RouterLink, RouterLinkActive } from '@angular/router';
@Component({
selector: 'kontor-header',
- imports: [],
+ imports: [RouterLink, RouterLinkActive],
templateUrl: './header.component.html',
styleUrl: './header.component.css'
})
diff --git a/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.css b/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.css
deleted file mode 100644
index e8a1a80..0000000
--- a/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.css
+++ /dev/null
@@ -1,9 +0,0 @@
-.header {
- padding: 30px;
- text-align: center;
- background-color: lightblue;
-}
-
-.header h1 {
- font-size: 50px;
-}
diff --git a/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.html b/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.html
deleted file mode 100644
index 3191f24..0000000
--- a/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.spec.ts b/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.spec.ts
deleted file mode 100644
index 2e4ac4b..0000000
--- a/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { KontorHeaderComponent } from './kontor-header.component';
-
-describe('KontorHeaderComponent', () => {
- let component: KontorHeaderComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [KontorHeaderComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(KontorHeaderComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.ts b/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.ts
deleted file mode 100644
index 703d87a..0000000
--- a/kontor-angular/src/app/kontor/header/kontor-header/kontor-header.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component, signal } from '@angular/core';
-
-@Component({
- selector: 'app-kontor-header',
- imports: [],
- templateUrl: './kontor-header.component.html',
- styleUrl: './kontor-header.component.css'
-})
-export class KontorHeaderComponent {
- protected readonly title = signal('Kontor');
-}
diff --git a/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.html b/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.html
deleted file mode 100644
index 2caacf9..0000000
--- a/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.html
+++ /dev/null
@@ -1 +0,0 @@
-kontor-home works!
diff --git a/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.spec.ts b/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.spec.ts
deleted file mode 100644
index a38facd..0000000
--- a/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { KontorHomeComponent } from './kontor-home.component';
-
-describe('KontorHomeComponent', () => {
- let component: KontorHomeComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [KontorHomeComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(KontorHomeComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.ts b/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.ts
deleted file mode 100644
index d0e3990..0000000
--- a/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-kontor-home',
- imports: [],
- templateUrl: './kontor-home.component.html',
- styleUrl: './kontor-home.component.css'
-})
-export class KontorHomeComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.html b/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.html
deleted file mode 100644
index 3904b79..0000000
--- a/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.html
+++ /dev/null
@@ -1 +0,0 @@
-media-actors works!
diff --git a/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.ts b/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.ts
deleted file mode 100644
index 8fbb7f8..0000000
--- a/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-media-actors',
- imports: [],
- templateUrl: './media-actors.component.html',
- styleUrl: './media-actors.component.css'
-})
-export class MediaActorsComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/media/media-files/media-files.component.html b/kontor-angular/src/app/kontor/media/media-files/media-files.component.html
deleted file mode 100644
index 367cd62..0000000
--- a/kontor-angular/src/app/kontor/media/media-files/media-files.component.html
+++ /dev/null
@@ -1 +0,0 @@
-media-files works!
diff --git a/kontor-angular/src/app/kontor/media/media-files/media-files.component.spec.ts b/kontor-angular/src/app/kontor/media/media-files/media-files.component.spec.ts
deleted file mode 100644
index c8f1c9f..0000000
--- a/kontor-angular/src/app/kontor/media/media-files/media-files.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MediaFilesComponent } from './media-files.component';
-
-describe('MediaFilesComponent', () => {
- let component: MediaFilesComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [MediaFilesComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(MediaFilesComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/media/media-files/media-files.component.ts b/kontor-angular/src/app/kontor/media/media-files/media-files.component.ts
deleted file mode 100644
index 58d983c..0000000
--- a/kontor-angular/src/app/kontor/media/media-files/media-files.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-media-files',
- imports: [],
- templateUrl: './media-files.component.html',
- styleUrl: './media-files.component.css'
-})
-export class MediaFilesComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.html b/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.html
deleted file mode 100644
index cd3857f..0000000
--- a/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.spec.ts b/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.spec.ts
deleted file mode 100644
index e1c7fdf..0000000
--- a/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MediaNavigationComponent } from './media-navigation.component';
-
-describe('MediaNavigationComponent', () => {
- let component: MediaNavigationComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [MediaNavigationComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(MediaNavigationComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.ts b/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.ts
deleted file mode 100644
index 673afd9..0000000
--- a/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Component } from '@angular/core';
-import { RouterLink, RouterLinkActive } from '@angular/router';
-
-@Component({
- selector: 'app-media-navigation',
- imports: [RouterLink, RouterLinkActive],
- templateUrl: './media-navigation.component.html',
- styleUrl: './media-navigation.component.css'
-})
-export class MediaNavigationComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.html b/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.html
deleted file mode 100644
index 2aaafcb..0000000
--- a/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.html
+++ /dev/null
@@ -1 +0,0 @@
-media-videos works!
diff --git a/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.spec.ts b/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.spec.ts
deleted file mode 100644
index ccde24c..0000000
--- a/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MediaVideosComponent } from './media-videos.component';
-
-describe('MediaVideosComponent', () => {
- let component: MediaVideosComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [MediaVideosComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(MediaVideosComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.ts b/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.ts
deleted file mode 100644
index 5b1f52e..0000000
--- a/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-media-videos',
- imports: [],
- templateUrl: './media-videos.component.html',
- styleUrl: './media-videos.component.css'
-})
-export class MediaVideosComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/media/media.component.html b/kontor-angular/src/app/kontor/media/media.component.html
deleted file mode 100644
index 935917e..0000000
--- a/kontor-angular/src/app/kontor/media/media.component.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/kontor-angular/src/app/kontor/media/media.component.spec.ts b/kontor-angular/src/app/kontor/media/media.component.spec.ts
deleted file mode 100644
index 366f292..0000000
--- a/kontor-angular/src/app/kontor/media/media.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MediaComponent } from './media.component';
-
-describe('MediaComponent', () => {
- let component: MediaComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [MediaComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(MediaComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/media/media.component.ts b/kontor-angular/src/app/kontor/media/media.component.ts
deleted file mode 100644
index 6dc8018..0000000
--- a/kontor-angular/src/app/kontor/media/media.component.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Component } from '@angular/core';
-import { MediaNavigationComponent } from "./media-navigation/media-navigation.component";
-import { RouterOutlet } from '@angular/router';
-
-@Component({
- selector: 'app-media',
- imports: [MediaNavigationComponent, RouterOutlet],
- templateUrl: './media.component.html',
- styleUrl: './media.component.css'
-})
-export class MediaComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/media/media.routes.ts b/kontor-angular/src/app/kontor/media/media.routes.ts
deleted file mode 100644
index 556e9cd..0000000
--- a/kontor-angular/src/app/kontor/media/media.routes.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { Routes } from "@angular/router";
-import { MediaComponent } from "./media.component";
-import { MediaFilesComponent } from "./media-files/media-files.component";
-import { MediaActorsComponent } from "./media-actors/media-actors.component";
-import { MediaVideosComponent } from "./media-videos/media-videos.component";
-
-export const routes: Routes = [
- {
- path: '',
- component: MediaComponent,
- children: [
- {
- path: 'mediafiles',
- component: MediaFilesComponent,
- },
- {
- path: 'mediaactors',
- component: MediaActorsComponent,
- },
- {
- path: 'mediavideos',
- component: MediaVideosComponent,
- },
- ],
- },
-];
diff --git a/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.css b/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.css
deleted file mode 100644
index d90b8e6..0000000
--- a/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.css
+++ /dev/null
@@ -1 +0,0 @@
-/* Style the top navigation bar */
diff --git a/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.html b/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.html
deleted file mode 100644
index bd3d6a0..0000000
--- a/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.html
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.spec.ts b/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.spec.ts
deleted file mode 100644
index 1575b00..0000000
--- a/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { KontorNavigationComponent } from './kontor-navigation.component';
-
-describe('KontorNavigationComponent', () => {
- let component: KontorNavigationComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [KontorNavigationComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(KontorNavigationComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.ts b/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.ts
deleted file mode 100644
index d571a25..0000000
--- a/kontor-angular/src/app/kontor/navigation/kontor-navigation/kontor-navigation.component.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Component } from '@angular/core';
-import { RouterLink, RouterLinkActive } from '@angular/router';
-
-@Component({
- selector: 'app-kontor-navigation',
- imports: [RouterLink, RouterLinkActive],
- templateUrl: './kontor-navigation.component.html',
- styleUrl: './kontor-navigation.component.css'
-})
-export class KontorNavigationComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.css b/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.html b/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.html
deleted file mode 100644
index 59cab54..0000000
--- a/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.html
+++ /dev/null
@@ -1 +0,0 @@
-cardsets works!
diff --git a/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.spec.ts b/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.spec.ts
deleted file mode 100644
index 1b8a4b5..0000000
--- a/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { CardsetsComponent } from './cardsets.component';
-
-describe('CardsetsComponent', () => {
- let component: CardsetsComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [CardsetsComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(CardsetsComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.ts b/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.ts
deleted file mode 100644
index 78f83fe..0000000
--- a/kontor-angular/src/app/kontor/tysc/cardsets/cardsets.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-cardsets',
- imports: [],
- templateUrl: './cardsets.component.html',
- styleUrl: './cardsets.component.css'
-})
-export class CardsetsComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/tysc/players/players.component.css b/kontor-angular/src/app/kontor/tysc/players/players.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/kontor-angular/src/app/kontor/tysc/players/players.component.html b/kontor-angular/src/app/kontor/tysc/players/players.component.html
deleted file mode 100644
index 2db5c66..0000000
--- a/kontor-angular/src/app/kontor/tysc/players/players.component.html
+++ /dev/null
@@ -1 +0,0 @@
-players works!
diff --git a/kontor-angular/src/app/kontor/tysc/players/players.component.spec.ts b/kontor-angular/src/app/kontor/tysc/players/players.component.spec.ts
deleted file mode 100644
index 2a4a85f..0000000
--- a/kontor-angular/src/app/kontor/tysc/players/players.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { PlayersComponent } from './players.component';
-
-describe('PlayersComponent', () => {
- let component: PlayersComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [PlayersComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(PlayersComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/tysc/players/players.component.ts b/kontor-angular/src/app/kontor/tysc/players/players.component.ts
deleted file mode 100644
index fe51eba..0000000
--- a/kontor-angular/src/app/kontor/tysc/players/players.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-players',
- imports: [],
- templateUrl: './players.component.html',
- styleUrl: './players.component.css'
-})
-export class PlayersComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/tysc/positions/positions.component.css b/kontor-angular/src/app/kontor/tysc/positions/positions.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/kontor-angular/src/app/kontor/tysc/positions/positions.component.html b/kontor-angular/src/app/kontor/tysc/positions/positions.component.html
deleted file mode 100644
index 9f6f0df..0000000
--- a/kontor-angular/src/app/kontor/tysc/positions/positions.component.html
+++ /dev/null
@@ -1 +0,0 @@
-positions works!
diff --git a/kontor-angular/src/app/kontor/tysc/positions/positions.component.spec.ts b/kontor-angular/src/app/kontor/tysc/positions/positions.component.spec.ts
deleted file mode 100644
index 3e71a33..0000000
--- a/kontor-angular/src/app/kontor/tysc/positions/positions.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { PositionsComponent } from './positions.component';
-
-describe('PositionsComponent', () => {
- let component: PositionsComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [PositionsComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(PositionsComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/tysc/positions/positions.component.ts b/kontor-angular/src/app/kontor/tysc/positions/positions.component.ts
deleted file mode 100644
index 8aa4d12..0000000
--- a/kontor-angular/src/app/kontor/tysc/positions/positions.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-positions',
- imports: [],
- templateUrl: './positions.component.html',
- styleUrl: './positions.component.css'
-})
-export class PositionsComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/tysc/sports/sports.component.css b/kontor-angular/src/app/kontor/tysc/sports/sports.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/kontor-angular/src/app/kontor/tysc/sports/sports.component.html b/kontor-angular/src/app/kontor/tysc/sports/sports.component.html
deleted file mode 100644
index b76e0d7..0000000
--- a/kontor-angular/src/app/kontor/tysc/sports/sports.component.html
+++ /dev/null
@@ -1 +0,0 @@
-sports works!
diff --git a/kontor-angular/src/app/kontor/tysc/sports/sports.component.spec.ts b/kontor-angular/src/app/kontor/tysc/sports/sports.component.spec.ts
deleted file mode 100644
index c9feb0e..0000000
--- a/kontor-angular/src/app/kontor/tysc/sports/sports.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { SportsComponent } from './sports.component';
-
-describe('SportsComponent', () => {
- let component: SportsComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [SportsComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(SportsComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/tysc/sports/sports.component.ts b/kontor-angular/src/app/kontor/tysc/sports/sports.component.ts
deleted file mode 100644
index 0467766..0000000
--- a/kontor-angular/src/app/kontor/tysc/sports/sports.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-sports',
- imports: [],
- templateUrl: './sports.component.html',
- styleUrl: './sports.component.css'
-})
-export class SportsComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/tysc/teams/teams.component.css b/kontor-angular/src/app/kontor/tysc/teams/teams.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/kontor-angular/src/app/kontor/tysc/teams/teams.component.html b/kontor-angular/src/app/kontor/tysc/teams/teams.component.html
deleted file mode 100644
index 4f2dfda..0000000
--- a/kontor-angular/src/app/kontor/tysc/teams/teams.component.html
+++ /dev/null
@@ -1 +0,0 @@
-teams works!
diff --git a/kontor-angular/src/app/kontor/tysc/teams/teams.component.ts b/kontor-angular/src/app/kontor/tysc/teams/teams.component.ts
deleted file mode 100644
index 922c64c..0000000
--- a/kontor-angular/src/app/kontor/tysc/teams/teams.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-teams',
- imports: [],
- templateUrl: './teams.component.html',
- styleUrl: './teams.component.css'
-})
-export class TeamsComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.css b/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.html b/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.html
deleted file mode 100644
index 67b5fb9..0000000
--- a/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.spec.ts b/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.spec.ts
deleted file mode 100644
index 363a185..0000000
--- a/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { TyscNavigationComponent } from './tysc-navigation.component';
-
-describe('TyscNavigationComponent', () => {
- let component: TyscNavigationComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [TyscNavigationComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(TyscNavigationComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.ts b/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.ts
deleted file mode 100644
index 0a8cc16..0000000
--- a/kontor-angular/src/app/kontor/tysc/tysc-navigation/tysc-navigation.component.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Component } from '@angular/core';
-import { RouterLink, RouterLinkActive } from '@angular/router';
-
-@Component({
- selector: 'app-tysc-navigation',
- imports: [RouterLink, RouterLinkActive],
- templateUrl: './tysc-navigation.component.html',
- styleUrl: './tysc-navigation.component.css'
-})
-export class TyscNavigationComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/tysc/tysc-section.component.css b/kontor-angular/src/app/kontor/tysc/tysc-section.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/kontor-angular/src/app/kontor/tysc/tysc-section.component.html b/kontor-angular/src/app/kontor/tysc/tysc-section.component.html
deleted file mode 100644
index 6e5aeb1..0000000
--- a/kontor-angular/src/app/kontor/tysc/tysc-section.component.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/kontor-angular/src/app/kontor/tysc/tysc-section.component.spec.ts b/kontor-angular/src/app/kontor/tysc/tysc-section.component.spec.ts
deleted file mode 100644
index c8c34ec..0000000
--- a/kontor-angular/src/app/kontor/tysc/tysc-section.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { TyscSectionComponent } from './tysc-section.component';
-
-describe('TyscSectionComponent', () => {
- let component: TyscSectionComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [TyscSectionComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(TyscSectionComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/tysc/tysc-section.component.ts b/kontor-angular/src/app/kontor/tysc/tysc-section.component.ts
deleted file mode 100644
index 9c05e01..0000000
--- a/kontor-angular/src/app/kontor/tysc/tysc-section.component.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Component } from '@angular/core';
-import { RouterOutlet } from '@angular/router';
-import { TyscNavigationComponent } from './tysc-navigation/tysc-navigation.component';
-
-@Component({
- selector: 'app-tysc-section',
- imports: [RouterOutlet, TyscNavigationComponent],
- templateUrl: './tysc-section.component.html',
- styleUrl: './tysc-section.component.css'
-})
-export class TyscSectionComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/tysc/tysc.routes.ts b/kontor-angular/src/app/kontor/tysc/tysc.routes.ts
deleted file mode 100644
index bec1dae..0000000
--- a/kontor-angular/src/app/kontor/tysc/tysc.routes.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { Routes } from "@angular/router";
-import { TyscSectionComponent } from "./tysc-section.component";
-import { TeamsComponent } from "./teams/teams.component";
-import { PositionsComponent } from "./positions/positions.component";
-import { PlayersComponent } from "./players/players.component";
-import { CardsetsComponent } from "./cardsets/cardsets.component";
-import { VendorsComponent } from "./vendors/vendors.component";
-
-export const routes: Routes = [
- {
- path: '',
- component: TyscSectionComponent,
- children: [
- {
- path: 'teams',
- component: TeamsComponent,
- },
- {
- path: 'positions',
- component: PositionsComponent,
- },
- {
- path: 'players',
- component: PlayersComponent,
- },
- {
- path: 'cardsets',
- component: CardsetsComponent,
- },
- {
- path: 'vendors',
- component: VendorsComponent,
- },
- ],
- },
-];
diff --git a/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.css b/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.html b/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.html
deleted file mode 100644
index a4fc884..0000000
--- a/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.html
+++ /dev/null
@@ -1 +0,0 @@
-vendors works!
diff --git a/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.spec.ts b/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.spec.ts
deleted file mode 100644
index 48ed75f..0000000
--- a/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { VendorsComponent } from './vendors.component';
-
-describe('VendorsComponent', () => {
- let component: VendorsComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [VendorsComponent]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(VendorsComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.ts b/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.ts
deleted file mode 100644
index edacb9b..0000000
--- a/kontor-angular/src/app/kontor/tysc/vendors/vendors.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-vendors',
- imports: [],
- templateUrl: './vendors.component.html',
- styleUrl: './vendors.component.css'
-})
-export class VendorsComponent {
-
-}
diff --git a/kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.css b/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/comic-navigation/comic-navigation.component.css
rename to kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.css
diff --git a/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.html b/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.html
new file mode 100644
index 0000000..43702b0
--- /dev/null
+++ b/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.html
@@ -0,0 +1 @@
+media-actor-list works!
diff --git a/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.spec.ts b/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.spec.ts
new file mode 100644
index 0000000..1eae192
--- /dev/null
+++ b/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { MediaActorListComponent } from './media-actor-list.component';
+
+describe('MediaActorListComponent', () => {
+ let component: MediaActorListComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [MediaActorListComponent]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(MediaActorListComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.ts b/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.ts
new file mode 100644
index 0000000..f765de4
--- /dev/null
+++ b/kontor-angular/src/app/media/media-actor/media-actor-list/media-actor-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-media-actor-list',
+ imports: [],
+ templateUrl: './media-actor-list.component.html',
+ styleUrl: './media-actor-list.component.css'
+})
+export class MediaActorListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/comic-section.component.css b/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/comic-section.component.css
rename to kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.css
diff --git a/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.html b/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.html
new file mode 100644
index 0000000..0c46e27
--- /dev/null
+++ b/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.html
@@ -0,0 +1 @@
+media-file-list works!
diff --git a/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.spec.ts b/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.spec.ts
new file mode 100644
index 0000000..331bea0
--- /dev/null
+++ b/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { MediaFileListComponent } from './media-file-list.component';
+
+describe('MediaFileListComponent', () => {
+ let component: MediaFileListComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [MediaFileListComponent]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(MediaFileListComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.ts b/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.ts
new file mode 100644
index 0000000..f64918a
--- /dev/null
+++ b/kontor-angular/src/app/media/media-file/media-file-list/media-file-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-media-file-list',
+ imports: [],
+ templateUrl: './media-file-list.component.html',
+ styleUrl: './media-file-list.component.css'
+})
+export class MediaFileListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.css b/kontor-angular/src/app/media/media-overview/media-overview.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/comics/comic-details/comic-details.component.css
rename to kontor-angular/src/app/media/media-overview/media-overview.component.css
diff --git a/kontor-angular/src/app/media/media-overview/media-overview.component.html b/kontor-angular/src/app/media/media-overview/media-overview.component.html
new file mode 100644
index 0000000..4a72d42
--- /dev/null
+++ b/kontor-angular/src/app/media/media-overview/media-overview.component.html
@@ -0,0 +1,16 @@
+
+
+
diff --git a/kontor-angular/src/app/kontor/comic/comic-section.component.spec.ts b/kontor-angular/src/app/media/media-overview/media-overview.component.spec.ts
similarity index 51%
rename from kontor-angular/src/app/kontor/comic/comic-section.component.spec.ts
rename to kontor-angular/src/app/media/media-overview/media-overview.component.spec.ts
index 0ce4d09..ccaf8b5 100644
--- a/kontor-angular/src/app/kontor/comic/comic-section.component.spec.ts
+++ b/kontor-angular/src/app/media/media-overview/media-overview.component.spec.ts
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { ComicSectionComponent } from './comic-section.component';
+import { MediaOverviewComponent } from './media-overview.component';
-describe('ComicComponent', () => {
- let component: ComicSectionComponent;
- let fixture: ComponentFixture;
+describe('MediaOverview', () => {
+ let component: MediaOverviewComponent;
+ let fixture: ComponentFixture;
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [ComicSectionComponent]
+ imports: [MediaOverviewComponent]
})
.compileComponents();
- fixture = TestBed.createComponent(ComicSectionComponent);
+ fixture = TestBed.createComponent(MediaOverviewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
diff --git a/kontor-angular/src/app/media/media-overview/media-overview.component.ts b/kontor-angular/src/app/media/media-overview/media-overview.component.ts
new file mode 100644
index 0000000..ea7711b
--- /dev/null
+++ b/kontor-angular/src/app/media/media-overview/media-overview.component.ts
@@ -0,0 +1,12 @@
+import { Component } from '@angular/core';
+import { RouterLink, RouterOutlet, RouterLinkActive } from '@angular/router';
+
+@Component({
+ selector: 'kontor-media-overview',
+ imports: [RouterOutlet, RouterLink, RouterLinkActive],
+ templateUrl: './media-overview.component.html',
+ styleUrl: './media-overview.component.css'
+})
+export class MediaOverviewComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.css b/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/comics/comic/comic.component.css
rename to kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.css
diff --git a/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.html b/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.html
new file mode 100644
index 0000000..ae42ba1
--- /dev/null
+++ b/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.html
@@ -0,0 +1 @@
+media-video-list works!
diff --git a/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.spec.ts b/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.spec.ts
new file mode 100644
index 0000000..e18eb84
--- /dev/null
+++ b/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { MediaVideoListComponent } from './media-video-list.component';
+
+describe('MediaVideoListComponent', () => {
+ let component: MediaVideoListComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [MediaVideoListComponent]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(MediaVideoListComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.ts b/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.ts
new file mode 100644
index 0000000..bae8344
--- /dev/null
+++ b/kontor-angular/src/app/media/media-video/media-video-list/media-video-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-media-video-list',
+ imports: [],
+ templateUrl: './media-video-list.component.html',
+ styleUrl: './media-video-list.component.css'
+})
+export class MediaVideoListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/comics/comics.component.css b/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/comics/comics.component.css
rename to kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.css
diff --git a/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.html b/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.html
new file mode 100644
index 0000000..45f5e7b
--- /dev/null
+++ b/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.html
@@ -0,0 +1 @@
+cardset-list works!
diff --git a/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.spec.ts b/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.spec.ts
similarity index 52%
rename from kontor-angular/src/app/kontor/media/media-actors/media-actors.component.spec.ts
rename to kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.spec.ts
index 1448ea4..c957e68 100644
--- a/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.spec.ts
+++ b/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.spec.ts
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { MediaActorsComponent } from './media-actors.component';
+import { CardsetListComponent } from './cardset-list.component';
-describe('MediaActorsComponent', () => {
- let component: MediaActorsComponent;
- let fixture: ComponentFixture;
+describe('CardsetListComponent', () => {
+ let component: CardsetListComponent;
+ let fixture: ComponentFixture;
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [MediaActorsComponent]
+ imports: [CardsetListComponent]
})
.compileComponents();
- fixture = TestBed.createComponent(MediaActorsComponent);
+ fixture = TestBed.createComponent(CardsetListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
diff --git a/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.ts b/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.ts
new file mode 100644
index 0000000..67d92e0
--- /dev/null
+++ b/kontor-angular/src/app/tysc/cardset/cardset-list/cardset-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-cardset-list',
+ imports: [],
+ templateUrl: './cardset-list.component.html',
+ styleUrl: './cardset-list.component.css'
+})
+export class CardsetListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/comic/publishers/publishers.component.css b/kontor-angular/src/app/tysc/player/player-list/player-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/comic/publishers/publishers.component.css
rename to kontor-angular/src/app/tysc/player/player-list/player-list.component.css
diff --git a/kontor-angular/src/app/tysc/player/player-list/player-list.component.html b/kontor-angular/src/app/tysc/player/player-list/player-list.component.html
new file mode 100644
index 0000000..66a8ec9
--- /dev/null
+++ b/kontor-angular/src/app/tysc/player/player-list/player-list.component.html
@@ -0,0 +1 @@
+player-list works!
diff --git a/kontor-angular/src/app/tysc/player/player-list/player-list.component.spec.ts b/kontor-angular/src/app/tysc/player/player-list/player-list.component.spec.ts
new file mode 100644
index 0000000..0d08ee9
--- /dev/null
+++ b/kontor-angular/src/app/tysc/player/player-list/player-list.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { PlayerListComponent } from './player-list.component';
+
+describe('PlayerListComponent', () => {
+ let component: PlayerListComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [PlayerListComponent]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(PlayerListComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/kontor-angular/src/app/tysc/player/player-list/player-list.component.ts b/kontor-angular/src/app/tysc/player/player-list/player-list.component.ts
new file mode 100644
index 0000000..72646c0
--- /dev/null
+++ b/kontor-angular/src/app/tysc/player/player-list/player-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-player-list',
+ imports: [],
+ templateUrl: './player-list.component.html',
+ styleUrl: './player-list.component.css'
+})
+export class PlayerListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.css b/kontor-angular/src/app/tysc/position/position-list/position-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/home/kontor-home/kontor-home.component.css
rename to kontor-angular/src/app/tysc/position/position-list/position-list.component.css
diff --git a/kontor-angular/src/app/tysc/position/position-list/position-list.component.html b/kontor-angular/src/app/tysc/position/position-list/position-list.component.html
new file mode 100644
index 0000000..652033e
--- /dev/null
+++ b/kontor-angular/src/app/tysc/position/position-list/position-list.component.html
@@ -0,0 +1 @@
+position-list works!
diff --git a/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.spec.ts b/kontor-angular/src/app/tysc/position/position-list/position-list.component.spec.ts
similarity index 52%
rename from kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.spec.ts
rename to kontor-angular/src/app/tysc/position/position-list/position-list.component.spec.ts
index a957c42..9034de6 100644
--- a/kontor-angular/src/app/kontor/footer/kontor-footer/kontor-footer.component.spec.ts
+++ b/kontor-angular/src/app/tysc/position/position-list/position-list.component.spec.ts
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { KontorFooterComponent } from './kontor-footer.component';
+import { PositionListComponent } from './position-list.component';
-describe('KontorFooterComponent', () => {
- let component: KontorFooterComponent;
- let fixture: ComponentFixture;
+describe('PositionListComponent', () => {
+ let component: PositionListComponent;
+ let fixture: ComponentFixture;
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [KontorFooterComponent]
+ imports: [PositionListComponent]
})
.compileComponents();
- fixture = TestBed.createComponent(KontorFooterComponent);
+ fixture = TestBed.createComponent(PositionListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
diff --git a/kontor-angular/src/app/tysc/position/position-list/position-list.component.ts b/kontor-angular/src/app/tysc/position/position-list/position-list.component.ts
new file mode 100644
index 0000000..f76b808
--- /dev/null
+++ b/kontor-angular/src/app/tysc/position/position-list/position-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-position-list',
+ imports: [],
+ templateUrl: './position-list.component.html',
+ styleUrl: './position-list.component.css'
+})
+export class PositionListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/media/media-actors/media-actors.component.css b/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/media/media-actors/media-actors.component.css
rename to kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.css
diff --git a/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.html b/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.html
new file mode 100644
index 0000000..36f5c85
--- /dev/null
+++ b/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.html
@@ -0,0 +1,8 @@
+sport-list works!
+
+ @for (sport of sports(); track sport.id) {
+ -
+
{{ sport.name }}
+
+ }
+
diff --git a/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.spec.ts b/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.spec.ts
similarity index 53%
rename from kontor-angular/src/app/kontor/comic/comics/comic/comic.component.spec.ts
rename to kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.spec.ts
index 7516987..7a1c646 100644
--- a/kontor-angular/src/app/kontor/comic/comics/comic/comic.component.spec.ts
+++ b/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.spec.ts
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { ComicComponent } from './comic.component';
+import { SportListComponent } from './sport-list.component';
-describe('ComicComponent', () => {
- let component: ComicComponent;
- let fixture: ComponentFixture;
+describe('SportListComponent', () => {
+ let component: SportListComponent;
+ let fixture: ComponentFixture;
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [ComicComponent]
+ imports: [SportListComponent]
})
.compileComponents();
- fixture = TestBed.createComponent(ComicComponent);
+ fixture = TestBed.createComponent(SportListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
diff --git a/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.ts b/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.ts
new file mode 100644
index 0000000..a22dd75
--- /dev/null
+++ b/kontor-angular/src/app/tysc/sport/sport-list/sport-list.component.ts
@@ -0,0 +1,38 @@
+import { Component, DestroyRef, inject, OnInit, signal } from '@angular/core';
+import { Sport } from '../sport.model';
+import { SportService } from '../sport.service';
+
+@Component({
+ selector: 'app-sport-list',
+ imports: [],
+ templateUrl: './sport-list.component.html',
+ styleUrl: './sport-list.component.css'
+})
+export class SportListComponent implements OnInit {
+ sports = signal(undefined);
+ isFetching = signal(false);
+ error = signal('');
+ private sportService = inject(SportService);
+ private destroyRef = inject(DestroyRef);
+
+
+ ngOnInit() {
+ this.isFetching.set(true);
+ const subscription = this.sportService.loadSports().subscribe({
+ next: (sports) => {
+ this.sports.set(sports);
+ },
+ error: (error: Error) => {
+ this.error.set(error.message);
+ },
+ complete: () => {
+ this.isFetching.set(false);
+ },
+ });
+
+ this.destroyRef.onDestroy(() => {
+ subscription.unsubscribe();
+ });
+ }
+
+}
diff --git a/kontor-angular/src/app/kontor/media/media-files/media-files.component.css b/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/media/media-files/media-files.component.css
rename to kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.css
diff --git a/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.html b/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.html
new file mode 100644
index 0000000..8339199
--- /dev/null
+++ b/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.html
@@ -0,0 +1 @@
+sport-selector works!
diff --git a/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.spec.ts b/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.spec.ts
new file mode 100644
index 0000000..1bc65be
--- /dev/null
+++ b/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { SportSelectorComponent } from './sport-selector.component';
+
+describe('SportSelectorComponent', () => {
+ let component: SportSelectorComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [SportSelectorComponent]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(SportSelectorComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.ts b/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.ts
new file mode 100644
index 0000000..896f350
--- /dev/null
+++ b/kontor-angular/src/app/tysc/sport/sport-selector/sport-selector.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-sport-selector',
+ imports: [],
+ templateUrl: './sport-selector.component.html',
+ styleUrl: './sport-selector.component.css'
+})
+export class SportSelectorComponent {
+
+}
diff --git a/kontor-angular/src/app/tysc/sport/sport.model.ts b/kontor-angular/src/app/tysc/sport/sport.model.ts
new file mode 100644
index 0000000..a9bc9a2
--- /dev/null
+++ b/kontor-angular/src/app/tysc/sport/sport.model.ts
@@ -0,0 +1,4 @@
+export interface Sport {
+ id: string;
+ name: string;
+}
diff --git a/kontor-angular/src/app/tysc/sport/sport.service.ts b/kontor-angular/src/app/tysc/sport/sport.service.ts
new file mode 100644
index 0000000..31945dd
--- /dev/null
+++ b/kontor-angular/src/app/tysc/sport/sport.service.ts
@@ -0,0 +1,30 @@
+import { HttpClient } from "@angular/common/http";
+import { inject, Injectable, signal } from "@angular/core";
+import { Sport } from "./sport.model";
+import { catchError, map, throwError } from "rxjs";
+import { ErrorService } from "../../shared/error.service";
+
+@Injectable({
+ providedIn: 'root',
+})
+export class SportService {
+ private errorService = inject(ErrorService);
+ private httpClient = inject(HttpClient);
+ private sports = signal([]);
+
+ loadedSports = this.sports.asReadonly();
+
+ loadSports() {
+ return this.fetchSports('http://127.0.0.1:8800/api/tysc/sports', 'Someting went wrong fetching sports. Please try again later-');
+ }
+
+ private fetchSports(url: string, errorMessage: string) {
+ return this.httpClient.get(url).pipe(
+ map((resData) => resData),
+ catchError((error) => {
+ console.log(error);
+ return throwError(() => new Error(errorMessage));
+ })
+ );
+ }
+}
diff --git a/kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.css b/kontor-angular/src/app/tysc/team/team-list/team-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/media/media-navigation/media-navigation.component.css
rename to kontor-angular/src/app/tysc/team/team-list/team-list.component.css
diff --git a/kontor-angular/src/app/tysc/team/team-list/team-list.component.html b/kontor-angular/src/app/tysc/team/team-list/team-list.component.html
new file mode 100644
index 0000000..5f0a00a
--- /dev/null
+++ b/kontor-angular/src/app/tysc/team/team-list/team-list.component.html
@@ -0,0 +1 @@
+team-list works!
diff --git a/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.spec.ts b/kontor-angular/src/app/tysc/team/team-list/team-list.component.spec.ts
similarity index 54%
rename from kontor-angular/src/app/kontor/comic/artists/artist/artist.component.spec.ts
rename to kontor-angular/src/app/tysc/team/team-list/team-list.component.spec.ts
index fe60ea6..b8a8711 100644
--- a/kontor-angular/src/app/kontor/comic/artists/artist/artist.component.spec.ts
+++ b/kontor-angular/src/app/tysc/team/team-list/team-list.component.spec.ts
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { ArtistComponent } from './artist.component';
+import { TeamListComponent } from './team-list.component';
-describe('ArtistComponent', () => {
- let component: ArtistComponent;
- let fixture: ComponentFixture;
+describe('TeamListComponent', () => {
+ let component: TeamListComponent;
+ let fixture: ComponentFixture;
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [ArtistComponent]
+ imports: [TeamListComponent]
})
.compileComponents();
- fixture = TestBed.createComponent(ArtistComponent);
+ fixture = TestBed.createComponent(TeamListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
diff --git a/kontor-angular/src/app/tysc/team/team-list/team-list.component.ts b/kontor-angular/src/app/tysc/team/team-list/team-list.component.ts
new file mode 100644
index 0000000..f3b7766
--- /dev/null
+++ b/kontor-angular/src/app/tysc/team/team-list/team-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-team-list',
+ imports: [],
+ templateUrl: './team-list.component.html',
+ styleUrl: './team-list.component.css'
+})
+export class TeamListComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/media/media-videos/media-videos.component.css b/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/media/media-videos/media-videos.component.css
rename to kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.css
diff --git a/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.html b/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.html
new file mode 100644
index 0000000..7f5e8d2
--- /dev/null
+++ b/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.html
@@ -0,0 +1,8 @@
+
+
diff --git a/kontor-angular/src/app/kontor/comic/artists/artists.component.spec.ts b/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.spec.ts
similarity index 54%
rename from kontor-angular/src/app/kontor/comic/artists/artists.component.spec.ts
rename to kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.spec.ts
index be721bf..61baa16 100644
--- a/kontor-angular/src/app/kontor/comic/artists/artists.component.spec.ts
+++ b/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.spec.ts
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { ArtistsComponent } from './artists.component';
+import { TyscMenuComponent } from './tysc-menu.component';
-describe('ArtistsComponent', () => {
- let component: ArtistsComponent;
- let fixture: ComponentFixture;
+describe('TyscMenuComponent', () => {
+ let component: TyscMenuComponent;
+ let fixture: ComponentFixture;
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [ArtistsComponent]
+ imports: [TyscMenuComponent]
})
.compileComponents();
- fixture = TestBed.createComponent(ArtistsComponent);
+ fixture = TestBed.createComponent(TyscMenuComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
diff --git a/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.ts b/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.ts
new file mode 100644
index 0000000..12710f8
--- /dev/null
+++ b/kontor-angular/src/app/tysc/tysc-menu/tysc-menu.component.ts
@@ -0,0 +1,12 @@
+import { Component } from '@angular/core';
+import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
+
+@Component({
+ selector: 'app-tysc-menu',
+ imports: [RouterLink, RouterLinkActive, RouterOutlet],
+ templateUrl: './tysc-menu.component.html',
+ styleUrl: './tysc-menu.component.css'
+})
+export class TyscMenuComponent {
+
+}
diff --git a/kontor-angular/src/app/kontor/media/media.component.css b/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.css
similarity index 100%
rename from kontor-angular/src/app/kontor/media/media.component.css
rename to kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.css
diff --git a/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.html b/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.html
new file mode 100644
index 0000000..aedf60d
--- /dev/null
+++ b/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.html
@@ -0,0 +1 @@
+vendor-list works!
diff --git a/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.spec.ts b/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.spec.ts
new file mode 100644
index 0000000..fc3ed2c
--- /dev/null
+++ b/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { VendorListComponent } from './vendor-list.component';
+
+describe('VendorListComponent', () => {
+ let component: VendorListComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [VendorListComponent]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(VendorListComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.ts b/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.ts
new file mode 100644
index 0000000..073a098
--- /dev/null
+++ b/kontor-angular/src/app/tysc/vendor/vendor-list/vendor-list.component.ts
@@ -0,0 +1,11 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-vendor-list',
+ imports: [],
+ templateUrl: './vendor-list.component.html',
+ styleUrl: './vendor-list.component.css'
+})
+export class VendorListComponent {
+
+}