Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class AccessGroupsAgentsTableComponent extends BaseTableComponent impleme
ngOnInit(): void {
this.setColumnLabels(AccessGroupsAgentsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AccessGroupsExpandDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new AccessGroupsExpandDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.accessgroupId) {
this.dataSource.setAccessGroupId(this.accessgroupId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class AccessGroupsTableComponent extends BaseTableComponent implements On
ngOnInit(): void {
this.setColumnLabels(AccessGroupsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AccessGroupsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new AccessGroupsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new AccessGroupsContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class AccessGroupsUserTableComponent extends BaseTableComponent implement
ngOnInit(): void {
this.setColumnLabels(AccessGroupsUsersTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AccessGroupsExpandDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new AccessGroupsExpandDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.accessgroupId) {
this.dataSource.setAccessGroupId(this.accessgroupId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class AccessPermissionGroupsUserTableComponent extends BaseTableComponent
ngOnInit(): void {
this.setColumnLabels(AccessPermissionGroupsUserTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AccessPermissionGroupsExpandDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new AccessPermissionGroupsExpandDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.accesspermgroupId) {
this.dataSource.setAccessPermGroupId(this.accesspermgroupId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class AccessPermissionGroupsUsersTableComponent extends BaseTableComponen
ngOnInit(): void {
this.setColumnLabels(AccessPermissionGroupsUsersTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AccessPermissionGroupsExpandDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new AccessPermissionGroupsExpandDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.accesspermgroupId) {
this.dataSource.setAccessPermGroupId(this.accesspermgroupId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AgentBinariesTableComponent extends BaseTableComponent implements O
ngOnInit(): void {
this.setColumnLabels(AgentBinariesTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AgentBinariesDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new AgentBinariesDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new AgentBinariesMenuServiceContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class AgentErrorTableComponent extends BaseTableComponent implements OnIn
ngOnInit(): void {
this.setColumnLabels(AgentErrorTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AgentErrorDatasource(this.cdr, this.gs, this.uiService);
this.dataSource = new AgentErrorDatasource(this.injector);
this.dataSource.setColumns(this.tableColumns);

if (this.agentId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class AgentsStatusTableComponent extends BaseTableComponent implements On
ngOnInit(): void {
this.setColumnLabels(AgentsStatusTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AgentsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new AgentsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new AgentMenuService(this.permissionService).addContextMenu();
this.dataSource.reload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class AgentsTableComponent extends BaseTableComponent implements OnInit,
ngOnInit(): void {
this.setColumnLabels(AgentsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new AgentsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new AgentsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.taskId) {
this.dataSource.setTaskId(this.taskId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { faKey, faShieldHalved } from '@fortawesome/free-solid-svg-icons';
import { Observable, Subscription, of } from 'rxjs';

import { Clipboard } from '@angular/cdk/clipboard';
import { ChangeDetectorRef, Component, Input, ViewChild } from '@angular/core';
import { ChangeDetectorRef, Component, Injector, Input, ViewChild } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { Router } from '@angular/router';
Expand Down Expand Up @@ -57,6 +57,7 @@ export class BaseTableComponent {
protected contextMenuService: ContextMenuService;

constructor(
protected injector: Injector,
protected gs: GlobalService,
protected cs: ConfigService,
public clipboard: Clipboard,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ChunksTableComponent extends BaseTableComponent implements OnInit {
ngOnInit(): void {
this.setColumnLabels(ChunksTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new ChunksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new ChunksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.agentId) {
this.dataSource.setAgentId(this.agentId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class CrackersTableComponent extends BaseTableComponent implements OnInit
ngOnInit(): void {
this.setColumnLabels(CrackersTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new CrackersDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new CrackersDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new CrackersContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class CracksTableComponent extends BaseTableComponent implements OnInit,
ngOnInit(): void {
this.setColumnLabels(CracksTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new CracksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new CracksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.dataSource.loadAll().then(() => {});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class FilesAttackTableComponent extends BaseTableComponent implements OnI
ngOnInit(): void {
this.setColumnLabels(FilesAttackTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new FilesDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new FilesDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.dataSource.setFileType(this.fileType);
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class FilesTableComponent extends BaseTableComponent implements OnInit, O
if (this.name !== 'filesTableInPreTasks') {
this.contextMenuService = new FilesContextMenuService(this.permissionService).addContextMenu();
}
this.dataSource = new FilesDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new FilesDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.dataSource.setFileType(this.fileType);
if (this.editIndex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class HashesTableComponent extends BaseTableComponent implements OnInit,
ngOnInit(): void {
this.setColumnLabels(HashesTableColColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new HashesDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new HashesDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.id) {
this.dataSource.setId(this.id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class HashlistsTableComponent extends BaseTableComponent implements OnIni
ngOnInit(): void {
this.setColumnLabels(HashlistsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new HashlistsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new HashlistsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.dataSource.setIsArchived(this.isArchived);
this.contextMenuService = new HashListContextMenuService(this.permissionService).addContextMenu();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class HashtypesTableComponent extends BaseTableComponent implements OnIni
ngOnInit(): void {
this.setColumnLabels(HashtypesTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new HashtypesDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new HashtypesDataSource(this.injector);
this.contextMenuService = new HashTypesContextMenuService(this.permissionService).addContextMenu();
this.dataSource.setColumns(this.tableColumns);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class HealthCheckAgentsTableComponent extends BaseTableComponent implemen
ngOnInit(): void {
this.setColumnLabels(HealthCheckAgentsTableColColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new HealthCheckAgentsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new HealthCheckAgentsDataSource(this.injector);
if (this.healthCheckId) {
this.dataSource.setHealthCheckId(this.healthCheckId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class HealthChecksTableComponent extends BaseTableComponent implements On
ngOnInit(): void {
this.setColumnLabels(HealthChecksTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new HealthChecksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new HealthChecksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new HealthCheckContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class LogsTableComponent extends BaseTableComponent implements OnInit, On
ngOnInit(): void {
this.setColumnLabels(LogsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new LogsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new LogsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.dataSource.loadAll();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class NotificationsTableComponent extends BaseTableComponent implements O
ngOnInit(): void {
this.setColumnLabels(NotificationsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new NotificationsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new NotificationsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new NotificationsContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class PermissionsTableComponent extends BaseTableComponent implements OnI
ngOnInit(): void {
this.setColumnLabels(PermissionsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new PermissionsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new PermissionsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new PermissionsContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class PreprocessorsTableComponent extends BaseTableComponent implements O
ngOnInit(): void {
this.setColumnLabels(PreprocessorsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new PreprocessorsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new PreprocessorsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new PreProContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class PretasksTableComponent extends BaseTableComponent implements OnInit
ngOnInit(): void {
this.setColumnLabels(PretasksTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new PreTasksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new PreTasksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.supertTaskId) {
this.dataSource.setSuperTaskId(this.supertTaskId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class SearchHashTableComponent extends BaseTableComponent implements OnIn
ngOnInit(): void {
this.setColumnLabels(SearchHashTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new SearchHashDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new SearchHashDataSource(this.injector);
if (this.search) {
this.dataSource.setSearch(this.search);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class SuperHashlistsTableComponent extends BaseTableComponent implements
ngOnInit(): void {
this.setColumnLabels(SuperHashlistsTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new SuperHashlistsDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new SuperHashlistsDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.dataSource.setIsArchived(this.isArchived);
this.contextMenuService = new SuperHashListContextMenuService(this.permissionService).addContextMenu();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class SuperTasksPretasksTableComponent extends BaseTableComponent impleme
ngOnInit(): void {
this.setColumnLabels(SupertasksPretasksTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new SuperTasksPretasksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new SuperTasksPretasksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.supertaskId) {
this.dataSource.setSuperTaskId(this.supertaskId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class SuperTasksTableComponent extends BaseTableComponent implements OnIn
ngOnInit(): void {
this.setColumnLabels(SupertasksTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new SuperTasksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new SuperTasksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new SuperTaskContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class TasksChunksTableComponent extends BaseTableComponent implements OnI
ngOnInit(): void {
this.setColumnLabels(TasksChunksTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new TasksChunksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new TasksChunksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new ChunkContextMenuService(this.permissionService).addContextMenu();
// Do NOT load yet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class TasksSupertasksTableComponent extends BaseTableComponent implements
ngOnInit(): void {
this.setColumnLabels(TasksSupertasksDataSourceTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new TasksSupertasksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new TasksSupertasksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
if (this.supertaskId) {
this.dataSource.setSuperTaskId(this.supertaskId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class TasksTableComponent extends BaseTableComponent implements OnInit, O
ngOnInit(): void {
this.setColumnLabels(TaskTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new TasksDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new TasksDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.dataSource.setIsArchived(this.isArchived);
this.contextMenuService = new TaskContextMenuService(this.permissionService).addContextMenu();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class UsersTableComponent extends BaseTableComponent implements OnInit, O
ngOnInit(): void {
this.setColumnLabels(UsersTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new UsersDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new UsersDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new UsersContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class VouchersTableComponent extends BaseTableComponent implements OnInit
ngOnInit(): void {
this.setColumnLabels(VouchersTableColumnLabel);
this.tableColumns = this.getColumns();
this.dataSource = new VouchersDataSource(this.cdr, this.gs, this.uiService);
this.dataSource = new VouchersDataSource(this.injector);
this.dataSource.setColumns(this.tableColumns);
this.contextMenuService = new VoucherContextMenuService(this.permissionService).addContextMenu();
this.dataSource.loadAll();
Expand Down
Loading