Skip to content

Commit

Permalink
bump dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Sams, Roland authored and Sams, Roland committed Mar 27, 2024
1 parent c0bcb9b commit 810b733
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 59 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-deploy-gmr-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
node-version: 20
cache: "npm"

- name: Update environment file
run: |
sed -i 's+'production'+${{secrets.GMR_PRODUCTION}}+g' src/environments/environment.prod.ts
sed -i "s+'publictest'+${{secrets.GMR_PUBLICTEST}}+g" src/environments/environment.prod.ts
sed -i "s+'appTitle'+${{secrets.GMR_APPTITLE}}+g" src/environments/environment.prod.ts
sed -i "s+'apiUrl'+${{secrets.GMR_APIURL}}+g" src/environments/environment.prod.ts
sed -i "s+'wsHost'+${{secrets.GMR_WSHOST}}+g" src/environments/environment.prod.ts
sed -i "s+'wsAppKey'+${{secrets.GMR_WSAPPKEY}}+g" src/environments/environment.prod.ts
- name: Install dependencies
run: npm ci

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-deploy-mkj-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:

- name: Update environment file
run: |
sed -i 's+'production'+${{secrets.TEST_PRODUCTION}}+g' src/environments/environment.prod.ts
sed -i "s+'publictest'+${{secrets.TEST_PUBLICTEST}}+g" src/environments/environment.prod.ts
sed -i "s+'appTitle'+${{secrets.TEST_APPTITLE}}+g" src/environments/environment.prod.ts
sed -i "s+'apiUrl'+${{secrets.TEST_APIURL}}+g" src/environments/environment.prod.ts
sed -i "s+'wsHost'+${{secrets.TEST_WSHOST}}+g" src/environments/environment.prod.ts
sed -i "s+'wsAppKey'+${{secrets.TEST_WSAPPKEY}}+g" src/environments/environment.prod.ts
sed -i 's+'production'+${{secrets.MKJ_PRODUCTION}}+g' src/environments/environment.prod.ts
sed -i "s+'publictest'+${{secrets.MKJ_PUBLICTEST}}+g" src/environments/environment.prod.ts
sed -i "s+'appTitle'+${{secrets.MKJ_APPTITLE}}+g" src/environments/environment.prod.ts
sed -i "s+'apiUrl'+${{secrets.MKJ_APIURL}}+g" src/environments/environment.prod.ts
sed -i "s+'wsHost'+${{secrets.MKJ_WSHOST}}+g" src/environments/environment.prod.ts
sed -i "s+'wsAppKey'+${{secrets.MKJ_WSAPPKEY}}+g" src/environments/environment.prod.ts
- name: Install dependencies
run: npm ci
Expand Down
1 change: 1 addition & 0 deletions src/app/models/User-Notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export interface UserNotification<T = any> {
export enum UserNotificationType {
TerminCreated = 'App\\Notifications\\TerminCreatedNotification',
TerminUpdated = 'App\\Notifications\\TerminUpdatedNotification',
TestSocket = 'App\\Notifications\\TestSocket',
SwUpdate = 'SwUpdate',
}
3 changes: 2 additions & 1 deletion src/app/services/user-notification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export class UserNotificationService {
}

private markAsRead(notification: UserNotification): void {
if (notification.id === UserNotificationType.SwUpdate) {
console.log(notification);
if (notification.type === UserNotificationType.SwUpdate || notification.type === UserNotificationType.TestSocket) {
this.removeNotification(notification);
return;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<i
pBadge
class="pi pi-bell text-2xl cursor-pointer"
severity="warning"
[value]="this.menuItems.length"
[severity]="this.menuItems.length === 0 ? 'danger' : 'info'"
[class.p-disabled]="this.menuItems.length === 0"
[class.hide-badge]="this.menuItems.length === 0"
(click)="this.menuItems.length ? notificationmenu.toggle($event) : null"
></i>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.hide-badge ::ng-deep {
.p-badge {
opacity: 0;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnDestroy } from '@angular/core';
import { ChangeDetectorRef, Component, OnDestroy } from '@angular/core';
import { MenuItem } from 'primeng/api';
import { UserNotificationService } from 'src/app/services/user-notification.service';
import { SubSink } from 'subsink';
Expand All @@ -13,10 +13,14 @@ export class MkjUserNotificationsComponent implements OnDestroy {

private _subs = new SubSink();

constructor(private userNotificationsService: UserNotificationService) {
constructor(
private userNotificationsService: UserNotificationService,
cd: ChangeDetectorRef
) {
this._subs.add(
this.userNotificationsService.userNotifications.subscribe((notifications) => {
this.menuItems = notifications;
cd.markForCheck();
})
);
}
Expand Down
47 changes: 0 additions & 47 deletions src/configurations/_CONFIG_MAP.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/configurations/changeLogVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface MkjAppChangeLog {

export const MkjAppChangeLog: MkjAppChangeLog[] = [
{
date: '30.03.2024',
date: '27.03.2024',
version: '0.9.8 - BETA',
changes: {
Benachrichtigungen: 'Implementierung von Echtzeit-Benachrichtigungen.',
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// The list of which env maps to which file can be found in `.angular-cli.json`.

export const environment = {
production: true,
production: false,
publictest: true,
appTitle: 'mkjLOCAL',
apiUrl: 'http://localhost:8000/api/',
Expand Down

0 comments on commit 810b733

Please sign in to comment.