aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/src/app/_elements/notifications/notifications.component.css0
-rw-r--r--frontend/src/app/_elements/notifications/notifications.component.html3
-rw-r--r--frontend/src/app/_elements/notifications/notifications.component.spec.ts25
-rw-r--r--frontend/src/app/_elements/notifications/notifications.component.ts17
4 files changed, 45 insertions, 0 deletions
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
--- /dev/null
+++ b/frontend/src/app/_elements/notifications/notifications.component.css
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 @@
+<div class="position-fixed card card-body bg-dark text-white m-3" style="bottom: 0; right: 0;">
+ <h3>Notifikacije</h3>
+</div> \ 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<NotificationsComponent>;
+
+ 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');
+ }
+
+}