bastion 0.1.14 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. checksums.yaml +8 -8
  2. data/app/assets/javascripts/bastion/bastion.module.js +7 -5
  3. data/app/assets/javascripts/bastion/components/bst-alert.directive.js +8 -37
  4. data/app/assets/javascripts/bastion/components/bst-alerts.directive.js +67 -0
  5. data/app/assets/javascripts/bastion/components/bst-container-scroll.directive.js +2 -7
  6. data/app/assets/javascripts/bastion/components/bst-table.directive.js +2 -2
  7. data/app/assets/javascripts/bastion/components/views/bst-alert.html +17 -5
  8. data/app/assets/javascripts/bastion/components/views/bst-alerts.html +6 -0
  9. data/app/assets/javascripts/bastion/components/views/bst-dropdown.html +1 -1
  10. data/app/assets/javascripts/bastion/components/views/bst-edit-add-item.html +1 -1
  11. data/app/assets/javascripts/bastion/components/views/bst-edit-add-remove-cancel.html +1 -1
  12. data/app/assets/javascripts/bastion/components/views/bst-edit-multiselect.html +1 -1
  13. data/app/assets/javascripts/bastion/components/views/bst-edit-save-cancel.html +1 -1
  14. data/app/assets/javascripts/bastion/components/views/bst-edit.html +2 -2
  15. data/app/assets/javascripts/bastion/components/views/bst-menu.html +1 -1
  16. data/app/assets/javascripts/bastion/components/views/bst-modal.html +1 -1
  17. data/app/assets/javascripts/bastion/components/views/bst-save-control.html +1 -1
  18. data/app/assets/javascripts/bastion/components/views/current-tasks.html +1 -1
  19. data/app/assets/javascripts/bastion/features/bst-feature-flag.directive.js +1 -1
  20. data/app/assets/javascripts/bastion/layouts/details-nutupane.html +4 -4
  21. data/app/assets/javascripts/bastion/layouts/nutupane.html +12 -8
  22. data/app/assets/stylesheets/bastion/bastion.less +6 -5
  23. data/app/assets/stylesheets/bastion/nutupane.less +14 -10
  24. data/app/assets/stylesheets/bastion/overrides.less +6 -2
  25. data/app/assets/stylesheets/bastion/variables.less +1 -0
  26. data/app/views/bastion/layouts/application.html.erb +5 -3
  27. data/bower.json +25 -20
  28. data/grunt/bower.js +2 -6
  29. data/lib/bastion/version.rb +1 -1
  30. data/test/components/bst-alert.directive.test.js +8 -40
  31. data/test/components/bst-alerts.directive.test.js +84 -0
  32. data/test/components/bst-container-scroll.directive.test.js +1 -14
  33. data/test/components/bst-edit.directive.test.js +1 -1
  34. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.eot +0 -0
  35. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.svg +47 -47
  36. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  37. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.woff +0 -0
  38. data/vendor/assets/fonts/bastion/font-awesome/FontAwesome.otf +0 -0
  39. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.eot +0 -0
  40. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.svg +471 -366
  41. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.ttf +0 -0
  42. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.woff +0 -0
  43. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.eot +0 -0
  44. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.svg +1830 -0
  45. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.ttf +0 -0
  46. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.woff +0 -0
  47. data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.eot +0 -0
  48. data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.svg +1830 -0
  49. data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.ttf +0 -0
  50. data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.woff +0 -0
  51. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.eot +0 -0
  52. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.svg +1830 -0
  53. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.ttf +0 -0
  54. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.woff +0 -0
  55. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
  56. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.svg +1830 -0
  57. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
  58. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
  59. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.eot +0 -0
  60. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.svg +1830 -0
  61. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.ttf +0 -0
  62. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.woff +0 -0
  63. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.eot +0 -0
  64. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.svg +1831 -0
  65. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.ttf +0 -0
  66. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.woff +0 -0
  67. data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.eot +0 -0
  68. data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.svg +1835 -0
  69. data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.ttf +0 -0
  70. data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.woff +0 -0
  71. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.eot +0 -0
  72. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.svg +1831 -0
  73. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.ttf +0 -0
  74. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.woff +0 -0
  75. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.eot +0 -0
  76. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.svg +1830 -0
  77. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.ttf +0 -0
  78. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.woff +0 -0
  79. data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.eot +0 -0
  80. data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  81. data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  82. data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.woff +0 -0
  83. data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.eot +0 -0
  84. data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.svg +37 -0
  85. data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.ttf +0 -0
  86. data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.woff +0 -0
  87. data/vendor/assets/javascripts/bastion/ngUpload/ng-upload.js +20 -19
  88. data/vendor/assets/stylesheets/bastion/bootstrap/badges.less +4 -0
  89. data/vendor/assets/stylesheets/bastion/bootstrap/breadcrumbs.less +4 -1
  90. data/vendor/assets/stylesheets/bastion/bootstrap/button-groups.less +13 -14
  91. data/vendor/assets/stylesheets/bastion/bootstrap/buttons.less +14 -10
  92. data/vendor/assets/stylesheets/bastion/bootstrap/carousel.less +3 -3
  93. data/vendor/assets/stylesheets/bastion/bootstrap/code.less +10 -0
  94. data/vendor/assets/stylesheets/bastion/bootstrap/dropdowns.less +28 -2
  95. data/vendor/assets/stylesheets/bastion/bootstrap/forms.less +104 -41
  96. data/vendor/assets/stylesheets/bastion/bootstrap/glyphicons.less +1 -5
  97. data/vendor/assets/stylesheets/bastion/bootstrap/grid.less +30 -25
  98. data/vendor/assets/stylesheets/bastion/bootstrap/input-groups.less +44 -18
  99. data/vendor/assets/stylesheets/bastion/bootstrap/jumbotron.less +3 -5
  100. data/vendor/assets/stylesheets/bastion/bootstrap/list-group.less +25 -3
  101. data/vendor/assets/stylesheets/bastion/bootstrap/mixins.less +147 -63
  102. data/vendor/assets/stylesheets/bastion/bootstrap/modals.less +18 -8
  103. data/vendor/assets/stylesheets/bastion/bootstrap/navbar.less +24 -20
  104. data/vendor/assets/stylesheets/bastion/bootstrap/navs.less +2 -2
  105. data/vendor/assets/stylesheets/bastion/bootstrap/normalize.less +139 -122
  106. data/vendor/assets/stylesheets/bastion/bootstrap/pager.less +5 -5
  107. data/vendor/assets/stylesheets/bastion/bootstrap/pagination.less +6 -3
  108. data/vendor/assets/stylesheets/bastion/bootstrap/panels.less +106 -47
  109. data/vendor/assets/stylesheets/bastion/bootstrap/popovers.less +11 -11
  110. data/vendor/assets/stylesheets/bastion/bootstrap/print.less +0 -4
  111. data/vendor/assets/stylesheets/bastion/bootstrap/responsive-utilities.less +15 -132
  112. data/vendor/assets/stylesheets/bastion/bootstrap/scaffolding.less +17 -2
  113. data/vendor/assets/stylesheets/bastion/bootstrap/tables.less +3 -1
  114. data/vendor/assets/stylesheets/bastion/bootstrap/theme.less +1 -1
  115. data/vendor/assets/stylesheets/bastion/bootstrap/thumbnails.less +1 -1
  116. data/vendor/assets/stylesheets/bastion/bootstrap/tooltip.less +1 -1
  117. data/vendor/assets/stylesheets/bastion/bootstrap/type.less +79 -67
  118. data/vendor/assets/stylesheets/bastion/bootstrap/variables.less +364 -177
  119. data/vendor/assets/stylesheets/bastion/bootstrap/wells.less +1 -1
  120. data/vendor/assets/stylesheets/bastion/font-awesome/less/bordered-pulled.less +16 -0
  121. data/vendor/assets/stylesheets/bastion/font-awesome/less/core.less +8 -126
  122. data/vendor/assets/stylesheets/bastion/font-awesome/less/extras.less +2 -93
  123. data/vendor/assets/stylesheets/bastion/font-awesome/less/fixed-width.less +6 -0
  124. data/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome.less +9 -25
  125. data/vendor/assets/stylesheets/bastion/font-awesome/less/icons.less +549 -378
  126. data/vendor/assets/stylesheets/bastion/font-awesome/less/larger.less +13 -0
  127. data/vendor/assets/stylesheets/bastion/font-awesome/less/list.less +19 -0
  128. data/vendor/assets/stylesheets/bastion/font-awesome/less/mixins.less +16 -39
  129. data/vendor/assets/stylesheets/bastion/font-awesome/less/path.less +6 -6
  130. data/vendor/assets/stylesheets/bastion/font-awesome/less/rotated-flipped.less +20 -0
  131. data/vendor/assets/stylesheets/bastion/font-awesome/less/spinning.less +29 -0
  132. data/vendor/assets/stylesheets/bastion/font-awesome/less/stacked.less +20 -0
  133. data/vendor/assets/stylesheets/bastion/font-awesome/less/variables.less +557 -731
  134. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_bordered-pulled.scss +16 -0
  135. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_core.scss +8 -126
  136. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_extras.scss +9 -58
  137. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_fixed-width.scss +6 -0
  138. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_icons.scss +550 -379
  139. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_larger.scss +13 -0
  140. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_list.scss +19 -0
  141. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_mixins.scss +16 -39
  142. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_path.scss +6 -6
  143. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_rotated-flipped.scss +20 -0
  144. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_spinning.scss +29 -0
  145. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_stacked.scss +20 -0
  146. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_variables.scss +557 -730
  147. data/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome.scss +9 -25
  148. data/vendor/assets/stylesheets/bastion/patternfly/alerts.less +29 -0
  149. data/vendor/assets/stylesheets/bastion/patternfly/badges.less +11 -0
  150. data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-combobox.less +27 -0
  151. data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-select.less +67 -0
  152. data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-treeview.less +37 -0
  153. data/vendor/assets/stylesheets/bastion/patternfly/breadcrumbs.less +20 -0
  154. data/vendor/assets/stylesheets/bastion/{rcue → patternfly}/buttons.less +4 -0
  155. data/vendor/assets/stylesheets/bastion/patternfly/close.less +13 -0
  156. data/vendor/assets/stylesheets/bastion/patternfly/datatables.less +221 -0
  157. data/vendor/assets/stylesheets/bastion/patternfly/dropdowns.less +145 -0
  158. data/vendor/assets/stylesheets/bastion/{rcue → patternfly}/fonts.less +4 -2
  159. data/vendor/assets/stylesheets/bastion/{rcue → patternfly}/forms.less +7 -4
  160. data/vendor/assets/stylesheets/bastion/patternfly/icons.less +130 -0
  161. data/vendor/assets/stylesheets/bastion/patternfly/infotip.less +149 -0
  162. data/vendor/assets/stylesheets/bastion/patternfly/labels.less +12 -0
  163. data/vendor/assets/stylesheets/bastion/patternfly/list-group.less +18 -0
  164. data/vendor/assets/stylesheets/bastion/patternfly/login.less +121 -0
  165. data/vendor/assets/stylesheets/bastion/patternfly/mixins.less +81 -0
  166. data/vendor/assets/stylesheets/bastion/patternfly/modals.less +38 -0
  167. data/vendor/assets/stylesheets/bastion/patternfly/navbar.less +501 -0
  168. data/vendor/assets/stylesheets/bastion/patternfly/pager.less +72 -0
  169. data/vendor/assets/stylesheets/bastion/patternfly/pagination.less +64 -0
  170. data/vendor/assets/stylesheets/bastion/patternfly/panels.less +57 -0
  171. data/vendor/assets/stylesheets/bastion/patternfly/patternfly.less +42 -0
  172. data/vendor/assets/stylesheets/bastion/patternfly/popovers.less +32 -0
  173. data/vendor/assets/stylesheets/bastion/patternfly/progress-bars.less +87 -0
  174. data/vendor/assets/stylesheets/bastion/patternfly/search.less +65 -0
  175. data/vendor/assets/stylesheets/bastion/patternfly/sidebar.less +174 -0
  176. data/vendor/assets/stylesheets/bastion/patternfly/spinner.less +62 -0
  177. data/vendor/assets/stylesheets/bastion/patternfly/tables.less +74 -0
  178. data/vendor/assets/stylesheets/bastion/patternfly/tabs.less +118 -0
  179. data/vendor/assets/stylesheets/bastion/patternfly/tooltip.less +16 -0
  180. data/vendor/assets/stylesheets/bastion/patternfly/type.less +24 -0
  181. data/vendor/assets/stylesheets/bastion/patternfly/variables.less +219 -0
  182. metadata +98 -57
  183. data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.eot +0 -0
  184. data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.svg +0 -146
  185. data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.ttf +0 -0
  186. data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.woff +0 -0
  187. data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.eot +0 -0
  188. data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.svg +0 -146
  189. data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.ttf +0 -0
  190. data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.woff +0 -0
  191. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.eot +0 -0
  192. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.svg +0 -146
  193. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.ttf +0 -0
  194. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.woff +0 -0
  195. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
  196. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.svg +0 -146
  197. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
  198. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
  199. data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.eot +0 -0
  200. data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.svg +0 -146
  201. data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.ttf +0 -0
  202. data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.woff +0 -0
  203. data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.eot +0 -0
  204. data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.svg +0 -146
  205. data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.ttf +0 -0
  206. data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.woff +0 -0
  207. data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.eot +0 -0
  208. data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.svg +0 -146
  209. data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.ttf +0 -0
  210. data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.woff +0 -0
  211. data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.eot +0 -0
  212. data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.svg +0 -146
  213. data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.ttf +0 -0
  214. data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.woff +0 -0
  215. data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.eot +0 -0
  216. data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.svg +0 -146
  217. data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.ttf +0 -0
  218. data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.woff +0 -0
  219. data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.eot +0 -0
  220. data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.svg +0 -146
  221. data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  222. data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.woff +0 -0
  223. data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.eot +0 -0
  224. data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.svg +0 -454
  225. data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.ttf +0 -0
  226. data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.woff +0 -0
  227. data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.eot +0 -0
  228. data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.svg +0 -454
  229. data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.ttf +0 -0
  230. data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.woff +0 -0
  231. data/vendor/assets/stylesheets/bastion/rcue/mixins.less +0 -50
  232. data/vendor/assets/stylesheets/bastion/rcue/navbar.less +0 -481
  233. data/vendor/assets/stylesheets/bastion/rcue/rcue.less +0 -15
  234. 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.0.1",
20
- "font-awesome": "~3.2.1",
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, component) {
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
- if (type.indexOf(component) !== -1) {
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
  }
@@ -1,3 +1,3 @@
1
1
  module Bastion
2
- VERSION = "0.1.14"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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 success alerts", function() {
36
+ it("should display an alert", function() {
46
37
  scope.successMessages = ['hello'];
47
38
  scope.$digest();
48
39
 
49
- expect(elementScope.alerts['success'].length).toBe(1);
50
- expect(elementScope.alerts['success'][0]).toBe('hello');
40
+ expect(element.find('.alert').length).toBe(1);
51
41
  });
52
42
 
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
- });
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
- 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'];
46
+ compile(element)(scope);
71
47
  scope.$digest();
48
+ elementScope = element.isolateScope();
72
49
 
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);
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 control-width="table">' +
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('.icon-remove');
108
+ var element = editableElement.find('.fa-remove');
109
109
  spyOn(testItem, 'delete');
110
110
 
111
111
  element.trigger('click');