Skip to content

Commit 41a88a2

Browse files
authored
Merge pull request #612 from jembi/TB-84-update-packages
TB-84 Update packages and lint
2 parents b7ada6c + c63bd0c commit 41a88a2

20 files changed

+4360
-6162
lines changed

app/scripts/controllers/auditDetails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function AuditDetailsCtrl ($scope, $uibModal, $location, $routeParams, Ap
6060
controller: AuditsContentModalCtrl,
6161
resolve: {
6262
auditData: function () {
63-
return { type: type, content: content }
63+
return { type, content }
6464
}
6565
}
6666
})

app/scripts/controllers/audits.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export function AuditsCtrl ($scope, $uibModal, $location, $interval, Api, Alerti
235235

236236
// if patientID set then update query to include 'AND' operator
237237
if (valueNotEmpty(patientID) === true) {
238-
filtersObject.filters['participantObjectIdentification.participantObjectID'] = { type: 'AND', patientID: participantPatientID, objectID: objectID }
238+
filtersObject.filters['participantObjectIdentification.participantObjectID'] = { type: 'AND', patientID: participantPatientID, objectID }
239239
} else {
240240
filtersObject.filters['participantObjectIdentification.participantObjectID'] = JSON.stringify(objectID)
241241
}

app/scripts/controllers/channel-tabs/routes.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function channelRoutesCtrl ($scope, $timeout, Api, Alerting) {
1919
angular.forEach(mediators, function (mediator) {
2020
// foreach endpoint in the mediator
2121
angular.forEach(mediator.endpoints, function (endpoint) {
22-
$scope.mediatorRoutes.push({ fullName: mediator.name + ' - ' + endpoint.name, mediator: mediator.urn, endpoint: endpoint })
22+
$scope.mediatorRoutes.push({ fullName: mediator.name + ' - ' + endpoint.name, mediator: mediator.urn, endpoint })
2323
})
2424
})
2525
}, function () { /* server error - could not connect to API to get Mediators */ })
@@ -109,7 +109,7 @@ export function channelRoutesCtrl ($scope, $timeout, Api, Alerting) {
109109
port: '',
110110
path: '',
111111
pathTransform: '',
112-
primary: primary,
112+
primary,
113113
username: '',
114114
password: '',
115115
type: 'http',
@@ -168,18 +168,18 @@ export function channelRoutesCtrl ($scope, $timeout, Api, Alerting) {
168168

169169
// add mediator to channel.routes array
170170
$scope.channel.routes.push({
171-
name: name,
172-
secured: secured,
173-
host: host,
174-
port: port,
175-
path: path,
176-
pathTransform: pathTransform,
177-
primary: primary,
178-
username: username,
179-
password: password,
171+
name,
172+
secured,
173+
host,
174+
port,
175+
path,
176+
pathTransform,
177+
primary,
178+
username,
179+
password,
180180
type: routeType,
181181
status: 'enabled',
182-
forwardAuthHeader: forwardAuthHeader
182+
forwardAuthHeader
183183
})
184184
}
185185

app/scripts/controllers/channelMonitoring.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,31 +87,31 @@ export function ChannelMonitoringCtrl ($scope, $uibModal, $interval, $location,
8787
if (parseInt(channelsResults[0].processing) !== 0) {
8888
value = parseInt(channelsResults[0].processing)
8989
percent = (100 / totalTransactions * value).toFixed(2)
90-
channelsData.push({ label: 'Processing', value: value, percent: percent, color: '#777777' })
90+
channelsData.push({ label: 'Processing', value, percent, color: '#777777' })
9191
}
9292

9393
if (parseInt(channelsResults[0].failed) !== 0) {
9494
value = parseInt(channelsResults[0].failed)
9595
percent = (100 / totalTransactions * value).toFixed(2)
96-
channelsData.push({ label: 'Failed', value: value, percent: percent, color: '#d9534f' })
96+
channelsData.push({ label: 'Failed', value, percent, color: '#d9534f' })
9797
}
9898

9999
if (parseInt(channelsResults[0].completed) !== 0) {
100100
value = parseInt(channelsResults[0].completed)
101101
percent = (100 / totalTransactions * value).toFixed(2)
102-
channelsData.push({ label: 'Completed', value: value, percent: percent, color: '#EFC300' })
102+
channelsData.push({ label: 'Completed', value, percent, color: '#EFC300' })
103103
}
104104

105105
if (parseInt(channelsResults[0].completedWErrors) !== 0) {
106106
value = parseInt(channelsResults[0].completedWErrors)
107107
percent = (100 / totalTransactions * value).toFixed(2)
108-
channelsData.push({ label: 'Completed With Error (s)', value: value, percent: percent, color: '#FB8B24' })
108+
channelsData.push({ label: 'Completed With Error (s)', value, percent, color: '#FB8B24' })
109109
}
110110

111111
if (parseInt(channelsResults[0].successful) !== 0) {
112112
value = parseInt(channelsResults[0].successful)
113113
percent = (100 / totalTransactions * value).toFixed(2)
114-
channelsData.push({ label: 'Successful', value: value, percent: percent, color: '#5cb85c' })
114+
channelsData.push({ label: 'Successful', value, percent, color: '#5cb85c' })
115115
}
116116

117117
updateChannelsBarChart(channelsData)

app/scripts/controllers/exportImport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export function ExportImportCtrl ($scope, $uibModal, Api, Alerting) {
221221
windowClass: 'modal-fullview',
222222
resolve: {
223223
bodyData: function () {
224-
return { type: type, content: content, headers: { 'content-type': 'application/json' } }
224+
return { type, content, headers: { 'content-type': 'application/json' } }
225225
}
226226
}
227227
})

app/scripts/controllers/exportImportModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function ExportImportModalCtrl ($scope, $uibModalInstance, $uibModal, $ti
152152
windowClass: 'modal-fullview',
153153
resolve: {
154154
bodyData: function () {
155-
return { type: type, content: content, headers: { 'content-type': 'application/json' } }
155+
return { type, content, headers: { 'content-type': 'application/json' } }
156156
}
157157
}
158158
})

app/scripts/controllers/login.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ export function LoginCtrl ($scope, login, $window, $location, $timeout, $rootSco
195195

196196
// create session object
197197
const consoleSessionObject = {
198-
sessionID: sessionID,
198+
sessionID,
199199
sessionUser: loginEmail,
200-
sessionUserGroups: sessionUserGroups,
201-
sessionUserSettings: sessionUserSettings,
202-
sessionProvider: sessionProvider
200+
sessionUserGroups,
201+
sessionUserSettings,
202+
sessionProvider
203203
}
204204

205205
// Put the object into storage
@@ -213,7 +213,7 @@ export function LoginCtrl ($scope, login, $window, $location, $timeout, $rootSco
213213
$scope.signInWithKeyCloak = function () {
214214
keycloak.keycloakInstance.login({
215215
// Must match to the configured value in keycloak
216-
redirectUri: $window.location.origin,
216+
redirectUri: $window.location.origin
217217
})
218218
}
219219
}

app/scripts/controllers/taskDetails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function TaskDetailsCtrl ($scope, $uibModal, $location, $routeParams, Api
5454
if (showpage === i) {
5555
status = 'active'
5656
}
57-
$scope.pagesArray.push({ pageNum: i, status: status })
57+
$scope.pagesArray.push({ pageNum: i, status })
5858
}
5959
}
6060

app/scripts/controllers/transactionDetails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export function TransactionDetailsCtrl ($scope, $uibModal, $compile, $location,
239239
windowClass: 'modal-fullview',
240240
resolve: {
241241
bodyData: function () {
242-
return { type: type, content: content, headers: headers }
242+
return { type, content, headers }
243243
}
244244
}
245245
})

app/scripts/controllers/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function UsersCtrl ($scope, $uibModal, $window, Api, Alerting, Notify) {
5151
})
5252
})
5353

54-
usersArray.push({ user: user, allowedChannels: allowedChannels, allowedChannelsBody: allowedChannelsBody, allowedChannelsRerun: allowedChannelsRerun })
54+
usersArray.push({ user, allowedChannels, allowedChannelsBody, allowedChannelsRerun })
5555
})
5656

5757
$scope.usersChannelsMatrix = {}

0 commit comments

Comments
 (0)