mirror of https://github.com/abpframework/abp.git
2412 changed files with 221499 additions and 164223 deletions
@ -0,0 +1,3 @@ |
|||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
|||
<ConfigureAwait ContinueOnCapturedContext="false" /> |
|||
</Weavers> |
|||
@ -0,0 +1,30 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|||
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> |
|||
<xs:element name="Weavers"> |
|||
<xs:complexType> |
|||
<xs:all> |
|||
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> |
|||
<xs:complexType> |
|||
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:all> |
|||
<xs:attribute name="VerifyAssembly" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="VerifyIgnoreCodes" type="xs:string"> |
|||
<xs:annotation> |
|||
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="GenerateXsd" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:schema> |
|||
@ -0,0 +1,27 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>netstandard2.0</TargetFramework> |
|||
<AssemblyName>Volo.Abp.Ldap.Abstractions</AssemblyName> |
|||
<PackageId>Volo.Abp.Ldap.Abstractions</PackageId> |
|||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> |
|||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> |
|||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> |
|||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
|||
<RootNamespace /> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<Content Remove="Volo\Abp\Ldap\Localization\*.json" /> |
|||
<EmbeddedResource Include="Volo\Abp\Ldap\Localization\*.json" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.Core\Volo.Abp.Core.csproj" /> |
|||
<ProjectReference Include="..\Volo.Abp.Localization\Volo.Abp.Localization.csproj" /> |
|||
<ProjectReference Include="..\Volo.Abp.VirtualFileSystem\Volo.Abp.VirtualFileSystem.csproj" /> |
|||
</ItemGroup> |
|||
</Project> |
|||
@ -0,0 +1,28 @@ |
|||
using Volo.Abp.Ldap.Localization; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.Settings; |
|||
using Volo.Abp.VirtualFileSystem; |
|||
|
|||
namespace Volo.Abp.Ldap; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpVirtualFileSystemModule), |
|||
typeof(AbpLocalizationModule))] |
|||
public class AbpLdapAbstractionsModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
Configure<AbpVirtualFileSystemOptions>(options => |
|||
{ |
|||
options.FileSets.AddEmbedded<AbpLdapAbstractionsModule>(); |
|||
}); |
|||
|
|||
Configure<AbpLocalizationOptions>(options => |
|||
{ |
|||
options.Resources |
|||
.Add<LdapResource>("en") |
|||
.AddVirtualJson("/Volo/Abp/Ldap/Localization"); |
|||
}); |
|||
} |
|||
} |
|||
@ -1,33 +1,12 @@ |
|||
using System; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Extensions.DependencyInjection.Extensions; |
|||
using Microsoft.Extensions.Options; |
|||
using Volo.Abp.Ldap.Localization; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.Settings; |
|||
using Volo.Abp.VirtualFileSystem; |
|||
|
|||
namespace Volo.Abp.Ldap; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpSettingsModule), |
|||
typeof(AbpVirtualFileSystemModule), |
|||
typeof(AbpLocalizationModule))] |
|||
typeof(AbpLdapAbstractionsModule), |
|||
typeof(AbpSettingsModule))] |
|||
public class AbpLdapModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
Configure<AbpVirtualFileSystemOptions>(options => |
|||
{ |
|||
options.FileSets.AddEmbedded<AbpLdapModule>(); |
|||
}); |
|||
|
|||
Configure<AbpLocalizationOptions>(options => |
|||
{ |
|||
options.Resources |
|||
.Add<LdapResource>("en") |
|||
.AddVirtualJson("/Volo/Abp/Ldap/Localization"); |
|||
}); |
|||
} |
|||
|
|||
} |
|||
|
|||
@ -0,0 +1,30 @@ |
|||
using Microsoft.Extensions.Localization; |
|||
using Shouldly; |
|||
using Volo.Abp.Ldap.Localization; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Testing; |
|||
using Xunit; |
|||
|
|||
namespace Volo.Abp.Ldap; |
|||
|
|||
public class LdapResource_Tests : AbpIntegratedTest<AbpLdapTestModule> |
|||
{ |
|||
protected override void SetAbpApplicationCreationOptions(AbpApplicationCreationOptions options) |
|||
{ |
|||
options.UseAutofac(); |
|||
} |
|||
|
|||
[Fact] |
|||
public void LdapResource_Test() |
|||
{ |
|||
using (CultureHelper.Use("en")) |
|||
{ |
|||
GetRequiredService<IStringLocalizer<LdapResource>>()["DisplayName:Abp.Ldap.ServerHost"].Value.ShouldBe("Server host"); |
|||
} |
|||
|
|||
using (CultureHelper.Use("tr")) |
|||
{ |
|||
GetRequiredService<IStringLocalizer<LdapResource>>()["DisplayName:Abp.Ldap.ServerHost"].Value.ShouldBe("Sunucu Ana Bilgisayarı"); |
|||
} |
|||
} |
|||
} |
|||
@ -1,8 +1,8 @@ |
|||
[ |
|||
{ |
|||
"version": "7.0.2", |
|||
"version": "7.0.3", |
|||
"releaseDate": "", |
|||
"type": "stable", |
|||
"message": "" |
|||
} |
|||
] |
|||
] |
|||
|
|||
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
@ -0,0 +1,26 @@ |
|||
Reset = "\x1b[0m" |
|||
FgRed = "\x1b[31m" |
|||
FgWhite = "\x1b[37m" |
|||
FgWhite = "\x1b[37m" |
|||
Bright = "\x1b[1m" |
|||
FgBlue = "\x1b[34m" |
|||
BgRed = "\x1b[41m" |
|||
|
|||
DEPRECATION = `${BgRed + FgWhite}-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*${Reset} |
|||
${Bright}${FgWhite} |
|||
Verion 9 of Highlight.js has reached EOL. It will no longer |
|||
be supported or receive security updates in the future. |
|||
Please upgrade to version 10 or encourage your indirect |
|||
dependencies to do so. |
|||
|
|||
For more info: |
|||
${FgBlue} |
|||
https://github.com/highlightjs/highlight.js/issues/2877
|
|||
https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md
|
|||
${BgRed + FgWhite} |
|||
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*${Reset} |
|||
`.trim()
|
|||
|
|||
if (!process.env["HLJS_HIDE_UPGRADE_WARNING"]) { |
|||
console.log(DEPRECATION) |
|||
} |
|||
@ -1,32 +1,73 @@ |
|||
module.exports = function(hljs) { |
|||
var BUILT_INS = {'builtin-name': 'each in with if else unless bindattr action collection debugger log outlet template unbound view yield'}; |
|||
module.exports = function (hljs) { |
|||
var BUILT_INS = {'builtin-name': 'each in with if else unless bindattr action collection debugger log outlet template unbound view yield lookup'}; |
|||
|
|||
var IDENTIFIER_PLAIN_OR_QUOTED = { |
|||
begin: /".*?"|'.*?'|\[.*?\]|\w+/ |
|||
}; |
|||
|
|||
var EXPRESSION_OR_HELPER_CALL = hljs.inherit(IDENTIFIER_PLAIN_OR_QUOTED, { |
|||
keywords: BUILT_INS, |
|||
starts: { |
|||
// helper params
|
|||
endsWithParent: true, |
|||
relevance: 0, |
|||
contains: [hljs.inherit(IDENTIFIER_PLAIN_OR_QUOTED, {relevance: 0})] |
|||
} |
|||
}); |
|||
|
|||
var BLOCK_MUSTACHE_CONTENTS = hljs.inherit(EXPRESSION_OR_HELPER_CALL, { |
|||
className: 'name' |
|||
}); |
|||
|
|||
var BASIC_MUSTACHE_CONTENTS = hljs.inherit(EXPRESSION_OR_HELPER_CALL, { |
|||
// relevance 0 for backward compatibility concerning auto-detection
|
|||
relevance: 0 |
|||
}); |
|||
|
|||
var ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH = {begin: /\\\{\{/, skip: true}; |
|||
var PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH = {begin: /\\\\(?=\{\{)/, skip: true}; |
|||
|
|||
return { |
|||
aliases: ['hbs', 'html.hbs', 'html.handlebars'], |
|||
case_insensitive: true, |
|||
subLanguage: 'xml', |
|||
contains: [ |
|||
hljs.COMMENT('{{!(--)?', '(--)?}}'), |
|||
ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH, |
|||
PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH, |
|||
hljs.COMMENT(/\{\{!--/, /--\}\}/), |
|||
hljs.COMMENT(/\{\{!/, /\}\}/), |
|||
{ |
|||
// open raw block "{{{{raw}}}} content not evaluated {{{{/raw}}}}"
|
|||
className: 'template-tag', |
|||
begin: /\{\{\{\{(?!\/)/, end: /\}\}\}\}/, |
|||
contains: [BLOCK_MUSTACHE_CONTENTS], |
|||
starts: {end: /\{\{\{\{\//, returnEnd: true, subLanguage: 'xml'} |
|||
}, |
|||
{ |
|||
// close raw block
|
|||
className: 'template-tag', |
|||
begin: /\{\{\{\{\//, end: /\}\}\}\}/, |
|||
contains: [BLOCK_MUSTACHE_CONTENTS] |
|||
}, |
|||
{ |
|||
// open block statement
|
|||
className: 'template-tag', |
|||
begin: /\{\{[#\/]/, end: /\}\}/, |
|||
contains: [ |
|||
{ |
|||
className: 'name', |
|||
begin: /[a-zA-Z\.-]+/, |
|||
keywords: BUILT_INS, |
|||
starts: { |
|||
endsWithParent: true, relevance: 0, |
|||
contains: [ |
|||
hljs.QUOTE_STRING_MODE |
|||
] |
|||
} |
|||
} |
|||
] |
|||
contains: [BLOCK_MUSTACHE_CONTENTS], |
|||
}, |
|||
{ |
|||
// template variable or helper-call that is NOT html-escaped
|
|||
className: 'template-variable', |
|||
begin: /\{\{\{/, end: /\}\}\}/, |
|||
keywords: BUILT_INS, |
|||
contains: [BASIC_MUSTACHE_CONTENTS] |
|||
}, |
|||
{ |
|||
// template variable or helper-call that is html-escaped
|
|||
className: 'template-variable', |
|||
begin: /\{\{/, end: /\}\}/, |
|||
keywords: BUILT_INS |
|||
keywords: BUILT_INS, |
|||
contains: [BASIC_MUSTACHE_CONTENTS] |
|||
} |
|||
] |
|||
}; |
|||
|
|||
@ -1,64 +1,75 @@ |
|||
module.exports = function(hljs) { |
|||
var STRING = { |
|||
var NUMBERS = { |
|||
className: 'number', |
|||
relevance: 0, |
|||
variants: [ |
|||
{ begin: /([\+\-]+)?[\d]+_[\d_]+/ }, |
|||
{ begin: hljs.NUMBER_RE } |
|||
] |
|||
}; |
|||
var COMMENTS = hljs.COMMENT(); |
|||
COMMENTS.variants = [ |
|||
{begin: /;/, end: /$/}, |
|||
{begin: /#/, end: /$/}, |
|||
]; |
|||
var VARIABLES = { |
|||
className: 'variable', |
|||
variants: [ |
|||
{ begin: /\$[\w\d"][\w\d_]*/ }, |
|||
{ begin: /\$\{(.*?)}/ } |
|||
] |
|||
}; |
|||
var LITERALS = { |
|||
className: 'literal', |
|||
begin: /\bon|off|true|false|yes|no\b/ |
|||
}; |
|||
var STRINGS = { |
|||
className: "string", |
|||
contains: [hljs.BACKSLASH_ESCAPE], |
|||
variants: [ |
|||
{ |
|||
begin: "'''", end: "'''", |
|||
relevance: 10 |
|||
}, { |
|||
begin: '"""', end: '"""', |
|||
relevance: 10 |
|||
}, { |
|||
begin: '"', end: '"' |
|||
}, { |
|||
begin: "'", end: "'" |
|||
} |
|||
{ begin: "'''", end: "'''", relevance: 10 }, |
|||
{ begin: '"""', end: '"""', relevance: 10 }, |
|||
{ begin: '"', end: '"' }, |
|||
{ begin: "'", end: "'" } |
|||
] |
|||
}; |
|||
var ARRAY = { |
|||
begin: /\[/, end: /\]/, |
|||
contains: [ |
|||
COMMENTS, |
|||
LITERALS, |
|||
VARIABLES, |
|||
STRINGS, |
|||
NUMBERS, |
|||
'self' |
|||
], |
|||
relevance:0 |
|||
}; |
|||
|
|||
return { |
|||
aliases: ['toml'], |
|||
case_insensitive: true, |
|||
illegal: /\S/, |
|||
contains: [ |
|||
hljs.COMMENT(';', '$'), |
|||
hljs.HASH_COMMENT_MODE, |
|||
COMMENTS, |
|||
{ |
|||
className: 'section', |
|||
begin: /^\s*\[+/, end: /\]+/ |
|||
begin: /\[+/, end: /\]+/ |
|||
}, |
|||
{ |
|||
begin: /^[a-z0-9\[\]_-]+\s*=\s*/, end: '$', |
|||
returnBegin: true, |
|||
contains: [ |
|||
{ |
|||
className: 'attr', |
|||
begin: /[a-z0-9\[\]_-]+/ |
|||
}, |
|||
{ |
|||
begin: /=/, endsWithParent: true, |
|||
relevance: 0, |
|||
contains: [ |
|||
{ |
|||
className: 'literal', |
|||
begin: /\bon|off|true|false|yes|no\b/ |
|||
}, |
|||
{ |
|||
className: 'variable', |
|||
variants: [ |
|||
{begin: /\$[\w\d"][\w\d_]*/}, |
|||
{begin: /\$\{(.*?)}/} |
|||
] |
|||
}, |
|||
STRING, |
|||
{ |
|||
className: 'number', |
|||
begin: /([\+\-]+)?[\d]+_[\d_]+/ |
|||
}, |
|||
hljs.NUMBER_MODE |
|||
] |
|||
} |
|||
] |
|||
begin: /^[a-z0-9\[\]_\.-]+(?=\s*=\s*)/, |
|||
className: 'attr', |
|||
starts: { |
|||
end: /$/, |
|||
contains: [ |
|||
COMMENTS, |
|||
ARRAY, |
|||
LITERALS, |
|||
VARIABLES, |
|||
STRINGS, |
|||
NUMBERS |
|||
] |
|||
} |
|||
} |
|||
] |
|||
}; |
|||
|
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue