Skip to content

Commit

Permalink
Fixing lint errors and making lint to be run on built (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Wójcik authored May 28, 2021
1 parent d899280 commit 8e8af8a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Install Host npm packages
run: npm run load
working-directory: src/ServicePulse.Host
- name: Run lint
run: npm run lint
working-directory: src/ServicePulse.Host
- name: Build
run: msbuild src -p:Configuration=Release -restore -m
- name: Upload assets
Expand Down
2 changes: 1 addition & 1 deletion src/ServicePulse.Host/app/js/app.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
});
}
});
};
}

checkVersions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
$scope.pager.total = response.total;
});
}

reloadData();
}

controller.$inject = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(function (window, angular) {
'use strict';

function service($http, $timeout, $q, $rootScope, $interval, moment, connectionsManager, uri, notifications, notifyService) {
var notifier = notifyService();
var scu = connectionsManager.getServiceControlUrl();

var notifications = {};
notifications = {};

function getData() {
var url = uri.join(scu, 'notifications/email');
Expand Down Expand Up @@ -43,8 +43,8 @@
return {
updateSettings: function(settings, success, error) {
var url = uri.join(scu, 'notifications/email');
var promise = sendPromise(url, 'POST', settings,
() => {notifications = settings},
var promise = sendPromise(url, 'POST', settings,
() => {notifications = settings},
error);

return promise;
Expand All @@ -57,7 +57,7 @@
},
toogleEmailNotifications: function(enabled, success, error) {
var url = uri.join(scu, 'notifications/email/toggle');

var promise = sendPromise(url, 'POST', {'enabled': enabled}, success, error);

return promise;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { version } = require("zeroclipboard");
require("zeroclipboard");

(function (window, angular, $) {
'use strict';
Expand All @@ -12,7 +12,7 @@

const notifier = notifyService();
$scope.isSCMonitoringConnecting = connectionsManager.getIsMonitoringEnabled();

if ($scope.isSCMonitoringConnecting) {
connectivityNotifier.reportConnecting();
}
Expand Down
18 changes: 9 additions & 9 deletions src/ServicePulse.Host/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e8af8a

Please sign in to comment.