From 967c9949264151daa67eec6e54b2e2d21c1c42ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 16 Mar 2016 22:47:00 +0100 Subject: Remove vendor libs from github repo --- js/vendor/angular-cache/.bower.json | 45 - js/vendor/angular-cache/CHANGELOG.md | 348 ----- js/vendor/angular-cache/LICENSE | 20 - js/vendor/angular-cache/README.md | 675 ---------- js/vendor/angular-cache/TRANSITION.md | 98 -- js/vendor/angular-cache/bower.json | 35 - .../build_examples/browserify/README.md | 1 - .../angular-cache/build_examples/browserify/app.js | 11 - .../build_examples/browserify/index.html | 11 - .../angular-cache/build_examples/r.js/README.md | 3 - js/vendor/angular-cache/build_examples/r.js/app.js | 9 - .../angular-cache/build_examples/r.js/index.html | 14 - .../angular-cache/build_examples/r.js/main.js | 22 - .../build_examples/r.js/require.config.js | 6 - .../angular-cache/build_examples/webpack/README.md | 1 - .../angular-cache/build_examples/webpack/app.js | 8 - .../build_examples/webpack/index.html | 11 - .../build_examples/webpack/webpack.config.js | 11 - .../build_examples/webpack_es6/README.md | 1 - .../build_examples/webpack_es6/app.js | 8 - .../build_examples/webpack_es6/index.html | 11 - .../build_examples/webpack_es6/webpack.config.js | 16 - .../build_examples/webpack_es6_2/README.md | 1 - .../build_examples/webpack_es6_2/app.js | 8 - .../build_examples/webpack_es6_2/index.html | 11 - .../build_examples/webpack_es6_2/webpack.config.js | 16 - js/vendor/angular-cache/circle.yml | 8 - js/vendor/angular-cache/dist/angular-cache.js | 1327 -------------------- js/vendor/angular-cache/dist/angular-cache.js.map | 1 - js/vendor/angular-cache/dist/angular-cache.min.js | 2 - js/vendor/angular-cache/dist/angular-cache.min.map | 1 - js/vendor/angular-cache/webpack.config.js | 84 -- 32 files changed, 2824 deletions(-) delete mode 100644 js/vendor/angular-cache/.bower.json delete mode 100644 js/vendor/angular-cache/CHANGELOG.md delete mode 100644 js/vendor/angular-cache/LICENSE delete mode 100644 js/vendor/angular-cache/README.md delete mode 100644 js/vendor/angular-cache/TRANSITION.md delete mode 100644 js/vendor/angular-cache/bower.json delete mode 100644 js/vendor/angular-cache/build_examples/browserify/README.md delete mode 100644 js/vendor/angular-cache/build_examples/browserify/app.js delete mode 100644 js/vendor/angular-cache/build_examples/browserify/index.html delete mode 100644 js/vendor/angular-cache/build_examples/r.js/README.md delete mode 100644 js/vendor/angular-cache/build_examples/r.js/app.js delete mode 100644 js/vendor/angular-cache/build_examples/r.js/index.html delete mode 100644 js/vendor/angular-cache/build_examples/r.js/main.js delete mode 100644 js/vendor/angular-cache/build_examples/r.js/require.config.js delete mode 100644 js/vendor/angular-cache/build_examples/webpack/README.md delete mode 100644 js/vendor/angular-cache/build_examples/webpack/app.js delete mode 100644 js/vendor/angular-cache/build_examples/webpack/index.html delete mode 100644 js/vendor/angular-cache/build_examples/webpack/webpack.config.js delete mode 100644 js/vendor/angular-cache/build_examples/webpack_es6/README.md delete mode 100644 js/vendor/angular-cache/build_examples/webpack_es6/app.js delete mode 100644 js/vendor/angular-cache/build_examples/webpack_es6/index.html delete mode 100644 js/vendor/angular-cache/build_examples/webpack_es6/webpack.config.js delete mode 100644 js/vendor/angular-cache/build_examples/webpack_es6_2/README.md delete mode 100644 js/vendor/angular-cache/build_examples/webpack_es6_2/app.js delete mode 100644 js/vendor/angular-cache/build_examples/webpack_es6_2/index.html delete mode 100644 js/vendor/angular-cache/build_examples/webpack_es6_2/webpack.config.js delete mode 100644 js/vendor/angular-cache/circle.yml delete mode 100644 js/vendor/angular-cache/dist/angular-cache.js delete mode 100644 js/vendor/angular-cache/dist/angular-cache.js.map delete mode 100644 js/vendor/angular-cache/dist/angular-cache.min.js delete mode 100644 js/vendor/angular-cache/dist/angular-cache.min.map delete mode 100644 js/vendor/angular-cache/webpack.config.js (limited to 'js/vendor/angular-cache') diff --git a/js/vendor/angular-cache/.bower.json b/js/vendor/angular-cache/.bower.json deleted file mode 100644 index fcbc98cf..00000000 --- a/js/vendor/angular-cache/.bower.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "author": "Jason Dobry", - "name": "angular-cache", - "description": "angular-cache is a very useful replacement for Angular's $cacheFactory.", - "homepage": "https://github.com/jmdobry/angular-cache", - "repository": { - "type": "git", - "url": "https://github.com/jmdobry/angular-cache.git" - }, - "main": "./dist/angular-cache.js", - "ignore": [ - ".idea/", - ".*", - "*.iml", - "src/", - "bower_components/", - "coverage/", - "Gruntfile.js", - "package.json", - "CONTRIBUTING.md", - "node_modules/", - "test/", - "karma.conf.js", - "karma.start.js", - "libpeerconnection.log" - ], - "devDependencies": { - "angular-1.2.25": "angular#1.2.25", - "angular-resource": "angular-resource#1.2.25", - "angular-mocks-1.2.25": "angular-mocks#1.2.25" - }, - "dependencies": { - "angular": ">=1.x" - }, - "version": "4.5.0", - "_release": "4.5.0", - "_resolution": { - "type": "version", - "tag": "4.5.0", - "commit": "e1e61c94d9028d0dfccdf9462333371c847560c6" - }, - "_source": "git://github.com/jmdobry/angular-cache.git", - "_target": "~4.5.0", - "_originalSource": "angular-cache" -} \ No newline at end of file diff --git a/js/vendor/angular-cache/CHANGELOG.md b/js/vendor/angular-cache/CHANGELOG.md deleted file mode 100644 index 88cf56d0..00000000 --- a/js/vendor/angular-cache/CHANGELOG.md +++ /dev/null @@ -1,348 +0,0 @@ -##### 4.5.0 12 January 2016 - -###### Backwards compatible API changes - -- #205 - Feature request: Cache.getAllValues - -###### Backwards compatible bug fixes - -- #211 - Expires value gets sometimes automatically set to null -- #212 - Internal Cache not reloaded on Reload - -###### Other - -- Upgraded to CacheFactory v1.4.0 - -##### 4.4.3 30 December 2015 - -- #179 - capacity does not work on often reload -- #210 - Why does angular-cache ignore capacity configuration? - -##### 4.4.1 12 October 2015 - -- #203 - trouble: bundle with r.js not works - -##### 4.4.0 12 October 2015 - -- #200 - 4.3 storagePrefix is not backwards compatible -- #201 - webpack minification error - -##### 4.3.2 10 July 2015 - -- #191 - yabh issue with ie8 - -##### 4.3.1 07 July 2015 - -- #190 - 4.3 breaks phantomJS tests - -##### 4.3.0 06 July 2015 - -- #189 - Extracted non-angular code. - -##### 4.2.2 01 July 2015 - -###### Backwards compatible bug fixes -- #165 - storageMode does not inherits from defaults - -##### 4.2.1 01 July 2015 - -Upgraded dependencies -Better CommonJS interop -Added a number of build examples - -##### 4.2.0 27 April 2015 - -###### Backwards compatible bug fixes -- #174 - Cache not being fully emptied if using localStorage and multiple web pages - -##### 4.1.0 30 March 2015 - -###### Backwards compatible API changes -- #169 - Official support for ngResource - -##### 4.0.2 22 March 2015 - -###### Backwards compatible bug fixes -- #164 - onExpire is still called when cache is empty - -##### 4.0.1 20 March 2015 - -###### Backwards compatible bug fixes -- #163 - Configuring CacheOption storagePrefix results in "true.{key}" - -##### 4.0.0 15 March 2015 - -###### Breaking API changes -- Completely disassociated angular-cache from the deprecated angular-data (angular-data has been replaced by js-data + js-data-angular) -- Angular module renamed to _angular-cache_ -- _DSCacheFactory_ renamed to _CacheFactory_ -- _DSBinaryHeap_ renamed to _BinaryHeap_ -- Removed `DSCacheFactoryProvider.setCacheDefaults`. You now do `angular.extend(CacheFactoryProvider.defaults, { ... });` -- No longer exposing a `DSCache` constructor function (as it no longer exists) -- `storageMode` can now be set dynamically, which will remove all items from current storage and insert them into the new storage - -###### Other -- Fixes #161 -- Converted to ES6 and a webpack build with better umd support -- Now exporting the module name _angular-cache_ (when you do `require('angular-cache')` you get `"angular-cache"`) -- Deprecating angular-cache < 4.0.0 - -##### 3.2.5 02 February 2015 - -###### Backwards compatible bug fixes -- #152 - Expired items sometimes only expire after double time. -- #153 - Missing angular dependency in bower.json - -##### 3.2.4 17 December 2014 - -###### Backwards compatible bug fixes -- #149 - when removing an object from localStorage the key didn't get removed if the passed parameter is of number type. - -##### 3.2.3 13 December 2014 - -###### Backwards compatible bug fixes -- #112 - $resource cache and 3.0.0-beta-x -- #122 - Error using DSCacheFactory with $http/ $resource and localStorage -- #148 - Illegal operation when using local-/sessionStorage - -##### 3.2.2 24 November 2014 - -###### Backwards compatible bug fixes -- #147 - `storeOnResolve` and `storeOnReject` should default to `false` - -##### 3.2.1 10 November 2014 - -###### Backwards compatible bug fixes -- #142 - Use JSON.stringify instead of angular.toJson - -##### 3.2.0 07 November 2014 - -###### Backwards compatible API changes -- #135 - Closes #135. (Improved handling of promises.) - -##### 3.1.1 28 August 2014 - -###### Backwards compatible bug fixes -- #124 - DSCache.info does not work if the storageMode is localStorage. -- #127 - requirejs conflict, require object overwritten - -##### 3.1.0 15 July 2014 - -###### Backwards compatible API changes -- #117 - call to DSCacheFactory(...) produces JSHint warning (Added DSCacheFactory.createCache method) - -###### Backwards compatible bug fixes -- #118 - dist/angular-cache.js doesn't end with a semicolon (Upgraded dependencies) -- #120 - How come the non minified version has minified code? (Upgraded dependencies) - -##### 3.0.3 16 June 2014 - -###### Backwards compatible bug fixes -- Angular 1.2.18 with $http/localStorage #116 - -##### 3.0.2 15 June 2014 - -###### Backwards compatible bug fixes -- $http w/ cache is trying to store a promise, which dies on JSON.stringify #115 - -##### 3.0.1 14 June 2014 - -###### Backwards compatible bug fixes -- Added polyfill for `$$minErr`. - -##### 3.0.0 14 June 2014 - -3.0.0 Release - -##### 3.0.0-beta.4 22 April 2014 - -###### Backwards compatible API changes -- Add feature to 'touch' elements in the cache #103 - -###### Backwards compatible bug fixes -- `localstorage` and Safari Private Browsing #107 - -##### 3.0.0-beta.3 03 March 2014 - -###### Backwards compatible bug fixes -- Fixed duplicate keys when using localStorage #106 - -##### 3.0.0-beta.2 25 February 2014 - -###### Backwards compatible bug fixes -- Fixed missing reference to DSBinaryHeap #105 - -##### 3.0.0-beta.1 24 February 2014 - -###### Breaking API changes -- `maxAge` and `deleteOnExpire` are no longer overridable for individual items -- Renamed angular module to `angular-data.DSCacheFactory`. Angular-cache is now part of the `angular-data` namespace -- The `verifyIntegrity` option has been completely removed due to a cache being exclusively in-memory OR in web storage #96 -- Supported values for the `storageMode` option are now: `"memory"`, `"localStorage"` or `"sessionStorage"` with the default being `"memory"` -- `DSCache#put(key, value)` no longer accepts a third `options` argument -- `DSCache#removeExpired()` no longer accepts an `options` argument and thus no longer supports returning removed expired items as an array -- `DSCache#remove(key)` no longer accepts an `options` argument -- `DSCache#setOptions(options[, strict])` no longer accepts `storageMode` and `storageImpl` as part of the `options` argument -- `storageMode` is no longer dynamically configurable -- `storageImpl` is no longer dynamically configurable - -###### Backwards compatible API changes -- Added `DSCache#enable()` -- Added `DSCache#disable()` -- Added `DSCache#setCapacity(capacity)` -- Added `DSCache#setMaxAge(maxAge)` -- Added `DSCache#setCacheFlushInterval(cacheFlushInterval)` -- Added `DSCache#setRecycleFreq(recycleFreq)` -- Added `DSCache#setDeleteOnExpire(deleteOnExpire)` -- Added `DSCache#setOnExpire(onExpire)` -- Added option `storagePrefix` for customizing the prefix used in `localStorage`, etc. #98 -- Refactored to be in-memory OR webStorage, never both #96 - -###### Other -- I might have missed something... - -##### 2.3.3 - 24 February 2014 - -###### Backwards compatible bug fixes -- *sigh Fixed #102 (regression from #100) - -##### 2.3.2 - 23 February 2014 - -###### Backwards compatible bug fixes -- Fixed #100 (regression from #89) - -##### 2.3.1 - 19 February 2014 - -###### Backwards compatible bug fixes -- Fixed #89 - -##### 2.3.0 - 09 January 2014 -- Caches can now be disabled #82 -- The `options` object (`$angularCacheFactory()`, `AngularCache#setOptions()`, and `$angularCacheFactoryProvider.setCacheDefaults()`) now accepts a `disabled` field, which can be set to `true` and defaults to `false`. -- `$angularCacheFactory.enableAll()` will enable any disabled caches. -- `$angularCacheFactory.disableAll()` will disable all caches. -- A disabled cache will operate as normal, except `AngularCache#get()` and `AngularCache#put()` will both immediately return `undefined` instead of performing their normal functions. - -###### Backwards compatible API changes -- `removeExpired()` now returns an object (or array) of the removed items. - -###### Backwards compatible bug fixes -- `removeExpired()` now removes _all_ expired items. - -##### 2.2.0 - 15 December 2013 - -###### Backwards compatible API changes -- `removeExpired()` now returns an object (or array) of the removed items. - -###### Backwards compatible bug fixes -- `removeExpired()` now removes _all_ expired items. - -##### 2.1.1 - 20 November 2013 - -###### Backwards compatible bug fixes -- Allow number keys, but stringify them #76 -- Fix "Uncaught TypeError: Cannot read property 'maxAge' of null" #77 (thanks @evngeny-o) - -##### 2.1.0 - 03 November 2013 - -###### Backwards compatible API changes -- Modify .get(key, options) to accept multiple keys #71 (thanks @roryf) - -###### Other -- Run tests against multiple versions of Angular.js #72 -- Add banner to dist/angular-cache.min.js #68 - -##### 2.0.0 - 30 October 2013 -- Not all methods of AngularCache and $angularCacheFactory are in README #61 -- Fix demo to work with 2.0.0-rc.1 #62 -- Using Bower to install this package, the dist filenames change per version? #63 - -##### 2.0.0-rc.1 - 14 October 2013 - -###### Breaking API changes -- Swapped `aggressiveDelete` option for `deleteOnExpire` option. #30, #47 -- Changed `$angularCacheFactory.info()` to return an object similar to `AngularCache.info()` #45 -- Namespaced angular-cache module under `jmdobry` so it is now "jmdobry.angular-cache". #42 -- Substituted `storageImpl` and `sessionStorageImpl` options for just `storageImpl` option. - -###### Backwards compatible API changes -- Added `recycleFreq` to specify how frequently to check for expired items (no more $timeout). #28, #57 -- Added ability to set global cache defaults in $angularCacheFactoryProvider. #55 - -###### Backwards compatible bug fixes -- cacheFlushInterval doesn't clear web storage when storageMode is used. #52 -- AngularCache#info(key) should return 'undefined' if the key isn't in the cache #53 -- Fixed timespan issues in README.md. #59 - -###### Other -- Refactored angular-cache `setOptions()` internals to be less convoluted and to have better validation. #46 -- Re-wrote documentation to be clearer and more organized. #56 -- Fixed documentation where time spans were incorrectly labeled. #59 - -##### 1.2.0 - 20 September 2013 - -###### Backwards compatible API changes -- Added AngularCache#info(key) #43 - -###### Backwards compatible bug fixes -- Fixed #39, #44, #49, #50 - -##### 1.1.0 - 03 September 2013 - -###### Backwards compatible API changes -- Added `onExpire` callback hook #27 -- Added `$angularCacheFactory.removeAll()` and `$angularCacheFactory.clearAll()` convenience methods #37, #38 - -###### Backwards compatible bug fixes -- Fixed #36 - -##### 1.0.0 - 25 August 2013 -- Closed #31 (Improved documentation) -- Closed #32 - -##### 1.0.0-rc.1 - 21 August 2013 -- Added localStorage feature #26, #29 - -##### 0.9.1 - 03 August 2013 -- Fixed #25 - -##### 0.9.0 - 03 August 2013 -- Added a changelog #13 -- Added documentation for installing with bower -- Added ability to set option `aggressiveDelete` when creating cache and when adding items -- Cleaned up README.md -- Switched the demo to use Bootstrap 3 - -##### 0.8.2 - 09 July 2013 -- Added CONTRIBUTING.md #22 -- Cleaned up meta data in bower.json and package.json - -##### 0.8.1 - 09 July 2013 -- Added .jshintrc -- Cleaned up the docs a bit -- `bower.json` now uses `src/angular-cache.js` instead of the versioned output files #21 -- From now on the tags for the project will be named using [semver](http://semver.org/) - -##### 0.8.0 - 08 July 2013 -- Added `AngularCache.setOptions()`, the ability to dynamically change the configuration of a cache #20 -- Added `AngularCache.keys()`, which returns an array of the keys in a cache #19 -- Added `AngularCache.keySet()`, which returns a hash of the keys in a cache #19 - -##### 0.7.2 - June 2013 -- Added `angular-cache` to bower registry #7 -- Created a working demo #9 #17 -- Fixed the size not being reset to 0 when the cache clears itself #14 #16 -- Added `$angularCacheFactory.keys()`, which returns an array of the keys (the names of the caches) in $angularCacheFactory #18 -- Added `$angularCacheFactory.keySet()`, which returns a hash of the keys (the names of the caches) in $angularCacheFactory #18 - -##### 0.6.1 - June 2013 -- Got the project building on TravisCI -- Renamed the project to `angular-cache` #5 - -##### 0.5.0 - June 2013 -- Added a roadmap to README.md #4 -- Clarify usage documentation #3 -- Wrote unit tests #2 - -##### 0.4.0 - May 2013 -- Added Grunt build tasks #1 diff --git a/js/vendor/angular-cache/LICENSE b/js/vendor/angular-cache/LICENSE deleted file mode 100644 index 54f8a93a..00000000 --- a/js/vendor/angular-cache/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License - -Copyright (C) 2013-2016 Jason Dobry - -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/js/vendor/angular-cache/README.md b/js/vendor/angular-cache/README.md deleted file mode 100644 index 083c3309..00000000 --- a/js/vendor/angular-cache/README.md +++ /dev/null @@ -1,675 +0,0 @@ -## angular-cache [![bower version](https://img.shields.io/bower/v/angular-cache.svg?style=flat-square)](https://www.npmjs.org/package/angular-cache) [![npm version](https://img.shields.io/npm/v/angular-cache.svg?style=flat-square)](https://www.npmjs.org/package/angular-cache) [![Circle CI](https://img.shields.io/circleci/project/jmdobry/angular-cache/master.svg?style=flat-square)](https://circleci.com/gh/jmdobry/angular-cache/tree/master) [![npm downloads](https://img.shields.io/npm/dm/angular-cache.svg?style=flat-square)](https://www.npmjs.org/package/angular-cache) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/jmdobry/angular-cache/blob/master/LICENSE) - -A very useful replacement for Angular's $cacheFactory. - -__versions of angular-cache below 4.0.0 have been deprecated, see the [breaking changes](https://github.com/jmdobry/angular-cache/blob/master/CHANGELOG.md) in 4.0.0__ - -__Latest Release:__ [![Latest Release](https://img.shields.io/github/release/jmdobry/angular-cache.svg?style=flat-square)](https://github.com/jmdobry/angular-cache/releases) - -__Status:__ - -[![Dependency Status](https://img.shields.io/gemnasium/jmdobry/angular-cache.svg?style=flat-square)](https://gemnasium.com/jmdobry/angular-cache) [![Coverage Status](https://img.shields.io/coveralls/jmdobry/angular-cache/master.svg?style=flat-square)](https://coveralls.io/r/jmdobry/angular-cache?branch=master) [![Codacity](https://img.shields.io/codacy/5e27e21d0c4c4d4cb203d589384aa93a.svg?style=flat-square)](https://www.codacy.com/public/jasondobry/angular-cache/dashboard) - -__Supported Browsers:__ - -[![browsers](https://img.shields.io/badge/Browser-Chrome%2CFirefox%2CSafari%2COpera%2CIE%209%2B%2CiOS%20Safari%207.1%2B%2CAndroid%20Browser%202.3%2B-green.svg?style=flat-square)](https://github.com/jmdobry/angular-cache) - -### Table of Contents -- [Quick Start](#quick-start) -- [The Basics](#the-basics) -- [Working with a cache](#working-with-a-cache) -- [Configuration Options](#configuration-options) -- [Using angular-cache with $http](#using-angular-cache-with-http) -- [Using angular-cache with localStorage](#using-angular-cache-with-localstorage) -- [API Reference](#api-reference) - -### Quick Start -`bower install --save angular-cache` or `npm install --save angular-cache`. - -```js -angular.module('myApp', ['angular-cache']) - .config(function (CacheFactoryProvider) { - angular.extend(CacheFactoryProvider.defaults, { maxAge: 15 * 60 * 1000 }); - }) - .service('BookService', function (CacheFactory) { - if (!CacheFactory.get('bookCache')) { - // or CacheFactory('bookCache', { ... }); - CacheFactory.createCache('bookCache', { - deleteOnExpire: 'aggressive', - recycleFreq: 60000 - }); - } - - var bookCache = CacheFactory.get('bookCache'); - - return { - findBookById: function (id) { - return $http.get('/api/books/' + id, { cache: bookCache }); - } - }; - }); -``` - -#### Why would you want to replace $cacheFactory? - -| Feature | $cacheFactory | angular-cache | -| ----------- | ------------------- | --------------- | -| core implementation usable outside of Angular | no | [__yes__](https://github.com/jmdobry/CacheFactory) | -| key/value store | __yes__ | __yes__ | -| in-memory support | __yes__ | __yes__ | -| localStorage support | no | __yes__ | -| sessionStorage support | no | __yes__ | -| custom storage support | no | __yes__ | -| can set maximum capacity | __yes__ | __yes__ | -| LRU support | __yes__ | __yes__ | -| support for time-based expiration of items | no | __yes__ | -| remove all expired items | n/a | __yes__ | -| "touch" an item | n/a | __yes__ | -| execute callback when an item expires | n/a | __yes__ | -| get info about cache | __yes__ | __yes__ | -| get info about single item | no | __yes__ | -| get item by key | __yes__ | __yes__ | -| remove item by key | __yes__ | __yes__ | -| remove all items | __yes__ | __yes__ | -| get keys of all caches | no | __yes__ | -| clear all caches | no | __yes__ | -| disable/enable a cache | no | __yes__ | -| "touch" all items in all caches | n/a | __yes__ | -| remove expired items from all caches | n/a | __yes__ | -| get all keys in a cache | no | __yes__ | -| clear a cache on a given interval | no | __yes__ | - -### The Basics - -First, inject `CacheFactory` then create a cache. Let's go: - -```js -app.service('myService', function (CacheFactory) { - var profileCache; - - // Check to make sure the cache doesn't already exist - if (!CacheFactory.get('profileCache')) { - profileCache = CacheFactory('profileCache'); - } -}); -``` - -Let's add some items to the cache: - -```js -profileCache.put('/profiles/34', { - name: 'John', - skills: ['programming', 'piano'] -}); - -profileCache.put('/profiles/22', { - name: 'Sally', - skills: ['marketing', 'climbing', 'painting'] -}); -``` - -Right now, these items will stay in the cache until a page refresh. - -Let's have items which are added to `profileCache` expire after an hour: - -```js -profileCache = CacheFactory('profileCache', { - maxAge: 60 * 60 * 1000 // 1 hour -}); -``` - -Perfect. Say we also want the items removed from the cache when they expire: - -```js -profileCache = CacheFactory('profileCache', { - maxAge: 60 * 60 * 1000 // 1 hour, - deleteOnExpire: 'aggressive' -}); -``` - -Let's say that when the items do expire, we want to refresh them with new values: - -```js -profileCache = CacheFactory('profileCache', { - maxAge: 60 * 60 * 1000 // 1 hour, - deleteOnExpire: 'aggressive', - onExpire: function (key, value) { - $http.get(key).success(function (data) { - profileCache.put(key, data); - }); - } -}); -``` - -Or say we want all of our caches to use that configuration as their default: - -```js -angular.module('app', ['angular-cache']).config(function (CacheFactoryProvider) { - angular.extend(CacheFactoryProvider.defaults, { - maxAge: 3600000, - deleteOnExpire: 'aggressive', - onExpire: function (key, value) { - var _this = this; // "this" is the cache in which the item expired - angular.injector(['ng']).get('$http').get(key).success(function (data) { - _this.put(key, data); - }); - } - }); -}); -``` - -### Working with a cache - -We can retrieve items from a cache like so: - -```js -var profile = profileCache.get('/profiles/34'); - -profile.name; // 'John' -``` - -And get information about items in the cache: - -```js -var info = profileCache.info('/profiles/34'); - -info.isExpired; // false -// etc. -``` - -and information about the cache itself: - -``` -var info = profileCache.info(); - -info.size; // 2 -info.maxAge; // 3600000 -info.deleteOnExpire; // 'aggressive' -// etc. -``` - -Items are easily removed, and we can destroy our cache when we're done with it: - -```js -profileCache.remove('/profiles/34'); - -profileCache.get('/profiles/34'); // undefined - -profileCache.destroy(); - -CacheFactory.get('profileCache'); // undefined -``` - -### Configuration Options - -These options apply to: - -- `CacheFactory(cacheId[, options)` -- `CacheFactory.createCache(cacheId[, options])` -- `Cache#setOptions(options[, strict])` -- `Cache#setMaxAge(maxAge)`, `Cache#setOnExpire(onExpire)`, etc. - -##### `cacheFlushInterval` - -If set, remove all items from a cache on an interval after the given number of milliseconds. Default: `null`. - -##### `capacity` - -Maximum number of items a cache can hold. Adding more items than the capacity will cause the cache to operate like an LRU cache, removing the least recently used items to stay under capacity. Default: `Number.MAX_VALUE`. - -##### `deleteOnExpire` - -Determines the behavior of a cache when an item expires. Default: `none`. - -Possible values: - -- `none` - Cache will do nothing when an item expires. -- `passive` - Cache will do nothing when an item expires. Expired items will remain in the cache until requested, at which point they are removed, and `undefined` is returned. -- `aggressive` - Cache will remove expired items as soon as they are discovered. - -##### `disabled` - -Determines whether a cache is disabled. Default: `false`. - -##### `onExpire` - -A callback function to be executed whenever an expired item is removed from a cache when the cache is in `passive` or `aggressive` mode. Will be passed the `key` and `value` of the expired item. - -Will be passed a third `done` argument if the cache is in `passive` mode. This allows you to synchronously access the `key` and `value` of the expired item when you make the `Cache#get(key[, options])` call that is the reason the expired item is being removed in the first place. Default: `null`. - -##### `maxAge` - -The number of milliseconds until a newly inserted item expires. Default: `Number.MAX_VALUE`. - -##### `recycleFreq` - -Determines how often a cache will scan for expired items when in `aggressive` mode. Default: `1000` (milliseconds). - -##### `storageImpl` - -Provide a custom storage medium, e.g. a polyfill for `localStorage`. Default: `null`. - -Must implement: - -- `setItem` - Same API as `localStorage.setItem(key, value)` -- `getItem` - Same API as `localStorage.getItem(key)` -- `removeItem` - Same API as `localStorage.removeItem(key)` - -##### `storageMode` - -Determines the storage medium used by a cache. Default: `memory`. - -Possible values: - -- `memory` - Cache will hold data in memory. Data is cleared when the page is refreshed. -- `localStorage` - Cache will hold data in `localStorage` if available. Data is _not_ cleared when the page is refreshed. -- `sessionStorage` - Cache will hold data in `sessionStorage` if available. Data is _not_ cleared when the page is refreshed. - -##### `storagePrefix` - -Determines the namespace of a cache when `storageMode` is set to `localStorage` or `sessionStorage`. Make it a shorter string to save space. Default: `angular-cache.caches.`. - -##### `storeOnReject` - -If inserting a promise into a cache, also insert the rejection value if the promise rejects. Default: `false`. - -##### storeOnResolve - -If inserting a promise into a cache, also insert the resolved value if the promise resolves. Default: `false`. - -### Using angular-cache with $http - -__Note:__ The downside of letting `$http` handle caching for you is that it caches the responses (in string form) to your requests–not the JavaScript Object parsed from the response body. This means you can't interact with the data in the cache used by `$http`. See below for how to handle the caching yourself, which gives you more control and the ability to interact with the cache (use it as a data store). - -Configure `$http` to use a cache created by `CacheFactory` by default: - -```js -app.run(function ($http, CacheFactory) { - $http.defaults.cache = CacheFactory('defaultCache', { - maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes - cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour - deleteOnExpire: 'aggressive' // Items will be deleted from this cache when they expire - }); -}); -``` - -```js -app.service('MyService', function ($http, $q) { - return { - getDataById: function (id) { - var deferred = $q.defer(); - var start = new Date().getTime(); - - $http.get('api/data/' + id, { - cache: true - }).success(function (data) { - console.log('time taken for request: ' + (new Date().getTime() - start) + 'ms'); - deferred.resolve(data); - }); - return deferred.promise; - } - }; -}); -``` - -```js -app.controller('myCtrl', function (MyService) { - MyService.getDataById(1).then(function (data) { - // e.g. "time taken for request: 2375ms" - // Data returned by this next call is already cached. - return MyService.getDataById(1).then(function (data) { - // e.g. "time taken for request: 1ms" - }); - }); -}); -``` - -Tell $http to use a cache created by CacheFactory for a specific request: - -```js -app.service('MyService', function ($q, $http, CacheFactory) { - - CacheFactory('dataCache', { - maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes - cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour - deleteOnExpire: 'aggressive' // Items will be deleted from this cache when they expire - }); - - return { - getDataById: function (id) { - var deferred = $q.defer(); - var start = new Date().getTime(); - - $http.get('api/data/' + id, { - cache: CacheFactory.get('dataCache') - }).success(function (data) { - console.log('time taken for request: ' + (new Date().getTime() - start) + 'ms'); - deferred.resolve(data); - }); - return deferred.promise; - } - }; -}); -``` - -```js -app.controller('myCtrl', function (MyService) { - MyService.getDataById(1).then(function (data) { - // e.g. "time taken for request: 2375ms" - // Data returned by this next call is already cached. - return MyService.getDataById(1).then(function (data) { - // e.g. "time taken for request: 1ms" - }); - }); -}); -``` - -Do your own caching while using the $http service: - -```js -app.service('MyService', function ($q, $http, CacheFactory) { - - CacheFactory('dataCache', { - maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes - cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour - deleteOnExpire: 'aggressive' // Items will be deleted from this cache when they expire - }); - - return { - getDataById: function (id) { - var deferred = $q.defer(); - var start = new Date().getTime(); - var dataCache = CacheFactory.get('dataCache'); - - // Now that control of inserting/removing from the cache is in our hands, - // we can interact with the data in "dataCache" outside of this context, - // e.g. Modify the data after it has been returned from the server and - // save those modifications to the cache. - if (dataCache.get(id)) { - deferred.resolve(dataCache.get(id)); - } else { - $http.get('api/data/' + id).success(function (data) { - console.log('time taken for request: ' + (new Date().getTime() - start) + 'ms'); - dataCache.put(id, data); - deferred.resolve(data); - }); - } - return deferred.promise; - } - }; -}); -``` - -```js -app.controller('myCtrl', function (MyService) { - MyService.getDataById(1).then(function (data) { - // e.g. "time taken for request: 2375ms" - // Data returned by this next call is already cached. - return MyService.getDataById(1).then(function (data) { - // e.g. "time taken for request: 1ms" - }); - }); -}); -``` - -### Using angular-cache with localStorage - -```js -app.service('myService', function (CacheFactory) { - - // This cache will sync itself with localStorage if it exists, otherwise it won't. Every time the - // browser loads this app, this cache will attempt to initialize itself with any data it had - // already saved to localStorage (or sessionStorage if you used that). - var myAwesomeCache = CacheFactory('myAwesomeCache', { - maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes. - cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour. - deleteOnExpire: 'aggressive', // Items will be deleted from this cache right when they expire. - storageMode: 'localStorage' // This cache will use `localStorage`. - }); -}); -``` - -Using angular-cache in browsers that DON'T support localStorage: - -Option 1 - Do nothing (the cache will just store data in memory) - -Option 2 - Create/use a polyfill that provides the global `localStorage` and `sessionStorage` objects. angular-cache will attempt to use these if it finds them. - -Option 3 - Tell angular-cache exactly which polyfill to use (also useful if you just want to use your own implementation/wrapper for localStorage): - -```js -app.service('myService', function (CacheFactory) { - - var localStoragePolyfill = { - getItem: function (key) { ... }, - setItem: function (key, value) { ... }, - removeItem: function (key) { ... } - }; - - // Always use the polyfill - var myAwesomeCache = CacheFactory('myAwesomeCache', { - maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes. - cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour. - deleteOnExpire: 'aggressive', // Items will be deleted from this cache right when they expire. - storageMode: 'localStorage', // This cache will use `localStorage`. - storageImpl: localStoragePolyfill // angular-cache will use this polyfill instead of looking for localStorage - }); - - // Conditionally use the polyfill - var options = { - maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes. - cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour. - deleteOnExpire: 'aggressive', // Items will be deleted from this cache right when they expire. - storageMode: 'localStorage' // This cache will use `localStorage`. - }; - if (!window.localStorage) { - options.storageImpl = localStoragePolyfill; - } - var myAwesomeCache = CacheFactory('myAwesomeCache', options); -}); -``` - -Documentation on the interface that must be implemented by any storageImpl polyfill used by angular-cache can be found on the W3C Recommendation page for webstorage. The interface itself looks like: - -``` -interface Storage { - readonly attribute unsigned long length; - DOMString? key(unsigned long index); - getter DOMString getItem(DOMString key); - setter creator void setItem(DOMString key, DOMString value); - deleter void removeItem(DOMString key); - void clear(); -}; -``` - -angular-cache cares only about these three methods: - -- `setItem` -- `getItem` -- `removeItem` - -One developer suggested using store.js–a wrapper and polyfill for localStorage. However, store.js has its own API that doesn't match that of the webstorage spec, so if you want to use store.js or any other 3rd-party polyfill then you'll need to create a wrapper for it if it doesn't have the same API as localStorage . For example: - -```js -var storeJsToStandard { - getItem: store.get, - setItem: store.set, - removeItem: store.remove -}; - -CacheFactory('myNewCache', { - storageMode: 'localStorage', - storageImpl: storeJsToStandard -}); -``` - -### API Reference - -##### `CacheFactory(cacheId[, options])` & `CacheFactory.createCache(cacheId[, options])` - -Create a cache. Cache must not already exist. `cacheId` must be a string. `options` is an optional argument and must be an object. Any options you pass here will override any default options. - -```js -var cache = CacheFactory('cache'); -var cache2 = CacheFactory.createCache('cache2'); -var cache3 = CacheFactory('cache', { maxAge: 900000 }); -var cache4 = CacheFactory('cache'); // Error "cache already exists!" -``` - -##### `CacheFactory.get(cacheId)` - -Return the cache with the given `cacheId`. - -##### `CacheFactory.info()` - -Return an object of key-value pairs, the keys being cache ids and the values being the result of `.info()` being called on each cache. - -##### `CacheFactory.keySet()` - -Return the ids of all registered caches as an object. - -##### `CacheFactory.keys()` - -Return the ids of all registered caches as an array. - -##### `CacheFactory.destroy(cacheId)` - -Destroy the cache with the given `cacheId`. - -##### `CacheFactory.destroyAll()` - -Destroy all registered caches. - -##### `CacheFactory.clearAll()` - -Remove all data from all registered caches. - -##### `CacheFactory.enableAll()` - -Enable all registered caches. - -##### `CacheFactory.disableAll()` - -Disable all registered caches. - -##### `CacheFactory.touchAll()` - -Call `.touch()` on all registered caches. - -##### `CacheFactory.removeExpiredFromAll()` - -Call `.removeExpired()` on all registered caches. Returns a hash of any expired items, keyed by cache id. - -##### `Cache#get(key[, options])` - -Return the item with the given `key`. `options`, if provided, must be an object. - -If the cache is in `passive` mode, then `options.onExpire` can be a function that will be called with the `key` and `value` of the requested item if the requested item is expired, with the `get` call itself returning undefined. - -##### `Cache#put(key, value[, options])` - -Insert the item with the given `key` and `value` into the cache. `options`, if provided, must be an object. - -If inserting a promise, `options.storeOnReject` determines whether to insert the rejection value if the promise rejects (overriding the default `storeOnReject` setting for the cache). -If inserting a promise, `options.storeOnResolve` determines whether to insert the resolved value if the promise resolves (overriding the default `storeOnResolve` setting for the cache). - -##### `Cache.remove(key)` - -Remove and return the item with the given `key`, if it is in the cache. - -##### `Cache.removeAll()` - -Remove all items in the cache. - -##### `Cache.removeExpired()` - -Remove and return all expired items in the cache. - -##### `Cache.destroy()` - -Completely destroy this cache and its data. - -##### `Cache#info([key])` - -`Cache#info()` returns an object containing information about the cache. - -`Cache#info(key)` returns an object containing information about the item with the given `key`, if the item is in the cache. - -##### `Cache#keySet()` - -Return the keys of all items in the cache as an object. - -##### `Cache#keys()` - -Return the keys of all items in the cache as an array. - -##### `Cache#enable()` - -Enable the cache. - -##### `Cache#disable()` - -Disable the cache. - -##### `Cache#values()` - -Return all values in the cache. - -##### `Cache#touch([key])` - -`Cache#touch()` will "touch" all items in the cache. -`Cache#touch(key)` will "touch" the item with the given `key`. - -##### `Cache#setCacheFlushInterval(cacheFlushInterval)` - -Set the `cacheFlushInterval` for the cache. - -##### `Cache#setCapacity(capacity)` - -Set the `capacity` for the cache. Setting this lower than the current item count will result in those items being removed. - -##### `Cache#setDeleteOnExpire(deleteOnExpire)` - -Set the `deleteOnExpire` for the cache. - -##### `Cache#setMaxAge(maxAge)` - -Set the `maxAge` for the cache. - -##### `Cache#setOnExpire(onExpire)` - -Set the `onExpire` for the cache. - -##### `Cache#setRecycleFreq(recycleFreq)` - -Set the `recycleFreq` for the cache. - -##### `Cache#setStorageMode(storageMode)` - -Set the `storageMode` for the cache. This will move data from the current storage medium to the new one. - -##### `Cache#setOptions(options[, strict])` - -Set multiple options for the cache at a time. Setting `strict` to `true` will reset options for the cache that are not specifically set in the `options` hash to `CacheFactoryProvider.defaults`. - -### License -[MIT License](https://github.com/jmdobry/angular-cache/blob/master/LICENSE) - -Copyright (C) 2013-2016 Jason Dobry - -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/js/vendor/angular-cache/TRANSITION.md b/js/vendor/angular-cache/TRANSITION.md deleted file mode 100644 index 0c0920dc..00000000 --- a/js/vendor/angular-cache/TRANSITION.md +++ /dev/null @@ -1,98 +0,0 @@ -### 2.x.x. ---> 3.x.x - xx April 2013 -TODO - -### 1.x.x. ---> 2.0.0 - 30 October 2013 - -#### Breaking API changes -##### Swapped `aggressiveDelete` option for `deleteOnExpire` option. - -###### 1.x.x -Aggressively delete expiring items. -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - aggressiveDelete: true // Items will be actively deleted when they expire -}); -``` - -Passively delete items when they are requested after they have expired. -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - aggressiveDelete: false // Items will be actively deleted when they expire -}); -``` - -###### 2.0.0 -Aggressively delete expiring items. -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - deleteOnExpire: 'aggressive' // Items will be actively deleted when they expire -}); -``` - -Passively delete items when they are requested after they have expired. -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - deleteOnExpire: 'passive' // Items will be passively deleted when requested after expiration -}); -``` - -Do nothing with expired items (not in 1.x.x). -```javascript -$angularCacheFactory('myNewCache', { - maxAge: 90000, // Items added to this cache expire after 15 minutes - deleteOnExpire: 'none' // Items will expire but not be removed -}); -``` - -##### Substituted `localStorageImpl` and `sessionStorageImpl` options for just `storageImpl` option. - -###### 1.x.x -```javascript -$angularCacheFactory('myNewCache', { - storageMode: 'localStorage', - localStorageImpl: myLocalStoragePolyfill // Use custom localStorage implementation -}); - -$angularCacheFactory('myNewCache2', { - storageMode: 'sessionStorage', - sessionStorageImpl: mySessionStoragePolyfill // Use custom sessionStorage implementation -}); -``` - -###### 2.0.0 -```javascript -$angularCacheFactory('myNewCache', { - storageMode: 'localStorage', - storageImpl: myLocalStoragePolyfill // Use custom localStorage implementation -}); - -$angularCacheFactory('myNewCache2', { - storageMode: 'sessionStorage', - storageImpl: mySessionStoragePolyfill // Use custom sessionStorage implementation -}); -``` - -##### Installation -The Bower package now contains only `dist/angular-cache.js` and `dist/angular-cache.min.js`. - -##### onExpire - -###### 1.x.x -```javascript -cache.get('someKey', function (key, value) { - // do something with expired item -}); -``` - -###### 2.0.0 -```javascript -cache.get('someKey', { - onExpire: function (key, value) { - // do something with expired item - } -}); -``` diff --git a/js/vendor/angular-cache/bower.json b/js/vendor/angular-cache/bower.json deleted file mode 100644 index 18882a7b..00000000 --- a/js/vendor/angular-cache/bower.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "author": "Jason Dobry", - "name": "angular-cache", - "description": "angular-cache is a very useful replacement for Angular's $cacheFactory.", - "homepage": "https://github.com/jmdobry/angular-cache", - "repository": { - "type": "git", - "url": "https://github.com/jmdobry/angular-cache.git" - }, - "main": "./dist/angular-cache.js", - "ignore": [ - ".idea/", - ".*", - "*.iml", - "src/", - "bower_components/", - "coverage/", - "Gruntfile.js", - "package.json", - "CONTRIBUTING.md", - "node_modules/", - "test/", - "karma.conf.js", - "karma.start.js", - "libpeerconnection.log" - ], - "devDependencies": { - "angular-1.2.25": "angular#1.2.25", - "angular-resource": "angular-resource#1.2.25", - "angular-mocks-1.2.25": "angular-mocks#1.2.25" - }, - "dependencies": { - "angular": ">=1.x" - } -} diff --git a/js/vendor/angular-cache/build_examples/browserify/README.md b/js/vendor/angular-cache/build_examples/browserify/README.md deleted file mode 100644 index 0d762e6d..00000000 --- a/js/vendor/angular-cache/build_examples/browserify/README.md +++ /dev/null @@ -1 +0,0 @@ -Running `browserify app.js > bundle.js` in this directory will produce `bundle.js` diff --git a/js/vendor/angular-cache/build_examples/browserify/app.js b/js/vendor/angular-cache/build_examples/browserify/app.js deleted file mode 100644 index 6f841e7f..00000000 --- a/js/vendor/angular-cache/build_examples/browserify/app.js +++ /dev/null @@ -1,11 +0,0 @@ -var angular = require('angular'); - -angular.module('app', [ - // this is what you would do in a real app - // require('angular-cache') - - // for the example to work - require('../../dist/angular-cache.js') -]).run(function ($rootScope, CacheFactory) { - $rootScope.test = 'It works! Using ' + (CacheFactory ? 'angular-cache' : 'undefined'); -}); diff --git a/js/vendor/angular-cache/build_examples/browserify/index.html b/js/vendor/angular-cache/build_examples/browserify/index.html deleted file mode 100644 index 9769ccd3..00000000 --- a/js/vendor/angular-cache/build_examples/browserify/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - My App - - - - -

{{ test }}

- - diff --git a/js/vendor/angular-cache/build_examples/r.js/README.md b/js/vendor/angular-cache/build_examples/r.js/README.md deleted file mode 100644 index 0632f376..00000000 --- a/js/vendor/angular-cache/build_examples/r.js/README.md +++ /dev/null @@ -1,3 +0,0 @@ -Running `r.js -o require.config.js` in this directory will produce `bundle.js` - -In `index.html` switch `script/main` between `main` (load scripts dynamically) and `bundle` (load bundled scripts) diff --git a/js/vendor/angular-cache/build_examples/r.js/app.js b/js/vendor/angular-cache/build_examples/r.js/app.js deleted file mode 100644 index 74cb9040..00000000 --- a/js/vendor/angular-cache/build_examples/r.js/app.js +++ /dev/null @@ -1,9 +0,0 @@ -define('app', [ - 'angular', - 'angular-cache' -], function (angular, angularCacheModuleName) { - return angular.module('app', ['angular-cache']) - .run(function ($rootScope) { - $rootScope.test = 'It works! Using ' + angularCacheModuleName; - }); -}); diff --git a/js/vendor/angular-cache/build_examples/r.js/index.html b/js/vendor/angular-cache/build_examples/r.js/index.html deleted file mode 100644 index 781e49df..00000000 --- a/js/vendor/angular-cache/build_examples/r.js/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - My App - - - - - - - -

{{ test }}

- - diff --git a/js/vendor/angular-cache/build_examples/r.js/main.js b/js/vendor/angular-cache/build_examples/r.js/main.js deleted file mode 100644 index 0fb6e498..00000000 --- a/js/vendor/angular-cache/build_examples/r.js/main.js +++ /dev/null @@ -1,22 +0,0 @@ -require.config({ - paths: { - angular: '../../bower_components/angular/angular', - 'angular-cache': '../../dist/angular-cache', - }, - shim: { - 'angular': { - exports: 'angular' - } - } -}); - -require([ - 'angular', - 'app' - ], function (angular, app) { - angular.element(document.getElementsByTagName('html')[0]).ready(function () { - // bootstrap the app manually - angular.bootstrap(document, ['app']); - }); - } -); diff --git a/js/vendor/angular-cache/build_examples/r.js/require.config.js b/js/vendor/angular-cache/build_examples/r.js/require.config.js deleted file mode 100644 index a89ae0fb..00000000 --- a/js/vendor/angular-cache/build_examples/r.js/require.config.js +++ /dev/null @@ -1,6 +0,0 @@ -({ - name: 'main', - mainConfigFile: 'main.js', - out: 'bundle.js', - optimize: 'none' -}) diff --git a/js/vendor/angular-cache/build_examples/webpack/README.md b/js/vendor/angular-cache/build_examples/webpack/README.md deleted file mode 100644 index 77d2d8f2..00000000 --- a/js/vendor/angular-cache/build_examples/webpack/README.md +++ /dev/null @@ -1 +0,0 @@ -Running `webpack` in this directory will produce `bundle.js` diff --git a/js/vendor/angular-cache/build_examples/webpack/app.js b/js/vendor/angular-cache/build_examples/webpack/app.js deleted file mode 100644 index 7b904ee5..00000000 --- a/js/vendor/angular-cache/build_examples/webpack/app.js +++ /dev/null @@ -1,8 +0,0 @@ -var angular = require('angular'); -var angularCacheModuleName = require('angular-cache'); - -var app = angular.module('app', [ - angularCacheModuleName -]).run(function ($rootScope) { - $rootScope.test = 'It works, imported ' + angularCacheModuleName; -}); diff --git a/js/vendor/angular-cache/build_examples/webpack/index.html b/js/vendor/angular-cache/build_examples/webpack/index.html deleted file mode 100644 index 9769ccd3..00000000 --- a/js/vendor/angular-cache/build_examples/webpack/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - My App - - - - -

{{ test }}

- - diff --git a/js/vendor/angular-cache/build_examples/webpack/webpack.config.js b/js/vendor/angular-cache/build_examples/webpack/webpack.config.js deleted file mode 100644 index 1b3a6dfb..00000000 --- a/js/vendor/angular-cache/build_examples/webpack/webpack.config.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - entry: './app.js', - output: { - filename: 'bundle.js' - }, - resolve: { - alias: { - 'angular-cache': '../../dist/angular-cache.js' - } - } -}; diff --git a/js/vendor/angular-cache/build_examples/webpack_es6/README.md b/js/vendor/angular-cache/build_examples/webpack_es6/README.md deleted file mode 100644 index 77d2d8f2..00000000 --- a/js/vendor/angular-cache/build_examples/webpack_es6/README.md +++ /dev/null @@ -1 +0,0 @@ -Running `webpack` in this directory will produce `bundle.js` diff --git a/js/vendor/angular-cache/build_examples/webpack_es6/app.js b/js/vendor/angular-cache/build_examples/webpack_es6/app.js deleted file mode 100644 index 78a3d254..00000000 --- a/js/vendor/angular-cache/build_examples/webpack_es6/app.js +++ /dev/null @@ -1,8 +0,0 @@ -import angular from 'angular'; -import angularCacheModuleName from 'angular-cache'; - -let app = angular.module('app', [ - angularCacheModuleName -]).run($rootScope => { - $rootScope.test = 'It works, imported ' + angularCacheModuleName; -}); diff --git a/js/vendor/angular-cache/build_examples/webpack_es6/index.html b/js/vendor/angular-cache/build_examples/webpack_es6/index.html deleted file mode 100644 index 9769ccd3..00000000 --- a/js/vendor/angular-cache/build_examples/webpack_es6/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - My App - - - - -

{{ test }}

- - diff --git a/js/vendor/angular-cache/build_examples/webpack_es6/webpack.config.js b/js/vendor/angular-cache/build_examples/webpack_es6/webpack.config.js deleted file mode 100644 index 3caf2bef..00000000 --- a/js/vendor/angular-cache/build_examples/webpack_es6/webpack.config.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = { - entry: './app.js', - output: { - filename: 'bundle.js' - }, - resolve: { - alias: { - 'angular-cache': '../../dist/angular-cache.js' - } - }, - module: { - loaders: [ - { test: /(.+)\.js$/, loader: 'babel-loader?blacklist=useStrict' } - ] - } -}; diff --git a/js/vendor/angular-cache/build_examples/webpack_es6_2/README.md b/js/vendor/angular-cache/build_examples/webpack_es6_2/README.md deleted file mode 100644 index 77d2d8f2..00000000 --- a/js/vendor/angular-cache/build_examples/webpack_es6_2/README.md +++ /dev/null @@ -1 +0,0 @@ -Running `webpack` in this directory will produce `bundle.js` diff --git a/js/vendor/angular-cache/build_examples/webpack_es6_2/app.js b/js/vendor/angular-cache/build_examples/webpack_es6_2/app.js deleted file mode 100644 index c75a0b36..00000000 --- a/js/vendor/angular-cache/build_examples/webpack_es6_2/app.js +++ /dev/null @@ -1,8 +0,0 @@ -import 'angular'; -import 'angular-cache'; - -let app = angular.module('app', [ - 'angular-cache' -]).run(($rootScope, CacheFactory) => { - $rootScope.test = 'It works, imported ' + (CacheFactory ? 'angular-cache' : 'undefined'); -}); diff --git a/js/vendor/angular-cache/build_examples/webpack_es6_2/index.html b/js/vendor/angular-cache/build_examples/webpack_es6_2/index.html deleted file mode 100644 index 9769ccd3..00000000 --- a/js/vendor/angular-cache/build_examples/webpack_es6_2/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - My App - - - - -

{{ test }}

- - diff --git a/js/vendor/angular-cache/build_examples/webpack_es6_2/webpack.config.js b/js/vendor/angular-cache/build_examples/webpack_es6_2/webpack.config.js deleted file mode 100644 index 3caf2bef..00000000 --- a/js/vendor/angular-cache/build_examples/webpack_es6_2/webpack.config.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = { - entry: './app.js', - output: { - filename: 'bundle.js' - }, - resolve: { - alias: { - 'angular-cache': '../../dist/angular-cache.js' - } - }, - module: { - loaders: [ - { test: /(.+)\.js$/, loader: 'babel-loader?blacklist=useStrict' } - ] - } -}; diff --git a/js/vendor/angular-cache/circle.yml b/js/vendor/angular-cache/circle.yml deleted file mode 100644 index 74b09465..00000000 --- a/js/vendor/angular-cache/circle.yml +++ /dev/null @@ -1,8 +0,0 @@ -dependencies: - pre: - - bower install - cache_directories: - - "bower_components" -test: - post: - - grunt coveralls || true diff --git a/js/vendor/angular-cache/dist/angular-cache.js b/js/vendor/angular-cache/dist/angular-cache.js deleted file mode 100644 index be22542f..00000000 --- a/js/vendor/angular-cache/dist/angular-cache.js +++ /dev/null @@ -1,1327 +0,0 @@ -/*! - * angular-cache - * @version 4.5.0 - Homepage - * @author Jason Dobry - * @copyright (c) 2013-2016 Jason Dobry - * @license MIT - * - * @overview angular-cache is a very useful replacement for Angular's $cacheFactory. - */ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("angular")); - else if(typeof define === 'function' && define.amd) - define("angular-cache", ["angular"], factory); - else if(typeof exports === 'object') - exports["angularCacheModuleName"] = factory(require("angular")); - else - root["angularCacheModuleName"] = factory(root["angular"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; -/******/ -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.loaded = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - var angular = __webpack_require__(1); - var CacheFactory = __webpack_require__(2); - - CacheFactory.utils.equals = angular.equals; - CacheFactory.utils.isObject = angular.isObject; - CacheFactory.utils.fromJson = angular.fromJson; - - function BinaryHeapProvider() { - this.$get = function () { - return CacheFactory.BinaryHeap; - }; - } - - function CacheFactoryProvider() { - this.defaults = CacheFactory.defaults; - this.defaults.storagePrefix = 'angular-cache.caches.'; - - this.$get = ['$q', function ($q) { - CacheFactory.utils.Promise = $q; - return CacheFactory; - }]; - } - - angular.module('angular-cache', []).provider('BinaryHeap', BinaryHeapProvider).provider('CacheFactory', CacheFactoryProvider); - - module.exports = 'angular-cache'; - try { - module.exports.name = 'angular-cache'; - } catch (err) {} - -/***/ }, -/* 1 */ -/***/ function(module, exports) { - - module.exports = __WEBPACK_EXTERNAL_MODULE_1__; - -/***/ }, -/* 2 */ -/***/ function(module, exports, __webpack_require__) { - - /*! - * cachefactory - * @version 1.4.0 - Homepage - * @author Jason Dobry - * @copyright (c) 2013-2016 Jason Dobry - * @license MIT - * - * @overview CacheFactory is a very simple and useful cache for the browser. - */ - (function webpackUniversalModuleDefinition(root, factory) { - if(true) - module.exports = factory(); - else if(typeof define === 'function' && define.amd) - define("cachefactory", [], factory); - else if(typeof exports === 'object') - exports["CacheFactory"] = factory(); - else - root["CacheFactory"] = factory(); - })(this, function() { - return /******/ (function(modules) { // webpackBootstrap - /******/ // The module cache - /******/ var installedModules = {}; - /******/ - /******/ // The require function - /******/ function __webpack_require__(moduleId) { - /******/ - /******/ // Check if module is in cache - /******/ if(installedModules[moduleId]) - /******/ return installedModules[moduleId].exports; - /******/ - /******/ // Create a new module (and put it into the cache) - /******/ var module = installedModules[moduleId] = { - /******/ exports: {}, - /******/ id: moduleId, - /******/ loaded: false - /******/ }; - /******/ - /******/ // Execute the module function - /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - /******/ - /******/ // Flag the module as loaded - /******/ module.loaded = true; - /******/ - /******/ // Return the exports of the module - /******/ return module.exports; - /******/ } - /******/ - /******/ - /******/ // expose the modules object (__webpack_modules__) - /******/ __webpack_require__.m = modules; - /******/ - /******/ // expose the module cache - /******/ __webpack_require__.c = installedModules; - /******/ - /******/ // __webpack_public_path__ - /******/ __webpack_require__.p = ""; - /******/ - /******/ // Load entry module and return exports - /******/ return __webpack_require__(0); - /******/ }) - /************************************************************************/ - /******/ ([ - /* 0 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - - var BinaryHeap = __webpack_require__(1); - var _Promise = null; - try { - _Promise = window.Promise; - } catch (e) {} - - var utils = { - isNumber: function isNumber(value) { - return ty