Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Dec 24, 2019
1 parent 1fcc2b5 commit bba5946
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
36 changes: 18 additions & 18 deletions client/app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ var GLClient = angular.module("GLClient", [
when("/receiver/home", {
templateUrl: "views/receiver/home.html",
header_title: "Home",
sidebar: 'views/receiver/sidebar.html',
sidebar: "views/receiver/sidebar.html",
resolve: {
access: requireAuth("receiver"),
}
}).
when("/receiver/preferences", {
templateUrl: "views/receiver/preferences.html",
header_title: "User preferences",
sidebar: 'views/receiver/sidebar.html',
sidebar: "views/receiver/sidebar.html",
resolve: {
access: requireAuth("receiver"),
}
Expand All @@ -221,7 +221,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/receiver/content.html",
controller: "AdminCtrl",
header_title: "Site settings",
sidebar: 'views/receiver/sidebar.html',
sidebar: "views/receiver/sidebar.html",
resolve: {
resources: fetchResources("acl", ["node"]),
}
Expand All @@ -238,7 +238,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/home.html",
controller: "AdminCtrl",
header_title: "Home",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("acl", ["manifest", "node"]),
Expand All @@ -248,7 +248,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/preferences.html",
controller: "AdminCtrl",
header_title: "Preferences",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["node"]),
Expand All @@ -258,7 +258,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/content.html",
controller: "AdminCtrl",
header_title: "Site settings",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("acl", ["node"]),
Expand All @@ -268,7 +268,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/contexts.html",
controller: "AdminCtrl",
header_title: "Contexts",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["contexts", "node", "questionnaires", "users"]),
Expand All @@ -278,7 +278,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/questionnaires.html",
controller: "AdminCtrl",
header_title: "Questionnaires",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["fieldtemplates", "field_attrs", "node", "questionnaires", "users"]),
Expand All @@ -288,7 +288,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/users.html",
controller: "AdminCtrl",
header_title: "Users",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["node", "users"]),
Expand All @@ -298,7 +298,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/mail.html",
controller: "AdminCtrl",
header_title: "Notification settings",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["node", "notification"]),
Expand All @@ -308,7 +308,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/network.html",
controller: "AdminCtrl",
header_title: "Network settings",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["node"]),
Expand All @@ -318,7 +318,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/advanced.html",
controller: "AdminCtrl",
header_title: "Advanced settings",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["node", "questionnaires", "redirects"]),
Expand All @@ -328,7 +328,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/overview.html",
controller: "AdminCtrl",
header_title: "System overview",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["node", "activities", "anomalies", "jobs_overview", "users"]),
Expand All @@ -338,7 +338,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/sites.html",
controller: "AdminCtrl",
header_title: "Sites management",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["node", "tenants"]),
Expand All @@ -348,7 +348,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/admin/case_management.html",
controller: "AdminCtrl",
header_title: "Case management",
sidebar: 'views/admin/sidebar.html',
sidebar: "views/admin/sidebar.html",
resolve: {
access: requireAuth("admin"),
resources: fetchResources("admin", ["node", "submission_statuses"]),
Expand All @@ -357,15 +357,15 @@ var GLClient = angular.module("GLClient", [
when("/custodian/home", {
templateUrl: "views/custodian/home.html",
header_title: "Home",
sidebar: 'views/custodian/sidebar.html',
sidebar: "views/custodian/sidebar.html",
resolve: {
access: requireAuth("custodian"),
}
}).
when("/custodian/preferences", {
templateUrl: "views/custodian/preferences.html",
header_title: "User preferences",
sidebar: 'views/custodian/sidebar.html',
sidebar: "views/custodian/sidebar.html",
resolve: {
access: requireAuth("custodian"),
}
Expand All @@ -374,7 +374,7 @@ var GLClient = angular.module("GLClient", [
templateUrl: "views/custodian/content.html",
controller: "AdminCtrl",
header_title: "Site settings",
sidebar: 'views/custodian/sidebar.html',
sidebar: "views/custodian/sidebar.html",
resolve: {
access: requireAuth("custodian"),
resources: fetchResources("acl", ["node"]),
Expand Down
2 changes: 1 addition & 1 deletion client/app/js/controllers/admin/case_management.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GLClient.controller("AdminCaseManagementCtrl", ["$scope", function($scope){

$scope.isSystemDefined = function (state) {
return ["new", "opened", "closed"].indexOf(state.id) !== -1;
}
};
}
]).controller("AdminSubmissionStatusEditorCtrl", ["$scope", "$http", "AdminSubmissionStatusResource",
function ($scope, $http, AdminSubmissionStatusResource) {
Expand Down
6 changes: 2 additions & 4 deletions client/app/js/controllers/preferences.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/*global QRious*/

GLClient.controller("PreferencesCtrl", ["$scope", "$rootScope", "$q", "$http", "$uibModal", "$http", "CONSTANTS",
function($scope, $rootScope, $q, $http, $uibModal, CONSTANTS) {
$scope.tabs = [
Expand All @@ -19,7 +17,7 @@ GLClient.controller("PreferencesCtrl", ["$scope", "$rootScope", "$q", "$http", "
$scope.editingName = false;
$scope.editingEmail = false;
$scope.showEncryptionKey = false;
$scope.qrcode_string = '';
$scope.qrcode_string = "";

$scope.toggleNameEditing = function () {
$scope.editingName = !$scope.editingName;
Expand Down Expand Up @@ -55,7 +53,7 @@ GLClient.controller("PreferencesCtrl", ["$scope", "$rootScope", "$q", "$http", "
"args": {}
}}).then(function(data){
$scope.two_factor_secret = data.data;
$scope.qrcode_string = "otpauth://totp/GlobaLeaks?secret=" + $scope.two_factor_secret
$scope.qrcode_string = "otpauth://totp/GlobaLeaks?secret=" + $scope.two_factor_secret;

$scope.Utils.openConfirmableModalDialog("views/partials/enable_2fa_modal.html", {}, $scope).then(function (result) {
return $http({method: "PUT", url: "user/operations", data:{
Expand Down

0 comments on commit bba5946

Please sign in to comment.