Skip to content

Commit 29c71a9

Browse files
committed
Upgraded to ABP v0.3.
1 parent 896d12a commit 29c71a9

34 files changed

+1439
-1264
lines changed

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Application/SimpleTaskSystem.Application.csproj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
<WarningLevel>4</WarningLevel>
3131
</PropertyGroup>
3232
<ItemGroup>
33-
<Reference Include="Abp, Version=0.2.4.0, Culture=neutral, processorArchitecture=MSIL">
33+
<Reference Include="Abp, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
3434
<SpecificVersion>False</SpecificVersion>
35-
<HintPath>..\packages\Abp.0.2.4.0\lib\net451\Abp.dll</HintPath>
35+
<HintPath>..\packages\Abp.0.3.0.0\lib\net451\Abp.dll</HintPath>
3636
</Reference>
37-
<Reference Include="Abp.Application, Version=0.2.4.0, Culture=neutral, processorArchitecture=MSIL">
37+
<Reference Include="Abp.Application, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
3838
<SpecificVersion>False</SpecificVersion>
39-
<HintPath>..\packages\Abp.Application.0.2.4.0\lib\net451\Abp.Application.dll</HintPath>
39+
<HintPath>..\packages\Abp.Application.0.3.0.0\lib\net451\Abp.Application.dll</HintPath>
4040
</Reference>
4141
<Reference Include="AutoMapper, Version=3.2.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
4242
<SpecificVersion>False</SpecificVersion>
@@ -54,10 +54,16 @@
5454
<SpecificVersion>False</SpecificVersion>
5555
<HintPath>..\packages\Castle.LoggingFacility.3.3.0\lib\net45\Castle.Facilities.Logging.dll</HintPath>
5656
</Reference>
57+
<Reference Include="Castle.Services.Logging.Log4netIntegration">
58+
<HintPath>..\packages\Castle.Core-log4net.3.3.0\lib\net45\Castle.Services.Logging.Log4netIntegration.dll</HintPath>
59+
</Reference>
5760
<Reference Include="Castle.Windsor, Version=3.3.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
5861
<SpecificVersion>False</SpecificVersion>
5962
<HintPath>..\packages\Castle.Windsor.3.3.0\lib\net45\Castle.Windsor.dll</HintPath>
6063
</Reference>
64+
<Reference Include="log4net">
65+
<HintPath>..\packages\log4net.1.2.10\lib\2.0\log4net.dll</HintPath>
66+
</Reference>
6167
<Reference Include="System" />
6268
<Reference Include="System.Collections.Immutable, Version=1.0.34.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
6369
<SpecificVersion>False</SpecificVersion>
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Abp" version="0.2.4.0" targetFramework="net451" />
4-
<package id="Abp.Application" version="0.2.4.0" targetFramework="net451" />
3+
<package id="Abp" version="0.3.0.0" targetFramework="net451" />
4+
<package id="Abp.Application" version="0.3.0.0" targetFramework="net451" />
55
<package id="AutoMapper" version="3.2.1" targetFramework="net451" />
66
<package id="Castle.Core" version="3.3.0" targetFramework="net451" />
7+
<package id="Castle.Core-log4net" version="3.3.0" targetFramework="net451" />
78
<package id="Castle.LoggingFacility" version="3.3.0" targetFramework="net451" />
89
<package id="Castle.Windsor" version="3.3.0" targetFramework="net451" />
10+
<package id="Castle.Windsor-log4net" version="3.3.0" targetFramework="net451" />
11+
<package id="log4net" version="1.2.10" targetFramework="net451" />
912
<package id="Microsoft.Bcl.Immutable" version="1.0.34" targetFramework="net451" />
1013
</packages>

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Core/SimpleTaskSystem.Core.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
<WarningLevel>4</WarningLevel>
3131
</PropertyGroup>
3232
<ItemGroup>
33-
<Reference Include="Abp, Version=0.2.4.0, Culture=neutral, processorArchitecture=MSIL">
33+
<Reference Include="Abp, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
3434
<SpecificVersion>False</SpecificVersion>
35-
<HintPath>..\packages\Abp.0.2.4.0\lib\net451\Abp.dll</HintPath>
35+
<HintPath>..\packages\Abp.0.3.0.0\lib\net451\Abp.dll</HintPath>
3636
</Reference>
3737
<Reference Include="Castle.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
3838
<SpecificVersion>False</SpecificVersion>
@@ -42,10 +42,16 @@
4242
<SpecificVersion>False</SpecificVersion>
4343
<HintPath>..\packages\Castle.LoggingFacility.3.3.0\lib\net45\Castle.Facilities.Logging.dll</HintPath>
4444
</Reference>
45+
<Reference Include="Castle.Services.Logging.Log4netIntegration">
46+
<HintPath>..\packages\Castle.Core-log4net.3.3.0\lib\net45\Castle.Services.Logging.Log4netIntegration.dll</HintPath>
47+
</Reference>
4548
<Reference Include="Castle.Windsor, Version=3.3.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
4649
<SpecificVersion>False</SpecificVersion>
4750
<HintPath>..\packages\Castle.Windsor.3.3.0\lib\net45\Castle.Windsor.dll</HintPath>
4851
</Reference>
52+
<Reference Include="log4net">
53+
<HintPath>..\packages\log4net.1.2.10\lib\2.0\log4net.dll</HintPath>
54+
</Reference>
4955
<Reference Include="System" />
5056
<Reference Include="System.Collections.Immutable, Version=1.0.34.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
5157
<SpecificVersion>False</SpecificVersion>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Abp" version="0.2.4.0" targetFramework="net451" />
3+
<package id="Abp" version="0.3.0.0" targetFramework="net451" />
44
<package id="Castle.Core" version="3.3.0" targetFramework="net451" />
5+
<package id="Castle.Core-log4net" version="3.3.0" targetFramework="net451" />
56
<package id="Castle.LoggingFacility" version="3.3.0" targetFramework="net451" />
67
<package id="Castle.Windsor" version="3.3.0" targetFramework="net451" />
8+
<package id="Castle.Windsor-log4net" version="3.3.0" targetFramework="net451" />
9+
<package id="log4net" version="1.2.10" targetFramework="net451" />
710
<package id="Microsoft.Bcl.Immutable" version="1.0.34" targetFramework="net451" />
811
</packages>

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Infrastructure.EntityFramework/SimpleTaskSystem.Infrastructure.EntityFramework.csproj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,23 @@
3030
<WarningLevel>4</WarningLevel>
3131
</PropertyGroup>
3232
<ItemGroup>
33-
<Reference Include="Abp, Version=0.2.4.0, Culture=neutral, processorArchitecture=MSIL">
33+
<Reference Include="Abp, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
3434
<SpecificVersion>False</SpecificVersion>
35-
<HintPath>..\packages\Abp.0.2.4.0\lib\net451\Abp.dll</HintPath>
35+
<HintPath>..\packages\Abp.0.3.0.0\lib\net451\Abp.dll</HintPath>
3636
</Reference>
37-
<Reference Include="Abp.Infrastructure.EntityFramework, Version=0.2.4.0, Culture=neutral, processorArchitecture=MSIL">
37+
<Reference Include="Abp.Infrastructure.EntityFramework, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
3838
<SpecificVersion>False</SpecificVersion>
39-
<HintPath>..\packages\Abp.Infrastructure.EntityFramework.0.2.4.0\lib\net451\Abp.Infrastructure.EntityFramework.dll</HintPath>
39+
<HintPath>..\packages\Abp.Infrastructure.EntityFramework.0.3.0.0\lib\net451\Abp.Infrastructure.EntityFramework.dll</HintPath>
4040
</Reference>
4141
<Reference Include="Castle.Core">
4242
<HintPath>..\packages\Castle.Core.3.3.0\lib\net45\Castle.Core.dll</HintPath>
4343
</Reference>
4444
<Reference Include="Castle.Facilities.Logging">
4545
<HintPath>..\packages\Castle.LoggingFacility.3.3.0\lib\net45\Castle.Facilities.Logging.dll</HintPath>
4646
</Reference>
47+
<Reference Include="Castle.Services.Logging.Log4netIntegration">
48+
<HintPath>..\packages\Castle.Core-log4net.3.3.0\lib\net45\Castle.Services.Logging.Log4netIntegration.dll</HintPath>
49+
</Reference>
4750
<Reference Include="Castle.Windsor">
4851
<HintPath>..\packages\Castle.Windsor.3.3.0\lib\net45\Castle.Windsor.dll</HintPath>
4952
</Reference>
@@ -58,6 +61,9 @@
5861
<SpecificVersion>False</SpecificVersion>
5962
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.SqlServer.dll</HintPath>
6063
</Reference>
64+
<Reference Include="log4net">
65+
<HintPath>..\packages\log4net.1.2.10\lib\2.0\log4net.dll</HintPath>
66+
</Reference>
6167
<Reference Include="System" />
6268
<Reference Include="System.Collections.Immutable">
6369
<HintPath>..\packages\Microsoft.Bcl.Immutable.1.0.34\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Abp" version="0.2.4.0" targetFramework="net451" />
4-
<package id="Abp.Infrastructure.EntityFramework" version="0.2.4.0" targetFramework="net451" />
3+
<package id="Abp" version="0.3.0.0" targetFramework="net451" />
4+
<package id="Abp.Infrastructure.EntityFramework" version="0.3.0.0" targetFramework="net451" />
55
<package id="Castle.Core" version="3.3.0" targetFramework="net451" />
6+
<package id="Castle.Core-log4net" version="3.3.0" targetFramework="net451" />
67
<package id="Castle.LoggingFacility" version="3.3.0" targetFramework="net451" />
78
<package id="Castle.Windsor" version="3.3.0" targetFramework="net451" />
9+
<package id="Castle.Windsor-log4net" version="3.3.0" targetFramework="net451" />
810
<package id="DynamicQuery" version="1.0" targetFramework="net451" />
911
<package id="EntityFramework" version="6.1.1" targetFramework="net451" />
12+
<package id="log4net" version="1.2.10" targetFramework="net451" />
1013
<package id="Microsoft.Bcl.Immutable" version="1.0.34" targetFramework="net451" />
1114
</packages>

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Web/Scripts/angular-animate.js

Lines changed: 75 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.2.19
2+
* @license AngularJS v1.2.20
33
* (c) 2010-2014 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -64,8 +64,22 @@
6464
* <ANY class="slide" ng-include="..."></ANY>
6565
* ```
6666
*
67-
* Keep in mind that if an animation is running, any child elements cannot be animated until the parent element's
68-
* animation has completed.
67+
* Keep in mind that, by default, if an animation is running, any child elements cannot be animated
68+
* until the parent element's animation has completed. This blocking feature can be overridden by
69+
* placing the `ng-animate-children` attribute on a parent container tag.
70+
*
71+
* ```html
72+
* <div class="slide-animation" ng-if="on" ng-animate-children>
73+
* <div class="fade-animation" ng-if="on">
74+
* <div class="explode-animation" ng-if="on">
75+
* ...
76+
* </div>
77+
* </div>
78+
* </div>
79+
* ```
80+
*
81+
* When the `on` expression value changes and an animation is triggered then each of the elements within
82+
* will all animate without the block being applied to child elements.
6983
*
7084
* <h2>CSS-defined Animations</h2>
7185
* The animate service will automatically apply two CSS classes to the animated element and these two CSS classes
@@ -255,6 +269,19 @@ angular.module('ngAnimate', ['ng'])
255269
* Please visit the {@link ngAnimate `ngAnimate`} module overview page learn more about how to use animations in your application.
256270
*
257271
*/
272+
.directive('ngAnimateChildren', function() {
273+
var NG_ANIMATE_CHILDREN = '$$ngAnimateChildren';
274+
return function(scope, element, attrs) {
275+
var val = attrs.ngAnimateChildren;
276+
if(angular.isString(val) && val.length === 0) { //empty attribute
277+
element.data(NG_ANIMATE_CHILDREN, true);
278+
} else {
279+
scope.$watch(val, function(value) {
280+
element.data(NG_ANIMATE_CHILDREN, !!value);
281+
});
282+
}
283+
};
284+
})
258285

259286
//this private service is only used within CSS-enabled animations
260287
//IE8 + IE9 do not support rAF natively, but that is fine since they
@@ -283,6 +310,7 @@ angular.module('ngAnimate', ['ng'])
283310

284311
var ELEMENT_NODE = 1;
285312
var NG_ANIMATE_STATE = '$$ngAnimateState';
313+
var NG_ANIMATE_CHILDREN = '$$ngAnimateChildren';
286314
var NG_ANIMATE_CLASS_NAME = 'ng-animate';
287315
var rootAnimateState = {running: true};
288316

@@ -332,6 +360,12 @@ angular.module('ngAnimate', ['ng'])
332360
return classNameFilter.test(className);
333361
};
334362

363+
function blockElementAnimations(element) {
364+
var data = element.data(NG_ANIMATE_STATE) || {};
365+
data.running = true;
366+
element.data(NG_ANIMATE_STATE, data);
367+
}
368+
335369
function lookup(name) {
336370
if (name) {
337371
var matches = [],
@@ -558,7 +592,7 @@ angular.module('ngAnimate', ['ng'])
558592
parentElement = prepareElement(parentElement);
559593
afterElement = prepareElement(afterElement);
560594

561-
this.enabled(false, element);
595+
blockElementAnimations(element);
562596
$delegate.enter(element, parentElement, afterElement);
563597
$rootScope.$$postDigest(function() {
564598
element = stripCommentsFromElement(element);
@@ -596,7 +630,7 @@ angular.module('ngAnimate', ['ng'])
596630
leave : function(element, doneCallback) {
597631
element = angular.element(element);
598632
cancelChildAnimations(element);
599-
this.enabled(false, element);
633+
blockElementAnimations(element);
600634
$rootScope.$$postDigest(function() {
601635
performAnimation('leave', 'ng-leave', stripCommentsFromElement(element), null, null, function() {
602636
$delegate.leave(element);
@@ -640,7 +674,7 @@ angular.module('ngAnimate', ['ng'])
640674
afterElement = prepareElement(afterElement);
641675

642676
cancelChildAnimations(element);
643-
this.enabled(false, element);
677+
blockElementAnimations(element);
644678
$delegate.move(element, parentElement, afterElement);
645679
$rootScope.$$postDigest(function() {
646680
element = stripCommentsFromElement(element);
@@ -814,9 +848,12 @@ angular.module('ngAnimate', ['ng'])
814848

815849
//only allow animations if the currently running animation is not structural
816850
//or if there is no animation running at all
817-
var skipAnimations = runner.isClassBased ?
818-
ngAnimateState.disabled || (lastAnimation && !lastAnimation.isClassBased) :
819-
false;
851+
var skipAnimations;
852+
if (runner.isClassBased) {
853+
skipAnimations = ngAnimateState.running ||
854+
ngAnimateState.disabled ||
855+
(lastAnimation && !lastAnimation.isClassBased);
856+
}
820857

821858
//skip the animation if animations are disabled, a parent is already being animated,
822859
//the element is not currently attached to the document body or then completely close
@@ -1033,30 +1070,49 @@ angular.module('ngAnimate', ['ng'])
10331070
}
10341071

10351072
function animationsDisabled(element, parentElement) {
1036-
if (rootAnimateState.disabled) return true;
1073+
if (rootAnimateState.disabled) {
1074+
return true;
1075+
}
10371076

1038-
if(isMatchingElement(element, $rootElement)) {
1039-
return rootAnimateState.disabled || rootAnimateState.running;
1077+
if (isMatchingElement(element, $rootElement)) {
1078+
return rootAnimateState.running;
10401079
}
10411080

1081+
var allowChildAnimations, parentRunningAnimation, hasParent;
10421082
do {
10431083
//the element did not reach the root element which means that it
10441084
//is not apart of the DOM. Therefore there is no reason to do
10451085
//any animations on it
1046-
if(parentElement.length === 0) break;
1086+
if (parentElement.length === 0) break;
10471087

10481088
var isRoot = isMatchingElement(parentElement, $rootElement);
1049-
var state = isRoot ? rootAnimateState : parentElement.data(NG_ANIMATE_STATE);
1050-
var result = state && (!!state.disabled || state.running || state.totalActive > 0);
1051-
if(isRoot || result) {
1052-
return result;
1089+
var state = isRoot ? rootAnimateState : (parentElement.data(NG_ANIMATE_STATE) || {});
1090+
if (state.disabled) {
1091+
return true;
1092+
}
1093+
1094+
//no matter what, for an animation to work it must reach the root element
1095+
//this implies that the element is attached to the DOM when the animation is run
1096+
if (isRoot) {
1097+
hasParent = true;
10531098
}
10541099

1055-
if(isRoot) return true;
1100+
//once a flag is found that is strictly false then everything before
1101+
//it will be discarded and all child animations will be restricted
1102+
if (allowChildAnimations !== false) {
1103+
var animateChildrenFlag = parentElement.data(NG_ANIMATE_CHILDREN);
1104+
if(angular.isDefined(animateChildrenFlag)) {
1105+
allowChildAnimations = animateChildrenFlag;
1106+
}
1107+
}
1108+
1109+
parentRunningAnimation = parentRunningAnimation ||
1110+
state.running ||
1111+
(state.last && !state.last.isClassBased);
10561112
}
10571113
while(parentElement = parentElement.parent());
10581114

1059-
return true;
1115+
return !hasParent || (!allowChildAnimations && parentRunningAnimation);
10601116
}
10611117
}]);
10621118

0 commit comments

Comments
 (0)