diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts
index a7fe5d5..4ee95e1 100644
--- a/frontend/src/app/app-routing.module.ts
+++ b/frontend/src/app/app-routing.module.ts
@@ -23,6 +23,11 @@ const routes: Routes = [
loadChildren: async () => (await import('./students/students.module')).StudentsModule,
data: {title: 'Hallagtói kezdőlap'}
},
+ {
+ path: 'teacher',
+ loadChildren: async () => (await import('./teachers/teachers.module')).TeachersModule,
+ data: {title: 'Oktatói kezdőlap'}
+ },
{
path: '',
children: [
diff --git a/frontend/src/app/students/dashboard/dashboard.component.html b/frontend/src/app/students/dashboard/dashboard.component.html
index 4a11d21..8d9e8d3 100644
--- a/frontend/src/app/students/dashboard/dashboard.component.html
+++ b/frontend/src/app/students/dashboard/dashboard.component.html
@@ -1,6 +1,5 @@
- Teljesitett tárgyak
+ Üdv, {{ loginService.user?.name }}!
-
diff --git a/frontend/src/app/students/dashboard/dashboard.component.ts b/frontend/src/app/students/dashboard/dashboard.component.ts
index e24bed2..684ef20 100644
--- a/frontend/src/app/students/dashboard/dashboard.component.ts
+++ b/frontend/src/app/students/dashboard/dashboard.component.ts
@@ -1,4 +1,6 @@
import { Component, OnInit } from '@angular/core';
+import { CourseListByUserGQL } from '../../services/graphql';
+import { LoginService } from '../../auth/login.service';
@Component({
selector: 'app-dashboard',
@@ -7,7 +9,7 @@ import { Component, OnInit } from '@angular/core';
})
export class DashboardComponent implements OnInit {
- constructor() {
+ constructor(public courses: CourseListByUserGQL, public loginService: LoginService) {
}
ngOnInit(): void {
diff --git a/frontend/src/app/teachers/dashboard/dashboard.component.css b/frontend/src/app/teachers/dashboard/dashboard.component.css
new file mode 100644
index 0000000..e69de29
diff --git a/frontend/src/app/teachers/dashboard/dashboard.component.html b/frontend/src/app/teachers/dashboard/dashboard.component.html
new file mode 100644
index 0000000..8d9e8d3
--- /dev/null
+++ b/frontend/src/app/teachers/dashboard/dashboard.component.html
@@ -0,0 +1,5 @@
+
+ Üdv, {{ loginService.user?.name }}!
+
+
+
diff --git a/frontend/src/app/teachers/dashboard/dashboard.component.spec.ts b/frontend/src/app/teachers/dashboard/dashboard.component.spec.ts
new file mode 100644
index 0000000..b491468
--- /dev/null
+++ b/frontend/src/app/teachers/dashboard/dashboard.component.spec.ts
@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { DashboardComponent } from './dashboard.component';
+
+describe('DashboardComponent', () => {
+ let component: DashboardComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [DashboardComponent]
+ })
+ .compileComponents();
+ });
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(DashboardComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/frontend/src/app/teachers/dashboard/dashboard.component.ts b/frontend/src/app/teachers/dashboard/dashboard.component.ts
new file mode 100644
index 0000000..684ef20
--- /dev/null
+++ b/frontend/src/app/teachers/dashboard/dashboard.component.ts
@@ -0,0 +1,18 @@
+import { Component, OnInit } from '@angular/core';
+import { CourseListByUserGQL } from '../../services/graphql';
+import { LoginService } from '../../auth/login.service';
+
+@Component({
+ selector: 'app-dashboard',
+ templateUrl: './dashboard.component.html',
+ styleUrls: ['./dashboard.component.css']
+})
+export class DashboardComponent implements OnInit {
+
+ constructor(public courses: CourseListByUserGQL, public loginService: LoginService) {
+ }
+
+ ngOnInit(): void {
+ }
+
+}
diff --git a/frontend/src/app/teachers/teachers.module.ts b/frontend/src/app/teachers/teachers.module.ts
new file mode 100644
index 0000000..389282a
--- /dev/null
+++ b/frontend/src/app/teachers/teachers.module.ts
@@ -0,0 +1,21 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { DashboardComponent } from './dashboard/dashboard.component';
+import { RouterModule, Routes } from '@angular/router';
+import { RouteData } from '../app-routing.module';
+import { MatCardModule } from '@angular/material/card';
+
+const routes: Routes = [
+ {path: '', component: DashboardComponent, data: {title: 'Kezdőlap'} as RouteData}
+];
+
+@NgModule({
+ declarations: [DashboardComponent],
+ imports: [
+ CommonModule,
+ RouterModule.forChild(routes),
+ MatCardModule
+ ]
+})
+export class TeachersModule {
+}