From 085aef748499d4806104b4af8f367a91870acffd Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 3 Feb 2017 20:02:00 +0100 Subject: Install Angular & angular-route --- bower.json | 6 +- vendor/assets/components/angular-route/.bower.json | 21 + vendor/assets/components/angular-route/LICENSE.md | 21 + vendor/assets/components/angular-route/README.md | 68 + .../components/angular-route/angular-route.js | 1216 + .../components/angular-route/angular-route.min.js | 17 + .../angular-route/angular-route.min.js.map | 8 + vendor/assets/components/angular-route/bower.json | 10 + vendor/assets/components/angular-route/index.js | 2 + .../assets/components/angular-route/package.json | 33 + vendor/assets/components/angular/.bower.json | 19 + vendor/assets/components/angular/LICENSE.md | 21 + vendor/assets/components/angular/README.md | 64 + vendor/assets/components/angular/angular-csp.css | 21 + vendor/assets/components/angular/angular.js | 32982 +++++++++++++++++++ vendor/assets/components/angular/angular.min.js | 330 + .../assets/components/angular/angular.min.js.gzip | Bin 0 -> 58025 bytes .../assets/components/angular/angular.min.js.map | 8 + vendor/assets/components/angular/bower.json | 9 + vendor/assets/components/angular/index.js | 2 + vendor/assets/components/angular/package.json | 25 + 21 files changed, 34882 insertions(+), 1 deletion(-) create mode 100644 vendor/assets/components/angular-route/.bower.json create mode 100644 vendor/assets/components/angular-route/LICENSE.md create mode 100644 vendor/assets/components/angular-route/README.md create mode 100644 vendor/assets/components/angular-route/angular-route.js create mode 100644 vendor/assets/components/angular-route/angular-route.min.js create mode 100644 vendor/assets/components/angular-route/angular-route.min.js.map create mode 100644 vendor/assets/components/angular-route/bower.json create mode 100644 vendor/assets/components/angular-route/index.js create mode 100644 vendor/assets/components/angular-route/package.json create mode 100644 vendor/assets/components/angular/.bower.json create mode 100644 vendor/assets/components/angular/LICENSE.md create mode 100644 vendor/assets/components/angular/README.md create mode 100644 vendor/assets/components/angular/angular-csp.css create mode 100644 vendor/assets/components/angular/angular.js create mode 100644 vendor/assets/components/angular/angular.min.js create mode 100644 vendor/assets/components/angular/angular.min.js.gzip create mode 100644 vendor/assets/components/angular/angular.min.js.map create mode 100644 vendor/assets/components/angular/bower.json create mode 100644 vendor/assets/components/angular/index.js create mode 100644 vendor/assets/components/angular/package.json diff --git a/bower.json b/bower.json index f886f6c..ff519e3 100644 --- a/bower.json +++ b/bower.json @@ -6,5 +6,9 @@ "bower_components", "test", "tests" - ] + ], + "dependencies": { + "angular": "^1.6.1", + "angular-route": "^1.6.1" + } } diff --git a/vendor/assets/components/angular-route/.bower.json b/vendor/assets/components/angular-route/.bower.json new file mode 100644 index 0000000..bb2f83a --- /dev/null +++ b/vendor/assets/components/angular-route/.bower.json @@ -0,0 +1,21 @@ +{ + "name": "angular-route", + "version": "1.6.1", + "license": "MIT", + "main": "./angular-route.js", + "ignore": [], + "dependencies": { + "angular": "1.6.1" + }, + "homepage": "https://github.com/angular/bower-angular-route", + "_release": "1.6.1", + "_resolution": { + "type": "version", + "tag": "v1.6.1", + "commit": "409c45cfc589d66457f7cbb11aa1fc47f8dbbf78" + }, + "_source": "https://github.com/angular/bower-angular-route.git", + "_target": "^1.6.1", + "_originalSource": "angular-route", + "_direct": true +} \ No newline at end of file diff --git a/vendor/assets/components/angular-route/LICENSE.md b/vendor/assets/components/angular-route/LICENSE.md new file mode 100644 index 0000000..2c395ee --- /dev/null +++ b/vendor/assets/components/angular-route/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Angular + +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. diff --git a/vendor/assets/components/angular-route/README.md b/vendor/assets/components/angular-route/README.md new file mode 100644 index 0000000..2cd4f90 --- /dev/null +++ b/vendor/assets/components/angular-route/README.md @@ -0,0 +1,68 @@ +# packaged angular-route + +This repo is for distribution on `npm` and `bower`. The source for this module is in the +[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngRoute). +Please file issues and pull requests against that repo. + +## Install + +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular-route +``` + +Then add `ngRoute` as a dependency for your app: + +```javascript +angular.module('myApp', [require('angular-route')]); +``` + +### bower + +```shell +bower install angular-route +``` + +Add a ` +``` + +Then add `ngRoute` as a dependency for your app: + +```javascript +angular.module('myApp', ['ngRoute']); +``` + +## Documentation + +Documentation is available on the +[AngularJS docs site](http://docs.angularjs.org/api/ngRoute). + +## License + +The MIT License + +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org + +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. diff --git a/vendor/assets/components/angular-route/angular-route.js b/vendor/assets/components/angular-route/angular-route.js new file mode 100644 index 0000000..42e25ce --- /dev/null +++ b/vendor/assets/components/angular-route/angular-route.js @@ -0,0 +1,1216 @@ +/** + * @license AngularJS v1.6.1 + * (c) 2010-2016 Google, Inc. http://angularjs.org + * License: MIT + */ +(function(window, angular) {'use strict'; + +/* global shallowCopy: true */ + +/** + * Creates a shallow copy of an object, an array or a primitive. + * + * Assumes that there are no proto properties for objects. + */ +function shallowCopy(src, dst) { + if (isArray(src)) { + dst = dst || []; + + for (var i = 0, ii = src.length; i < ii; i++) { + dst[i] = src[i]; + } + } else if (isObject(src)) { + dst = dst || {}; + + for (var key in src) { + if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) { + dst[key] = src[key]; + } + } + } + + return dst || src; +} + +/* global shallowCopy: false */ + +// `isArray` and `isObject` are necessary for `shallowCopy()` (included via `src/shallowCopy.js`). +// They are initialized inside the `$RouteProvider`, to ensure `window.angular` is available. +var isArray; +var isObject; +var isDefined; + +/** + * @ngdoc module + * @name ngRoute + * @description + * + * # ngRoute + * + * The `ngRoute` module provides routing and deeplinking services and directives for angular apps. + * + * ## Example + * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`. + * + * + *
+ */ +/* global -ngRouteModule */ +var ngRouteModule = angular. + module('ngRoute', []). + provider('$route', $RouteProvider). + // Ensure `$route` will be instantiated in time to capture the initial `$locationChangeSuccess` + // event (unless explicitly disabled). This is necessary in case `ngView` is included in an + // asynchronously loaded template. + run(instantiateRoute); +var $routeMinErr = angular.$$minErr('ngRoute'); +var isEagerInstantiationEnabled; + + +/** + * @ngdoc provider + * @name $routeProvider + * @this + * + * @description + * + * Used for configuring routes. + * + * ## Example + * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`. + * + * ## Dependencies + * Requires the {@link ngRoute `ngRoute`} module to be installed. + */ +function $RouteProvider() { + isArray = angular.isArray; + isObject = angular.isObject; + isDefined = angular.isDefined; + + function inherit(parent, extra) { + return angular.extend(Object.create(parent), extra); + } + + var routes = {}; + + /** + * @ngdoc method + * @name $routeProvider#when + * + * @param {string} path Route path (matched against `$location.path`). If `$location.path` + * contains redundant trailing slash or is missing one, the route will still match and the + * `$location.path` will be updated to add or drop the trailing slash to exactly match the + * route definition. + * + * * `path` can contain named groups starting with a colon: e.g. `:name`. All characters up + * to the next slash are matched and stored in `$routeParams` under the given `name` + * when the route matches. + * * `path` can contain named groups starting with a colon and ending with a star: + * e.g.`:name*`. All characters are eagerly stored in `$routeParams` under the given `name` + * when the route matches. + * * `path` can contain optional named groups with a question mark: e.g.`:name?`. + * + * For example, routes like `/color/:color/largecode/:largecode*\/edit` will match + * `/color/brown/largecode/code/with/slashes/edit` and extract: + * + * * `color: brown` + * * `largecode: code/with/slashes`. + * + * + * @param {Object} route Mapping information to be assigned to `$route.current` on route + * match. + * + * Object properties: + * + * - `controller` – `{(string|Function)=}` – Controller fn that should be associated with + * newly created scope or the name of a {@link angular.Module#controller registered + * controller} if passed as a string. + * - `controllerAs` – `{string=}` – An identifier name for a reference to the controller. + * If present, the controller will be published to scope under the `controllerAs` name. + * - `template` – `{(string|Function)=}` – html template as a string or a function that + * returns an html template as a string which should be used by {@link + * ngRoute.directive:ngView ngView} or {@link ng.directive:ngInclude ngInclude} directives. + * This property takes precedence over `templateUrl`. + * + * If `template` is a function, it will be called with the following parameters: + * + * - `{Array.