bastion 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/Gruntfile.js +0 -13
- data/app/assets/javascripts/bastion/auth/auth.module.js +16 -15
- data/app/assets/javascripts/bastion/auth/authorization.service.js +0 -13
- data/app/assets/javascripts/bastion/bastion-bootstrap.js +0 -13
- data/app/assets/javascripts/bastion/bastion-resource.factory.js +0 -13
- data/app/assets/javascripts/bastion/bastion.js +0 -12
- data/app/assets/javascripts/bastion/bastion.module.js +0 -13
- data/app/assets/javascripts/bastion/components/bst-alert.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/bst-alerts.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/bst-edit.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/bst-form-buttons.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/bst-form-group.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/bst-infinite-scroll.directive.js +5 -15
- data/app/assets/javascripts/bastion/components/bst-modal.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/bst-on-enter.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/bst-save-control.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/components.module.js +0 -13
- data/app/assets/javascripts/bastion/components/current-tasks.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js +0 -13
- data/app/assets/javascripts/bastion/components/formatters/boolean-to-yes-no.filter.js +0 -13
- data/app/assets/javascripts/bastion/components/formatters/capitalize.filter.js +0 -13
- data/app/assets/javascripts/bastion/components/formatters/components-formatters.module.js +0 -13
- data/app/assets/javascripts/bastion/components/formatters/key-value-to-string.filter.js +0 -13
- data/app/assets/javascripts/bastion/components/formatters/unlimitedFilter.filter.js +0 -13
- data/app/assets/javascripts/bastion/components/nutupane.factory.js +0 -13
- data/app/assets/javascripts/bastion/components/page-title.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/page-title.service.js +0 -13
- data/app/assets/javascripts/bastion/components/path-selector.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/typeahead-empty.directive.js +0 -13
- data/app/assets/javascripts/bastion/components/views/path-selector.html +1 -1
- data/app/assets/javascripts/bastion/features/bst-feature-flag.directive.js +0 -14
- data/app/assets/javascripts/bastion/features/feature-flag.run.js +0 -14
- data/app/assets/javascripts/bastion/features/feature-flag.service.js +0 -14
- data/app/assets/javascripts/bastion/features/features.module.js +0 -14
- data/app/assets/javascripts/bastion/features/features.service.js +0 -14
- data/app/assets/javascripts/bastion/i18n/i18n.module.js +0 -13
- data/app/assets/javascripts/bastion/menu/menu-expander.service.js +0 -13
- data/app/assets/javascripts/bastion/menu/menu.module.js +0 -13
- data/app/assets/javascripts/bastion/utils/as.filter.js +0 -13
- data/app/assets/javascripts/bastion/utils/form-utils.service.js +0 -13
- data/app/assets/javascripts/bastion/utils/utils.module.js +0 -13
- data/app/assets/stylesheets/bastion/nutupane.less +2 -0
- data/app/controllers/bastion/bastion_controller.rb +0 -11
- data/lib/bastion/version.rb +1 -1
- data/test/auth/authorization.service.test.js +0 -13
- data/test/bastion/bastion-resource.factory.test.js +0 -13
- data/test/bastion/test-constants.js +0 -13
- data/test/components/bst-alert.directive.test.js +0 -13
- data/test/components/bst-alerts.directive.test.js +0 -13
- data/test/components/bst-container-scroll.directive.test.js +0 -14
- data/test/components/bst-dropdown.directive.test.js +0 -13
- data/test/components/bst-edit.directive.test.js +0 -14
- data/test/components/bst-flyout.directive.test.js +0 -13
- data/test/components/bst-form-buttons.directive.test.js +0 -14
- data/test/components/bst-form-group.directive.test.js +0 -14
- data/test/components/bst-infinite-scroll.directive.test.js +19 -15
- data/test/components/bst-menu.directive.test.js +0 -13
- data/test/components/bst-modal.directive.test.js +0 -13
- data/test/components/bst-nutupane-table.directive.test.js +0 -14
- data/test/components/bst-table.directive.test.js +0 -14
- data/test/components/formatters/array-to-string.filter.test.js +0 -12
- data/test/components/formatters/boolean-to-yes-no.filter.test.js +0 -12
- data/test/components/formatters/capitalize.filter.test.js +0 -12
- data/test/components/formatters/key-value-to-string.filter.test.js +0 -12
- data/test/components/formatters/unlimited-filter.filter.test.js +0 -12
- data/test/components/nutupane.factory.test.js +0 -13
- data/test/components/page-title.directive.test.js +0 -13
- data/test/components/page-title.service.test.js +0 -13
- data/test/components/path-selector.directive.test.js +0 -13
- data/test/components/typeahead-empty.directive.test.js +0 -13
- data/test/features/bst-feature-flag.directive.test.js +0 -13
- data/test/features/feature-flag.service.test.js +0 -13
- data/test/i18n/translate.service.test.js +0 -13
- data/test/menu/menu-expander.service.test.js +0 -13
- data/test/test-mocks.module.js +0 -13
- data/test/utils/as.filter.test.js +0 -13
- data/test/utils/form-utils.service.test.js +0 -13
- metadata +39 -36
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
YjMxMjBlNTk3N2M0ZmU4YzhhMmQzM2E5Yjg0OGRmOTQyZmRkNWQ2ZA==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: c36c849cc73e8e3c99e0736660a4cc34a955d120
|
|
4
|
+
data.tar.gz: 6a71404931456f024ca9f15c704a14abab744171
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
ODM0NWZlOTc5MTQ2MTIyZjk2NjljZTZjYTgxMDczMDAwYThkNTNkMmI1MzBj
|
|
11
|
-
YWNhZDc5MDRjNzIyN2Y5MjhiOWJlOWYzYzBhMGYyZTI1Yzg5MGU=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
MTJmZWQ2MjI4ZTBkMjVmYmE5MGU0ZWZmYmE0YThhNTc1ZDQ2N2ZkYTI2NTFm
|
|
14
|
-
MzU3YjEzM2Q5MTkxZDM5NGFhOWRlN2NkZTBmNGM3YjEyZTQ4M2M0YmNmZGJk
|
|
15
|
-
MTZjMDI1OWIwNzgwYzE4MjcwNjY1NmU4OTUwMzFlZjdhNDk4Yzk=
|
|
6
|
+
metadata.gz: 204ddad00ba3dfb01cf32dbee9856f4f7d8be98f18ee3b2dea58241aa9805e9e92e96976ab461c88d9b24c0440b6dc10dbfcad386f9e2eba2c25dd364d438474
|
|
7
|
+
data.tar.gz: 31d4871ea9d01b82cfe2fec4d4650316ac9ce15def904090cc865ac7ef69a0be59f5a692f8c7e0f3fa89222f86328fba21e610871efd4b379872d3a596056898
|
data/Gruntfile.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
module.exports = function (grunt) {
|
|
15
2
|
var bastion = require('./bastion.js');
|
|
16
3
|
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
|
3
|
-
|
|
4
|
-
This software is licensed to you under the GNU General Public
|
|
5
|
-
License as published by the Free Software Foundation; either version
|
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc module
|
|
16
3
|
* @name Bastion.auth
|
|
@@ -79,9 +66,23 @@ angular.module('Bastion.auth').config(['$httpProvider', '$provide',
|
|
|
79
66
|
*/
|
|
80
67
|
angular.module('Bastion.auth').run(['$rootScope', '$window', 'Authorization',
|
|
81
68
|
function ($rootScope, $window, Authorization) {
|
|
69
|
+
|
|
70
|
+
function isAuthorized(permission) {
|
|
71
|
+
return !(permission !== false && (angular.isUndefined(permission) || Authorization.denied(permission)));
|
|
72
|
+
}
|
|
73
|
+
|
|
82
74
|
$rootScope.$on('$stateChangeStart', function (event, toState) {
|
|
83
|
-
var permission = toState.permission;
|
|
84
|
-
|
|
75
|
+
var permission = toState.permission, permitted;
|
|
76
|
+
|
|
77
|
+
if (!(permission instanceof Array)) {
|
|
78
|
+
permission = [permission];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
permitted = _.find(permission, function (perm) {
|
|
82
|
+
return isAuthorized(perm);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
if (angular.isUndefined(permitted)) {
|
|
85
86
|
$window.location.href = '/katello/403';
|
|
86
87
|
}
|
|
87
88
|
});
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc service
|
|
16
3
|
* @name Bastion.auth:Authorization
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
angular.element(document).ready(function () {
|
|
15
2
|
angular.bootstrap(document, BASTION_MODULES);
|
|
16
3
|
});
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc factory
|
|
16
3
|
* @name Bastion.factory:BastionResource
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/* Copyright 2014 Red Hat, Inc.
|
|
2
|
-
*
|
|
3
|
-
* This software is licensed to you under the GNU General Public
|
|
4
|
-
* License as published by the Free Software Foundation; either version
|
|
5
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
6
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
7
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
8
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
9
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
10
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
1
|
//= require "bastion/underscore/underscore"
|
|
14
2
|
|
|
15
3
|
//= require "bastion/angular/angular"
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc module
|
|
16
3
|
* @name Bastion
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:bstAlert
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:bstAlerts
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:bstEdit
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:bstFormButtons
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:bstFormGroup
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:bstInfiniteScroll
|
|
@@ -22,6 +9,8 @@
|
|
|
22
9
|
* Note that the element using the bst-infinite-scroll directive should have it's overflow
|
|
23
10
|
* set properly.
|
|
24
11
|
*
|
|
12
|
+
* @requires $window
|
|
13
|
+
*
|
|
25
14
|
* @example
|
|
26
15
|
* <pre>
|
|
27
16
|
* <div bst-infinite-scroll="loadMore()" style="height: 100px; overflow-y: auto;">
|
|
@@ -29,7 +18,7 @@
|
|
|
29
18
|
* </div>
|
|
30
19
|
* </pre>
|
|
31
20
|
*/
|
|
32
|
-
angular.module('Bastion.components').directive('bstInfiniteScroll', [function () {
|
|
21
|
+
angular.module('Bastion.components').directive('bstInfiniteScroll', ['$window', function ($window) {
|
|
33
22
|
return {
|
|
34
23
|
scope: {
|
|
35
24
|
data: '=',
|
|
@@ -37,7 +26,6 @@ angular.module('Bastion.components').directive('bstInfiniteScroll', [function ()
|
|
|
37
26
|
skipInitialLoad: '='
|
|
38
27
|
},
|
|
39
28
|
controller: function ($scope, $element) {
|
|
40
|
-
|
|
41
29
|
var result, getScrollHeight, isPromise, loadUntilScroll,
|
|
42
30
|
raw = $element[0];
|
|
43
31
|
|
|
@@ -75,6 +63,8 @@ angular.module('Bastion.components').directive('bstInfiniteScroll', [function ()
|
|
|
75
63
|
}
|
|
76
64
|
};
|
|
77
65
|
|
|
66
|
+
angular.element($window).bind('resize', loadUntilScroll);
|
|
67
|
+
|
|
78
68
|
if (!$scope.skipInitialLoad && (angular.isUndefined($scope.data) || $scope.data.length === 0)) {
|
|
79
69
|
result = $scope.loadMoreFunction();
|
|
80
70
|
if (isPromise(result)) {
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:bstModal
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
(function () {
|
|
15
2
|
'use strict';
|
|
16
3
|
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:bstSaveControl
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2014 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This software is licensed to you under the GNU General Public
|
|
5
|
-
* License as published by the Free Software Foundation; either version
|
|
6
|
-
* 2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
* There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
* including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
* NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
* have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
(function () {
|
|
15
2
|
'use strict';
|
|
16
3
|
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
|
3
|
-
|
|
4
|
-
This software is licensed to you under the GNU General Public
|
|
5
|
-
License as published by the Free Software Foundation; either version
|
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc directive
|
|
16
3
|
* @name Bastion.components.directive:currentTasks
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
|
3
|
-
|
|
4
|
-
This software is licensed to you under the GNU General Public
|
|
5
|
-
License as published by the Free Software Foundation; either version
|
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc filter
|
|
16
3
|
* @name Bastion.components.formatters.filter:arrayToString
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
|
3
|
-
|
|
4
|
-
This software is licensed to you under the GNU General Public
|
|
5
|
-
License as published by the Free Software Foundation; either version
|
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc filter
|
|
16
3
|
* @name Bastion.components.formatters.filter:booleanToYesNo
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
|
3
|
-
|
|
4
|
-
This software is licensed to you under the GNU General Public
|
|
5
|
-
License as published by the Free Software Foundation; either version
|
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
**/
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @ngdoc filter
|
|
16
3
|
* @name Bastion.components.formatters.filter:capitalize
|