diff options
Diffstat (limited to 'www/lib/angular-translate-storage-cookie')
6 files changed, 234 insertions, 0 deletions
diff --git a/www/lib/angular-translate-storage-cookie/.bower.json b/www/lib/angular-translate-storage-cookie/.bower.json new file mode 100644 index 00000000..483cace8 --- /dev/null +++ b/www/lib/angular-translate-storage-cookie/.bower.json @@ -0,0 +1,23 @@ +{ + "name": "angular-translate-storage-cookie", + "description": "A plugin for Angular Translate", + "version": "2.11.0", + "main": "./angular-translate-storage-cookie.js", + "ignore": [], + "author": "Pascal Precht", + "license": "MIT", + "dependencies": { + "angular-translate": "~2.11.0", + "angular-cookies": ">=1.2.26 <1.6" + }, + "homepage": "https://github.com/PascalPrecht/bower-angular-translate-storage-cookie", + "_release": "2.11.0", + "_resolution": { + "type": "version", + "tag": "2.11.0", + "commit": "12bd2538c640c902bb5943ca9c36ff9e4b940ce8" + }, + "_source": "https://github.com/PascalPrecht/bower-angular-translate-storage-cookie.git", + "_target": "~2.11.0", + "_originalSource": "angular-translate-storage-cookie" +}
\ No newline at end of file diff --git a/www/lib/angular-translate-storage-cookie/README.md b/www/lib/angular-translate-storage-cookie/README.md new file mode 100644 index 00000000..3c68129c --- /dev/null +++ b/www/lib/angular-translate-storage-cookie/README.md @@ -0,0 +1,28 @@ +# angular-translate-storage-cookie (bower shadow repository) + +This is the _Bower shadow_ repository for *angular-translate-storage-cookie*. + +## Bugs and issues + +Please file any issues and bugs in our main repository at [angular-translate/angular-translate](https://github.com/angular-translate/angular-translate/issues). + +## Usage + +### via Bower + +```bash +$ bower install angular-translate-storage-cookie +``` + +### via NPM +```bash +$ npm install angular-translate-storage-cookie +``` + +### via cdnjs + +Please have a look at https://cdnjs.com/libraries/angular-translate-stroage-cookie for specific versions. + +## License + +Licensed under MIT. See more details at [angular-translate/angular-translate](https://github.com/angular-translate/angular-translate). diff --git a/www/lib/angular-translate-storage-cookie/angular-translate-storage-cookie.js b/www/lib/angular-translate-storage-cookie/angular-translate-storage-cookie.js new file mode 100644 index 00000000..b1e0cf6b --- /dev/null +++ b/www/lib/angular-translate-storage-cookie/angular-translate-storage-cookie.js @@ -0,0 +1,97 @@ +/*! + * angular-translate - v2.11.0 - 2016-03-20 + * + * Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT + */ +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module unless amdModuleId is set + define([], function () { + return (factory()); + }); + } else if (typeof exports === 'object') { + // Node. Does not work with strict CommonJS, but + // only CommonJS-like environments that support module.exports, + // like Node. + module.exports = factory(); + } else { + factory(); + } +}(this, function () { + +$translateCookieStorageFactory.$inject = ['$cookieStore']; +angular.module('pascalprecht.translate') + +/** + * @ngdoc object + * @name pascalprecht.translate.$translateCookieStorage + * @requires $cookieStore + * + * @description + * Abstraction layer for cookieStore. This service is used when telling angular-translate + * to use cookieStore as storage. + * + */ + .factory('$translateCookieStorage', $translateCookieStorageFactory); + +function $translateCookieStorageFactory($cookieStore) { + + 'use strict'; + + var $translateCookieStorage = { + + /** + * @ngdoc function + * @name pascalprecht.translate.$translateCookieStorage#get + * @methodOf pascalprecht.translate.$translateCookieStorage + * + * @description + * Returns an item from cookieStorage by given name. + * + * @param {string} name Item name + * @return {string} Value of item name + */ + get: function (name) { + return $cookieStore.get(name); + }, + + /** + * @ngdoc function + * @name pascalprecht.translate.$translateCookieStorage#set + * @methodOf pascalprecht.translate.$translateCookieStorage + * + * @description + * Sets an item in cookieStorage by given name. + * + * @deprecated use #put + * + * @param {string} name Item name + * @param {string} value Item value + */ + set: function (name, value) { + $cookieStore.put(name, value); + }, + + /** + * @ngdoc function + * @name pascalprecht.translate.$translateCookieStorage#put + * @methodOf pascalprecht.translate.$translateCookieStorage + * + * @description + * Sets an item in cookieStorage by given name. + * + * @param {string} name Item name + * @param {string} value Item value + */ + put: function (name, value) { + $cookieStore.put(name, value); + } + }; + + return $translateCookieStorage; +} + +$translateCookieStorageFactory.displayName = '$translateCookieStorage'; +return 'pascalprecht.translate'; + +})); diff --git a/www/lib/angular-translate-storage-cookie/angular-translate-storage-cookie.min.js b/www/lib/angular-translate-storage-cookie/angular-translate-storage-cookie.min.js new file mode 100644 index 00000000..4198c551 --- /dev/null +++ b/www/lib/angular-translate-storage-cookie/angular-translate-storage-cookie.min.js @@ -0,0 +1,47 @@ +/*! + * angular-translate - v2.11.0 - 2016-03-20 + * + * Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT + */ +!function(a,b){"function"==typeof define&&define.amd? +// AMD. Register as an anonymous module unless amdModuleId is set +define([],function(){return b()}):"object"==typeof exports? +// Node. Does not work with strict CommonJS, but +// only CommonJS-like environments that support module.exports, +// like Node. +module.exports=b():b()}(this,function(){function a(a){"use strict";var b={/** + * @ngdoc function + * @name pascalprecht.translate.$translateCookieStorage#get + * @methodOf pascalprecht.translate.$translateCookieStorage + * + * @description + * Returns an item from cookieStorage by given name. + * + * @param {string} name Item name + * @return {string} Value of item name + */ +get:function(b){return a.get(b)},/** + * @ngdoc function + * @name pascalprecht.translate.$translateCookieStorage#set + * @methodOf pascalprecht.translate.$translateCookieStorage + * + * @description + * Sets an item in cookieStorage by given name. + * + * @deprecated use #put + * + * @param {string} name Item name + * @param {string} value Item value + */ +set:function(b,c){a.put(b,c)},/** + * @ngdoc function + * @name pascalprecht.translate.$translateCookieStorage#put + * @methodOf pascalprecht.translate.$translateCookieStorage + * + * @description + * Sets an item in cookieStorage by given name. + * + * @param {string} name Item name + * @param {string} value Item value + */ +put:function(b,c){a.put(b,c)}};return b}return a.$inject=["$cookieStore"],angular.module("pascalprecht.translate").factory("$translateCookieStorage",a),a.displayName="$translateCookieStorage","pascalprecht.translate"});
\ No newline at end of file diff --git a/www/lib/angular-translate-storage-cookie/bower.json b/www/lib/angular-translate-storage-cookie/bower.json new file mode 100644 index 00000000..d81c9aac --- /dev/null +++ b/www/lib/angular-translate-storage-cookie/bower.json @@ -0,0 +1,13 @@ +{ + "name": "angular-translate-storage-cookie", + "description": "A plugin for Angular Translate", + "version": "2.11.0", + "main": "./angular-translate-storage-cookie.js", + "ignore": [], + "author": "Pascal Precht", + "license": "MIT", + "dependencies": { + "angular-translate": "~2.11.0", + "angular-cookies": ">=1.2.26 <1.6" + } +} diff --git a/www/lib/angular-translate-storage-cookie/package.json b/www/lib/angular-translate-storage-cookie/package.json new file mode 100644 index 00000000..d4a3b510 --- /dev/null +++ b/www/lib/angular-translate-storage-cookie/package.json @@ -0,0 +1,26 @@ +{ + "name": "angular-translate-storage-cookie", + "version": "2.11.0", + "description": "Abstraction layer for cookieStore. This service is used when telling angular-translate to use cookieStore as storage.", + "main": "angular-translate-storage-cookie.js", + "repository": { + "type": "git", + "url": "https://github.com/angular-translate/bower-angular-translate-storage-cookie.git" + }, + "keywords": [ + "angular", + "translate", + "storage", + "cookies" + ], + "author": "Pascal Precht", + "license": "MIT", + "bugs": { + "url": "https://github.com/angular-translate/angular-translate/issues" + }, + "homepage": "https://angular-translate.github.io", + "dependencies": { + "angular-translate": "~2.11.0", + "angular-cookies": ">=1.2.26 <1.6" + } +} |
