Move code to awx/ui/client

This commit is contained in:
Joe Fiorini
2015-07-27 10:19:14 -04:00
parent e50d997577
commit 98a37a354a
3915 changed files with 2196 additions and 12520 deletions
+29
View File
@@ -0,0 +1,29 @@
{
"name": "loader.js",
"main": "loader.js",
"version": "3.2.1",
"homepage": "https://github.com/ember-cli/loader.js",
"authors": [
"Stefan Penner <stefan.penner@gmail.com>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"devDependencies": {
"qunit": "~1.14.0"
},
"_release": "3.2.1",
"_resolution": {
"type": "version",
"tag": "v3.2.1",
"commit": "0133801b954773bab68e67cbb477774d1de197e8"
},
"_source": "git://github.com/ember-cli/loader.js.git",
"_target": "3.2.1",
"_originalSource": "ember-cli/loader.js"
}
+21
View File
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Yehuda Katz, Stefan Penner, and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+27
View File
@@ -0,0 +1,27 @@
loader.js [![Build Status](https://travis-ci.org/ember-cli/loader.js.png?branch=master)](https://travis-ci.org/ember-cli/loader.js)
=========
Minimal AMD loader mostly stolen from [@wycats](https://github.com/wycats).
## Tests
To run the test you'll need to have
[testem](https://github.com/airportyh/testem) installed. Install it with `npm
install -g testem`.
_(You'll also have to install the bower components, which you can do by running
`bower install`)_
You may run them with:
```bash
testem ci
```
You can also launch testem development mode with:
```bash
testem
```
## License
loader.js is [MIT Licensed](https://github.com/ember-cli/loader.js/blob/master/LICENSE.md).
+20
View File
@@ -0,0 +1,20 @@
{
"name": "loader.js",
"main": "loader.js",
"version": "3.2.1",
"homepage": "https://github.com/ember-cli/loader.js",
"authors": [
"Stefan Penner <stefan.penner@gmail.com>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"devDependencies": {
"qunit": "~1.14.0"
}
}
+198
View File
@@ -0,0 +1,198 @@
var define, requireModule, require, requirejs;
(function() {
var _isArray;
if (!Array.isArray) {
_isArray = function (x) {
return Object.prototype.toString.call(x) === "[object Array]";
};
} else {
_isArray = Array.isArray;
}
var registry = {}, seen = {};
var FAILED = false;
var uuid = 0;
function tryFinally(tryable, finalizer) {
try {
return tryable();
} finally {
finalizer();
}
}
function unsupportedModule(length) {
throw new Error("an unsupported module was defined, expected `define(name, deps, module)` instead got: `" + length + "` arguments to define`");
}
var defaultDeps = ['require', 'exports', 'module'];
function Module(name, deps, callback, exports) {
this.id = uuid++;
this.name = name;
this.deps = !deps.length && callback.length ? defaultDeps : deps;
this.exports = exports || { };
this.callback = callback;
this.state = undefined;
this._require = undefined;
}
Module.prototype.makeRequire = function() {
var name = this.name;
return this._require || (this._require = function(dep) {
return require(resolve(dep, name));
});
}
define = function(name, deps, callback) {
if (arguments.length < 2) {
unsupportedModule(arguments.length);
}
if (!_isArray(deps)) {
callback = deps;
deps = [];
}
registry[name] = new Module(name, deps, callback);
};
// we don't support all of AMD
// define.amd = {};
// we will support petals...
define.petal = { };
function Alias(path) {
this.name = path;
}
define.alias = function(path) {
return new Alias(path);
};
function reify(mod, name, seen) {
var deps = mod.deps;
var length = deps.length;
var reified = new Array(length);
var dep;
// TODO: new Module
// TODO: seen refactor
var module = { };
for (var i = 0, l = length; i < l; i++) {
dep = deps[i];
if (dep === 'exports') {
module.exports = reified[i] = seen;
} else if (dep === 'require') {
reified[i] = mod.makeRequire();
} else if (dep === 'module') {
mod.exports = seen;
module = reified[i] = mod;
} else {
reified[i] = requireFrom(resolve(dep, name), name);
}
}
return {
deps: reified,
module: module
};
}
function requireFrom(name, origin) {
if (!registry[name]) {
name = name + '/index';
}
var mod = registry[name];
if (!mod) {
throw new Error('Could not find module `' + name + '` imported from `' + origin + '`');
}
return require(name);
}
function missingModule(name) {
throw new Error('Could not find module ' + name);
}
requirejs = require = requireModule = function(name) {
var mod = registry[name];
if (mod && mod.callback instanceof Alias) {
mod = registry[mod.callback.name];
}
if (!mod) { missingModule(name); }
if (mod.state !== FAILED &&
seen.hasOwnProperty(name)) {
return seen[name];
}
var reified;
var module;
var loaded = false;
seen[name] = { }; // placeholder for run-time cycles
tryFinally(function() {
reified = reify(mod, name, seen[name]);
module = mod.callback.apply(this, reified.deps);
loaded = true;
}, function() {
if (!loaded) {
mod.state = FAILED;
}
});
var obj;
if (module === undefined && reified.module.exports) {
obj = reified.module.exports;
} else {
obj = seen[name] = module;
}
if (obj !== null &&
(typeof obj === 'object' || typeof obj === 'function') &&
obj['default'] === undefined) {
obj['default'] = obj;
}
return (seen[name] = obj);
};
function resolve(child, name) {
if (child.charAt(0) !== '.') { return child; }
var parts = child.split('/');
var nameParts = name.split('/');
var parentBase = nameParts.slice(0, -1);
for (var i = 0, l = parts.length; i < l; i++) {
var part = parts[i];
if (part === '..') {
if (parentBase.length === 0) {
throw new Error('Cannot access parent module of root');
}
parentBase.pop();
} else if (part === '.') { continue; }
else { parentBase.push(part); }
}
return parentBase.join('/');
}
requirejs.entries = requirejs._eak_seen = registry;
requirejs.clear = function(){
requirejs.entries = requirejs._eak_seen = registry = {};
seen = state = {};
};
})();
+24
View File
@@ -0,0 +1,24 @@
{
"name": "loader.js",
"version": "3.2.1",
"description": "loader.js =========",
"main": "loader.js",
"directories": {
"test": "tests"
},
"dependencies": {
},
"devDependencies": {
"testem": "^0.6.16",
"bower": "^1.3.5"
},
"scripts": {
"test": "testem ci"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/ember-cli/loader.js/issues"
},
"homepage": "https://github.com/ember-cli/loader.js"
}
+14
View File
@@ -0,0 +1,14 @@
{
"framework": "qunit",
"src_files": [
"loader.js"
],
"test_page": "tests/index.html",
"launch_in_dev": [
"PhantomJS",
"Chrome"
],
"launch_in_ci": [
"PhantomJS"
]
}