first commit
This commit is contained in:
		| @ -0,0 +1,6 @@ | ||||
| namespace KonSoft.Dispatch; | ||||
|  | ||||
| public static class DispatchDomainErrorCodes | ||||
| { | ||||
|     /* You can add your business exception error codes here, as constants */ | ||||
| } | ||||
| @ -0,0 +1,58 @@ | ||||
| using KonSoft.Dispatch.Localization; | ||||
| using Volo.Abp.AuditLogging; | ||||
| using Volo.Abp.BackgroundJobs; | ||||
| using Volo.Abp.FeatureManagement; | ||||
| using Volo.Abp.Identity; | ||||
| using Volo.Abp.Localization; | ||||
| using Volo.Abp.Localization.ExceptionHandling; | ||||
| using Volo.Abp.Modularity; | ||||
| using Volo.Abp.OpenIddict; | ||||
| using Volo.Abp.PermissionManagement; | ||||
| using Volo.Abp.SettingManagement; | ||||
| using Volo.Abp.TenantManagement; | ||||
| using Volo.Abp.Validation.Localization; | ||||
| using Volo.Abp.VirtualFileSystem; | ||||
|  | ||||
| namespace KonSoft.Dispatch; | ||||
|  | ||||
| [DependsOn( | ||||
|     typeof(AbpAuditLoggingDomainSharedModule), | ||||
|     typeof(AbpBackgroundJobsDomainSharedModule), | ||||
|     typeof(AbpFeatureManagementDomainSharedModule), | ||||
|     typeof(AbpIdentityDomainSharedModule), | ||||
|     typeof(AbpOpenIddictDomainSharedModule), | ||||
|     typeof(AbpPermissionManagementDomainSharedModule), | ||||
|     typeof(AbpSettingManagementDomainSharedModule), | ||||
|     typeof(AbpTenantManagementDomainSharedModule)     | ||||
|     )] | ||||
| public class DispatchDomainSharedModule : AbpModule | ||||
| { | ||||
|     public override void PreConfigureServices(ServiceConfigurationContext context) | ||||
|     { | ||||
|         DispatchGlobalFeatureConfigurator.Configure(); | ||||
|         DispatchModuleExtensionConfigurator.Configure(); | ||||
|     } | ||||
|  | ||||
|     public override void ConfigureServices(ServiceConfigurationContext context) | ||||
|     { | ||||
|         Configure<AbpVirtualFileSystemOptions>(options => | ||||
|         { | ||||
|             options.FileSets.AddEmbedded<DispatchDomainSharedModule>(); | ||||
|         }); | ||||
|  | ||||
|         Configure<AbpLocalizationOptions>(options => | ||||
|         { | ||||
|             options.Resources | ||||
|                 .Add<DispatchResource>("en") | ||||
|                 .AddBaseTypes(typeof(AbpValidationResource)) | ||||
|                 .AddVirtualJson("/Localization/Dispatch"); | ||||
|  | ||||
|             options.DefaultResourceType = typeof(DispatchResource); | ||||
|         }); | ||||
|  | ||||
|         Configure<AbpExceptionLocalizationOptions>(options => | ||||
|         { | ||||
|             options.MapCodeNamespace("Dispatch", typeof(DispatchResource)); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,22 @@ | ||||
| using Volo.Abp.Threading; | ||||
|  | ||||
| namespace KonSoft.Dispatch; | ||||
|  | ||||
| public static class DispatchGlobalFeatureConfigurator | ||||
| { | ||||
|     private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner(); | ||||
|  | ||||
|     public static void Configure() | ||||
|     { | ||||
|         OneTimeRunner.Run(() => | ||||
|         { | ||||
|                 /* You can configure (enable/disable) global features of the used modules here. | ||||
|                  * | ||||
|                  * YOU CAN SAFELY DELETE THIS CLASS AND REMOVE ITS USAGES IF YOU DON'T NEED TO IT! | ||||
|                  * | ||||
|                  * Please refer to the documentation to lear more about the Global Features System: | ||||
|                  * https://docs.abp.io/en/abp/latest/Global-Features | ||||
|                  */ | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,73 @@ | ||||
| using System.ComponentModel.DataAnnotations; | ||||
| using Volo.Abp.Identity; | ||||
| using Volo.Abp.ObjectExtending; | ||||
| using Volo.Abp.Threading; | ||||
|  | ||||
| namespace KonSoft.Dispatch; | ||||
|  | ||||
| public static class DispatchModuleExtensionConfigurator | ||||
| { | ||||
|     private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner(); | ||||
|  | ||||
|     public static void Configure() | ||||
|     { | ||||
|         OneTimeRunner.Run(() => | ||||
|         { | ||||
|             ConfigureExistingProperties(); | ||||
|             ConfigureExtraProperties(); | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|     private static void ConfigureExistingProperties() | ||||
|     { | ||||
|         /* You can change max lengths for properties of the | ||||
|          * entities defined in the modules used by your application. | ||||
|          * | ||||
|          * Example: Change user and role name max lengths | ||||
|  | ||||
|            AbpUserConsts.MaxNameLength = 99; | ||||
|            IdentityRoleConsts.MaxNameLength = 99; | ||||
|  | ||||
|          * Notice: It is not suggested to change property lengths | ||||
|          * unless you really need it. Go with the standard values wherever possible. | ||||
|          * | ||||
|          * If you are using EF Core, you will need to run the add-migration command after your changes. | ||||
|          */ | ||||
|     } | ||||
|  | ||||
|     private static void ConfigureExtraProperties() | ||||
|     { | ||||
|         /* You can configure extra properties for the | ||||
|          * entities defined in the modules used by your application. | ||||
|          * | ||||
|          * This class can be used to define these extra properties | ||||
|          * with a high level, easy to use API. | ||||
|          * | ||||
|          * Example: Add a new property to the user entity of the identity module | ||||
|  | ||||
|            ObjectExtensionManager.Instance.Modules() | ||||
|               .ConfigureIdentity(identity => | ||||
|               { | ||||
|                   identity.ConfigureUser(user => | ||||
|                   { | ||||
|                       user.AddOrUpdateProperty<string>( //property type: string | ||||
|                           "SocialSecurityNumber", //property name | ||||
|                           property => | ||||
|                           { | ||||
|                               //validation rules | ||||
|                               property.Attributes.Add(new RequiredAttribute()); | ||||
|                               property.Attributes.Add(new StringLengthAttribute(64) {MinimumLength = 4}); | ||||
|                                | ||||
|                               property.Configuration[IdentityModuleExtensionConsts.ConfigurationNames.AllowUserToEdit] = true; | ||||
|  | ||||
|                               //...other configurations for this property | ||||
|                           } | ||||
|                       ); | ||||
|                   }); | ||||
|               }); | ||||
|  | ||||
|          * See the documentation for more: | ||||
|          * https://docs.abp.io/en/abp/latest/Module-Entity-Extensions | ||||
|          */ | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,32 @@ | ||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||
|  | ||||
|   <Import Project="..\..\common.props" /> | ||||
|  | ||||
|   <PropertyGroup> | ||||
|     <TargetFramework>net8.0</TargetFramework> | ||||
|     <Nullable>enable</Nullable> | ||||
|     <RootNamespace>KonSoft.Dispatch</RootNamespace> | ||||
|     <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> | ||||
|   </PropertyGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.BackgroundJobs.Domain.Shared" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.AuditLogging.Domain.Shared" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.TenantManagement.Domain.Shared" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.FeatureManagement.Domain.Shared" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.PermissionManagement.Domain.Shared" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.SettingManagement.Domain.Shared" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.OpenIddict.Domain.Shared" Version="8.3.4" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <EmbeddedResource Include="Localization\Dispatch\*.json" /> | ||||
|     <Content Remove="Localization\Dispatch\*.json" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.4" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
| </Project> | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "ar", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "الصفحة الرئيسية", | ||||
|     "Welcome": "مرحباً", | ||||
|     "LongWelcomeMessage": "مرحبا بكم في التطبيق. هذا مشروع بدء تشغيل يعتمد على إطار عمل ABP. لمزيد من المعلومات ، يرجى زيارة abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "cs", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Úvod", | ||||
|     "Welcome": "Vítejte", | ||||
|     "LongWelcomeMessage": "Vítejte v aplikaci. Toto je startovací projekt založený na ABP frameworku. Pro více informací, navštivte abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "de", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Home", | ||||
|     "Welcome": "Willkommen", | ||||
|     "LongWelcomeMessage": "Willkommen bei der Anwendung. Dies ist ein Startup-Projekt, das auf dem ABP-Framework basiert. Weitere Informationen finden Sie unter abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "en-GB", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Home", | ||||
|     "Welcome": "Welcome", | ||||
|     "LongWelcomeMessage": "Welcome to the application. This is a startup project based on the ABP framework. For more information, visit abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "en", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Home", | ||||
|     "Welcome": "Welcome", | ||||
|     "LongWelcomeMessage": "Welcome to the application. This is a startup project based on the ABP framework. For more information, visit abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "es", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Inicio", | ||||
|     "Welcome": "Bienvenido", | ||||
|     "LongWelcomeMessage": "Bienvenido a la aplicación, este es un proyecto base basado en el framework ABP. Para más información, visita abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "fi", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Koti", | ||||
|     "Welcome": "Tervetuloa", | ||||
|     "LongWelcomeMessage": "Tervetuloa sovellukseen. Tämä on ABP-kehykseen perustuva käynnistysprojekti. Lisätietoja on osoitteessa abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|  "culture": "fr", | ||||
|  "texts": { | ||||
|   "AppName": "Dispatch", | ||||
|   "Menu:Home": "Accueil", | ||||
|   "Welcome": "Bienvenue", | ||||
|   "LongWelcomeMessage": "Bienvenue dans l'application. Il s'agit d'un projet de démarrage basé sur le framework ABP. Pour plus d'informations, visitez abp.io." | ||||
|  } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "hi", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "घर", | ||||
|     "Welcome": "स्वागत हे", | ||||
|     "LongWelcomeMessage": "आवेदन करने के लिए आपका स्वागत है। यह एबीपी ढांचे पर आधारित एक स्टार्टअप परियोजना है। अधिक जानकारी के लिए, abp.io पर जाएं।" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|     "culture": "hr", | ||||
|     "texts": { | ||||
|         "AppName": "Dispatch", | ||||
|         "Menu:Home": "Početna", | ||||
|         "Welcome": "Dobrodošli", | ||||
|         "LongWelcomeMessage": "Dobrodošli u aplikaciju. Ovo je startup projekt temeljen na ABP framework-u. Za više informacija posjetite abp.io." | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "hu", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Kezdőlap", | ||||
|     "Welcome": "Üdvözlöm", | ||||
|     "LongWelcomeMessage": "Üdvözöljük az alkalmazásban. Ez egy ABP keretrendszeren alapuló startup projekt. További információkért látogasson el az abp.io oldalra." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "is", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Heim", | ||||
|     "Welcome": "Velkomin", | ||||
|     "LongWelcomeMessage": "Verið velkomin í forritið. Þetta er startup verkefni sem byggir á ABP. Nánari upplýsingar er að finna á abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "it", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Home", | ||||
|     "Welcome": "Benvenuto", | ||||
|     "LongWelcomeMessage": "Benvenuto nell'applicazione. Questo è un progetto di avvio basato sul framework ABP. Per ulteriori informazioni, visita abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "nl", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Home", | ||||
|     "Welcome": "Welkom", | ||||
|     "LongWelcomeMessage": "Welkom bij de applicatie. Dit is een startup-project gebaseerd op het ABP-framework. Bezoek abp.io voor meer informatie." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "pl-PL", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Home", | ||||
|     "Welcome": "Witaj", | ||||
|     "LongWelcomeMessage": "Witaj w aplikacji. To jest inicjalny projekt bazujący na ABP framework. Po więcej informacji odwiedź stronę abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "pt-BR", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Principal", | ||||
|     "Welcome": "Seja bem-vindo!", | ||||
|     "LongWelcomeMessage": "Bem-vindo a esta aplicação. Este é um projeto inicial baseado no ABP framework. Para mais informações, visite abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "ro-RO", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Acasă", | ||||
|     "Welcome": "Bun venit", | ||||
|     "LongWelcomeMessage": "Bun venit la aplicaţie. Acesta este un proiect de pornire bazat pe framework-ul ABP. Pentru mai multe informaţii, vizitaţi, visit abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "ru", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Главная", | ||||
|     "Welcome": "Добро пожаловать", | ||||
|     "LongWelcomeMessage": "Добро пожаловать в приложение. Этот запущенный проект основан на фреймворке ABP. Для получения дополнительной информации посетите сайт abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "sk", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Domov", | ||||
|     "Welcome": "Vitajte", | ||||
|     "LongWelcomeMessage": "Vitajte v aplikácii. Toto je štartovací projekt založený na ABP frameworku. Viac informácií nájdete na stránke abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "sl", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Domov", | ||||
|     "Welcome": "Dobrodošli", | ||||
|     "LongWelcomeMessage": "Dobrodošli v aplikaciji. To je začetni projekt na osnovi okolja ABP. Za več informacij obiščite abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "sv", | ||||
|   "texts": { | ||||
|     "AppName": "MittProjektNamn", | ||||
|     "Menu:Home": "Hem", | ||||
|     "Welcome": "Välkommen", | ||||
|     "LongWelcomeMessage": "Välkommen till applikationen. Detta är ett startup-projekt baserat på ABP-ramverket. För mer information, besök abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "tr", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Ana sayfa", | ||||
|     "Welcome": "Hoşgeldiniz", | ||||
|     "LongWelcomeMessage": "Uygulamaya hoşgeldiniz. Bu, ABP framework'ü üzerine bina edilmiş bir başlangıç projesidir. Daha fazla bilgi için abp.io adresini ziyaret edebilirsiniz." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "vi", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "Trang chủ", | ||||
|     "Welcome": "Chào mừng bạn", | ||||
|     "LongWelcomeMessage": "Chào mừng bạn đến ứng dụng. Đây là một dự án khởi nghiệp dựa trên khung ABP. Để biết thêm thông tin, hãy truy cập abp.io." | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|   "culture": "zh-Hans", | ||||
|   "texts": { | ||||
|     "AppName": "Dispatch", | ||||
|     "Menu:Home": "首页", | ||||
|     "Welcome": "欢迎", | ||||
|     "LongWelcomeMessage": "欢迎使用本应用程序。这是一个基于 ABP 框架的启动项目。更多信息,请访问 abp.io。" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,9 @@ | ||||
| { | ||||
|     "culture": "zh-Hant", | ||||
|     "texts": { | ||||
|       "AppName": "Dispatch", | ||||
|       "Menu:Home": "首頁", | ||||
|       "Welcome": "歡迎", | ||||
|       "LongWelcomeMessage": "歡迎來到此應用程式. 這是一個基於ABP框架的起始專案. 有關更多訊息, 請瀏覽 abp.io." | ||||
|     } | ||||
|   } | ||||
| @ -0,0 +1,9 @@ | ||||
| using Volo.Abp.Localization; | ||||
|  | ||||
| namespace KonSoft.Dispatch.Localization; | ||||
|  | ||||
| [LocalizationResourceName("Dispatch")] | ||||
| public class DispatchResource | ||||
| { | ||||
|  | ||||
| } | ||||
| @ -0,0 +1,10 @@ | ||||
| namespace KonSoft.Dispatch.MultiTenancy; | ||||
|  | ||||
| public static class MultiTenancyConsts | ||||
| { | ||||
|     /* Enable/disable multi-tenancy easily in a single point. | ||||
|      * If you will never need to multi-tenancy, you can remove | ||||
|      * related modules and code parts, including this file. | ||||
|      */ | ||||
|     public const bool IsEnabled = true; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user