angular-route v1.2.32 (#688)

This commit is contained in:
nobody 2021-09-20 06:52:34 +02:00
parent b36b88f1af
commit bb2584b607
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
5 changed files with 20 additions and 1 deletions

View File

@ -135,7 +135,6 @@ https://cdnjs.cloudflare.com/ajax/libs/angular-message-format/1.8.2/angular-mess
https://cdnjs.cloudflare.com/ajax/libs/angular-messages/1.8.2/angular-messages.min.js
https://cdnjs.cloudflare.com/ajax/libs/angular-parse-ext/1.8.2/angular-parse-ext.min.js
https://cdnjs.cloudflare.com/ajax/libs/angular-resource/1.8.2/angular-resource.min.js
https://cdnjs.cloudflare.com/ajax/libs/angular-route/1.8.2/angular-route.min.js
https://cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.6.10/angular-sanitize.min.js
https://cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.8.2/angular-sanitize.min.js
https://cdnjs.cloudflare.com/ajax/libs/angular-touch/1.8.2/angular-touch.min.js
@ -1677,6 +1676,8 @@ https://cdn.jsdelivr.net/g/algoliasearch@3(algoliasearchLite.min.js),algoliasear
https://cdn.jsdelivr.net/npm/@algolia/autocomplete-js@1.1.0/dist/umd/index.production.min.js
https://cdn.jsdelivr.net/npm/anchor-js@3.2.2/anchor.min.js
https://cdn.jsdelivr.net/npm/anchor-js@4.3.1/anchor.min.js
https://cdn.jsdelivr.net/npm/angular-route@1.2.32/angular-route.min.js
https://cdn.jsdelivr.net/npm/angular-route@1.8.2/angular-route.min.js
https://cdn.jsdelivr.net/npm/angular-stripe-checkout@5.1.0/angular-stripe-checkout.min.js
https://cdn.jsdelivr.net/npm/appboy-web-sdk@3.3.0/appboy.min.js
https://cdn.jsdelivr.net/npm/@babel/standalone@7.14.6/babel.min.js

View File

@ -687,6 +687,8 @@ function create_url() {
elif [[ "$subfile" =~ \.js$ ]]; then
url="$CLOUDFLARE/$folder/$version/js/$subfile"
fi
elif [ "$folder" = "angular-route" ]; then
url="$JSDELIVR/npm/$folder@$version/angular-route.min.js"
# --------------------------------------------------------------------------
# TODO: REMOVE WHEN CDNJS.COM AUTO UPDATE BOT IS FULLY FUNCTIONAL AGAIN
elif [ "$folder" = "noUiSlider" ] && [ "$version" != "14.7.0" ];then

View File

@ -126,6 +126,7 @@ targets.setLastVersion = function (type, version) {
} else if (type.startsWith('/angular-resource/1.')) {
return '1.8.2';
} else if (type.startsWith('/angular-route/1.')) {
if (helpers.compareVersion('1.2.32', version)) return '1.2.32'; // <= v1.2.32
return '1.8.2';
} else if (type.startsWith('/angular-sanitize/1.')) {
if (helpers.compareVersion('1.6.10', version)) return '1.6.10';

View File

@ -42,6 +42,7 @@
<li>Pure CSS v0.6.2 v1.0.1 v2.0.6 (<a href="https://codeberg.org/nobody/LocalCDN/issues/683">#683</a>)</li>
<li>vex-js v3.1.1 v4.1.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/684">#684</a>)</li>
<li>Foundation Icon Fonts v3.0.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/685">#685</a>)</li>
<li>angular-route v1.2.32 (<a href="https://codeberg.org/nobody/LocalCDN/issues/688">#688</a>)</li>
</ul>
</div>
<div id="generator-section">

View File

@ -0,0 +1,14 @@
/*
AngularJS v1.2.32
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(function(n,e,A){'use strict';function x(s,g,h){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,c,b,f,w){function y(){p&&(p.remove(),p=null);k&&(k.$destroy(),k=null);l&&(h.leave(l,function(){p=null}),p=l,l=null)}function v(){var b=s.current&&s.current.locals;if(e.isDefined(b&&b.$template)){var b=a.$new(),d=s.current;l=w(b,function(d){h.enter(d,null,l||c,function(){!e.isDefined(t)||t&&!a.$eval(t)||g()});y()});k=d.scope=b;k.$emit("$viewContentLoaded");k.$eval(u)}else y()}
var k,l,p,t=b.autoscroll,u=b.onload||"";a.$on("$routeChangeSuccess",v);v()}}}function z(e,g,h){return{restrict:"ECA",priority:-400,link:function(a,c){var b=h.current,f=b.locals;c.html(f.$template);var w=e(c.contents());b.controller&&(f.$scope=a,f=g(b.controller,f),b.controllerAs&&(a[b.controllerAs]=f),c.data("$ngControllerController",f),c.children().data("$ngControllerController",f));w(a)}}}n=e.module("ngRoute",["ng"]).provider("$route",function(){function s(a,c){return e.extend(new (e.extend(function(){},
{prototype:a})),c)}function g(a,e){var b=e.caseInsensitiveMatch,f={originalPath:a,regexp:a},h=f.keys=[];a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,e,b,c){a="?"===c?c:null;c="*"===c?c:null;h.push({name:b,optional:!!a});e=e||"";return""+(a?"":e)+"(?:"+(a?e:"")+(c&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1");f.regexp=RegExp("^"+a+"$",b?"i":"");return f}var h={};this.when=function(a,c){h[a]=e.extend({reloadOnSearch:!0},c,a&&g(a,c));if(a){var b=
"/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";h[b]=e.extend({redirectTo:a},g(b,c))}return this};this.otherwise=function(a){this.when(null,a);return this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$http","$templateCache","$sce",function(a,c,b,f,g,n,v,k){function l(){var d=p(),m=r.current;if(d&&m&&d.$$route===m.$$route&&e.equals(d.pathParams,m.pathParams)&&!d.reloadOnSearch&&!u)m.params=d.params,e.copy(m.params,b),a.$broadcast("$routeUpdate",m);else if(d||m)u=!1,a.$broadcast("$routeChangeStart",
d,m),(r.current=d)&&d.redirectTo&&(e.isString(d.redirectTo)?c.path(t(d.redirectTo,d.params)).search(d.params).replace():c.url(d.redirectTo(d.pathParams,c.path(),c.search())).replace()),f.when(d).then(function(){if(d){var a=e.extend({},d.resolve),c,b;e.forEach(a,function(d,c){a[c]=e.isString(d)?g.get(d):g.invoke(d)});e.isDefined(c=d.template)?e.isFunction(c)&&(c=c(d.params)):e.isDefined(b=d.templateUrl)&&(e.isFunction(b)&&(b=b(d.params)),b=k.getTrustedResourceUrl(b),e.isDefined(b)&&(d.loadedTemplateUrl=
b,c=n.get(b,{cache:v}).then(function(a){return a.data})));e.isDefined(c)&&(a.$template=c);return f.all(a)}}).then(function(c){d==r.current&&(d&&(d.locals=c,e.copy(d.params,b)),a.$broadcast("$routeChangeSuccess",d,m))},function(c){d==r.current&&a.$broadcast("$routeChangeError",d,m,c)})}function p(){var a,b;e.forEach(h,function(f,h){var q;if(q=!b){var g=c.path();q=f.keys;var l={};if(f.regexp)if(g=f.regexp.exec(g)){for(var k=1,p=g.length;k<p;++k){var n=q[k-1],r=g[k];n&&r&&(l[n.name]=r)}q=l}else q=null;
else q=null;q=a=q}q&&(b=s(f,{params:e.extend({},c.search(),a),pathParams:a}),b.$$route=f)});return b||h[null]&&s(h[null],{params:{},pathParams:{}})}function t(a,c){var b=[];e.forEach((a||"").split(":"),function(a,d){if(0===d)b.push(a);else{var e=a.match(/(\w+)(?:[?*])?(.*)/),f=e[1];b.push(c[f]);b.push(e[2]||"");delete c[f]}});return b.join("")}var u=!1,r={routes:h,reload:function(){u=!0;a.$evalAsync(l)}};a.$on("$locationChangeSuccess",l);return r}]});n.provider("$routeParams",function(){this.$get=
function(){return{}}});n.directive("ngView",x);n.directive("ngView",z);x.$inject=["$route","$anchorScroll","$animate"];z.$inject=["$compile","$controller","$route"]})(window,window.angular);
//# sourceMappingURL=angular-route.min.js.map