parent
1d1a44f85f
commit
dcb150559e
@ -1 +1 @@
|
|||||||
{"access_token":"x7GUTe-MLoVPMzId82-3VSdCsO6sq5cOJZCmIN-yUjDcohfI00t2lzPkNKdRhETLUBptZRQ--v-IBQTG-o5iRZZv-EelOBX7K96DcPMFt9rdzwNu7XerNnZw_ncGYncSLHXeACAQMC","expires_in":7200,"got_token_at":1461133885}
|
{"access_token":"GrEg56Sg5QRM7IXghWlaDzNd-7iaQsqX2acszXkSTFwOh_OxtN_UNIJsj9rlSZeSkZSofQwd0KvFGv_StzARHeLw81JllcI3a3VuXgZ_cjbQnM3m00g0HiLtTniQFsEIUVIdABAPQD","expires_in":7200,"got_token_at":1461314104}
|
@ -0,0 +1,321 @@
|
|||||||
|
/**
|
||||||
|
* @license AngularJS v1.4.6
|
||||||
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||||||
|
* License: MIT
|
||||||
|
*/
|
||||||
|
(function(window, angular, undefined) {'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc module
|
||||||
|
* @name ngCookies
|
||||||
|
* @description
|
||||||
|
*
|
||||||
|
* # ngCookies
|
||||||
|
*
|
||||||
|
* The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* <div doc-module-components="ngCookies"></div>
|
||||||
|
*
|
||||||
|
* See {@link ngCookies.$cookies `$cookies`} for usage.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
angular.module('ngCookies', ['ng']).
|
||||||
|
/**
|
||||||
|
* @ngdoc provider
|
||||||
|
* @name $cookiesProvider
|
||||||
|
* @description
|
||||||
|
* Use `$cookiesProvider` to change the default behavior of the {@link ngCookies.$cookies $cookies} service.
|
||||||
|
* */
|
||||||
|
provider('$cookies', [function $CookiesProvider() {
|
||||||
|
/**
|
||||||
|
* @ngdoc property
|
||||||
|
* @name $cookiesProvider#defaults
|
||||||
|
* @description
|
||||||
|
*
|
||||||
|
* Object containing default options to pass when setting cookies.
|
||||||
|
*
|
||||||
|
* The object may have following properties:
|
||||||
|
*
|
||||||
|
* - **path** - `{string}` - The cookie will be available only for this path and its
|
||||||
|
* sub-paths. By default, this would be the URL that appears in your base tag.
|
||||||
|
* - **domain** - `{string}` - The cookie will be available only for this domain and
|
||||||
|
* its sub-domains. For obvious security reasons the user agent will not accept the
|
||||||
|
* cookie if the current domain is not a sub domain or equals to the requested domain.
|
||||||
|
* - **expires** - `{string|Date}` - String of the form "Wdy, DD Mon YYYY HH:MM:SS GMT"
|
||||||
|
* or a Date object indicating the exact date/time this cookie will expire.
|
||||||
|
* - **secure** - `{boolean}` - The cookie will be available only in secured connection.
|
||||||
|
*
|
||||||
|
* Note: by default the address that appears in your `<base>` tag will be used as path.
|
||||||
|
* This is important so that cookies will be visible for all routes in case html5mode is enabled
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
var defaults = this.defaults = {};
|
||||||
|
|
||||||
|
function calcOptions(options) {
|
||||||
|
return options ? angular.extend({}, defaults, options) : defaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc service
|
||||||
|
* @name $cookies
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Provides read/write access to browser's cookies.
|
||||||
|
*
|
||||||
|
* <div class="alert alert-info">
|
||||||
|
* Up until Angular 1.3, `$cookies` exposed properties that represented the
|
||||||
|
* current browser cookie values. In version 1.4, this behavior has changed, and
|
||||||
|
* `$cookies` now provides a standard api of getters, setters etc.
|
||||||
|
* </div>
|
||||||
|
*
|
||||||
|
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
*
|
||||||
|
* ```js
|
||||||
|
* angular.module('cookiesExample', ['ngCookies'])
|
||||||
|
* .controller('ExampleController', ['$cookies', function($cookies) {
|
||||||
|
* // Retrieving a cookie
|
||||||
|
* var favoriteCookie = $cookies.get('myFavorite');
|
||||||
|
* // Setting a cookie
|
||||||
|
* $cookies.put('myFavorite', 'oatmeal');
|
||||||
|
* }]);
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
this.$get = ['$$cookieReader', '$$cookieWriter', function($$cookieReader, $$cookieWriter) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookies#get
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Returns the value of given cookie key
|
||||||
|
*
|
||||||
|
* @param {string} key Id to use for lookup.
|
||||||
|
* @returns {string} Raw cookie value.
|
||||||
|
*/
|
||||||
|
get: function(key) {
|
||||||
|
return $$cookieReader()[key];
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookies#getObject
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Returns the deserialized value of given cookie key
|
||||||
|
*
|
||||||
|
* @param {string} key Id to use for lookup.
|
||||||
|
* @returns {Object} Deserialized cookie value.
|
||||||
|
*/
|
||||||
|
getObject: function(key) {
|
||||||
|
var value = this.get(key);
|
||||||
|
return value ? angular.fromJson(value) : value;
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookies#getAll
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Returns a key value object with all the cookies
|
||||||
|
*
|
||||||
|
* @returns {Object} All cookies
|
||||||
|
*/
|
||||||
|
getAll: function() {
|
||||||
|
return $$cookieReader();
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookies#put
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Sets a value for given cookie key
|
||||||
|
*
|
||||||
|
* @param {string} key Id for the `value`.
|
||||||
|
* @param {string} value Raw value to be stored.
|
||||||
|
* @param {Object=} options Options object.
|
||||||
|
* See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
|
||||||
|
*/
|
||||||
|
put: function(key, value, options) {
|
||||||
|
$$cookieWriter(key, value, calcOptions(options));
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookies#putObject
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Serializes and sets a value for given cookie key
|
||||||
|
*
|
||||||
|
* @param {string} key Id for the `value`.
|
||||||
|
* @param {Object} value Value to be stored.
|
||||||
|
* @param {Object=} options Options object.
|
||||||
|
* See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
|
||||||
|
*/
|
||||||
|
putObject: function(key, value, options) {
|
||||||
|
this.put(key, angular.toJson(value), options);
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookies#remove
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Remove given cookie
|
||||||
|
*
|
||||||
|
* @param {string} key Id of the key-value pair to delete.
|
||||||
|
* @param {Object=} options Options object.
|
||||||
|
* See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
|
||||||
|
*/
|
||||||
|
remove: function(key, options) {
|
||||||
|
$$cookieWriter(key, undefined, calcOptions(options));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
}]);
|
||||||
|
|
||||||
|
angular.module('ngCookies').
|
||||||
|
/**
|
||||||
|
* @ngdoc service
|
||||||
|
* @name $cookieStore
|
||||||
|
* @deprecated
|
||||||
|
* @requires $cookies
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Provides a key-value (string-object) storage, that is backed by session cookies.
|
||||||
|
* Objects put or retrieved from this storage are automatically serialized or
|
||||||
|
* deserialized by angular's toJson/fromJson.
|
||||||
|
*
|
||||||
|
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
||||||
|
*
|
||||||
|
* <div class="alert alert-danger">
|
||||||
|
* **Note:** The $cookieStore service is **deprecated**.
|
||||||
|
* Please use the {@link ngCookies.$cookies `$cookies`} service instead.
|
||||||
|
* </div>
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
*
|
||||||
|
* ```js
|
||||||
|
* angular.module('cookieStoreExample', ['ngCookies'])
|
||||||
|
* .controller('ExampleController', ['$cookieStore', function($cookieStore) {
|
||||||
|
* // Put cookie
|
||||||
|
* $cookieStore.put('myFavorite','oatmeal');
|
||||||
|
* // Get cookie
|
||||||
|
* var favoriteCookie = $cookieStore.get('myFavorite');
|
||||||
|
* // Removing a cookie
|
||||||
|
* $cookieStore.remove('myFavorite');
|
||||||
|
* }]);
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
factory('$cookieStore', ['$cookies', function($cookies) {
|
||||||
|
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookieStore#get
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Returns the value of given cookie key
|
||||||
|
*
|
||||||
|
* @param {string} key Id to use for lookup.
|
||||||
|
* @returns {Object} Deserialized cookie value, undefined if the cookie does not exist.
|
||||||
|
*/
|
||||||
|
get: function(key) {
|
||||||
|
return $cookies.getObject(key);
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookieStore#put
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Sets a value for given cookie key
|
||||||
|
*
|
||||||
|
* @param {string} key Id for the `value`.
|
||||||
|
* @param {Object} value Value to be stored.
|
||||||
|
*/
|
||||||
|
put: function(key, value) {
|
||||||
|
$cookies.putObject(key, value);
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name $cookieStore#remove
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Remove given cookie
|
||||||
|
*
|
||||||
|
* @param {string} key Id of the key-value pair to delete.
|
||||||
|
*/
|
||||||
|
remove: function(key) {
|
||||||
|
$cookies.remove(key);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name $$cookieWriter
|
||||||
|
* @requires $document
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* This is a private service for writing cookies
|
||||||
|
*
|
||||||
|
* @param {string} name Cookie name
|
||||||
|
* @param {string=} value Cookie value (if undefined, cookie will be deleted)
|
||||||
|
* @param {Object=} options Object with options that need to be stored for the cookie.
|
||||||
|
*/
|
||||||
|
function $$CookieWriter($document, $log, $browser) {
|
||||||
|
var cookiePath = $browser.baseHref();
|
||||||
|
var rawDocument = $document[0];
|
||||||
|
|
||||||
|
function buildCookieString(name, value, options) {
|
||||||
|
var path, expires;
|
||||||
|
options = options || {};
|
||||||
|
expires = options.expires;
|
||||||
|
path = angular.isDefined(options.path) ? options.path : cookiePath;
|
||||||
|
if (angular.isUndefined(value)) {
|
||||||
|
expires = 'Thu, 01 Jan 1970 00:00:00 GMT';
|
||||||
|
value = '';
|
||||||
|
}
|
||||||
|
if (angular.isString(expires)) {
|
||||||
|
expires = new Date(expires);
|
||||||
|
}
|
||||||
|
|
||||||
|
var str = encodeURIComponent(name) + '=' + encodeURIComponent(value);
|
||||||
|
str += path ? ';path=' + path : '';
|
||||||
|
str += options.domain ? ';domain=' + options.domain : '';
|
||||||
|
str += expires ? ';expires=' + expires.toUTCString() : '';
|
||||||
|
str += options.secure ? ';secure' : '';
|
||||||
|
|
||||||
|
// per http://www.ietf.org/rfc/rfc2109.txt browser must allow at minimum:
|
||||||
|
// - 300 cookies
|
||||||
|
// - 20 cookies per unique domain
|
||||||
|
// - 4096 bytes per cookie
|
||||||
|
var cookieLength = str.length + 1;
|
||||||
|
if (cookieLength > 4096) {
|
||||||
|
$log.warn("Cookie '" + name +
|
||||||
|
"' possibly not set or overflowed because it was too large (" +
|
||||||
|
cookieLength + " > 4096 bytes)!");
|
||||||
|
}
|
||||||
|
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
return function(name, value, options) {
|
||||||
|
rawDocument.cookie = buildCookieString(name, value, options);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
$$CookieWriter.$inject = ['$document', '$log', '$browser'];
|
||||||
|
|
||||||
|
angular.module('ngCookies').provider('$$cookieWriter', function $$CookieWriterProvider() {
|
||||||
|
this.$get = $$CookieWriter;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
})(window, window.angular);
|
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
AngularJS v1.4.6
|
||||||
|
(c) 2010-2015 Google, Inc. http://angularjs.org
|
||||||
|
License: MIT
|
||||||
|
*/
|
||||||
|
(function(n,h,p){'use strict';function E(a){var f=[];r(f,h.noop).chars(a);return f.join("")}function g(a,f){var d={},c=a.split(","),b;for(b=0;b<c.length;b++)d[f?h.lowercase(c[b]):c[b]]=!0;return d}function F(a,f){function d(a,b,d,l){b=h.lowercase(b);if(s[b])for(;e.last()&&t[e.last()];)c("",e.last());u[b]&&e.last()==b&&c("",b);(l=v[b]||!!l)||e.push(b);var m={};d.replace(G,function(b,a,f,c,d){m[a]=q(f||c||d||"")});f.start&&f.start(b,m,l)}function c(b,a){var c=0,d;if(a=h.lowercase(a))for(c=e.length-
|
||||||
|
1;0<=c&&e[c]!=a;c--);if(0<=c){for(d=e.length-1;d>=c;d--)f.end&&f.end(e[d]);e.length=c}}"string"!==typeof a&&(a=null===a||"undefined"===typeof a?"":""+a);var b,k,e=[],m=a,l;for(e.last=function(){return e[e.length-1]};a;){l="";k=!0;if(e.last()&&w[e.last()])a=a.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+e.last()+"[^>]*>","i"),function(a,b){b=b.replace(H,"$1").replace(I,"$1");f.chars&&f.chars(q(b));return""}),c("",e.last());else{if(0===a.indexOf("\x3c!--"))b=a.indexOf("--",4),0<=b&&a.lastIndexOf("--\x3e",
|
||||||
|
b)===b&&(f.comment&&f.comment(a.substring(4,b)),a=a.substring(b+3),k=!1);else if(x.test(a)){if(b=a.match(x))a=a.replace(b[0],""),k=!1}else if(J.test(a)){if(b=a.match(y))a=a.substring(b[0].length),b[0].replace(y,c),k=!1}else K.test(a)&&((b=a.match(z))?(b[4]&&(a=a.substring(b[0].length),b[0].replace(z,d)),k=!1):(l+="<",a=a.substring(1)));k&&(b=a.indexOf("<"),l+=0>b?a:a.substring(0,b),a=0>b?"":a.substring(b),f.chars&&f.chars(q(l)))}if(a==m)throw L("badparse",a);m=a}c()}function q(a){if(!a)return"";A.innerHTML=
|
||||||
|
a.replace(/</g,"<");return A.textContent}function B(a){return a.replace(/&/g,"&").replace(M,function(a){var d=a.charCodeAt(0);a=a.charCodeAt(1);return"&#"+(1024*(d-55296)+(a-56320)+65536)+";"}).replace(N,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function r(a,f){var d=!1,c=h.bind(a,a.push);return{start:function(a,k,e){a=h.lowercase(a);!d&&w[a]&&(d=a);d||!0!==C[a]||(c("<"),c(a),h.forEach(k,function(d,e){var k=h.lowercase(e),g="img"===a&&"src"===k||
|
||||||
|
"background"===k;!0!==O[k]||!0===D[k]&&!f(d,g)||(c(" "),c(e),c('="'),c(B(d)),c('"'))}),c(e?"/>":">"))},end:function(a){a=h.lowercase(a);d||!0!==C[a]||(c("</"),c(a),c(">"));a==d&&(d=!1)},chars:function(a){d||c(B(a))}}}var L=h.$$minErr("$sanitize"),z=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,y=/^<\/\s*([\w:-]+)[^>]*>/,G=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,K=/^</,J=/^<\//,H=/\x3c!--(.*?)--\x3e/g,x=/<!DOCTYPE([^>]*?)>/i,
|
||||||
|
I=/<!\[CDATA\[(.*?)]]\x3e/g,M=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,N=/([^\#-~| |!])/g,v=g("area,br,col,hr,img,wbr");n=g("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr");p=g("rp,rt");var u=h.extend({},p,n),s=h.extend({},n,g("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),t=h.extend({},p,g("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"));
|
||||||
|
n=g("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use");var w=g("script,style"),C=h.extend({},v,s,t,u,n),D=g("background,cite,href,longdesc,src,usemap,xlink:href");n=g("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width");
|
||||||
|
p=g("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",
|
||||||
|
!0);var O=h.extend({},D,p,n),A=document.createElement("pre");h.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(a){return function(f){var d=[];F(f,r(d,function(c,b){return!/^unsafe/.test(a(c,b))}));return d.join("")}}]});h.module("ngSanitize").filter("linky",["$sanitize",function(a){var f=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,d=/^mailto:/i;return function(c,b){function k(a){a&&g.push(E(a))}function e(a,
|
||||||
|
c){g.push("<a ");h.isDefined(b)&&g.push('target="',b,'" ');g.push('href="',a.replace(/"/g,"""),'">');k(c);g.push("</a>")}if(!c)return c;for(var m,l=c,g=[],n,p;m=l.match(f);)n=m[0],m[2]||m[4]||(n=(m[3]?"http://":"mailto:")+n),p=m.index,k(l.substr(0,p)),e(n,m[0].replace(d,"")),l=l.substring(p+m[0].length);k(l);return a(g.join(""))}}])})(window,window.angular);
|
||||||
|
//# sourceMappingURL=angular-sanitize.min.js.map
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue