From f0bd85754949f0fe76c4b6ed6c4c810f193a23b7 Mon Sep 17 00:00:00 2001 From: Danijel Andjelkovic Date: Thu, 24 Mar 2022 06:34:39 +0100 Subject: Dodao komponentu koha ce prikazivati notifikacije korisniku. --- .../notifications/notifications.component.css | 0 .../notifications/notifications.component.html | 3 +++ .../notifications/notifications.component.spec.ts | 25 ++++++++++++++++++++++ .../notifications/notifications.component.ts | 17 +++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 frontend/src/app/_elements/notifications/notifications.component.css create mode 100644 frontend/src/app/_elements/notifications/notifications.component.html create mode 100644 frontend/src/app/_elements/notifications/notifications.component.spec.ts create mode 100644 frontend/src/app/_elements/notifications/notifications.component.ts (limited to 'frontend/src/app') diff --git a/frontend/src/app/_elements/notifications/notifications.component.css b/frontend/src/app/_elements/notifications/notifications.component.css new file mode 100644 index 00000000..e69de29b diff --git a/frontend/src/app/_elements/notifications/notifications.component.html b/frontend/src/app/_elements/notifications/notifications.component.html new file mode 100644 index 00000000..27071425 --- /dev/null +++ b/frontend/src/app/_elements/notifications/notifications.component.html @@ -0,0 +1,3 @@ +
+

Notifikacije

+
\ No newline at end of file diff --git a/frontend/src/app/_elements/notifications/notifications.component.spec.ts b/frontend/src/app/_elements/notifications/notifications.component.spec.ts new file mode 100644 index 00000000..4ae22edc --- /dev/null +++ b/frontend/src/app/_elements/notifications/notifications.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NotificationsComponent } from './notifications.component'; + +describe('NotificationsComponent', () => { + let component: NotificationsComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ NotificationsComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(NotificationsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/frontend/src/app/_elements/notifications/notifications.component.ts b/frontend/src/app/_elements/notifications/notifications.component.ts new file mode 100644 index 00000000..7566828d --- /dev/null +++ b/frontend/src/app/_elements/notifications/notifications.component.ts @@ -0,0 +1,17 @@ +import { Component, OnInit } from '@angular/core'; +import { WebSocketService } from 'src/app/_services/web-socket.service'; + +@Component({ + selector: 'app-notifications', + templateUrl: './notifications.component.html', + styleUrls: ['./notifications.component.css'] +}) +export class NotificationsComponent implements OnInit { + + constructor(private wsService: WebSocketService) { } + + ngOnInit(): void { + // this.wsService.send('test'); + } + +} -- cgit v1.2.3