Skip to content

Commit ed223a8

Browse files
committed
remove unused jslog
1 parent 84e9a7a commit ed223a8

3 files changed

Lines changed: 1 addition & 89 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3805,51 +3805,6 @@ export class FormCtrl extends entityCtrl<WorkflowInstance> {
38053805
if (!this.$scope.$$phase) { this.$scope.$apply(); }
38063806
}
38073807

3808-
}
3809-
export class jslogCtrl extends entitiesCtrl<Base> {
3810-
public message: string = "";
3811-
public charts: chartset[] = [];
3812-
constructor(
3813-
public $rootScope: ng.IRootScopeService,
3814-
public $scope: ng.IScope,
3815-
public $location: ng.ILocationService,
3816-
public $routeParams: ng.route.IRouteParamsService,
3817-
public $interval: ng.IIntervalService,
3818-
public WebSocketClientService: WebSocketClientService,
3819-
public api: api,
3820-
public userdata: userdata
3821-
) {
3822-
super($rootScope, $scope, $location, $routeParams, $interval, WebSocketClientService, api, userdata);
3823-
this.autorefresh = true;
3824-
console.debug("jslogCtrl");
3825-
this.searchfields = ["_createdby", "host", "message"];
3826-
this.collection = "jslog";
3827-
this.basequery = {};
3828-
this.baseprojection = { _type: 1, type: 1, host: 1, message: 1, name: 1, _created: 1, _createdby: 1, _modified: 1 };
3829-
WebSocketClientService.onSignedin((user: TokenUser) => {
3830-
this.loadData();
3831-
});
3832-
}
3833-
async DeleteMany(): Promise<void> {
3834-
this.loading = true;
3835-
const Promises: Promise<void>[] = [];
3836-
this.models.forEach(model => {
3837-
Promises.push(NoderedUtil.DeleteOne({ collectionname: this.collection, id: model._id }));
3838-
});
3839-
const results: any = await Promise.all(Promises.map(p => p.catch(e => e)));
3840-
// const values: void[] = results.filter(result => !(result instanceof Error));
3841-
// const ids: string[] = [];
3842-
// values.forEach((x: void) => ids.push(x._id));
3843-
// this.models = this.models.filter(function (m: any): boolean { return ids.indexOf(m._id) === -1; });
3844-
// this.loading = false;
3845-
3846-
this.models = await NoderedUtil.Query({ collectionname: this.collection, query: this.basequery, projection: this.baseprojection, orderby: this.orderby });
3847-
if (!this.$scope.$$phase) { this.$scope.$apply(); }
3848-
if (this.models.length > 0) {
3849-
await this.DeleteMany();
3850-
}
3851-
}
3852-
38533808
}
38543809
export class EntityCtrl extends entityCtrl<Base> {
38553810
searchFilteredList: TokenUser[] = [];

OpenFlow/src/public/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import angular = require("angular");
33
import { timesince, timetoo, translate, textarea, fileread, userdata, api, copytext, jsonText, formatBytes, whenScrolled, ngtype } from "./CommonControllers";
44
import {
55
MenuCtrl, ProvidersCtrl, MainCtrl, LoginCtrl, ProviderCtrl, UsersCtrl, UserCtrl, RolesCtrl, RoleCtrl, RPAWorkflowsCtrl, RPAWorkflowCtrl,
6-
WorkflowsCtrl, ReportsCtrl, jslogCtrl, EditFormCtrl, FormsCtrl, FormCtrl, FilesCtrl, EntitiesCtrl, EntityCtrl, HistoryCtrl, SocketCtrl, NoderedCtrl,
6+
WorkflowsCtrl, ReportsCtrl, EditFormCtrl, FormsCtrl, FormCtrl, FilesCtrl, EntitiesCtrl, EntityCtrl, HistoryCtrl, SocketCtrl, NoderedCtrl,
77
hdrobotsCtrl, ClientsCtrl, AuditlogsCtrl, SignupCtrl, QueuesCtrl, SocketsCtrl, QueueCtrl, CredentialsCtrl, CredentialCtrl, DuplicatesCtrl,
88
OAuthClientsCtrl, OAuthClientCtrl, DeletedCtrl, CustomerCtrl, EntityRestrictionsCtrl, EntityRestrictionCtrl, CustomersCtrl, ResourcesCtrl, ResourceCtrl, WorkitemsCtrl, WorkitemCtrl, WorkitemQueuesCtrl, WorkitemQueueCtrl, MailHistCtrl, MailHistsCtrl
99
} from "./Controllers";
@@ -81,7 +81,6 @@ module openflow {
8181

8282
.when('/Workflows', { templateUrl: 'Workflows.html', controller: WorkflowsCtrl, controllerAs: 'ctrl' })
8383
.when('/Reports', { templateUrl: 'Reports.html', controller: ReportsCtrl, controllerAs: 'ctrl' })
84-
.when('/jslog', { templateUrl: 'jslog.html', controller: jslogCtrl, controllerAs: 'ctrl' })
8584

8685
.when('/EditForm/:id', { templateUrl: 'EditForm.html', controller: EditFormCtrl, controllerAs: 'ctrl' })
8786
.when('/EditForm', { templateUrl: 'EditForm.html', controller: EditFormCtrl, controllerAs: 'ctrl' })

OpenFlow/src/public/jslog.html

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)