bastion 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) hide show
  1. checksums.yaml +15 -0
  2. data/.jshintrc +35 -0
  3. data/Gruntfile.js +24 -0
  4. data/LICENSE +339 -0
  5. data/README.md +8 -0
  6. data/Rakefile +53 -0
  7. data/app/assets/javascripts/bastion/auth/auth.module.js +87 -0
  8. data/app/assets/javascripts/bastion/auth/authorization.service.js +48 -0
  9. data/app/assets/javascripts/bastion/bastion-bootstrap.js +32 -0
  10. data/app/assets/javascripts/bastion/bastion-resource.factory.js +39 -0
  11. data/app/assets/javascripts/bastion/bastion.js +52 -0
  12. data/app/assets/javascripts/bastion/bastion.module.js +213 -0
  13. data/app/assets/javascripts/bastion/i18n/README +9 -0
  14. data/app/assets/javascripts/bastion/i18n/i18n.module.js +24 -0
  15. data/app/assets/javascripts/bastion/i18n/katello.pot +968 -0
  16. data/app/assets/javascripts/bastion/i18n/locale/README +1 -0
  17. data/app/assets/javascripts/bastion/i18n/translate.service.js +14 -0
  18. data/app/assets/javascripts/bastion/i18n/translations.js +3 -0
  19. data/app/assets/javascripts/bastion/i18n/zanata.xml +28 -0
  20. data/app/assets/javascripts/bastion/incubator/alch-alert.directive.js +67 -0
  21. data/app/assets/javascripts/bastion/incubator/alch-container-scroll.directive.js +44 -0
  22. data/app/assets/javascripts/bastion/incubator/alch-dropdown.directive.js +28 -0
  23. data/app/assets/javascripts/bastion/incubator/alch-edit.directive.js +361 -0
  24. data/app/assets/javascripts/bastion/incubator/alch-flyout.directive.js +19 -0
  25. data/app/assets/javascripts/bastion/incubator/alch-form-buttons.directive.js +60 -0
  26. data/app/assets/javascripts/bastion/incubator/alch-form-group.directive.js +87 -0
  27. data/app/assets/javascripts/bastion/incubator/alch-infinite-scroll.directive.js +84 -0
  28. data/app/assets/javascripts/bastion/incubator/alch-menu.directive.js +56 -0
  29. data/app/assets/javascripts/bastion/incubator/alch-modal.directive.js +80 -0
  30. data/app/assets/javascripts/bastion/incubator/alch-save-control.directive.js +42 -0
  31. data/app/assets/javascripts/bastion/incubator/alch-table.directive.js +295 -0
  32. data/app/assets/javascripts/bastion/incubator/format/alch-format.module.js +21 -0
  33. data/app/assets/javascripts/bastion/incubator/format/array-to-string.filter.js +30 -0
  34. data/app/assets/javascripts/bastion/incubator/format/boolean-to-yes-no.filter.js +34 -0
  35. data/app/assets/javascripts/bastion/incubator/format/capitalize.filter.js +32 -0
  36. data/app/assets/javascripts/bastion/incubator/format/key-value-to-string.filter.js +40 -0
  37. data/app/assets/javascripts/bastion/incubator/format/unlimitedFilter.filter.js +35 -0
  38. data/app/assets/javascripts/bastion/incubator/stylesheets/alch-edit.scss +34 -0
  39. data/app/assets/javascripts/bastion/incubator/stylesheets/header.scss +207 -0
  40. data/app/assets/javascripts/bastion/incubator/views/alch-alert.html +6 -0
  41. data/app/assets/javascripts/bastion/incubator/views/alch-dropdown.html +19 -0
  42. data/app/assets/javascripts/bastion/incubator/views/alch-edit-add-item.html +21 -0
  43. data/app/assets/javascripts/bastion/incubator/views/alch-edit-add-remove-cancel.html +28 -0
  44. data/app/assets/javascripts/bastion/incubator/views/alch-edit-checkbox.html +6 -0
  45. data/app/assets/javascripts/bastion/incubator/views/alch-edit-custom.html +8 -0
  46. data/app/assets/javascripts/bastion/incubator/views/alch-edit-multiselect.html +17 -0
  47. data/app/assets/javascripts/bastion/incubator/views/alch-edit-save-cancel.html +20 -0
  48. data/app/assets/javascripts/bastion/incubator/views/alch-edit-select.html +10 -0
  49. data/app/assets/javascripts/bastion/incubator/views/alch-edit-text.html +6 -0
  50. data/app/assets/javascripts/bastion/incubator/views/alch-edit-textarea.html +6 -0
  51. data/app/assets/javascripts/bastion/incubator/views/alch-edit.html +18 -0
  52. data/app/assets/javascripts/bastion/incubator/views/alch-flyout.html +10 -0
  53. data/app/assets/javascripts/bastion/incubator/views/alch-form-buttons.html +10 -0
  54. data/app/assets/javascripts/bastion/incubator/views/alch-form-group.html +9 -0
  55. data/app/assets/javascripts/bastion/incubator/views/alch-menu.html +18 -0
  56. data/app/assets/javascripts/bastion/incubator/views/alch-modal-remove.html +13 -0
  57. data/app/assets/javascripts/bastion/incubator/views/alch-save-control.html +18 -0
  58. data/app/assets/javascripts/bastion/layouts/details-nutupane.html +73 -0
  59. data/app/assets/javascripts/bastion/layouts/nutupane.html +63 -0
  60. data/app/assets/javascripts/bastion/layouts/select-all-results.html +9 -0
  61. data/app/assets/javascripts/bastion/menu/menu-expander.service.js +51 -0
  62. data/app/assets/javascripts/bastion/menu/menu.module.js +26 -0
  63. data/app/assets/javascripts/bastion/utils/as.filter.js +33 -0
  64. data/app/assets/javascripts/bastion/utils/form-utils.service.js +53 -0
  65. data/app/assets/javascripts/bastion/utils/utils.module.js +21 -0
  66. data/app/assets/javascripts/bastion/widgets/current-tasks.directive.js +67 -0
  67. data/app/assets/javascripts/bastion/widgets/nutupane-table.directive.js +59 -0
  68. data/app/assets/javascripts/bastion/widgets/nutupane.factory.js +316 -0
  69. data/app/assets/javascripts/bastion/widgets/page-title.directive.js +61 -0
  70. data/app/assets/javascripts/bastion/widgets/page-title.service.js +42 -0
  71. data/app/assets/javascripts/bastion/widgets/path-selector.directive.js +109 -0
  72. data/app/assets/javascripts/bastion/widgets/views/current-tasks.html +23 -0
  73. data/app/assets/javascripts/bastion/widgets/views/path-selector.html +11 -0
  74. data/app/assets/javascripts/bastion/widgets/widgets.module.js +24 -0
  75. data/app/assets/stylesheets/bastion/animations.less +15 -0
  76. data/app/assets/stylesheets/bastion/bastion.less +160 -0
  77. data/app/assets/stylesheets/bastion/forms.less +41 -0
  78. data/app/assets/stylesheets/bastion/gpg-keys.less +36 -0
  79. data/app/assets/stylesheets/bastion/helpers.less +6 -0
  80. data/app/assets/stylesheets/bastion/mixins.less +15 -0
  81. data/app/assets/stylesheets/bastion/nutupane.less +382 -0
  82. data/app/assets/stylesheets/bastion/overrides.less +54 -0
  83. data/app/assets/stylesheets/bastion/path-selector.less +123 -0
  84. data/app/assets/stylesheets/bastion/systems.less +35 -0
  85. data/app/assets/stylesheets/bastion/tasks.less +23 -0
  86. data/app/assets/stylesheets/bastion/typography.less +31 -0
  87. data/app/assets/stylesheets/bastion/variables.less +3 -0
  88. data/app/controllers/bastion/bastion_controller.rb +24 -0
  89. data/app/views/bastion/layouts/application.html.erb +32 -0
  90. data/app/views/bastion/layouts/application_ie.html.erb +5 -0
  91. data/bastion.js +26 -0
  92. data/bower.json +94 -0
  93. data/config/routes.rb +25 -0
  94. data/config/routes/mount_engine.rb +3 -0
  95. data/grunt/bower.js +20 -0
  96. data/grunt/htmlhint.js +15 -0
  97. data/grunt/jshint.js +9 -0
  98. data/grunt/karma.js +83 -0
  99. data/lib/bastion.rb +17 -0
  100. data/lib/bastion/engine.rb +37 -0
  101. data/lib/bastion/version.rb +3 -0
  102. data/package.json +29 -0
  103. data/test/auth/authorization.service.test.js +63 -0
  104. data/test/bastion/bastion-resource.factory.test.js +31 -0
  105. data/test/bastion/test-constants.js +30 -0
  106. data/test/i18n/translate.service.test.js +31 -0
  107. data/test/incubator/alch-alert.directive.test.js +84 -0
  108. data/test/incubator/alch-container-scroll.directive.test.js +68 -0
  109. data/test/incubator/alch-dropdown.directive.test.js +113 -0
  110. data/test/incubator/alch-edit.directive.test.js +320 -0
  111. data/test/incubator/alch-flyout.directive.test.js +73 -0
  112. data/test/incubator/alch-form-buttons.directive.test.js +55 -0
  113. data/test/incubator/alch-form-group.directive.test.js +76 -0
  114. data/test/incubator/alch-infinite-scroll.directive.test.js +123 -0
  115. data/test/incubator/alch-menu.directive.test.js +94 -0
  116. data/test/incubator/alch-modal.directive.test.js +81 -0
  117. data/test/incubator/alch-table.directive.test.js +270 -0
  118. data/test/incubator/format/array-to-string.filter.test.js +38 -0
  119. data/test/incubator/format/boolean-to-yes-no.filter.test.js +41 -0
  120. data/test/incubator/format/capitalize.filter.test.js +35 -0
  121. data/test/incubator/format/key-value-to-string.filter.test.js +60 -0
  122. data/test/incubator/format/unlimited-filter.filter.test.js +31 -0
  123. data/test/incubator/nutupane-table.directive.test.js +69 -0
  124. data/test/incubator/nutupane.factory.test.js +307 -0
  125. data/test/menu/menu-expander.service.test.js +74 -0
  126. data/test/test-mocks.module.js +268 -0
  127. data/test/utils/as.filter.test.js +33 -0
  128. data/test/utils/form-utils.service.test.js +52 -0
  129. data/test/widgets/page-title.directive.test.js +54 -0
  130. data/test/widgets/page-title.service.test.js +51 -0
  131. data/test/widgets/path-selector.directive.test.js +136 -0
  132. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.eot +0 -0
  133. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.svg +229 -0
  134. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  135. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.woff +0 -0
  136. data/vendor/assets/fonts/bastion/font-awesome/FontAwesome.otf +0 -0
  137. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.eot +0 -0
  138. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.svg +399 -0
  139. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.ttf +0 -0
  140. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.woff +0 -0
  141. data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.eot +0 -0
  142. data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.svg +146 -0
  143. data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.ttf +0 -0
  144. data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.woff +0 -0
  145. data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.eot +0 -0
  146. data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.svg +146 -0
  147. data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.ttf +0 -0
  148. data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.woff +0 -0
  149. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.eot +0 -0
  150. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.svg +146 -0
  151. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.ttf +0 -0
  152. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.woff +0 -0
  153. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
  154. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.svg +146 -0
  155. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
  156. data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
  157. data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.eot +0 -0
  158. data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.svg +146 -0
  159. data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.ttf +0 -0
  160. data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.woff +0 -0
  161. data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.eot +0 -0
  162. data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.svg +146 -0
  163. data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.ttf +0 -0
  164. data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.woff +0 -0
  165. data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.eot +0 -0
  166. data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.svg +146 -0
  167. data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.ttf +0 -0
  168. data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.woff +0 -0
  169. data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.eot +0 -0
  170. data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.svg +146 -0
  171. data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.ttf +0 -0
  172. data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.woff +0 -0
  173. data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.eot +0 -0
  174. data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.svg +146 -0
  175. data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.ttf +0 -0
  176. data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.woff +0 -0
  177. data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.eot +0 -0
  178. data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.svg +146 -0
  179. data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  180. data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.woff +0 -0
  181. data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.eot +0 -0
  182. data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.svg +454 -0
  183. data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.ttf +0 -0
  184. data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.woff +0 -0
  185. data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.eot +0 -0
  186. data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.svg +454 -0
  187. data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.ttf +0 -0
  188. data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.woff +0 -0
  189. data/vendor/assets/javascripts/bastion/alchemy/alchemy.js +20 -0
  190. data/vendor/assets/javascripts/bastion/angular-animate/angular-animate.js +1226 -0
  191. data/vendor/assets/javascripts/bastion/angular-blocks/angular-blocks.js +79 -0
  192. data/vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap-tpls.js +3677 -0
  193. data/vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap.js +3427 -0
  194. data/vendor/assets/javascripts/bastion/angular-gettext/angular-gettext.js +345 -0
  195. data/vendor/assets/javascripts/bastion/angular-resource/angular-resource.js +594 -0
  196. data/vendor/assets/javascripts/bastion/angular-route/angular-route.js +920 -0
  197. data/vendor/assets/javascripts/bastion/angular-sanitize/angular-sanitize.js +622 -0
  198. data/vendor/assets/javascripts/bastion/angular-ui-bootstrap/datepicker.js +447 -0
  199. data/vendor/assets/javascripts/bastion/angular-ui-bootstrap/timepicker.js +232 -0
  200. data/vendor/assets/javascripts/bastion/angular-ui-router/angular-ui-router.js +3223 -0
  201. data/vendor/assets/javascripts/bastion/angular-uuid4/angular-uuid4.js +21 -0
  202. data/vendor/assets/javascripts/bastion/angular/angular.js +20560 -0
  203. data/vendor/assets/javascripts/bastion/es5-shim/es5-shim.js +1216 -0
  204. data/vendor/assets/javascripts/bastion/json3/json3.js +861 -0
  205. data/vendor/assets/javascripts/bastion/ngUpload/ng-upload.js +205 -0
  206. data/vendor/assets/javascripts/bastion/underscore/underscore.js +1276 -0
  207. data/vendor/assets/stylesheets/bastion/alchemy/_colors.scss +99 -0
  208. data/vendor/assets/stylesheets/bastion/alchemy/_media_object.scss +22 -0
  209. data/vendor/assets/stylesheets/bastion/alchemy/_mixins.scss +24 -0
  210. data/vendor/assets/stylesheets/bastion/alchemy/_normalize.scss +396 -0
  211. data/vendor/assets/stylesheets/bastion/alchemy/_vars.scss +31 -0
  212. data/vendor/assets/stylesheets/bastion/alchemy/alchemy.scss +8 -0
  213. data/vendor/assets/stylesheets/bastion/bootstrap/alerts.less +67 -0
  214. data/vendor/assets/stylesheets/bastion/bootstrap/badges.less +51 -0
  215. data/vendor/assets/stylesheets/bastion/bootstrap/bootstrap.less +49 -0
  216. data/vendor/assets/stylesheets/bastion/bootstrap/breadcrumbs.less +23 -0
  217. data/vendor/assets/stylesheets/bastion/bootstrap/button-groups.less +227 -0
  218. data/vendor/assets/stylesheets/bastion/bootstrap/buttons.less +155 -0
  219. data/vendor/assets/stylesheets/bastion/bootstrap/carousel.less +232 -0
  220. data/vendor/assets/stylesheets/bastion/bootstrap/close.less +33 -0
  221. data/vendor/assets/stylesheets/bastion/bootstrap/code.less +53 -0
  222. data/vendor/assets/stylesheets/bastion/bootstrap/component-animations.less +29 -0
  223. data/vendor/assets/stylesheets/bastion/bootstrap/dropdowns.less +187 -0
  224. data/vendor/assets/stylesheets/bastion/bootstrap/forms.less +375 -0
  225. data/vendor/assets/stylesheets/bastion/bootstrap/glyphicons.less +237 -0
  226. data/vendor/assets/stylesheets/bastion/bootstrap/grid.less +79 -0
  227. data/vendor/assets/stylesheets/bastion/bootstrap/input-groups.less +136 -0
  228. data/vendor/assets/stylesheets/bastion/bootstrap/jumbotron.less +46 -0
  229. data/vendor/assets/stylesheets/bastion/bootstrap/labels.less +64 -0
  230. data/vendor/assets/stylesheets/bastion/bootstrap/list-group.less +88 -0
  231. data/vendor/assets/stylesheets/bastion/bootstrap/media.less +56 -0
  232. data/vendor/assets/stylesheets/bastion/bootstrap/mixins.less +845 -0
  233. data/vendor/assets/stylesheets/bastion/bootstrap/modals.less +129 -0
  234. data/vendor/assets/stylesheets/bastion/bootstrap/navbar.less +612 -0
  235. data/vendor/assets/stylesheets/bastion/bootstrap/navs.less +242 -0
  236. data/vendor/assets/stylesheets/bastion/bootstrap/normalize.less +406 -0
  237. data/vendor/assets/stylesheets/bastion/bootstrap/pager.less +55 -0
  238. data/vendor/assets/stylesheets/bastion/bootstrap/pagination.less +85 -0
  239. data/vendor/assets/stylesheets/bastion/bootstrap/panels.less +182 -0
  240. data/vendor/assets/stylesheets/bastion/bootstrap/popovers.less +133 -0
  241. data/vendor/assets/stylesheets/bastion/bootstrap/print.less +105 -0
  242. data/vendor/assets/stylesheets/bastion/bootstrap/progress-bars.less +80 -0
  243. data/vendor/assets/stylesheets/bastion/bootstrap/responsive-utilities.less +209 -0
  244. data/vendor/assets/stylesheets/bastion/bootstrap/scaffolding.less +119 -0
  245. data/vendor/assets/stylesheets/bastion/bootstrap/tables.less +231 -0
  246. data/vendor/assets/stylesheets/bastion/bootstrap/theme.less +247 -0
  247. data/vendor/assets/stylesheets/bastion/bootstrap/thumbnails.less +36 -0
  248. data/vendor/assets/stylesheets/bastion/bootstrap/tooltip.less +95 -0
  249. data/vendor/assets/stylesheets/bastion/bootstrap/type.less +281 -0
  250. data/vendor/assets/stylesheets/bastion/bootstrap/utilities.less +56 -0
  251. data/vendor/assets/stylesheets/bastion/bootstrap/variables.less +642 -0
  252. data/vendor/assets/stylesheets/bastion/bootstrap/wells.less +29 -0
  253. data/vendor/assets/stylesheets/bastion/font-awesome/less/bootstrap.less +84 -0
  254. data/vendor/assets/stylesheets/bastion/font-awesome/less/core.less +129 -0
  255. data/vendor/assets/stylesheets/bastion/font-awesome/less/extras.less +93 -0
  256. data/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome-ie7.less +1953 -0
  257. data/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome.less +33 -0
  258. data/vendor/assets/stylesheets/bastion/font-awesome/less/icons.less +381 -0
  259. data/vendor/assets/stylesheets/bastion/font-awesome/less/mixins.less +48 -0
  260. data/vendor/assets/stylesheets/bastion/font-awesome/less/path.less +14 -0
  261. data/vendor/assets/stylesheets/bastion/font-awesome/less/variables.less +735 -0
  262. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_bootstrap.scss +84 -0
  263. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_core.scss +129 -0
  264. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_extras.scss +93 -0
  265. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_icons.scss +381 -0
  266. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_mixins.scss +48 -0
  267. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_path.scss +14 -0
  268. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_variables.scss +734 -0
  269. data/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome-ie7.scss +1953 -0
  270. data/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome.scss +33 -0
  271. data/vendor/assets/stylesheets/bastion/rcue/buttons.less +44 -0
  272. data/vendor/assets/stylesheets/bastion/rcue/fonts.less +52 -0
  273. data/vendor/assets/stylesheets/bastion/rcue/forms.less +19 -0
  274. data/vendor/assets/stylesheets/bastion/rcue/mixins.less +50 -0
  275. data/vendor/assets/stylesheets/bastion/rcue/navbar.less +481 -0
  276. data/vendor/assets/stylesheets/bastion/rcue/rcue.less +15 -0
  277. data/vendor/assets/stylesheets/bastion/rcue/variables.less +47 -0
  278. metadata +376 -0
@@ -0,0 +1,19 @@
1
+ <ul class="dropdown"
2
+ ng-class="{ 'dropdown-right' : isRight(dropdown.direction), 'dropdown-active' : dropdown.show }">
3
+ <li class="dropdown-item"
4
+ ng-repeat="item in dropdown"
5
+ ng-mouseenter="setHover(item, true)"
6
+ ng-mouseleave="setHover(item, false)">
7
+
8
+ <a class="dropdown-item-link"
9
+ href="{{ item.url }}"
10
+ ng-class="{'menu-anchor' : item.type, 'dropdown-item-link-active' : item.active }">
11
+ <span class="fl">{{ item.display }}</span>
12
+ <i class="icon-caret-right flyout-indicator" ng-show="item.type=='flyout'"></i> </a>
13
+ <ul alch-flyout="item.items"
14
+ ng-if="item.type == 'flyout'"
15
+ ng-show="item.active"
16
+ ng-class="{ 'dropdown-active' : dropdown.show }">
17
+ </ul>
18
+ </li>
19
+ </ul>
@@ -0,0 +1,21 @@
1
+ <form class="add-item form-inline" role="form">
2
+ <h5 translate>Add New Item</h5>
3
+ <div class="form-group">
4
+ <input class="form-control" type="text" ng-model="newKey" placeholder="{{ 'Key' | translate }}" />
5
+ </div>
6
+ <div class="form-group">
7
+ <input class="form-control" type="text" ng-model="newValue" placeholder="{{ 'Value' | translate }}" />
8
+ </div>
9
+
10
+ <span ng-show="workingMode">
11
+ <i class="icon-spinner inline-icon icon-spin"></i>
12
+ <span translate>Working</span>
13
+ </span>
14
+
15
+ <button class="btn btn-primary"
16
+ translate
17
+ ng-click="add({value: {keyname: newKey, value: newValue}})"
18
+ ng-hide="workingMode">
19
+ Add
20
+ </button>
21
+ </form>
@@ -0,0 +1,28 @@
1
+ <div ng-show="workingMode">
2
+ <i class="icon-spinner inline-icon icon-spin"></i>
3
+ <span translate>Working</span>
4
+ </div>
5
+
6
+ <button class="btn btn-primary"
7
+ translate
8
+ ng-click="add()"
9
+ ng-disabled="disableSave"
10
+ ng-show="editMode && !workingMode">
11
+ Add
12
+ </button>
13
+
14
+ <button class="btn btn-default"
15
+ translate
16
+ ng-click="remove()"
17
+ ng-disabled="disableSave"
18
+ ng-show="editMode && !workingMode">
19
+ Remove
20
+ </button>
21
+
22
+ <button class="btn btn-default"
23
+ translate
24
+ ng-click="cancel()"
25
+ ng-show="editMode && !workingMode"
26
+ ng-disabled="disableCancel">
27
+ Cancel
28
+ </button>
@@ -0,0 +1,6 @@
1
+ <form role="form">
2
+ <div class="form-group" ng-show="editMode">
3
+ <input type="checkbox" ng-model="model"/>
4
+ </div>
5
+ <div alch-edit></div>
6
+ </form>
@@ -0,0 +1,8 @@
1
+ <div>
2
+
3
+ <form name="alchEditForm" role="form" novalidate>
4
+ <div class="input" ng-transclude ng-show="editMode"></div>
5
+ <div alch-edit></div>
6
+ </form>
7
+
8
+ </div>
@@ -0,0 +1,17 @@
1
+ <div class="alch-dialog alch-multiselect" ng-class="{open: editMode, closed: !editMode}">
2
+ <i class="icon-remove fr" ng-click="editMode = false" ng-show="editMode"></i>
3
+ <form ng-show="editMode" role="form">
4
+ <h5 translate>Existing Items</h5>
5
+ <input class="form-control"
6
+ ng-model="searchTerm"
7
+ type="text"
8
+ placeholder="{{ 'Filter' | translate }}"/>
9
+ <ul>
10
+ <li ng-repeat="option in options | filter:searchTerm">
11
+ <input type="checkbox" ng-model="option.selected" ng-change="toggleOption(option)"/>
12
+ <span ng-click="toggleOption(option)">{{ option.name }}</span>
13
+ </li>
14
+ </ul>
15
+ </form>
16
+ <div alch-edit></div>
17
+ </div>
@@ -0,0 +1,20 @@
1
+ <div ng-show="workingMode">
2
+ <i class="icon-spinner inline-icon icon-spin"></i>
3
+ <span translate>Working</span>
4
+ </div>
5
+
6
+ <button class="btn btn-primary"
7
+ translate
8
+ ng-click="save()"
9
+ ng-disabled="disableSave || alchEditForm.$invalid"
10
+ ng-show="editMode && !workingMode">
11
+ Save
12
+ </button>
13
+
14
+ <button class="btn btn-default"
15
+ translate
16
+ ng-click="cancel()"
17
+ ng-show="editMode && !workingMode"
18
+ ng-disabled="disableCancel">
19
+ Cancel
20
+ </button>
@@ -0,0 +1,10 @@
1
+ <form role="form">
2
+ <div class="form-group" ng-show="editMode">
3
+ <select class="form-control"
4
+ ng-model="selector"
5
+ ng-options="option.id as option.name for option in options">
6
+ <option ng-show="false" value=""></option>
7
+ </select>
8
+ </div>
9
+ <div alch-edit></div>
10
+ </form>
@@ -0,0 +1,6 @@
1
+ <form role="form">
2
+ <div class="form-group" ng-show="editMode">
3
+ <input class="form-control" ng-model="model"/>
4
+ </div>
5
+ <div alch-edit></div>
6
+ </form>
@@ -0,0 +1,6 @@
1
+ <form role="form">
2
+ <div class="form-group" ng-show="editMode">
3
+ <textarea class="form-control" rows=8 ng-model="model"></textarea>
4
+ </div>
5
+ <div alch-edit></div>
6
+ </form>
@@ -0,0 +1,18 @@
1
+ <div class="alch-edit">
2
+ <div class="value" ng-class="{ 'editable' : !readonly }" ng-click="edit()" ng-hide="editMode || workingMode">
3
+ <span class="fr">
4
+ <i class="icon-edit inline-icon" ng-hide="editMode || readonly"></i>
5
+ <i class="icon-remove inline-icon" ng-click="delete($event)" ng-show="deletable && !editMode && !readonly"></i>
6
+ </span>
7
+ <span class="editable-value">{{ displayValue }}</span>
8
+ </div>
9
+
10
+ <span ng-switch on="buttonConfig">
11
+ <div ng-switch-when="addRemove">
12
+ <div ng-include="'incubator/views/alch-edit-add-remove-cancel.html'"></div>
13
+ </div>
14
+ <div ng-switch-default>
15
+ <div ng-include="'incubator/views/alch-edit-save-cancel.html'"></div>
16
+ </div>
17
+ </span>
18
+ </div>
@@ -0,0 +1,10 @@
1
+ <ul class="flyout">
2
+ <li class="flyout-item"
3
+ ng-repeat="item in flyout"
4
+ ng-class="{ 'dropdown-highlight' : item.active }"
5
+ ng-mouseenter="setHover(item, true)"
6
+ ng-mouseleave="setHover(item, false)">
7
+
8
+ <a class="flyout-item-link" href="{{ item.url }}">{{ item.display }}</a>
9
+ </li>
10
+ </ul>
@@ -0,0 +1,10 @@
1
+ <div class="form-group">
2
+ <div class="col-sm-offset-2 col-sm-4">
3
+ <div alch-save-control
4
+ on-cancel="handleCancel()"
5
+ on-save="handleSave()"
6
+ invalid="isInvalid()"
7
+ working="working">
8
+ </div>
9
+ </div>
10
+ </div>
@@ -0,0 +1,9 @@
1
+ <div class="form-group" ng-class="{ 'has-error' : hasErrors() }">
2
+ <label for="{{ field }}" class="control-label col-sm-2">{{ label }}</label>
3
+ <div class="col-sm-5 input">
4
+ <span ng-transclude></span>
5
+ <span class="help-block" ng-show="error.messages">
6
+ <ul><li ng-repeat="message in error.messages">{{ message }}</li></ul>
7
+ </span>
8
+ </div>
9
+ </div>
@@ -0,0 +1,18 @@
1
+ <nav ng-class="menu.location">
2
+ <ul class="menu-container">
3
+
4
+ <li class="menu-item"
5
+ ng-repeat="item in menu.items"
6
+ ng-mouseenter="handleHover(item, true)"
7
+ ng-mouseleave="handleHover(item, false)">
8
+
9
+ <a href="{{ item.url }}"
10
+ ng-class="{ 'active-item' : item.active, 'menu-anchor' : item.type }"
11
+ class="menu-item-link">
12
+ <span>{{ item.display }}</span>
13
+ <i class="icon-caret-down" ng-show="item.type == 'dropdown'"></i>
14
+ </a>
15
+ <ul alch-dropdown="item.items"></ul>
16
+ </li>
17
+ </ul>
18
+ </nav>
@@ -0,0 +1,13 @@
1
+ <script type="text/ng-template">
2
+ <div class="modal-header">
3
+ <i class="icon-remove close" ng-click="cancel()"></i>
4
+ <h3>{{ modalHeader | translate }}</h3>
5
+ </div>
6
+ <div class="modal-body">
7
+ <p>{{ modalBody | translate }}</p>
8
+ </div>
9
+ <div class="modal-footer">
10
+ <button class="btn btn-danger" ng-click="ok()" translate>Remove</button>
11
+ <button class="btn btn-default" ng-click="cancel()" translate>Cancel</button>
12
+ </div>
13
+ </script>
@@ -0,0 +1,18 @@
1
+ <div class="control-group buttons">
2
+ <button class="btn btn-default"
3
+ type="button"
4
+ ng-click="handleCancel()"
5
+ ng-disabled="working"
6
+ translate>
7
+ Cancel
8
+ </button>
9
+
10
+ <button class="btn btn-primary"
11
+ ng-click="handleSave(); working = true"
12
+ ng-disabled="invalid || working">
13
+
14
+ <i class="icon-spinner icon-spin" ng-show="working"></i>
15
+ <span ng-show="working" translate>Saving...</span>
16
+ <span ng-hide="working" translate>Save</span>
17
+ </button>
18
+ </div>
@@ -0,0 +1,73 @@
1
+ <section>
2
+ <div data-block="messages" alch-alert success-messages="successMessages" error-messages="errorMessages"></div>
3
+
4
+ <h4>
5
+ <span data-block="header"></span>
6
+ </h4>
7
+
8
+ <div class="row nutupane-bar">
9
+ <div class="col-sm-3">
10
+ <div data-block="search">
11
+ <div class="input-group input-group">
12
+ <input type="text"
13
+ class="form-control"
14
+ placeholder="{{ 'Search...' | translate }}"
15
+ ng-model="detailsTable.searchTerm"
16
+ on-enter="detailsTable.search(table.searchTerm)"/>
17
+ <span class="input-group-btn">
18
+ <button ng-click="detailsTable.search(detailsTable.searchTerm)" class="btn btn-default" type="button"><i class="icon-search"></i></button>
19
+ </span>
20
+ </div>
21
+ </div>
22
+ </div>
23
+
24
+ <div class="col-sm-3">
25
+ <span class="nutupane-info" data-block="result-count" translate>Showing {{ detailsTable.rows.length }} of {{ detailsTable.resource.subtotal }} ({{ detailsTable.resource.total }} Total)</span>
26
+ </div>
27
+
28
+ <div class="col-sm-2" ng-show="detailsTable.working">
29
+ <i class="icon-spinner icon-spin"></i>
30
+ <span translate>Working...</span>
31
+ </div>
32
+
33
+ <div class="col-sm-4 fr">
34
+ <div class="fr">
35
+ <span class="nutupane-info fl" data-block="selection-summary">
36
+ <span translate>{{ detailsTable.numSelected }} Selected</span>
37
+ <span>|</span>
38
+ <a class="deselect-action"
39
+ translate
40
+ ng-class="{ 'disabled-link' : detailsTable.numSelected == 0 }"
41
+ ng-click="detailsTable.selectAllResults(false)">
42
+ Deselect All
43
+ </a>
44
+ </span>
45
+
46
+ <span class="fl">
47
+ <span data-block="actions"></span>
48
+ </span>
49
+ </div>
50
+ </div>
51
+
52
+ </div>
53
+
54
+ <div class="nutupane" alch-table="detailsTable" nutupane-table>
55
+
56
+ <div alch-container-scroll alch-infinite-scroll="detailsTable.nextPage()"
57
+ data="detailsTable.rows" skip-initial-load="!detailsTable.initialLoad">
58
+
59
+ <div class="nutupane-select-all" ng-show="detailsTable.selectAllResultsEnabled && detailsTable.allSelected() && !detailsTable.allResultsSelected">
60
+ <span translate>All {{ detailsTable.rows.length }} items on this page are selected.</span>
61
+ <a ng-click="detailsTable.selectAllResults(true)" translate>Select all {{ detailsTable.resource.subtotal }}.</a>
62
+ </div>
63
+
64
+ <div class="nutupane-select-all-selected" ng-show="detailsTable.selectAllResultsEnabled && detailsTable.allResultsSelected">
65
+ <span translate>{{ detailsTable.allResultsSelectCount() }} results are selected.</span>
66
+ <a ng-click="detailsTable.selectAllResults(false)" translate>Deselect all</a>
67
+ </div>
68
+
69
+ <div data-block="table"></div>
70
+ </div>
71
+ </div>
72
+
73
+ </section>
@@ -0,0 +1,63 @@
1
+ <section>
2
+
3
+ <div data-block="messages" alch-alert error-messages="errorMessages" success-messages="successMessages"></div>
4
+
5
+ <div class="row nutupane-bar">
6
+ <h2 class="col-sm-2">
7
+ <span data-block="header">
8
+ REPLACE ME
9
+ </span>
10
+ </h2>
11
+ </div>
12
+
13
+ <div class="row nutupane-bar">
14
+ <div class="col-sm-3">
15
+ <div class="input-group input-group">
16
+ <input type="text"
17
+ class="form-control"
18
+ placeholder="{{ 'Search...' | translate }}"
19
+ ng-model="table.searchTerm"
20
+ on-enter="table.search(table.searchTerm)"/>
21
+ <span class="input-group-btn">
22
+ <button ng-click="table.search(table.searchTerm)" class="btn btn-default" type="button"><i class="icon-search"></i></button>
23
+ </span>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="col-sm-3 nutupane-info">
28
+ <span translate>Showing {{ table.rows.length }} of {{ table.resource.subtotal }} ({{ table.resource.total }} Total)</span>
29
+ </div>
30
+
31
+ <div class="fr">
32
+ <div class="nutupane-info fl" ng-if="table.rowSelect">
33
+ <span translate>{{ table.numSelected }} Selected</span>
34
+ <span>|</span>
35
+ <a class="deselect-action"
36
+ translate
37
+ ng-class="{ 'disabled-link' : table.numSelected == 0 }"
38
+ ng-click="table.selectAllResults(false)">
39
+ Deselect All
40
+ </a>
41
+ </div>
42
+
43
+ <div class="fl">
44
+ <div data-block="actions"></div>
45
+ </div>
46
+ </div>
47
+
48
+ </div>
49
+
50
+ <div class="row nutupane" alch-table="table" nutupane-table ng-class="{'table-reduced': $root.$state.current.collapsed}">
51
+ <div class="loading-mask" ng-show="table.working" ng-class="{ 'loading-mask-collapsed': $root.$state.current.collapsed }">
52
+ <i class="icon-spinner icon-spin"></i>
53
+ <span ng-hide="$root.$state.current.collapsed">{{ "Loading..." | translate }}</span>
54
+ </div>
55
+
56
+ <div alch-container-scroll control-width="table" alch-infinite-scroll="table.nextPage()" data="table.rows">
57
+ <div ui-view="table"></div>
58
+ </div>
59
+ </div>
60
+
61
+ <span class="action-panel" ui-view="action-panel"></span>
62
+
63
+ </section>
@@ -0,0 +1,9 @@
1
+ <div class="nutupane-select-all" ng-show="table.selectAllResultsEnabled && table.allSelected() && !table.allResultsSelected">
2
+ <span translate>All {{ table.rows.length }} items on this page are selected.</span>
3
+ <a ng-click="table.selectAllResults(true)" translate>Select all {{ table.resource.subtotal }}.</a>
4
+ </div>
5
+
6
+ <div class="nutupane-select-all-selected" ng-show="table.selectAllResultsEnabled && table.allResultsSelected">
7
+ <span translate>{{ table.allResultsSelectCount() }} results are selected.</span>
8
+ <a ng-click="table.selectAllResults(false)" translate>Deselect all</a>
9
+ </div>
@@ -0,0 +1,51 @@
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
+ /**
15
+ * @ngdoc service
16
+ * @name Bastion.menu.service:menuExpander
17
+ *
18
+ * @description
19
+ * Provides a way to add additional menu items from other modules.
20
+ *
21
+ * Expects menus to be an array of objects of the form:
22
+ * {url: 'http://redhat.com', label: 'Red Hat'}
23
+ *
24
+ * @usage
25
+ * angular.module('SomeOtherModule', ['Bastion.menu']);
26
+ *
27
+ * angular.module('SomeOtherModule').run(['MenuExpander', function (menuExpander) {
28
+ * menuExpander.setMenu('system', [{'url': 'http://redhat.com', 'label': 'Red Hat'}]);
29
+ * }]);
30
+ */
31
+ angular.module('Bastion.menu').service('MenuExpander', [function () {
32
+ this.menu = {};
33
+
34
+ this.getMenu = function (menuName) {
35
+ if (this.menu.hasOwnProperty(menuName)) {
36
+ return this.menu[menuName];
37
+ } else {
38
+ return [];
39
+ }
40
+ };
41
+
42
+ this.setMenu = function (menuName, items) {
43
+ if (this.menu.hasOwnProperty(menuName)) {
44
+ this.menu[menuName] = _.uniq(_.union(this.menu[menuName], items), false, function (item) {
45
+ return item.url;
46
+ }, this);
47
+ } else {
48
+ this.menu[menuName] = items;
49
+ }
50
+ };
51
+ }]);