-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/dev'
- Loading branch information
Showing
1,423 changed files
with
203,837 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"projects": [ "src", "test" ], | ||
"sdk": { | ||
"version": "1.0.0-preview1-002702" | ||
"version": "1.0.0-preview2-003121" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/AbpCompanyName.AbpProjectName.Application/Products/Dtos/ProductDto.cs
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/AbpCompanyName.AbpProjectName.Application/Products/IProductAppService.cs
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
src/AbpCompanyName.AbpProjectName.Application/Products/ProductAppService.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/AbpCompanyName.AbpProjectName.Core/Configuration/AppConfigurations.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Collections.Concurrent; | ||
using Abp.Extensions; | ||
using Microsoft.Extensions.Configuration; | ||
|
||
namespace AbpCompanyName.AbpProjectName.Configuration | ||
{ | ||
public static class AppConfigurations | ||
{ | ||
private static readonly ConcurrentDictionary<string, IConfigurationRoot> ConfigurationCache; | ||
|
||
static AppConfigurations() | ||
{ | ||
ConfigurationCache = new ConcurrentDictionary<string, IConfigurationRoot>(); | ||
} | ||
|
||
public static IConfigurationRoot Get(string path, string environmentName = null) | ||
{ | ||
var cacheKey = path + "#" + environmentName; | ||
return ConfigurationCache.GetOrAdd( | ||
cacheKey, | ||
_ => BuildConfiguration(path, environmentName) | ||
); | ||
} | ||
|
||
private static IConfigurationRoot BuildConfiguration(string path, string environmentName = null) | ||
{ | ||
var builder = new ConfigurationBuilder() | ||
.SetBasePath(path) | ||
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true); | ||
|
||
if (!environmentName.IsNullOrWhiteSpace()) | ||
{ | ||
builder = builder.AddJsonFile($"appsettings.{environmentName}.json", optional: true); | ||
} | ||
|
||
builder = builder.AddEnvironmentVariables(); | ||
|
||
return builder.Build(); | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/AbpCompanyName.AbpProjectName.Core/Localization/AbpProjectNameLocalizationConfigurer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Reflection; | ||
using Abp.Configuration.Startup; | ||
using Abp.Localization; | ||
using Abp.Localization.Dictionaries; | ||
using Abp.Localization.Dictionaries.Json; | ||
|
||
namespace AbpCompanyName.AbpProjectName.Localization | ||
{ | ||
public static class AbpProjectNameLocalizationConfigurer | ||
{ | ||
public static void Configure(ILocalizationConfiguration localizationConfiguration) | ||
{ | ||
localizationConfiguration.Languages.Add(new LanguageInfo("en", "English", "famfamfam-flags england", isDefault: true)); | ||
localizationConfiguration.Languages.Add(new LanguageInfo("tr", "Türkçe", "famfamfam-flags tr")); | ||
|
||
localizationConfiguration.Sources.Add( | ||
new DictionaryBasedLocalizationSource(AbpProjectNameConsts.LocalizationSourceName, | ||
new JsonEmbeddedFileLocalizationDictionaryProvider( | ||
Assembly.GetExecutingAssembly(), | ||
"AbpCompanyName.AbpProjectName.Core.Localization.SourceFiles" | ||
) | ||
) | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
src/AbpCompanyName.AbpProjectName.Core/Products/Product.cs
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
src/AbpCompanyName.AbpProjectName.Core/Web/WebContentFolderHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.IO; | ||
using System.Linq; | ||
|
||
namespace AbpCompanyName.AbpProjectName.Web | ||
{ | ||
/// <summary> | ||
/// This class is used to find root path of the web project in; | ||
/// unit tests (to find views) and entity framework core command line commands (to find conn string). | ||
/// </summary> | ||
public static class WebContentDirectoryFinder | ||
{ | ||
public static string CalculateContentRootFolder() | ||
{ | ||
var coreAssemblyDirectoryPath = Path.GetDirectoryName(typeof(AbpProjectNameCoreModule).Assembly.Location); | ||
if (coreAssemblyDirectoryPath == null) | ||
{ | ||
throw new ApplicationException("Could not find location of AbpCompanyName.AbpProjectName.Core assembly!"); | ||
} | ||
|
||
var directoryInfo = new DirectoryInfo(coreAssemblyDirectoryPath); | ||
while (!DirectoryContains(directoryInfo.FullName, "AbpCompanyName.AbpProjectName.sln")) | ||
{ | ||
if (directoryInfo.Parent == null) | ||
{ | ||
throw new ApplicationException("Could not find content root folder!"); | ||
} | ||
|
||
directoryInfo = directoryInfo.Parent; | ||
} | ||
|
||
return Path.Combine(directoryInfo.FullName, @"src\AbpCompanyName.AbpProjectName.Web"); | ||
} | ||
|
||
private static bool DirectoryContains(string directory, string fileName) | ||
{ | ||
return Directory.GetFiles(directory).Any(filePath => string.Equals(Path.GetFileName(filePath), fileName)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...anyName.AbpProjectName.EntityFrameworkCore/EntityFrameworkCore/AbpProjectNameDbContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.