-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
200 changed files
with
26,620 additions
and
12,499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# PerunWebApps | ||
|
||
This repository contains Perun web applications. | ||
## How to contribute | ||
1) You need to have the Nodejs installed | ||
2) You need to have the Angular CLI installed | ||
3) Fork and clone this repository | ||
## Tools and dependencies | ||
1) Install NVM (Node Version Manager) `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash` (check [NVM GitHub repository](https://github.com/nvm-sh/nvm) for the newest version) | ||
2) Install NodeJS `nvm install node` | ||
3) Install AngularCLI `npm install -g @angular/cli` | ||
4) Run `npm install` | ||
## Configuration | ||
Further documentation on how to configure the application is [here](https://perunaai.atlassian.net/wiki/external/3440714/ZTRlMzIyY2ZjNzk1NDE3MzhkMzVkZDNmODIwN2UyYmY?atlOrigin=eyJpIjoiZGI5YTc5ZjE4M2ExNDk4YWExNjQ4ZTIyMTU1N2RmZGQiLCJwIjoiYyJ9) | ||
## [Releases](https://github.com/CESNET/perun-web-apps/releases) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1619,8 +1619,5 @@ | |
}, | ||
"tags": [] | ||
} | ||
}, | ||
"cli": { | ||
"analytics": false | ||
} | ||
} |
16 changes: 14 additions & 2 deletions
16
apps/admin-gui/src/app/admin/pages/admin-page/admin-audit-log/admin-audit-log.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
<h1 class="page-subtitle">{{'ADMIN.AUDIT_LOG.TITLE'|translate}}</h1> | ||
<perun-web-apps-refresh-button (refresh)="refreshTable()"></perun-web-apps-refresh-button> | ||
<app-audit-messages-list [refresh]="refresh" [tableId]="tableId"></app-audit-messages-list> | ||
<div class="align-elements"> | ||
<div class="d-flex align-items-center"> | ||
<perun-web-apps-refresh-button (refresh)="refreshTable()"></perun-web-apps-refresh-button> | ||
<perun-web-apps-audit-log-search-select | ||
[auditLogs]="eventOptions" | ||
(auditLogsSelected)="toggleEvent($event)" | ||
(selectClosed)="refreshOnClosed()"></perun-web-apps-audit-log-search-select> | ||
</div> | ||
|
||
<app-audit-messages-list | ||
[refresh]="refresh" | ||
[tableId]="tableId" | ||
[selectedEvents]="selectedEvents"></app-audit-messages-list> | ||
</div> |
25 changes: 23 additions & 2 deletions
25
apps/admin-gui/src/app/admin/pages/admin-page/admin-audit-log/admin-audit-log.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,37 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component, OnInit } from '@angular/core'; | ||
import { TABLE_AUDIT_MESSAGES } from '@perun-web-apps/config/table-config'; | ||
import { AuditMessagesManagerService } from '@perun-web-apps/perun/openapi'; | ||
|
||
@Component({ | ||
selector: 'app-admin-audit-log', | ||
templateUrl: './admin-audit-log.component.html', | ||
styleUrls: ['./admin-audit-log.component.scss'], | ||
}) | ||
export class AdminAuditLogComponent { | ||
export class AdminAuditLogComponent implements OnInit { | ||
tableId = TABLE_AUDIT_MESSAGES; | ||
refresh = false; | ||
|
||
selectedEvents: string[] = []; | ||
eventOptions: string[] = []; | ||
|
||
constructor(private auditMessagesManagerService: AuditMessagesManagerService) {} | ||
|
||
ngOnInit(): void { | ||
this.auditMessagesManagerService.findAllPossibleEvents().subscribe((res) => { | ||
this.eventOptions = res.sort(); | ||
}); | ||
} | ||
|
||
refreshTable(): void { | ||
this.refresh = !this.refresh; | ||
} | ||
|
||
toggleEvent(events: string[]): void { | ||
// Replace array in-place so it won't trigger ngOnChanges | ||
this.selectedEvents.splice(0, this.selectedEvents.length, ...events); | ||
} | ||
|
||
refreshOnClosed(): void { | ||
this.selectedEvents = [...this.selectedEvents]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.