bastion 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +5 -6
  3. data/Rakefile +1 -1
  4. data/app/assets/javascripts/bastion/bastion-bootstrap.js +0 -4
  5. data/app/assets/javascripts/bastion/bastion.js +3 -9
  6. data/app/assets/javascripts/bastion/bastion.module.js +1 -1
  7. data/app/assets/javascripts/bastion/{incubator/alch-alert.directive.js → components/bst-alert.directive.js} +4 -4
  8. data/app/assets/javascripts/bastion/{incubator/alch-container-scroll.directive.js → components/bst-container-scroll.directive.js} +3 -3
  9. data/app/assets/javascripts/bastion/{incubator/alch-dropdown.directive.js → components/bst-dropdown.directive.js} +4 -4
  10. data/app/assets/javascripts/bastion/{incubator/alch-edit.directive.js → components/bst-edit.directive.js} +34 -34
  11. data/app/assets/javascripts/bastion/{incubator/alch-flyout.directive.js → components/bst-flyout.directive.js} +4 -4
  12. data/app/assets/javascripts/bastion/{incubator/alch-form-buttons.directive.js → components/bst-form-buttons.directive.js} +4 -4
  13. data/app/assets/javascripts/bastion/{incubator/alch-form-group.directive.js → components/bst-form-group.directive.js} +4 -4
  14. data/app/assets/javascripts/bastion/{incubator/alch-infinite-scroll.directive.js → components/bst-infinite-scroll.directive.js} +5 -5
  15. data/app/assets/javascripts/bastion/{incubator/alch-menu.directive.js → components/bst-menu.directive.js} +4 -4
  16. data/app/assets/javascripts/bastion/{incubator/alch-modal.directive.js → components/bst-modal.directive.js} +5 -5
  17. data/app/assets/javascripts/bastion/components/bst-on-enter.directive.js +41 -0
  18. data/app/assets/javascripts/bastion/{incubator/alch-save-control.directive.js → components/bst-save-control.directive.js} +4 -4
  19. data/app/assets/javascripts/bastion/{incubator/alch-table.directive.js → components/bst-table.directive.js} +31 -31
  20. data/app/assets/javascripts/bastion/components/components.module.js +27 -0
  21. data/app/assets/javascripts/bastion/{widgets → components}/current-tasks.directive.js +3 -3
  22. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/array-to-string.filter.js +2 -2
  23. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/boolean-to-yes-no.filter.js +2 -2
  24. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/capitalize.filter.js +2 -2
  25. data/app/assets/javascripts/bastion/{incubator/format/alch-format.module.js → components/formatters/components-formatters.module.js} +2 -2
  26. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/key-value-to-string.filter.js +2 -2
  27. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/unlimitedFilter.filter.js +3 -3
  28. data/app/assets/javascripts/bastion/{widgets → components}/nutupane-table.directive.js +1 -1
  29. data/app/assets/javascripts/bastion/{widgets → components}/nutupane.factory.js +2 -2
  30. data/app/assets/javascripts/bastion/{widgets → components}/page-title.directive.js +2 -2
  31. data/app/assets/javascripts/bastion/{widgets → components}/page-title.service.js +2 -2
  32. data/app/assets/javascripts/bastion/{widgets → components}/path-selector.directive.js +3 -3
  33. data/app/assets/javascripts/bastion/{incubator/views/alch-alert.html → components/views/bst-alert.html} +0 -0
  34. data/app/assets/javascripts/bastion/{incubator/views/alch-dropdown.html → components/views/bst-dropdown.html} +1 -1
  35. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-add-item.html → components/views/bst-edit-add-item.html} +0 -0
  36. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-add-remove-cancel.html → components/views/bst-edit-add-remove-cancel.html} +0 -0
  37. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-checkbox.html → components/views/bst-edit-checkbox.html} +1 -1
  38. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-custom.html → components/views/bst-edit-custom.html} +2 -2
  39. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-multiselect.html → components/views/bst-edit-multiselect.html} +2 -2
  40. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-save-cancel.html → components/views/bst-edit-save-cancel.html} +1 -1
  41. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-select.html → components/views/bst-edit-select.html} +1 -1
  42. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-text.html → components/views/bst-edit-text.html} +1 -1
  43. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-textarea.html → components/views/bst-edit-textarea.html} +1 -1
  44. data/app/assets/javascripts/bastion/{incubator/views/alch-edit.html → components/views/bst-edit.html} +3 -3
  45. data/app/assets/javascripts/bastion/{incubator/views/alch-flyout.html → components/views/bst-flyout.html} +0 -0
  46. data/app/assets/javascripts/bastion/{incubator/views/alch-form-buttons.html → components/views/bst-form-buttons.html} +1 -1
  47. data/app/assets/javascripts/bastion/{incubator/views/alch-form-group.html → components/views/bst-form-group.html} +0 -0
  48. data/app/assets/javascripts/bastion/{incubator/views/alch-menu.html → components/views/bst-menu.html} +1 -1
  49. data/app/assets/javascripts/bastion/{incubator/views/alch-modal-remove.html → components/views/bst-modal.html} +0 -0
  50. data/app/assets/javascripts/bastion/{incubator/views/alch-save-control.html → components/views/bst-save-control.html} +0 -0
  51. data/app/assets/javascripts/bastion/{widgets → components}/views/current-tasks.html +0 -0
  52. data/app/assets/javascripts/bastion/{widgets → components}/views/path-selector.html +0 -0
  53. data/app/assets/javascripts/bastion/i18n/katello.pot +18 -18
  54. data/app/assets/javascripts/bastion/layouts/details-nutupane.html +4 -4
  55. data/app/assets/javascripts/bastion/layouts/nutupane.html +4 -4
  56. data/app/assets/javascripts/bastion/menu/menu.module.js +1 -3
  57. data/app/views/bastion/layouts/application.html.erb +5 -1
  58. data/bower.json +0 -5
  59. data/grunt/karma.js +4 -5
  60. data/lib/bastion/version.rb +1 -1
  61. data/test/{incubator/alch-alert.directive.test.js → components/bst-alert.directive.test.js} +3 -3
  62. data/test/{incubator/alch-container-scroll.directive.test.js → components/bst-container-scroll.directive.test.js} +3 -3
  63. data/test/{incubator/alch-dropdown.directive.test.js → components/bst-dropdown.directive.test.js} +5 -5
  64. data/test/{incubator/alch-edit.directive.test.js → components/bst-edit.directive.test.js} +29 -29
  65. data/test/{incubator/alch-flyout.directive.test.js → components/bst-flyout.directive.test.js} +3 -3
  66. data/test/{incubator/alch-form-buttons.directive.test.js → components/bst-form-buttons.directive.test.js} +5 -5
  67. data/test/{incubator/alch-form-group.directive.test.js → components/bst-form-group.directive.test.js} +4 -4
  68. data/test/{incubator/alch-infinite-scroll.directive.test.js → components/bst-infinite-scroll.directive.test.js} +3 -3
  69. data/test/{incubator/alch-menu.directive.test.js → components/bst-menu.directive.test.js} +6 -6
  70. data/test/{incubator/alch-modal.directive.test.js → components/bst-modal.directive.test.js} +3 -3
  71. data/test/{incubator/nutupane-table.directive.test.js → components/bst-nutupane-table.directive.test.js} +1 -1
  72. data/test/{incubator/alch-table.directive.test.js → components/bst-table.directive.test.js} +21 -21
  73. data/test/{incubator/format → components/formatters}/array-to-string.filter.test.js +1 -1
  74. data/test/{incubator/format → components/formatters}/boolean-to-yes-no.filter.test.js +1 -1
  75. data/test/{incubator/format → components/formatters}/capitalize.filter.test.js +1 -1
  76. data/test/{incubator/format → components/formatters}/key-value-to-string.filter.test.js +1 -1
  77. data/test/{incubator/format → components/formatters}/unlimited-filter.filter.test.js +1 -1
  78. data/test/{incubator → components}/nutupane.factory.test.js +1 -1
  79. data/test/{widgets → components}/page-title.directive.test.js +1 -1
  80. data/test/{widgets → components}/page-title.service.test.js +1 -1
  81. data/test/{widgets → components}/path-selector.directive.test.js +2 -2
  82. metadata +105 -113
  83. data/app/assets/javascripts/bastion/incubator/stylesheets/alch-edit.scss +0 -34
  84. data/app/assets/javascripts/bastion/incubator/stylesheets/header.scss +0 -207
  85. data/app/assets/javascripts/bastion/widgets/widgets.module.js +0 -24
  86. data/vendor/assets/javascripts/bastion/alchemy/alchemy.js +0 -20
  87. data/vendor/assets/stylesheets/bastion/alchemy/_colors.scss +0 -99
  88. data/vendor/assets/stylesheets/bastion/alchemy/_media_object.scss +0 -22
  89. data/vendor/assets/stylesheets/bastion/alchemy/_mixins.scss +0 -24
  90. data/vendor/assets/stylesheets/bastion/alchemy/_normalize.scss +0 -396
  91. data/vendor/assets/stylesheets/bastion/alchemy/_vars.scss +0 -31
  92. data/vendor/assets/stylesheets/bastion/alchemy/alchemy.scss +0 -8
@@ -19,8 +19,6 @@
19
19
  * Module for menu related functionality.
20
20
  */
21
21
  angular.module('Bastion.menu', [
22
- 'alchemy',
23
- 'alch-templates',
24
22
  'Bastion',
25
- 'Bastion.widgets'
23
+ 'Bastion.components'
26
24
  ]);
@@ -1,6 +1,10 @@
1
1
  <% content_for(:stylesheets) do %>
2
2
  <%= stylesheet_link_tag "bastion/bastion" %>
3
- <%= yield :stylesheets %>
3
+ <% Bastion.plugins.each do |name, plugin| %>
4
+ <% if plugin[:stylesheet] %>
5
+ <%= stylesheet_link_tag(plugin[:stylesheet]) %>
6
+ <% end %>
7
+ <% end %>
4
8
  <% end %>
5
9
 
6
10
  <% content_for(:content) do %>
data/bower.json CHANGED
@@ -14,7 +14,6 @@
14
14
  "angular-gettext": "=1.0.0",
15
15
  "angular-ui-router": "=0.2.10",
16
16
  "angular-blocks": "~>0.1.8",
17
- "alchemy": ">=0.0.1",
18
17
  "underscore": "=1.5.2",
19
18
  "ngUpload": "~0.5.5",
20
19
  "bootstrap": "~3.0.1",
@@ -71,10 +70,6 @@
71
70
  "angular-uuid4": {
72
71
  "javascripts/bastion": "angular-uuid4.js"
73
72
  },
74
- "alchemy": {
75
- "javascripts/bastion": "alchemy.js",
76
- "stylesheets/bastion": "*.scss"
77
- },
78
73
  "underscore": {
79
74
  "javascripts/bastion": "underscore.js"
80
75
  },
data/grunt/karma.js CHANGED
@@ -24,7 +24,6 @@ module.exports = {
24
24
  basePath + 'vendor/assets/javascripts/bastion/angular-animate/angular-animate.js',
25
25
  basePath + 'vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap.js',
26
26
  basePath + 'vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap-tpls.js',
27
- basePath + 'vendor/assets/javascripts/bastion/alchemy/alchemy.js',
28
27
  basePath + 'vendor/assets/javascripts/bastion/underscore/underscore.js',
29
28
  basePath + 'vendor/assets/javascripts/bastion/angular-ui-router/angular-ui-router.js',
30
29
  basePath + 'vendor/assets/javascripts/bastion/angular-gettext/angular-gettext.js',
@@ -36,16 +35,16 @@ module.exports = {
36
35
  basePath + 'app/assets/javascripts/bastion/bastion-resource.factory.js',
37
36
  basePath + 'app/assets/javascripts/bastion/i18n/i18n.module.js',
38
37
  basePath + 'app/assets/javascripts/bastion/i18n/*.js',
39
- basePath + 'app/assets/javascripts/bastion/widgets/widgets.module.js',
40
- basePath + 'app/assets/javascripts/bastion/widgets/*.js',
41
38
  basePath + 'app/assets/javascripts/bastion/auth/auth.module.js',
42
39
  basePath + 'app/assets/javascripts/bastion/auth/*.js',
43
40
  basePath + 'app/assets/javascripts/bastion/utils/utils.module.js',
44
41
  basePath + 'app/assets/javascripts/bastion/utils/*.js',
45
42
  basePath + 'app/assets/javascripts/bastion/menu/menu.module.js',
46
43
  basePath + 'app/assets/javascripts/bastion/menu/*.js',
47
- basePath + 'app/assets/javascripts/bastion/incubator/*.js',
48
- basePath + 'app/assets/javascripts/bastion/incubator/**/*.js',
44
+ basePath + 'app/assets/javascripts/bastion/components/components.module.js',
45
+ basePath + 'app/assets/javascripts/bastion/components/*.js',
46
+ basePath + 'app/assets/javascripts/bastion/components/formatters/components-formatters.module.js',
47
+ basePath + 'app/assets/javascripts/bastion/components/formatters/*.js',
49
48
 
50
49
  basePath + 'test/bastion/test-constants.js',
51
50
  basePath + 'app/assets/javascripts/bastion/**/*.html',
@@ -1,3 +1,3 @@
1
1
  module Bastion
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -11,13 +11,13 @@
11
11
  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
12
  */
13
13
 
14
- describe('Directive: alchAlert', function() {
14
+ describe('Directive: bstAlert', function() {
15
15
  var scope,
16
16
  compile,
17
17
  element,
18
18
  elementScope;
19
19
 
20
- beforeEach(module('alchemy', 'incubator/views/alch-alert.html'));
20
+ beforeEach(module('Bastion.components', 'components/views/bst-alert.html'));
21
21
 
22
22
  beforeEach(inject(function(_$compile_, _$rootScope_) {
23
23
  compile = _$compile_;
@@ -25,7 +25,7 @@ describe('Directive: alchAlert', function() {
25
25
  }));
26
26
 
27
27
  beforeEach(function() {
28
- element = angular.element('<div alch-alert ' +
28
+ element = angular.element('<div bst-alert ' +
29
29
  'success-messages="successMessages" ' +
30
30
  'info-messages="infoMessages" ' +
31
31
  'warning-messages="warningMessages" ' +
@@ -12,13 +12,13 @@
12
12
  */
13
13
 
14
14
 
15
- describe('Directive: alchContainerScroll', function() {
15
+ describe('Directive: bstContainerScroll', function() {
16
16
  var scope,
17
17
  compile,
18
18
  window,
19
19
  tableElement;
20
20
 
21
- beforeEach(module('alchemy'));
21
+ beforeEach(module('Bastion.components'));
22
22
 
23
23
  beforeEach(inject(function(_$compile_, _$rootScope_, _$window_) {
24
24
  compile = _$compile_;
@@ -28,7 +28,7 @@ describe('Directive: alchContainerScroll', function() {
28
28
 
29
29
  beforeEach(function() {
30
30
  tableElement = angular.element(
31
- '<div alch-container-scroll control-width="table">' +
31
+ '<div bst-container-scroll control-width="table">' +
32
32
  '<table>' +
33
33
  '<thead>' +
34
34
  '<tr><th>Column 1</th></tr>' +
@@ -11,7 +11,7 @@
11
11
  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
12
  */
13
13
 
14
- describe('Directive: alchDropdown', function() {
14
+ describe('Directive: bstDropdown', function() {
15
15
  var scope,
16
16
  compile,
17
17
  testItems,
@@ -19,9 +19,9 @@ describe('Directive: alchDropdown', function() {
19
19
  elementScope;
20
20
 
21
21
  beforeEach(module(
22
- 'alchemy',
23
- 'incubator/views/alch-dropdown.html',
24
- 'incubator/views/alch-flyout.html'
22
+ 'Bastion.components',
23
+ 'components/views/bst-dropdown.html',
24
+ 'components/views/bst-flyout.html'
25
25
  ));
26
26
 
27
27
  beforeEach(inject(function(_$compile_, _$rootScope_) {
@@ -40,7 +40,7 @@ describe('Directive: alchDropdown', function() {
40
40
  ];
41
41
  scope.items = testItems;
42
42
 
43
- element = angular.element('<ul alch-dropdown="items"></ul>');
43
+ element = angular.element('<ul bst-dropdown="items"></ul>');
44
44
  compile(element)(scope);
45
45
  scope.$digest();
46
46
 
@@ -12,22 +12,22 @@
12
12
  */
13
13
 
14
14
 
15
- describe('Directive: alchEdit', function() {
15
+ describe('Directive: bstEdit', function() {
16
16
  var scope,
17
17
  compile,
18
18
  testItem;
19
19
 
20
- beforeEach(module('alchemy',
21
- 'alchemy.format',
22
- 'incubator/views/alch-edit.html',
23
- 'incubator/views/alch-edit-text.html',
24
- 'incubator/views/alch-edit-textarea.html',
25
- 'incubator/views/alch-edit-select.html',
26
- 'incubator/views/alch-edit-add-item.html',
27
- 'incubator/views/alch-edit-checkbox.html',
28
- 'incubator/views/alch-edit-add-remove-cancel.html',
29
- 'incubator/views/alch-edit-multiselect.html',
30
- 'incubator/views/alch-edit-save-cancel.html'));
20
+ beforeEach(module('Bastion.components',
21
+ 'Bastion.components.formatters',
22
+ 'components/views/bst-edit.html',
23
+ 'components/views/bst-edit-text.html',
24
+ 'components/views/bst-edit-textarea.html',
25
+ 'components/views/bst-edit-select.html',
26
+ 'components/views/bst-edit-add-item.html',
27
+ 'components/views/bst-edit-checkbox.html',
28
+ 'components/views/bst-edit-add-remove-cancel.html',
29
+ 'components/views/bst-edit-multiselect.html',
30
+ 'components/views/bst-edit-save-cancel.html'));
31
31
 
32
32
  beforeEach(module(function($provide) {
33
33
  testItem = {
@@ -56,22 +56,22 @@ describe('Directive: alchEdit', function() {
56
56
  scope = _$rootScope_;
57
57
  }));
58
58
 
59
- describe('alchEdit controller', function() {
59
+ describe('bstEdit controller', function() {
60
60
  var element,
61
61
  editController;
62
62
 
63
63
  beforeEach(inject(function($controller) {
64
- editController = $controller('AlchEditController', {$scope: scope});
64
+ editController = $controller('BstEditController', {$scope: scope});
65
65
  }));
66
66
 
67
67
  });
68
68
 
69
- describe('alchEdit directive', function() {
69
+ describe('bstEdit directive', function() {
70
70
  var editableElement;
71
71
 
72
72
  beforeEach(function() {
73
73
  editableElement = angular.element(
74
- '<span alch-edit-text="item.name" on-save="item.save()" on-delete="item.delete()" ' +
74
+ '<span bst-edit-text="item.name" on-save="item.save()" on-delete="item.delete()" ' +
75
75
  'on-cancel="item.revert()"></span>');
76
76
 
77
77
  scope.item = testItem;
@@ -143,12 +143,12 @@ describe('Directive: alchEdit', function() {
143
143
  });
144
144
  });
145
145
 
146
- describe('alchEditText directive', function() {
146
+ describe('bstEditText directive', function() {
147
147
  var editableElement;
148
148
 
149
149
  beforeEach(function() {
150
150
  editableElement = angular.element(
151
- '<span alch-edit-text="item.name"></span>');
151
+ '<span bst-edit-text="item.name"></span>');
152
152
 
153
153
  scope.item = testItem;
154
154
 
@@ -166,12 +166,12 @@ describe('Directive: alchEdit', function() {
166
166
 
167
167
  });
168
168
 
169
- describe('alchEditCheckbox directive', function() {
169
+ describe('bstEditCheckbox directive', function() {
170
170
  var editableElement;
171
171
 
172
172
  beforeEach(function() {
173
173
  editableElement = angular.element(
174
- '<span alch-edit-checkbox="item.name"></span>');
174
+ '<span bst-edit-checkbox="item.name"></span>');
175
175
 
176
176
  scope.item = testItem;
177
177
 
@@ -189,12 +189,12 @@ describe('Directive: alchEdit', function() {
189
189
 
190
190
  });
191
191
 
192
- describe('alchEditTextarea directive', function() {
192
+ describe('bstEditTextarea directive', function() {
193
193
  var editableElement;
194
194
 
195
195
  beforeEach(function() {
196
196
  editableElement = angular.element(
197
- '<span alch-edit-textarea="item.name"></span>');
197
+ '<span bst-edit-textarea="item.name"></span>');
198
198
 
199
199
  scope.item = testItem;
200
200
  scope.tacoOptions = ['baja shrimp', 'barbacoa', 'carnitas', 'spicy tinga chicken'];
@@ -213,14 +213,14 @@ describe('Directive: alchEdit', function() {
213
213
 
214
214
  });
215
215
 
216
- describe('alchEditSelect directive', function() {
216
+ describe('bstEditSelect directive', function() {
217
217
  var editableElement;
218
218
 
219
219
  beforeEach(function() {
220
220
  scope.tacoOptions = [{id: 1, name: 'Carnitas'}, {id: 2, name: 'Tilapia'}];
221
221
 
222
222
  editableElement = angular.element(
223
- '<span alch-edit-select="item.taco" options="tacoOptions" ></span>'
223
+ '<span bst-edit-select="item.taco" options="tacoOptions" ></span>'
224
224
  );
225
225
 
226
226
  scope.item = testItem;
@@ -245,14 +245,14 @@ describe('Directive: alchEdit', function() {
245
245
 
246
246
  });
247
247
 
248
- describe('alchEditMultiselect directive', function() {
248
+ describe('bstEditMultiselect directive', function() {
249
249
  var editableElement,
250
250
  directiveScope,
251
251
  multiSelectController;
252
252
 
253
253
  beforeEach(function() {
254
254
  editableElement = angular.element(
255
- '<span alch-edit-multiselect="tacos" options="tacoOptions"></span>');
255
+ '<span bst-edit-multiselect="tacos" options="tacoOptions"></span>');
256
256
 
257
257
  scope.tacos = [{id: 2, name: 'barbacoa'}, {id: 3, name: 'carnitas'}];
258
258
  scope.tacoOptions = [{id: 1, name: 'baja shrimp'}, {id: 2, name: 'barbacoa'},
@@ -264,7 +264,7 @@ describe('Directive: alchEdit', function() {
264
264
  });
265
265
 
266
266
  beforeEach(inject(function($controller) {
267
- multiSelectController = $controller('AlchEditMultiselectController', {$scope: directiveScope});
267
+ multiSelectController = $controller('BstEditMultiselectController', {$scope: directiveScope});
268
268
  }));
269
269
 
270
270
  it("should display a multi select on editable click", function() {
@@ -294,12 +294,12 @@ describe('Directive: alchEdit', function() {
294
294
 
295
295
  });
296
296
 
297
- describe('alchEditAddItem directive', function() {
297
+ describe('bstEditAddItem directive', function() {
298
298
  var editableElement;
299
299
 
300
300
  beforeEach(function() {
301
301
  editableElement = angular.element(
302
- '<span alch-edit-add-item="item.name" on-add="item.add()"></span>');
302
+ '<span bst-edit-add-item="item.name" on-add="item.add()"></span>');
303
303
 
304
304
  scope.item = testItem;
305
305
 
@@ -11,14 +11,14 @@
11
11
  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
12
  */
13
13
 
14
- describe('Directive: alchFlyout', function() {
14
+ describe('Directive: bstFlyout', function() {
15
15
  var scope,
16
16
  compile,
17
17
  testItems,
18
18
  element,
19
19
  elementScope;
20
20
 
21
- beforeEach(module('alchemy', 'incubator/views/alch-flyout.html'));
21
+ beforeEach(module('Bastion.components', 'components/views/bst-flyout.html'));
22
22
 
23
23
  beforeEach(inject(function(_$compile_, _$rootScope_) {
24
24
  compile = _$compile_;
@@ -32,7 +32,7 @@ describe('Directive: alchFlyout', function() {
32
32
  ];
33
33
  scope.items = testItems;
34
34
 
35
- element = angular.element('<ul alch-flyout="items"></ul>');
35
+ element = angular.element('<ul bst-flyout="items"></ul>');
36
36
  compile(element)(scope);
37
37
  scope.$digest();
38
38
 
@@ -12,13 +12,13 @@
12
12
  */
13
13
 
14
14
 
15
- describe('Directive: alchFormButtons', function() {
15
+ describe('Directive: bstFormButtons', function() {
16
16
  var $scope, $compile, element;
17
17
 
18
18
  beforeEach(module(
19
- 'alchemy',
20
- 'incubator/views/alch-save-control.html',
21
- 'incubator/views/alch-form-buttons.html'
19
+ 'Bastion.components',
20
+ 'components/views/bst-save-control.html',
21
+ 'components/views/bst-form-buttons.html'
22
22
  ));
23
23
 
24
24
  beforeEach(inject(function(_$compile_, _$rootScope_) {
@@ -29,7 +29,7 @@ describe('Directive: alchFormButtons', function() {
29
29
  beforeEach(function() {
30
30
  element = '<form name="testForm">' +
31
31
  '<input name="name" ng-model="fake.name" required>' +
32
- '<div alch-form-buttons ' +
32
+ '<div bst-form-buttons ' +
33
33
  'on-cancel="transitionTo(\'product.index\')" ' +
34
34
  'on-save="save(product)" ' +
35
35
  'working="working"> ' +
@@ -12,12 +12,12 @@
12
12
  */
13
13
 
14
14
 
15
- describe('Directive: alchFormGroup', function() {
15
+ describe('Directive: bstFormGroup', function() {
16
16
  var $scope, $compile, element;
17
17
 
18
18
  beforeEach(module(
19
- 'alchemy',
20
- 'incubator/views/alch-form-group.html'
19
+ 'Bastion.components',
20
+ 'components/views/bst-form-group.html'
21
21
  ));
22
22
 
23
23
  beforeEach(inject(function(_$compile_, _$rootScope_) {
@@ -27,7 +27,7 @@ describe('Directive: alchFormGroup', function() {
27
27
 
28
28
  beforeEach(function() {
29
29
  element = '<form name="testForm">' +
30
- '<div alch-form-group label="Name" required>' +
30
+ '<div bst-form-group label="Name" required>' +
31
31
  '<input id="name" ' +
32
32
  'name="name" ' +
33
33
  'ng-model="fake.name" ' +
@@ -10,10 +10,10 @@
10
10
  * have received a copy of GPLv2 along with this software; if not, see
11
11
  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
12
  */
13
- describe('Directive: alchInfiniteScroll', function () {
13
+ describe('Directive: bstInfiniteScroll', function () {
14
14
  var $scope, $compile, $q, element;
15
15
 
16
- beforeEach(module('alchemy'));
16
+ beforeEach(module('Bastion.components'));
17
17
 
18
18
  beforeEach(inject(function ($rootScope, _$compile_, _$q_){
19
19
  $scope = $rootScope;
@@ -29,7 +29,7 @@ describe('Directive: alchInfiniteScroll', function () {
29
29
  }
30
30
  };
31
31
  $scope.data = [];
32
- element = angular.element('<div data="data" alch-infinite-scroll="scrollHandler.doIt()" style=" height: 100px; position: absolute; overflow-y: auto;"></div>');
32
+ element = angular.element('<div data="data" bst-infinite-scroll="scrollHandler.doIt()" style=" height: 100px; position: absolute; overflow-y: auto;"></div>');
33
33
  $('body').append(element);
34
34
  }));
35
35
 
@@ -11,7 +11,7 @@
11
11
  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
12
  */
13
13
 
14
- describe('Directive: alchMenu', function() {
14
+ describe('Directive: bstMenu', function() {
15
15
  var scope,
16
16
  compile,
17
17
  window,
@@ -20,10 +20,10 @@ describe('Directive: alchMenu', function() {
20
20
  elementScope;
21
21
 
22
22
  beforeEach(module(
23
- 'alchemy',
24
- 'incubator/views/alch-menu.html',
25
- 'incubator/views/alch-dropdown.html',
26
- 'incubator/views/alch-flyout.html'
23
+ 'Bastion.components',
24
+ 'components/views/bst-menu.html',
25
+ 'components/views/bst-dropdown.html',
26
+ 'components/views/bst-flyout.html'
27
27
  ));
28
28
 
29
29
  beforeEach(inject(function(_$compile_, _$rootScope_, $window) {
@@ -43,7 +43,7 @@ describe('Directive: alchMenu', function() {
43
43
  ]};
44
44
  scope.items = testMenu;
45
45
 
46
- element = angular.element('<nav alch-menu="items"></nav>');
46
+ element = angular.element('<nav bst-menu="items"></nav>');
47
47
  compile(element)(scope);
48
48
  scope.$digest();
49
49