1
0
mirror of https://github.com/bitwarden/web synced 2025-12-25 20:53:22 +00:00

Update 2018-03-30T14:56:49.669Z

This commit is contained in:
Kyle Spearrin
2018-03-30 10:56:53 -04:00
parent 138c4e97c6
commit 62e62e3684
6 changed files with 3973 additions and 3973 deletions

84
js/app.min.js vendored
View File

@@ -25,7 +25,7 @@ angular
]);
angular.module("bit")
.constant("appSettings", {"apiUri":"/api","identityUri":"/identity","iconsUri":"https://icons.bitwarden.com","stripeKey":"pk_live_bpN0P37nMxrMQkcaHXtAybJk","braintreeKey":"production_qfbsv8kc_njj2zjtyngtjmbjd","selfHosted":false,"version":"1.24.2","environment":"Production"});
.constant("appSettings", {"apiUri":"/api","identityUri":"/identity","iconsUri":"https://icons.bitwarden.com","stripeKey":"pk_live_bpN0P37nMxrMQkcaHXtAybJk","braintreeKey":"production_qfbsv8kc_njj2zjtyngtjmbjd","selfHosted":false,"version":"1.25.0","environment":"Production"});
angular
.module('bit.accounts', ['ui.bootstrap', 'ngCookies']);
@@ -40,10 +40,10 @@ angular
.module('bit.global', []);
angular
.module('bit.organization', ['ui.bootstrap']);
.module('bit.reports', ['toastr', 'ngSanitize']);
angular
.module('bit.reports', ['toastr', 'ngSanitize']);
.module('bit.organization', ['ui.bootstrap']);
angular
.module('bit.services', ['ngResource', 'ngStorage', 'angular-jwt']);
@@ -2243,6 +2243,45 @@ angular
};
}]);
angular
.module('bit.tools')
.controller('reportsBreachController', ["$scope", "apiService", "toastr", "authService", function ($scope, apiService, toastr, authService) {
$scope.loading = true;
$scope.error = false;
$scope.breachAccounts = [];
$scope.email = null;
$scope.$on('$viewContentLoaded', function () {
authService.getUserProfile().then(function (userProfile) {
$scope.email = userProfile.email;
return apiService.hibp.get({ email: $scope.email }).$promise;
}).then(function (response) {
var breachAccounts = [];
for (var i = 0; i < response.length; i++) {
var breach = {
id: response[i].Name,
title: response[i].Title,
domain: response[i].Domain,
date: new Date(response[i].BreachDate),
reportedDate: new Date(response[i].AddedDate),
modifiedDate: new Date(response[i].ModifiedDate),
count: response[i].PwnCount,
description: response[i].Description,
classes: response[i].DataClasses,
image: 'https://haveibeenpwned.com/Content/Images/PwnedLogos/' + response[i].Name + '.' + response[i].LogoType
};
breachAccounts.push(breach);
}
$scope.breachAccounts = breachAccounts;
$scope.loading = false;
}, function (response) {
$scope.error = response.status !== 404;
$scope.loading = false;
});
});
}]);
angular
.module('bit.organization')
@@ -5410,45 +5449,6 @@ angular
}
}]);
angular
.module('bit.tools')
.controller('reportsBreachController', ["$scope", "apiService", "toastr", "authService", function ($scope, apiService, toastr, authService) {
$scope.loading = true;
$scope.error = false;
$scope.breachAccounts = [];
$scope.email = null;
$scope.$on('$viewContentLoaded', function () {
authService.getUserProfile().then(function (userProfile) {
$scope.email = userProfile.email;
return apiService.hibp.get({ email: $scope.email }).$promise;
}).then(function (response) {
var breachAccounts = [];
for (var i = 0; i < response.length; i++) {
var breach = {
id: response[i].Name,
title: response[i].Title,
domain: response[i].Domain,
date: new Date(response[i].BreachDate),
reportedDate: new Date(response[i].AddedDate),
modifiedDate: new Date(response[i].ModifiedDate),
count: response[i].PwnCount,
description: response[i].Description,
classes: response[i].DataClasses,
image: 'https://haveibeenpwned.com/Content/Images/PwnedLogos/' + response[i].Name + '.' + response[i].LogoType
};
breachAccounts.push(breach);
}
$scope.breachAccounts = breachAccounts;
$scope.loading = false;
}, function (response) {
$scope.error = response.status !== 404;
$scope.loading = false;
});
});
}]);
angular
.module('bit.services')

View File

@@ -1,4 +1,4 @@
var cacheTag = 'nbpi6' || '';
var cacheTag = 'ucqrsv' || '';
function loadStylesheetIfMissing(property, value, paths) {
var scripts = document.getElementsByTagName('SCRIPT'),

7842
js/lib.min.js vendored

File diff suppressed because it is too large Load Diff