Permalink
Browse files

Merge branch 'master' of github.com:/rainjs/rainjs

  • Loading branch information...
2 parents dc2e9e8 + eec2c60 commit 6322948d3dd948750e5c12c055e74c1b9b5e84de @mocanu-razvan mocanu-razvan committed May 14, 2012
Showing with 4,633 additions and 584 deletions.
  1. +65 −1 Jakefile
  2. +492 −0 LICENSE
  3. +0 −24 License
  4. +25 −0 bin/lib/components/nodejs.js
  5. +25 −0 bin/lib/utils.js
  6. +35 −10 bin/rain.js
  7. +25 −0 components/authorization_example/client/js/default.js
  8. +25 −0 components/authorization_example/client/js/index.js
  9. +27 −0 components/authorization_example/server/authorization.js
  10. +26 −26 components/authorization_example/server/controller/index.js
  11. +25 −0 components/authorization_example/server/data.js
  12. +25 −0 components/core/client/js/client_rendering.js
  13. +25 −0 components/core/client/js/client_storage.js
  14. +25 −0 components/core/client/js/context.js
  15. +36 −5 components/core/client/js/dialog.js
  16. +26 −1 components/core/client/js/lib/event_emitter.js
  17. +25 −0 components/core/client/js/lib/rain_error.js
  18. +25 −0 components/core/client/js/lib/require-locale.js
  19. +27 −2 components/core/client/js/lib/util.js
  20. +25 −0 components/core/client/js/messaging/intents.js
  21. +25 −8 components/core/client/js/messaging/observer.js
  22. +25 −0 components/core/client/js/messaging/sockets.js
  23. +25 −0 components/core/client/js/raintime.js
  24. +25 −0 components/core/client/js/translation.js
  25. +25 −0 components/core/client/js/translation_bootstrap.js
  26. +25 −0 components/error/client/js/index.js
  27. +0 −36 components/error/server/controller/index.js
  28. +25 −0 components/error/server/data.js
  29. +25 −0 components/example_list/client/js/client_side_text_localization.js
  30. +25 −0 components/example_list/client/js/data_layer.js
  31. +25 −0 components/example_list/client/js/event_emitter.js
  32. +25 −0 components/example_list/client/js/image_localization.js
  33. +25 −0 components/example_list/client/js/index.js
  34. +25 −0 components/example_list/client/js/intent_security.js
  35. +25 −0 components/example_list/client/js/text_localization.js
  36. +0 −24 components/example_list/server/authorization.js
  37. +25 −0 components/example_list/server/controller/index.js
  38. +27 −27 components/example_list/server/controller/text_localization.js
  39. +25 −0 components/example_list/server/data.js
  40. +25 −0 components/example_list/server/lib/map.js
  41. +25 −0 components/example_list/server/lib/map_countries.js
  42. +26 −1 components/example_list/server/lib/map_options.js
  43. +25 −0 components/external_theming/client/js/button.js
  44. +25 −0 components/external_theming/client/js/index.js
  45. +0 −29 components/external_theming/server/authorization.js
  46. +0 −36 components/external_theming/server/controller/index.js
  47. +25 −0 components/external_theming/server/data.js
  48. +25 −0 components/placeholder/client/js/index.js
  49. +0 −36 components/placeholder/server/controller/serverside.js
  50. +24 −0 lib/authorization.js
  51. +25 −0 lib/component_registry.js
  52. +25 −0 lib/configuration.js
  53. +25 −0 lib/data_layer.js
  54. +25 −0 lib/environment.js
  55. +25 −0 lib/error_handler.js
  56. +25 −0 lib/globals.js
  57. +25 −0 lib/handlebars.js
  58. +25 −0 lib/handlebars/component.js
  59. +25 −0 lib/handlebars/css.js
  60. +25 −0 lib/handlebars/translation.js
  61. +25 −0 lib/handlebars/translation_plural.js
  62. +25 −0 lib/handlebars/url.js
  63. +25 −0 lib/intent_registry.js
  64. +25 −0 lib/logger.js
  65. +25 −0 lib/module.js
  66. +25 −0 lib/po_utils.js
  67. +25 −0 lib/proxy_store.js
  68. +25 −0 lib/rain_error.js
  69. +25 −0 lib/registry/controller_path.js
  70. +25 −0 lib/registry/dynamic_conditions.js
  71. +25 −0 lib/registry/intents.js
  72. +25 −0 lib/registry/load_translation_files.js
  73. +25 −0 lib/registry/precompile_less.js
  74. +25 −0 lib/registry/precompile_templates.js
  75. +25 −0 lib/registry/websockets.js
  76. +25 −0 lib/render_utils.js
  77. +25 −0 lib/renderer.js
  78. +25 −0 lib/router.js
  79. +25 −0 lib/router_utils.js
  80. +25 −0 lib/routes/controller.js
  81. +25 −0 lib/routes/css.js
  82. +25 −0 lib/routes/javascript.js
  83. +25 −0 lib/routes/locale.js
  84. +25 −0 lib/routes/resource.js
  85. +25 −0 lib/routes/view.js
  86. +25 −0 lib/server.js
  87. +25 −0 lib/socket_registry.js
  88. +25 −0 lib/translation.js
  89. +25 −0 lib/util.js
  90. +25 −0 lib/watcher.js
  91. +25 −0 tests/client/lib/bootstrap.js
  92. +25 −0 tests/client/lib/jasmine-rain/jasmine_rain.js
  93. +25 −0 tests/client/tests/client_renderer.specx.js
  94. +28 −3 tests/client/tests/require_json.spec.js
  95. +26 −1 tests/client/tests/translation.spec.js
  96. +26 −1 tests/client/tests/translation_bootstrap.spec.js
  97. +25 −0 tests/server/fixtures/components/button/client/js/index.js
  98. +25 −0 tests/server/fixtures/components/button/server/authorization.js
  99. +0 −36 tests/server/fixtures/components/button/server/controller/index.js
  100. +25 −0 tests/server/fixtures/components/button/server/data.js
  101. +25 −0 tests/server/fixtures/components/button/server/websockets/example_socket.js
  102. +25 −0 tests/server/fixtures/components/button_2_0/client/js/index.js
  103. +25 −0 tests/server/fixtures/components/button_2_0/server/authorization.js
  104. +0 −36 tests/server/fixtures/components/button_2_0/server/controller/index.js
  105. +25 −0 tests/server/fixtures/components/button_2_0/server/data.js
  106. +25 −0 tests/server/fixtures/components/button_2_0/server/websockets/example_socket.js
  107. +25 −0 tests/server/fixtures/components/error/client/js/400.js
  108. +25 −0 tests/server/fixtures/components/error/client/js/401.js
  109. +25 −0 tests/server/fixtures/components/error/client/js/403.js
  110. +25 −0 tests/server/fixtures/components/error/client/js/404.js
  111. +25 −0 tests/server/fixtures/components/error/client/js/408.js
  112. +25 −0 tests/server/fixtures/components/error/client/js/500.js
  113. +25 −0 tests/server/fixtures/components/error/client/js/index.js
  114. +0 −36 tests/server/fixtures/components/error/server/controller/index.js
  115. +25 −0 tests/server/fixtures/components/error/server/data.js
  116. +25 −0 tests/server/fixtures/components/example/client/js/index.js
  117. +25 −0 tests/server/fixtures/components/example/client/js/level2.js
  118. +25 −0 tests/server/fixtures/components/example/client/js/level3.js
  119. +25 −0 tests/server/fixtures/components/example/client/js/with_customer_error.js
  120. +27 −0 tests/server/fixtures/components/example/server/authorization.js
  121. +32 −23 tests/server/fixtures/components/example/server/controller/index.js
  122. +25 −0 tests/server/fixtures/components/example/server/data.js
  123. +25 −0 tests/server/fixtures/components/example/server/websockets/example_socket.js
  124. +25 −0 tests/server/fixtures/components/example_1_3/client/js/index.js
  125. +0 −36 tests/server/fixtures/components/example_1_3/server/controller/index.js
  126. +25 −0 tests/server/fixtures/components/example_1_3/server/data.js
  127. +25 −0 tests/server/fixtures/components/example_1_3/server/websockets/example_socket.js
  128. +25 −0 tests/server/fixtures/components/example_1_3_5/client/js/index.js
  129. +27 −0 tests/server/fixtures/components/example_1_3_5/server/authorization.js
  130. +0 −36 tests/server/fixtures/components/example_1_3_5/server/controller/index.js
  131. +25 −0 tests/server/fixtures/components/example_1_3_5/server/data.js
  132. +25 −0 tests/server/fixtures/components/example_1_3_5/server/websockets/example_socket.js
  133. +25 −0 tests/server/fixtures/components/example_2_0/client/js/index.js
  134. +27 −0 tests/server/fixtures/components/example_2_0/server/authorization.js
  135. +0 −36 tests/server/fixtures/components/example_2_0/server/controller/index.js
  136. +25 −0 tests/server/fixtures/components/example_2_0/server/data.js
  137. +25 −0 tests/server/fixtures/components/example_2_0/server/websockets/example_socket.js
  138. +25 −0 tests/server/fixtures/components/example_4_5_2/client/js/index.js
  139. +27 −0 tests/server/fixtures/components/example_4_5_2/server/authorization.js
  140. +0 −36 tests/server/fixtures/components/example_4_5_2/server/controller/index.js
  141. +25 −0 tests/server/fixtures/components/example_4_5_2/server/data.js
  142. +25 −0 tests/server/fixtures/components/example_4_5_2/server/websockets/example_socket.js
  143. +25 −0 tests/server/fixtures/components/placeholder/client/js/index.js
  144. +0 −36 tests/server/fixtures/components/placeholder/server/controller/serverside.js
  145. +25 −0 tests/server/fixtures/modules/lib1.js
  146. +25 −0 tests/server/fixtures/modules/lib2.js
  147. +25 −0 tests/server/lib/http_mock.js
  148. +25 −0 tests/server/lib/jasmine_rain.js
  149. +25 −0 tests/server/lib/mock_store.js
  150. +25 −0 tests/server/rain_mocker.js
  151. +25 −0 tests/server/tests/authorization.spec.js
  152. +25 −0 tests/server/tests/configuration.spec.js
  153. +25 −0 tests/server/tests/data_layer.spec.js
  154. +25 −0 tests/server/tests/error_handler.spec.js
  155. +25 −0 tests/server/tests/get_latest_version.spec.js
  156. +25 −0 tests/server/tests/handlebars.spec.js
  157. +25 −0 tests/server/tests/handlebars/component_helper.spec.js
  158. +25 −0 tests/server/tests/handlebars/css_helper.spec.js
  159. +25 −0 tests/server/tests/handlebars/url_helper.spec.js
  160. +25 −0 tests/server/tests/intent_registry.spec.js
  161. +25 −0 tests/server/tests/module.spec.js
  162. +25 −0 tests/server/tests/po_utils.spec.js
  163. +25 −0 tests/server/tests/proxy_store.spec.js
  164. +25 −0 tests/server/tests/registry/controller_path.spec.js
  165. +25 −0 tests/server/tests/registry/dynamic_conditions.spec.js
  166. +25 −0 tests/server/tests/registry/intents.spec.js
  167. +25 −0 tests/server/tests/registry/precompile_templates.spec.js
  168. +25 −0 tests/server/tests/registry/websockets.spec.js
  169. +25 −0 tests/server/tests/renderer.spec.js
  170. +25 −0 tests/server/tests/router.spec.js
  171. +25 −0 tests/server/tests/router_utils.spec.js
  172. +25 −0 tests/server/tests/routes/controller.spec.js
  173. +25 −0 tests/server/tests/routes/css.spec.js
  174. +26 −1 tests/server/tests/routes/locale.spec.js
  175. +25 −0 tests/server/tests/routes/view.spec.js
  176. +25 −0 tests/server/tests/text_localization.spec.js
  177. +26 −1 tests/server/tests/util.spec.js
View
@@ -1,3 +1,28 @@
+// Copyright © 2012 rainjs
+//
+// All rights reserved
+//
+// Redistribution and use in source and binary forms, with or without modification, are permitted
+// provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice, this list of
+// conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
+// conditions and the following disclaimer in the documentation and/or other materials
+// provided with the distribution.
+// 3. Neither the name of The author nor the names of its contributors may be used to endorse or
+// promote products derived from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
"use strict";
var child = require('child_process');
@@ -201,7 +226,7 @@ namespace('test', function () {
var useRequireJs = false;
console.log('\nRunning server side tests...');
-
+
if (arguments.length == 1) {
match = arguments[0];
} else if (arguments.length > 0) {
@@ -231,3 +256,42 @@ namespace('test', function () {
});
});
});
+
+namespace('check', function () {
+ desc('Check all the files for the license header');
+ task('license', function () {
+ var root = process.cwd(),
+ hasErrors = false,
+ includedFolders = [
+ 'lib'
+ ];
+
+ console.log('Checking for missing headers in the source files.\n');
+
+ for (var i = includedFolders.length; i--;) {
+ var folder = includedFolders[i];
+ util.walkSync(path.join(root, folder), ['.js'], function (file) {
+ fs.readFile(file, 'utf-8', function (err, data) {
+ if (err) {
+ return; // something went horribly wrong
+ }
+
+ if (/^\/\/(.*)/ig.test(data)) {
+ return; // nothing to de here
+ }
+
+ console.log(file, 'does not contain the license header');
+ hasErrors = true;
+ });
+ });
+ }
+
+ process.on('exit', function () {
+ if (hasErrors) {
+ process.exit(1);
+ } else {
+ console.log('Everything is good!');
+ }
+ });
+ });
+});
View
492 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
24 License
@@ -1,24 +0,0 @@
-Copyright (c) 2011, Claus Augusti <claus@formatvorlage.de>
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- * Neither the name of the <organization> nor the
- names of its contributors may be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,3 +1,28 @@
+// Copyright © 2012 rainjs
+//
+// All rights reserved
+//
+// Redistribution and use in source and binary forms, with or without modification, are permitted
+// provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice, this list of
+// conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
+// conditions and the following disclaimer in the documentation and/or other materials
+// provided with the distribution.
+// 3. Neither the name of The author nor the names of its contributors may be used to endorse or
+// promote products derived from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
var wrench = require('wrench');
var fs = require('fs');
var path = require('path');
View
@@ -1,3 +1,28 @@
+// Copyright © 2012 rainjs
+//
+// All rights reserved
+//
+// Redistribution and use in source and binary forms, with or without modification, are permitted
+// provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice, this list of
+// conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
+// conditions and the following disclaimer in the documentation and/or other materials
+// provided with the distribution.
+// 3. Neither the name of The author nor the names of its contributors may be used to endorse or
+// promote products derived from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
var mod_path = require('path')
, fs = require('fs');
View
@@ -1,5 +1,30 @@
#!/usr/bin/env node
+//Copyright © 2012 rainjs
+//
+// All rights reserved
+//
+// Redistribution and use in source and binary forms, with or without modification, are permitted
+// provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice, this list of
+// conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
+// conditions and the following disclaimer in the documentation and/or other materials
+// provided with the distribution.
+// 3. Neither the name of The author nor the names of its contributors may be used to endorse or
+// promote products derived from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
var fs = require('fs'),
mod_path = require('path'),
color = require('colors'),
@@ -129,7 +154,7 @@ function createProject(path, project_name) {
,''
);
};
-};
+}
function createComponent(component_name){
@@ -144,7 +169,7 @@ function createComponent(component_name){
,'Please go to your project root and try it again!'
);
}
-};
+}
function setupProject(project_path) {
@@ -241,11 +266,11 @@ function setupComponent(project_path, component_name, callback) {
callback();
}
});
-};
+}
function debug(){
console.log(program);
-};
+}
function start(conf){
var actPath = process.cwd();
@@ -338,7 +363,7 @@ function start(conf){
//===========RAIN SERVER STARTED===========
return true;
}
-};
+}
function stop(pid){
if (!pid) {
@@ -370,7 +395,7 @@ function stop(pid){
} catch (ev) {}
console.log('No running server for this project');
}
-};
+}
function stopall(){
var server = utils.getServerList(),
@@ -394,7 +419,7 @@ function stopall(){
}
console.log('%s Server stopped!'.green, countServer);
- };
+ }
function restart(){
var pid = null,
@@ -429,7 +454,7 @@ function restart(){
console.log('Starting server with default config'.green);
}
start(conf);
-};
+}
function list(type){
if (!type || type == 'server') {
@@ -447,7 +472,7 @@ function list(type){
log(' Server List:'.cyan, table_s.toString());
}
-};
+}
function log(){
@@ -456,4 +481,4 @@ function log(){
arr_String.push(arguments[str]);
}
console.log(arr_String.join('\n'));
-};
+}
@@ -1,3 +1,28 @@
+// Copyright © 2012 rainjs
+//
+// All rights reserved
+//
+// Redistribution and use in source and binary forms, with or without modification, are permitted
+// provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice, this list of
+// conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
+// conditions and the following disclaimer in the documentation and/or other materials
+// provided with the distribution.
+// 3. Neither the name of The author nor the names of its contributors may be used to endorse or
+// promote products derived from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
define(function() {
/**
* Creates a DefaultController component instance.
@@ -1,3 +1,28 @@
+// Copyright © 2012 rainjs
+//
+// All rights reserved
+//
+// Redistribution and use in source and binary forms, with or without modification, are permitted
+// provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice, this list of
+// conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
+// conditions and the following disclaimer in the documentation and/or other materials
+// provided with the distribution.
+// 3. Neither the name of The author nor the names of its contributors may be used to endorse or
+// promote products derived from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
define(["authorization_example/js/jquery-ui-1.8.16.custom.min"], function() {
/**
* Creates a AuthorizationExample component instance.
@@ -1,3 +1,30 @@
+// Copyright © 2012 rainjs
+//
+// All rights reserved
+//
+// Redistribution and use in source and binary forms, with or without modification, are permitted
+// provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice, this list of
+// conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
+// conditions and the following disclaimer in the documentation and/or other materials
+// provided with the distribution.
+// 3. Neither the name of The author nor the names of its contributors may be used to endorse or
+// promote products derived from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+"use strict";
+
/**
* The dynamic condition for the component.
*
Oops, something went wrong.

0 comments on commit 6322948

Please sign in to comment.