bastion 0.1.14 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/bastion/bastion.module.js +7 -5
- data/app/assets/javascripts/bastion/components/bst-alert.directive.js +8 -37
- data/app/assets/javascripts/bastion/components/bst-alerts.directive.js +67 -0
- data/app/assets/javascripts/bastion/components/bst-container-scroll.directive.js +2 -7
- data/app/assets/javascripts/bastion/components/bst-table.directive.js +2 -2
- data/app/assets/javascripts/bastion/components/views/bst-alert.html +17 -5
- data/app/assets/javascripts/bastion/components/views/bst-alerts.html +6 -0
- data/app/assets/javascripts/bastion/components/views/bst-dropdown.html +1 -1
- data/app/assets/javascripts/bastion/components/views/bst-edit-add-item.html +1 -1
- data/app/assets/javascripts/bastion/components/views/bst-edit-add-remove-cancel.html +1 -1
- data/app/assets/javascripts/bastion/components/views/bst-edit-multiselect.html +1 -1
- data/app/assets/javascripts/bastion/components/views/bst-edit-save-cancel.html +1 -1
- data/app/assets/javascripts/bastion/components/views/bst-edit.html +2 -2
- data/app/assets/javascripts/bastion/components/views/bst-menu.html +1 -1
- data/app/assets/javascripts/bastion/components/views/bst-modal.html +1 -1
- data/app/assets/javascripts/bastion/components/views/bst-save-control.html +1 -1
- data/app/assets/javascripts/bastion/components/views/current-tasks.html +1 -1
- data/app/assets/javascripts/bastion/features/bst-feature-flag.directive.js +1 -1
- data/app/assets/javascripts/bastion/layouts/details-nutupane.html +4 -4
- data/app/assets/javascripts/bastion/layouts/nutupane.html +12 -8
- data/app/assets/stylesheets/bastion/bastion.less +6 -5
- data/app/assets/stylesheets/bastion/nutupane.less +14 -10
- data/app/assets/stylesheets/bastion/overrides.less +6 -2
- data/app/assets/stylesheets/bastion/variables.less +1 -0
- data/app/views/bastion/layouts/application.html.erb +5 -3
- data/bower.json +25 -20
- data/grunt/bower.js +2 -6
- data/lib/bastion/version.rb +1 -1
- data/test/components/bst-alert.directive.test.js +8 -40
- data/test/components/bst-alerts.directive.test.js +84 -0
- data/test/components/bst-container-scroll.directive.test.js +1 -14
- data/test/components/bst-edit.directive.test.js +1 -1
- data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.svg +47 -47
- data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/bastion/font-awesome/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.svg +471 -366
- data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.svg +1830 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.svg +1830 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.svg +1830 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.svg +1830 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.svg +1830 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.svg +1831 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.svg +1835 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.svg +1831 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.svg +1830 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.svg +1830 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.svg +37 -0
- data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.woff +0 -0
- data/vendor/assets/javascripts/bastion/ngUpload/ng-upload.js +20 -19
- data/vendor/assets/stylesheets/bastion/bootstrap/badges.less +4 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/breadcrumbs.less +4 -1
- data/vendor/assets/stylesheets/bastion/bootstrap/button-groups.less +13 -14
- data/vendor/assets/stylesheets/bastion/bootstrap/buttons.less +14 -10
- data/vendor/assets/stylesheets/bastion/bootstrap/carousel.less +3 -3
- data/vendor/assets/stylesheets/bastion/bootstrap/code.less +10 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/dropdowns.less +28 -2
- data/vendor/assets/stylesheets/bastion/bootstrap/forms.less +104 -41
- data/vendor/assets/stylesheets/bastion/bootstrap/glyphicons.less +1 -5
- data/vendor/assets/stylesheets/bastion/bootstrap/grid.less +30 -25
- data/vendor/assets/stylesheets/bastion/bootstrap/input-groups.less +44 -18
- data/vendor/assets/stylesheets/bastion/bootstrap/jumbotron.less +3 -5
- data/vendor/assets/stylesheets/bastion/bootstrap/list-group.less +25 -3
- data/vendor/assets/stylesheets/bastion/bootstrap/mixins.less +147 -63
- data/vendor/assets/stylesheets/bastion/bootstrap/modals.less +18 -8
- data/vendor/assets/stylesheets/bastion/bootstrap/navbar.less +24 -20
- data/vendor/assets/stylesheets/bastion/bootstrap/navs.less +2 -2
- data/vendor/assets/stylesheets/bastion/bootstrap/normalize.less +139 -122
- data/vendor/assets/stylesheets/bastion/bootstrap/pager.less +5 -5
- data/vendor/assets/stylesheets/bastion/bootstrap/pagination.less +6 -3
- data/vendor/assets/stylesheets/bastion/bootstrap/panels.less +106 -47
- data/vendor/assets/stylesheets/bastion/bootstrap/popovers.less +11 -11
- data/vendor/assets/stylesheets/bastion/bootstrap/print.less +0 -4
- data/vendor/assets/stylesheets/bastion/bootstrap/responsive-utilities.less +15 -132
- data/vendor/assets/stylesheets/bastion/bootstrap/scaffolding.less +17 -2
- data/vendor/assets/stylesheets/bastion/bootstrap/tables.less +3 -1
- data/vendor/assets/stylesheets/bastion/bootstrap/theme.less +1 -1
- data/vendor/assets/stylesheets/bastion/bootstrap/thumbnails.less +1 -1
- data/vendor/assets/stylesheets/bastion/bootstrap/tooltip.less +1 -1
- data/vendor/assets/stylesheets/bastion/bootstrap/type.less +79 -67
- data/vendor/assets/stylesheets/bastion/bootstrap/variables.less +364 -177
- data/vendor/assets/stylesheets/bastion/bootstrap/wells.less +1 -1
- data/vendor/assets/stylesheets/bastion/font-awesome/less/bordered-pulled.less +16 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/core.less +8 -126
- data/vendor/assets/stylesheets/bastion/font-awesome/less/extras.less +2 -93
- data/vendor/assets/stylesheets/bastion/font-awesome/less/fixed-width.less +6 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome.less +9 -25
- data/vendor/assets/stylesheets/bastion/font-awesome/less/icons.less +549 -378
- data/vendor/assets/stylesheets/bastion/font-awesome/less/larger.less +13 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/list.less +19 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/mixins.less +16 -39
- data/vendor/assets/stylesheets/bastion/font-awesome/less/path.less +6 -6
- data/vendor/assets/stylesheets/bastion/font-awesome/less/rotated-flipped.less +20 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/spinning.less +29 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/stacked.less +20 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/variables.less +557 -731
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_bordered-pulled.scss +16 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_core.scss +8 -126
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_extras.scss +9 -58
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_fixed-width.scss +6 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_icons.scss +550 -379
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_larger.scss +13 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_list.scss +19 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_mixins.scss +16 -39
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_path.scss +6 -6
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_rotated-flipped.scss +20 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_spinning.scss +29 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_stacked.scss +20 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_variables.scss +557 -730
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome.scss +9 -25
- data/vendor/assets/stylesheets/bastion/patternfly/alerts.less +29 -0
- data/vendor/assets/stylesheets/bastion/patternfly/badges.less +11 -0
- data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-combobox.less +27 -0
- data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-select.less +67 -0
- data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-treeview.less +37 -0
- data/vendor/assets/stylesheets/bastion/patternfly/breadcrumbs.less +20 -0
- data/vendor/assets/stylesheets/bastion/{rcue → patternfly}/buttons.less +4 -0
- data/vendor/assets/stylesheets/bastion/patternfly/close.less +13 -0
- data/vendor/assets/stylesheets/bastion/patternfly/datatables.less +221 -0
- data/vendor/assets/stylesheets/bastion/patternfly/dropdowns.less +145 -0
- data/vendor/assets/stylesheets/bastion/{rcue → patternfly}/fonts.less +4 -2
- data/vendor/assets/stylesheets/bastion/{rcue → patternfly}/forms.less +7 -4
- data/vendor/assets/stylesheets/bastion/patternfly/icons.less +130 -0
- data/vendor/assets/stylesheets/bastion/patternfly/infotip.less +149 -0
- data/vendor/assets/stylesheets/bastion/patternfly/labels.less +12 -0
- data/vendor/assets/stylesheets/bastion/patternfly/list-group.less +18 -0
- data/vendor/assets/stylesheets/bastion/patternfly/login.less +121 -0
- data/vendor/assets/stylesheets/bastion/patternfly/mixins.less +81 -0
- data/vendor/assets/stylesheets/bastion/patternfly/modals.less +38 -0
- data/vendor/assets/stylesheets/bastion/patternfly/navbar.less +501 -0
- data/vendor/assets/stylesheets/bastion/patternfly/pager.less +72 -0
- data/vendor/assets/stylesheets/bastion/patternfly/pagination.less +64 -0
- data/vendor/assets/stylesheets/bastion/patternfly/panels.less +57 -0
- data/vendor/assets/stylesheets/bastion/patternfly/patternfly.less +42 -0
- data/vendor/assets/stylesheets/bastion/patternfly/popovers.less +32 -0
- data/vendor/assets/stylesheets/bastion/patternfly/progress-bars.less +87 -0
- data/vendor/assets/stylesheets/bastion/patternfly/search.less +65 -0
- data/vendor/assets/stylesheets/bastion/patternfly/sidebar.less +174 -0
- data/vendor/assets/stylesheets/bastion/patternfly/spinner.less +62 -0
- data/vendor/assets/stylesheets/bastion/patternfly/tables.less +74 -0
- data/vendor/assets/stylesheets/bastion/patternfly/tabs.less +118 -0
- data/vendor/assets/stylesheets/bastion/patternfly/tooltip.less +16 -0
- data/vendor/assets/stylesheets/bastion/patternfly/type.less +24 -0
- data/vendor/assets/stylesheets/bastion/patternfly/variables.less +219 -0
- metadata +98 -57
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.svg +0 -146
- data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.svg +0 -454
- data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.svg +0 -454
- data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.woff +0 -0
- data/vendor/assets/stylesheets/bastion/rcue/mixins.less +0 -50
- data/vendor/assets/stylesheets/bastion/rcue/navbar.less +0 -481
- data/vendor/assets/stylesheets/bastion/rcue/rcue.less +0 -15
- data/vendor/assets/stylesheets/bastion/rcue/variables.less +0 -47
data/bower.json
CHANGED
@@ -16,10 +16,11 @@
|
|
16
16
|
"angular-blocks": "~>0.1.8",
|
17
17
|
"underscore": "=1.5.2",
|
18
18
|
"ngUpload": "~0.5.5",
|
19
|
-
"bootstrap": "~3.
|
20
|
-
"font-awesome": "
|
19
|
+
"bootstrap": "~3.1.1",
|
20
|
+
"font-awesome": "4.2.0",
|
21
21
|
"angular-animate": "=1.2.0",
|
22
|
-
"angular-uuid4": "0.1.0"
|
22
|
+
"angular-uuid4": "0.1.0",
|
23
|
+
"patternfly": "1.1.3"
|
23
24
|
},
|
24
25
|
"devDependencies": {
|
25
26
|
"jquery": "=1.9.1",
|
@@ -32,58 +33,62 @@
|
|
32
33
|
},
|
33
34
|
"exportsOverride": {
|
34
35
|
"json3": {
|
35
|
-
"javascripts/bastion": "lib/json3.js"
|
36
|
+
"javascripts/bastion/json3": "lib/json3.js"
|
36
37
|
},
|
37
38
|
"es5-shim": {
|
38
|
-
"javascripts/bastion": "es5-shim.js"
|
39
|
+
"javascripts/bastion/es5-shim": "es5-shim.js"
|
39
40
|
},
|
40
41
|
"angular": {
|
41
|
-
"javascripts/bastion": "angular.js"
|
42
|
+
"javascripts/bastion/angular": "angular.js"
|
42
43
|
},
|
43
44
|
"angular-sanitize": {
|
44
|
-
"javascripts/bastion": "angular-sanitize.js"
|
45
|
+
"javascripts/bastion/angular-sanitize": "angular-sanitize.js"
|
45
46
|
},
|
46
47
|
"angular-resource": {
|
47
|
-
"javascripts/bastion": "angular-resource.js"
|
48
|
+
"javascripts/bastion/angular-resource": "angular-resource.js"
|
48
49
|
},
|
49
50
|
"angular-route": {
|
50
|
-
"javascripts/bastion": "angular-route.js"
|
51
|
+
"javascripts/bastion/angular-route": "angular-route.js"
|
51
52
|
},
|
52
53
|
"angular-gettext": {
|
53
|
-
"javascripts/bastion": "dist/angular-gettext.js"
|
54
|
+
"javascripts/bastion/angular-gettext": "dist/angular-gettext.js"
|
54
55
|
},
|
55
56
|
"angular-blocks": {
|
56
|
-
"javascripts/bastion": "src/angular-blocks.js"
|
57
|
+
"javascripts/bastion/angular-blocks": "src/angular-blocks.js"
|
57
58
|
},
|
58
59
|
"angular-bootstrap": {
|
59
|
-
"javascripts/bastion": [
|
60
|
+
"javascripts/bastion/angular-bootstrap": [
|
60
61
|
"ui-bootstrap.js",
|
61
62
|
"ui-bootstrap-tpls.js"
|
62
63
|
]
|
63
64
|
},
|
64
65
|
"angular-animate": {
|
65
|
-
"javascripts/bastion": "angular-animate.js"
|
66
|
+
"javascripts/bastion/angular-animate": "angular-animate.js"
|
66
67
|
},
|
67
68
|
"angular-ui-router": {
|
68
|
-
"javascripts/bastion": "release/angular-ui-router.js"
|
69
|
+
"javascripts/bastion/angular-ui-router": "release/angular-ui-router.js"
|
69
70
|
},
|
70
71
|
"angular-uuid4": {
|
71
|
-
"javascripts/bastion": "angular-uuid4.js"
|
72
|
+
"javascripts/bastion/angular-uuid4": "angular-uuid4.js"
|
72
73
|
},
|
73
74
|
"underscore": {
|
74
|
-
"javascripts/bastion": "underscore.js"
|
75
|
+
"javascripts/bastion/underscore": "underscore.js"
|
75
76
|
},
|
76
77
|
"ngUpload": {
|
77
|
-
"javascripts/bastion": "ng-upload.js"
|
78
|
+
"javascripts/bastion/ngUpload": "ng-upload.js"
|
78
79
|
},
|
79
80
|
"bootstrap": {
|
80
|
-
"stylesheets/bastion": "less/*.less",
|
81
|
-
"fonts/bastion": "dist/fonts/*"
|
81
|
+
"stylesheets/bastion/bootstrap/less": "less/*.less",
|
82
|
+
"fonts/bastion/bootstrap": "dist/fonts/*"
|
82
83
|
},
|
83
84
|
"font-awesome": {
|
84
85
|
"stylesheets/bastion/font-awesome/less": "less/*.less",
|
85
86
|
"stylesheets/bastion/font-awesome/scss": "scss/*.scss",
|
86
|
-
"fonts/bastion": "font/*"
|
87
|
+
"fonts/bastion/font-awesome/": "font/*"
|
88
|
+
},
|
89
|
+
"patternfly": {
|
90
|
+
"fonts/bastion/patternfly/": "dist/fonts",
|
91
|
+
"stylesheets/bastion/patternfly": "less/*.less"
|
87
92
|
}
|
88
93
|
}
|
89
94
|
}
|
data/grunt/bower.js
CHANGED
@@ -3,16 +3,12 @@ module.exports = {
|
|
3
3
|
options: {
|
4
4
|
targetDir: 'vendor/assets',
|
5
5
|
copy: true,
|
6
|
-
layout: function (type
|
6
|
+
layout: function (type) {
|
7
7
|
// We provide a bit of customization here by allowing
|
8
8
|
// explicit path declarations if the component is included
|
9
9
|
// in the type. This is handy for sub-nesting within folders
|
10
10
|
// for a component. Fallback is 'byType'.
|
11
|
-
|
12
|
-
return require('path').join(type);
|
13
|
-
} else {
|
14
|
-
return require('path').join(type, component);
|
15
|
-
}
|
11
|
+
return require('path').join(type);
|
16
12
|
},
|
17
13
|
clearBowerDir: true
|
18
14
|
}
|
data/lib/bastion/version.rb
CHANGED
@@ -25,16 +25,7 @@ describe('Directive: bstAlert', function() {
|
|
25
25
|
}));
|
26
26
|
|
27
27
|
beforeEach(function() {
|
28
|
-
element = angular.element('<div bst-alert
|
29
|
-
'success-messages="successMessages" ' +
|
30
|
-
'info-messages="infoMessages" ' +
|
31
|
-
'warning-messages="warningMessages" ' +
|
32
|
-
'error-messages="errorMessages"></div>');
|
33
|
-
|
34
|
-
scope.successMessages = [];
|
35
|
-
scope.infoMessages = [];
|
36
|
-
scope.warningMessages = [];
|
37
|
-
scope.errorMessages = [];
|
28
|
+
element = angular.element('<div bst-alert="info"></div>');
|
38
29
|
|
39
30
|
compile(element)(scope);
|
40
31
|
scope.$digest();
|
@@ -42,43 +33,20 @@ describe('Directive: bstAlert', function() {
|
|
42
33
|
elementScope = element.isolateScope();
|
43
34
|
});
|
44
35
|
|
45
|
-
it("should display
|
36
|
+
it("should display an alert", function() {
|
46
37
|
scope.successMessages = ['hello'];
|
47
38
|
scope.$digest();
|
48
39
|
|
49
|
-
expect(
|
50
|
-
expect(elementScope.alerts['success'][0]).toBe('hello');
|
40
|
+
expect(element.find('.alert').length).toBe(1);
|
51
41
|
});
|
52
42
|
|
53
|
-
it("should display
|
54
|
-
|
55
|
-
scope.$digest();
|
56
|
-
|
57
|
-
expect(elementScope.alerts['info'].length).toBe(1);
|
58
|
-
expect(elementScope.alerts['info'][0]).toBe('hello');
|
59
|
-
});
|
43
|
+
it("should display a close icon if a close function is provided", function () {
|
44
|
+
element = angular.element('<div bst-alert="info" close="close()"></div>');
|
60
45
|
|
61
|
-
|
62
|
-
scope.warningMessages = ['hello'];
|
63
|
-
scope.$digest();
|
64
|
-
|
65
|
-
expect(elementScope.alerts['warning'].length).toBe(1);
|
66
|
-
expect(elementScope.alerts['warning'][0]).toBe('hello');
|
67
|
-
});
|
68
|
-
|
69
|
-
it("should display success alerts", function() {
|
70
|
-
scope.errorMessages = ['hello'];
|
46
|
+
compile(element)(scope);
|
71
47
|
scope.$digest();
|
48
|
+
elementScope = element.isolateScope();
|
72
49
|
|
73
|
-
expect(elementScope.
|
74
|
-
expect(elementScope.alerts['danger'][0]).toBe('hello');
|
75
|
-
});
|
76
|
-
|
77
|
-
it("provides a way to close alerts", function() {
|
78
|
-
elementScope.alerts = {success: ['yo!', 'hello'], danger: ['foo']};
|
79
|
-
elementScope.closeAlert('success', 1);
|
80
|
-
expect(elementScope.alerts['success'].length).toBe(1);
|
81
|
-
expect(elementScope.alerts['danger'].length).toBe(1);
|
50
|
+
expect(elementScope.closeable).toBe(true);
|
82
51
|
});
|
83
|
-
|
84
52
|
});
|
@@ -0,0 +1,84 @@
|
|
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
|
+
describe('Directive: bstAlerts', function() {
|
15
|
+
var scope,
|
16
|
+
compile,
|
17
|
+
element,
|
18
|
+
elementScope;
|
19
|
+
|
20
|
+
beforeEach(module('Bastion.components', 'components/views/bst-alerts.html', 'components/views/bst-alert.html'));
|
21
|
+
|
22
|
+
beforeEach(inject(function(_$compile_, _$rootScope_) {
|
23
|
+
compile = _$compile_;
|
24
|
+
scope = _$rootScope_;
|
25
|
+
}));
|
26
|
+
|
27
|
+
beforeEach(function() {
|
28
|
+
element = angular.element('<div bst-alerts ' +
|
29
|
+
'success-messages="successMessages" ' +
|
30
|
+
'info-messages="infoMessages" ' +
|
31
|
+
'warning-messages="warningMessages" ' +
|
32
|
+
'error-messages="errorMessages"></div>');
|
33
|
+
|
34
|
+
scope.successMessages = [];
|
35
|
+
scope.infoMessages = [];
|
36
|
+
scope.warningMessages = [];
|
37
|
+
scope.errorMessages = [];
|
38
|
+
|
39
|
+
compile(element)(scope);
|
40
|
+
scope.$digest();
|
41
|
+
|
42
|
+
elementScope = element.isolateScope();
|
43
|
+
});
|
44
|
+
|
45
|
+
it("should display success alerts", function() {
|
46
|
+
scope.successMessages = ['hello'];
|
47
|
+
scope.$digest();
|
48
|
+
|
49
|
+
expect(elementScope.alerts['success'].length).toBe(1);
|
50
|
+
expect(elementScope.alerts['success'][0]).toBe('hello');
|
51
|
+
});
|
52
|
+
|
53
|
+
it("should display info alerts", function() {
|
54
|
+
scope.infoMessages = ['hello'];
|
55
|
+
scope.$digest();
|
56
|
+
|
57
|
+
expect(elementScope.alerts['info'].length).toBe(1);
|
58
|
+
expect(elementScope.alerts['info'][0]).toBe('hello');
|
59
|
+
});
|
60
|
+
|
61
|
+
it("should display warning alerts", function() {
|
62
|
+
scope.warningMessages = ['hello'];
|
63
|
+
scope.$digest();
|
64
|
+
|
65
|
+
expect(elementScope.alerts['warning'].length).toBe(1);
|
66
|
+
expect(elementScope.alerts['warning'][0]).toBe('hello');
|
67
|
+
});
|
68
|
+
|
69
|
+
it("should display success alerts", function() {
|
70
|
+
scope.errorMessages = ['hello'];
|
71
|
+
scope.$digest();
|
72
|
+
|
73
|
+
expect(elementScope.alerts['danger'].length).toBe(1);
|
74
|
+
expect(elementScope.alerts['danger'][0]).toBe('hello');
|
75
|
+
});
|
76
|
+
|
77
|
+
it("provides a way to close alerts", function() {
|
78
|
+
elementScope.alerts = {success: ['yo!', 'hello'], danger: ['foo']};
|
79
|
+
elementScope.closeAlert('success', 1);
|
80
|
+
expect(elementScope.alerts['success'].length).toBe(1);
|
81
|
+
expect(elementScope.alerts['danger'].length).toBe(1);
|
82
|
+
});
|
83
|
+
|
84
|
+
});
|
@@ -28,7 +28,7 @@ describe('Directive: bstContainerScroll', function() {
|
|
28
28
|
|
29
29
|
beforeEach(function() {
|
30
30
|
tableElement = angular.element(
|
31
|
-
'<div bst-container-scroll
|
31
|
+
'<div bst-container-scroll>' +
|
32
32
|
'<table>' +
|
33
33
|
'<thead>' +
|
34
34
|
'<tr><th>Column 1</th></tr>' +
|
@@ -45,19 +45,6 @@ describe('Directive: bstContainerScroll', function() {
|
|
45
45
|
scope.$digest();
|
46
46
|
});
|
47
47
|
|
48
|
-
it("should adjust the table width on window resize", function() {
|
49
|
-
var table = tableElement.find('table'),
|
50
|
-
tableWidth = table.width(),
|
51
|
-
windowElement = angular.element(window);
|
52
|
-
|
53
|
-
expect(table.width()).toNotEqual(windowElement.width());
|
54
|
-
|
55
|
-
table.width('300px');
|
56
|
-
windowElement.trigger('resize');
|
57
|
-
|
58
|
-
expect(table.width()).toEqual(windowElement.width());
|
59
|
-
});
|
60
|
-
|
61
48
|
it("should adjust the table height on window resize", function() {
|
62
49
|
var table = tableElement.find('table'),
|
63
50
|
windowElement = angular.element(window);
|
@@ -105,7 +105,7 @@ describe('Directive: bstEdit', function() {
|
|
105
105
|
});
|
106
106
|
|
107
107
|
it("should call the method set to on-delete when clicking delete button", function() {
|
108
|
-
var element = editableElement.find('.
|
108
|
+
var element = editableElement.find('.fa-remove');
|
109
109
|
spyOn(testItem, 'delete');
|
110
110
|
|
111
111
|
element.trigger('click');
|
Binary file
|