Separação API portal condómino

main
Hugo Prata 6 years ago
parent 00583fca2f
commit 81f34510ae

@ -1,9 +1,9 @@
/*! /*!
* jQuery Validation Plugin v1.17.0 * jQuery Validation Plugin v1.19.1
* *
* https://jqueryvalidation.org/ * https://jqueryvalidation.org/
* *
* Copyright (c) 2017 Jörn Zaefferer * Copyright (c) 2019 Jörn Zaefferer
* Released under the MIT license * Released under the MIT license
*/ */
(function( factory ) { (function( factory ) {
@ -67,6 +67,7 @@ $.extend( $.fn, {
// Prevent form submit to be able to see console output // Prevent form submit to be able to see console output
event.preventDefault(); event.preventDefault();
} }
function handle() { function handle() {
var hidden, result; var hidden, result;
@ -82,7 +83,7 @@ $.extend( $.fn, {
.appendTo( validator.currentForm ); .appendTo( validator.currentForm );
} }
if ( validator.settings.submitHandler ) { if ( validator.settings.submitHandler && !validator.settings.debug ) {
result = validator.settings.submitHandler.call( validator, validator.currentForm, event ); result = validator.settings.submitHandler.call( validator, validator.currentForm, event );
if ( hidden ) { if ( hidden ) {
@ -142,6 +143,7 @@ $.extend( $.fn, {
// https://jqueryvalidation.org/rules/ // https://jqueryvalidation.org/rules/
rules: function( command, argument ) { rules: function( command, argument ) {
var element = this[ 0 ], var element = this[ 0 ],
isContentEditable = typeof this.attr( "contenteditable" ) !== "undefined" && this.attr( "contenteditable" ) !== "false",
settings, staticRules, existingRules, data, param, filtered; settings, staticRules, existingRules, data, param, filtered;
// If nothing is selected, return empty object; can't chain anyway // If nothing is selected, return empty object; can't chain anyway
@ -149,7 +151,7 @@ $.extend( $.fn, {
return; return;
} }
if ( !element.form && element.hasAttribute( "contenteditable" ) ) { if ( !element.form && isContentEditable ) {
element.form = this.closest( "form" )[ 0 ]; element.form = this.closest( "form" )[ 0 ];
element.name = this.attr( "name" ); element.name = this.attr( "name" );
} }
@ -393,7 +395,8 @@ $.extend( $.validator, {
this.invalid = {}; this.invalid = {};
this.reset(); this.reset();
var groups = ( this.groups = {} ), var currentForm = this.currentForm,
groups = ( this.groups = {} ),
rules; rules;
$.each( this.settings.groups, function( key, value ) { $.each( this.settings.groups, function( key, value ) {
if ( typeof value === "string" ) { if ( typeof value === "string" ) {
@ -409,13 +412,20 @@ $.extend( $.validator, {
} ); } );
function delegate( event ) { function delegate( event ) {
var isContentEditable = typeof $( this ).attr( "contenteditable" ) !== "undefined" && $( this ).attr( "contenteditable" ) !== "false";
// Set form expando on contenteditable // Set form expando on contenteditable
if ( !this.form && this.hasAttribute( "contenteditable" ) ) { if ( !this.form && isContentEditable ) {
this.form = $( this ).closest( "form" )[ 0 ]; this.form = $( this ).closest( "form" )[ 0 ];
this.name = $( this ).attr( "name" ); this.name = $( this ).attr( "name" );
} }
// Ignore the element if it belongs to another form. This will happen mainly
// when setting the `form` attribute of an input to the id of another form.
if ( currentForm !== this.form ) {
return;
}
var validator = $.data( this.form, "validator" ), var validator = $.data( this.form, "validator" ),
eventType = "on" + event.type.replace( /^validate/, "" ), eventType = "on" + event.type.replace( /^validate/, "" ),
settings = validator.settings; settings = validator.settings;
@ -610,7 +620,7 @@ $.extend( $.validator, {
try { try {
$( this.findLastActive() || this.errorList.length && this.errorList[ 0 ].element || [] ) $( this.findLastActive() || this.errorList.length && this.errorList[ 0 ].element || [] )
.filter( ":visible" ) .filter( ":visible" )
.focus() .trigger( "focus" )
// Manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find // Manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find
.trigger( "focusin" ); .trigger( "focusin" );
@ -639,16 +649,23 @@ $.extend( $.validator, {
.not( this.settings.ignore ) .not( this.settings.ignore )
.filter( function() { .filter( function() {
var name = this.name || $( this ).attr( "name" ); // For contenteditable var name = this.name || $( this ).attr( "name" ); // For contenteditable
var isContentEditable = typeof $( this ).attr( "contenteditable" ) !== "undefined" && $( this ).attr( "contenteditable" ) !== "false";
if ( !name && validator.settings.debug && window.console ) { if ( !name && validator.settings.debug && window.console ) {
console.error( "%o has no name assigned", this ); console.error( "%o has no name assigned", this );
} }
// Set form expando on contenteditable // Set form expando on contenteditable
if ( this.hasAttribute( "contenteditable" ) ) { if ( isContentEditable ) {
this.form = $( this ).closest( "form" )[ 0 ]; this.form = $( this ).closest( "form" )[ 0 ];
this.name = name; this.name = name;
} }
// Ignore elements that belong to other/nested forms
if ( this.form !== validator.currentForm ) {
return false;
}
// Select only the first element for each name, and only those with rules specified // Select only the first element for each name, and only those with rules specified
if ( name in rulesCache || !validator.objectLength( $( this ).rules() ) ) { if ( name in rulesCache || !validator.objectLength( $( this ).rules() ) ) {
return false; return false;
@ -694,6 +711,7 @@ $.extend( $.validator, {
elementValue: function( element ) { elementValue: function( element ) {
var $element = $( element ), var $element = $( element ),
type = element.type, type = element.type,
isContentEditable = typeof $element.attr( "contenteditable" ) !== "undefined" && $element.attr( "contenteditable" ) !== "false",
val, idx; val, idx;
if ( type === "radio" || type === "checkbox" ) { if ( type === "radio" || type === "checkbox" ) {
@ -702,7 +720,7 @@ $.extend( $.validator, {
return element.validity.badInput ? "NaN" : $element.val(); return element.validity.badInput ? "NaN" : $element.val();
} }
if ( element.hasAttribute( "contenteditable" ) ) { if ( isContentEditable ) {
val = $element.text(); val = $element.text();
} else { } else {
val = $element.val(); val = $element.val();
@ -763,10 +781,6 @@ $.extend( $.validator, {
if ( normalizer ) { if ( normalizer ) {
val = normalizer.call( element, val ); val = normalizer.call( element, val );
if ( typeof val !== "string" ) {
throw new TypeError( "The normalizer should return a string value." );
}
// Delete the normalizer from rules to avoid treating it as a pre-defined method. // Delete the normalizer from rules to avoid treating it as a pre-defined method.
delete rules.normalizer; delete rules.normalizer;
} }
@ -1142,7 +1156,19 @@ $.extend( $.validator, {
.removeData( "validator" ) .removeData( "validator" )
.find( ".validate-equalTo-blur" ) .find( ".validate-equalTo-blur" )
.off( ".validate-equalTo" ) .off( ".validate-equalTo" )
.removeClass( "validate-equalTo-blur" ); .removeClass( "validate-equalTo-blur" )
.find( ".validate-lessThan-blur" )
.off( ".validate-lessThan" )
.removeClass( "validate-lessThan-blur" )
.find( ".validate-lessThanEqual-blur" )
.off( ".validate-lessThanEqual" )
.removeClass( "validate-lessThanEqual-blur" )
.find( ".validate-greaterThanEqual-blur" )
.off( ".validate-greaterThanEqual" )
.removeClass( "validate-greaterThanEqual-blur" )
.find( ".validate-greaterThan-blur" )
.off( ".validate-greaterThan" )
.removeClass( "validate-greaterThan-blur" );
} }
}, },
@ -1246,6 +1272,12 @@ $.extend( $.validator, {
for ( method in $.validator.methods ) { for ( method in $.validator.methods ) {
value = $element.data( "rule" + method.charAt( 0 ).toUpperCase() + method.substring( 1 ).toLowerCase() ); value = $element.data( "rule" + method.charAt( 0 ).toUpperCase() + method.substring( 1 ).toLowerCase() );
// Cast empty attributes like `data-rule-required` to `true`
if ( value === "" ) {
value = true;
}
this.normalizeAttributeRule( rules, type, method, value ); this.normalizeAttributeRule( rules, type, method, value );
} }
return rules; return rules;
@ -1371,7 +1403,7 @@ $.extend( $.validator, {
if ( this.checkable( element ) ) { if ( this.checkable( element ) ) {
return this.getLength( value, element ) > 0; return this.getLength( value, element ) > 0;
} }
return value.length > 0; return value !== undefined && value !== null && value.length > 0;
}, },
// https://jqueryvalidation.org/email-method/ // https://jqueryvalidation.org/email-method/
@ -1395,9 +1427,26 @@ $.extend( $.validator, {
}, },
// https://jqueryvalidation.org/date-method/ // https://jqueryvalidation.org/date-method/
date: function( value, element ) { date: ( function() {
var called = false;
return function( value, element ) {
if ( !called ) {
called = true;
if ( this.settings.debug && window.console ) {
console.warn(
"The `date` method is deprecated and will be removed in version '2.0.0'.\n" +
"Please don't use it, since it relies on the Date constructor, which\n" +
"behaves very differently across browsers and locales. Use `dateISO`\n" +
"instead or one of the locale specific methods in `localizations/`\n" +
"and `additional-methods.js`."
);
}
}
return this.optional( element ) || !/Invalid|NaN/.test( new Date( value ).toString() ); return this.optional( element ) || !/Invalid|NaN/.test( new Date( value ).toString() );
}, };
}() ),
// https://jqueryvalidation.org/dateISO-method/ // https://jqueryvalidation.org/dateISO-method/
dateISO: function( value, element ) { dateISO: function( value, element ) {

File diff suppressed because one or more lines are too long

@ -11,6 +11,7 @@
<connectionStrings> <connectionStrings>
<add name="GCIContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe;" providerName="System.Data.SqlClient" /> <add name="GCIContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe;" providerName="System.Data.SqlClient" />
<add name="GCICoreContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" /> <add name="GCICoreContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
<add name="UTLDbContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
<add name="AuthContext" connectionString="Data Source=.; Initial Catalog=GCIPortal; User ID=condomino; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" /> <add name="AuthContext" connectionString="Data Source=.; Initial Catalog=GCIPortal; User ID=condomino; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
<add name="EntityContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" /> <add name="EntityContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
<add name="DocumentDbContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" /> <add name="DocumentDbContext" connectionString="Data Source=.; Initial Catalog=GCI; User ID=sa; Password=123qwe; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
@ -22,6 +23,7 @@
<add key="UnobtrusiveJavaScriptEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="DBLOCAL" value="virtualdenariu\SQL2014" /> <add key="DBLOCAL" value="virtualdenariu\SQL2014" />
<add key="SecretKey" value="6Len3qoUAAAAACeos1rsszhVW7_gxop_wYaFZVj7" /> <add key="SecretKey" value="6Len3qoUAAAAACeos1rsszhVW7_gxop_wYaFZVj7" />
<add key="344C7D3E-653D-433D-9FCA-F1D6341B061C" value="QlQ4eF9XaEktQ1JkYnhYUENXTG51MFItTVpMSjNRV3lRTUxHRWdZSnpkYw==" />
<add key="serilog:minimum-level" value="Debug" /> <add key="serilog:minimum-level" value="Debug" />
<add key="serilog:enrich:with-property:Application" value="GCI.PortalCondomino" /> <add key="serilog:enrich:with-property:Application" value="GCI.PortalCondomino" />
<add key="serilog:enrich:with-property:Environment" value="PROD" /> <add key="serilog:enrich:with-property:Environment" value="PROD" />
@ -61,7 +63,7 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" /> <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" /> <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" />
@ -101,7 +103,7 @@
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="SimpleInjector" publicKeyToken="984cb50dea722e99" culture="neutral" /> <assemblyIdentity name="SimpleInjector" publicKeyToken="984cb50dea722e99" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.6.1.0" newVersion="4.6.1.0" /> <bindingRedirect oldVersion="0.0.0.0-4.9.0.0" newVersion="4.9.0.0" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
@ -123,6 +125,10 @@
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" /> <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
</assemblyBinding> </assemblyBinding>
</runtime> </runtime>
<entityFramework> <entityFramework>

@ -4,7 +4,7 @@
<package id="bootstrap" version="3.3.7" targetFramework="net452" /> <package id="bootstrap" version="3.3.7" targetFramework="net452" />
<package id="EntityFramework" version="6.4.0" targetFramework="net461" /> <package id="EntityFramework" version="6.4.0" targetFramework="net461" />
<package id="jQuery" version="3.4.1" targetFramework="net461" /> <package id="jQuery" version="3.4.1" targetFramework="net461" />
<package id="jQuery.Validation" version="1.17.0" targetFramework="net461" /> <package id="jQuery.Validation" version="1.19.1" targetFramework="net461" />
<package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net461" /> <package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net461" />
<package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net461" /> <package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net461" />
<package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net452" /> <package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net452" />
@ -13,30 +13,35 @@
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.7" targetFramework="net461" /> <package id="Microsoft.AspNet.WebApi.Core" version="5.2.7" targetFramework="net461" />
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.7" targetFramework="net461" /> <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.7" targetFramework="net461" />
<package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net461" /> <package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net461" />
<package id="Microsoft.CodeAnalysis.FxCopAnalyzers" version="2.9.8" targetFramework="net461" developmentDependency="true" />
<package id="Microsoft.CodeAnalysis.VersionCheckAnalyzer" version="2.9.8" targetFramework="net461" developmentDependency="true" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net461" /> <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net461" />
<package id="Microsoft.IdentityModel.Logging" version="5.5.0" targetFramework="net461" /> <package id="Microsoft.CodeQuality.Analyzers" version="2.9.8" targetFramework="net461" developmentDependency="true" />
<package id="Microsoft.IdentityModel.Tokens" version="5.5.0" targetFramework="net461" /> <package id="Microsoft.IdentityModel.Logging" version="5.6.0" targetFramework="net461" />
<package id="Microsoft.IdentityModel.Tokens" version="5.6.0" targetFramework="net461" />
<package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.11" targetFramework="net461" /> <package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.11" targetFramework="net461" />
<package id="Microsoft.Net.Compilers" version="3.1.1" targetFramework="net461" developmentDependency="true" /> <package id="Microsoft.NetCore.Analyzers" version="2.9.8" targetFramework="net461" developmentDependency="true" />
<package id="Microsoft.Owin" version="4.0.1" targetFramework="net461" /> <package id="Microsoft.NetFramework.Analyzers" version="2.9.8" targetFramework="net461" developmentDependency="true" />
<package id="Microsoft.Owin.Host.SystemWeb" version="4.0.1" targetFramework="net461" /> <package id="Microsoft.Owin" version="4.1.0" targetFramework="net461" />
<package id="Microsoft.Owin.Security" version="4.0.1" targetFramework="net461" /> <package id="Microsoft.Owin.Host.SystemWeb" version="4.1.0" targetFramework="net461" />
<package id="Microsoft.Owin.Security.Cookies" version="4.0.1" targetFramework="net461" /> <package id="Microsoft.Owin.Security" version="4.1.0" targetFramework="net461" />
<package id="Microsoft.Owin.Security.OAuth" version="4.0.1" targetFramework="net461" /> <package id="Microsoft.Owin.Security.Cookies" version="4.1.0" targetFramework="net461" />
<package id="Microsoft.Owin.Security.OAuth" version="4.1.0" targetFramework="net461" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net452" /> <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net452" />
<package id="Modernizr" version="2.8.3" targetFramework="net452" /> <package id="Modernizr" version="2.8.3" targetFramework="net452" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net461" /> <package id="Newtonsoft.Json" version="12.0.3" targetFramework="net461" />
<package id="NWebsec.Core" version="2.1.0" targetFramework="net461" /> <package id="NWebsec.Core" version="3.0.0" targetFramework="net461" />
<package id="NWebsec.Owin" version="3.1.0" targetFramework="net461" /> <package id="NWebsec.Owin" version="4.0.0" targetFramework="net461" />
<package id="Owin" version="1.0" targetFramework="net452" /> <package id="Owin" version="1.0" targetFramework="net452" />
<package id="Respond" version="1.4.2" targetFramework="net452" /> <package id="Respond" version="1.4.2" targetFramework="net452" />
<package id="Serilog" version="2.9.0" targetFramework="net461" /> <package id="Serilog" version="2.9.0" targetFramework="net461" />
<package id="Serilog.Settings.AppSettings" version="2.2.2" targetFramework="net461" /> <package id="Serilog.Settings.AppSettings" version="2.2.2" targetFramework="net461" />
<package id="Serilog.Sinks.File" version="4.1.0" targetFramework="net461" /> <package id="Serilog.Sinks.File" version="4.1.0" targetFramework="net461" />
<package id="SerilogAnalyzer" version="0.15.0.0" targetFramework="net461" /> <package id="SerilogAnalyzer" version="0.15.0.0" targetFramework="net461" />
<package id="SimpleInjector" version="4.8.1" targetFramework="net461" /> <package id="SimpleInjector" version="4.9.0" targetFramework="net461" />
<package id="SimpleInjector.Integration.Web" version="4.8.1" targetFramework="net461" /> <package id="SimpleInjector.Integration.Web" version="4.9.0" targetFramework="net461" />
<package id="SimpleInjector.Integration.Web.Mvc" version="4.8.1" targetFramework="net461" /> <package id="SimpleInjector.Integration.Web.Mvc" version="4.9.0" targetFramework="net461" />
<package id="SimpleInjector.Integration.WebApi" version="4.9.0" targetFramework="net461" />
<package id="toastr" version="2.1.1" targetFramework="net452" /> <package id="toastr" version="2.1.1" targetFramework="net452" />
<package id="WebGrease" version="1.6.0" targetFramework="net452" /> <package id="WebGrease" version="1.6.0" targetFramework="net452" />
</packages> </packages>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -20,6 +20,9 @@
<add key="maintenanceUrl" value="https://denariu.net:5050"/> <add key="maintenanceUrl" value="https://denariu.net:5050"/>
<add key="maintenanceClientId" value="admin" /> <add key="maintenanceClientId" value="admin" />
<add key="maintenanceClientSecret" value="2417663E-46E0-4E05-85EE-B38DE40F4ECB" /> <add key="maintenanceClientSecret" value="2417663E-46E0-4E05-85EE-B38DE40F4ECB" />
<add key="portalCondominoUrl" value="https://denariu.net"/>
<!--<add key="portalCondominoUrl" value="http://localhost.fiddler:59024/" />-->
<add key="344C7D3E-653D-433D-9FCA-F1D6341B061C" value="QlQ4eF9XaEktQ1JkYnhYUENXTG51MFItTVpMSjNRV3lRTUxHRWdZSnpkYw=="/>
<add key="serilog:minimum-level" value="Debug" /> <add key="serilog:minimum-level" value="Debug" />
<add key="serilog:enrich:with-property:Application" value="GCI" /> <add key="serilog:enrich:with-property:Application" value="GCI" />

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save