Skip to content

Commit 51f0ba3

Browse files
committed
web project is running
1 parent db02efa commit 51f0ba3

34 files changed

+512
-708
lines changed

AbpCompanyName.AbpProjectName.sln

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{F10AA149-2
2020
EndProject
2121
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AbpCompanyName.AbpProjectName.Tests", "test\AbpCompanyName.AbpProjectName.Tests\AbpCompanyName.AbpProjectName.Tests.xproj", "{0D4C5D00-C144-4213-A007-4B8944113AB1}"
2222
EndProject
23-
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AbpCompanyName.AbpProjectName.Web.Tests", "test\AbpCompanyName.AbpProjectName.Web.Tests\AbpCompanyName.AbpProjectName.Web.Tests.xproj", "{5D441612-29CA-4DAD-9945-B9DE11CE026C}"
24-
EndProject
2523
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AbpCompanyName.AbpProjectName.EntityFramework", "src\AbpCompanyName.AbpProjectName.EntityFramework\AbpCompanyName.AbpProjectName.EntityFramework.xproj", "{DC780BC4-4EAC-4C63-9052-6F3169A59FA4}"
2624
EndProject
2725
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AbpCompanyName.AbpProjectName.Migrator", "src\AbpCompanyName.AbpProjectName.Migrator\AbpCompanyName.AbpProjectName.Migrator.xproj", "{880B3591-E057-46FE-B525-10BD83828B93}"
@@ -48,10 +46,6 @@ Global
4846
{0D4C5D00-C144-4213-A007-4B8944113AB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
4947
{0D4C5D00-C144-4213-A007-4B8944113AB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
5048
{0D4C5D00-C144-4213-A007-4B8944113AB1}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{5D441612-29CA-4DAD-9945-B9DE11CE026C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52-
{5D441612-29CA-4DAD-9945-B9DE11CE026C}.Debug|Any CPU.Build.0 = Debug|Any CPU
53-
{5D441612-29CA-4DAD-9945-B9DE11CE026C}.Release|Any CPU.ActiveCfg = Release|Any CPU
54-
{5D441612-29CA-4DAD-9945-B9DE11CE026C}.Release|Any CPU.Build.0 = Release|Any CPU
5549
{DC780BC4-4EAC-4C63-9052-6F3169A59FA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5650
{DC780BC4-4EAC-4C63-9052-6F3169A59FA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
5751
{DC780BC4-4EAC-4C63-9052-6F3169A59FA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -69,7 +63,6 @@ Global
6963
{0FA75A5B-AB83-4FD0-B545-279774C01E87} = {AFAA0841-BD93-466F-B8F4-FB4EEC86F1FC}
7064
{3870C648-4AEA-4B85-BA3F-F2F63B96136A} = {AFAA0841-BD93-466F-B8F4-FB4EEC86F1FC}
7165
{0D4C5D00-C144-4213-A007-4B8944113AB1} = {F10AA149-2626-486E-85BB-9CD5365F3016}
72-
{5D441612-29CA-4DAD-9945-B9DE11CE026C} = {F10AA149-2626-486E-85BB-9CD5365F3016}
7366
{DC780BC4-4EAC-4C63-9052-6F3169A59FA4} = {AFAA0841-BD93-466F-B8F4-FB4EEC86F1FC}
7467
{880B3591-E057-46FE-B525-10BD83828B93} = {AFAA0841-BD93-466F-B8F4-FB4EEC86F1FC}
7568
EndGlobalSection

src/AbpCompanyName.AbpProjectName.Core/AbpProjectNameCoreModule.cs

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using AbpCompanyName.AbpProjectName.Authorization.Roles;
88
using AbpCompanyName.AbpProjectName.Users;
99
using AbpCompanyName.AbpProjectName.Authorization;
10+
using AbpCompanyName.AbpProjectName.Configuration;
1011

1112
namespace AbpCompanyName.AbpProjectName
1213
{
@@ -22,15 +23,38 @@ public override void PreInitialize()
2223
Configuration.Modules.Zero().EntityTypes.Role = typeof(Role);
2324
Configuration.Modules.Zero().EntityTypes.User = typeof(User);
2425

25-
//Remove the following line to disable multi-tenancy.
26+
AbpProjectNameLocalizationConfigurer.Configure(Configuration.Localization);
27+
28+
//todo@ismail -> check this.
29+
//Adding feature providers
30+
//Configuration.Features.Providers.Add<AppFeatureProvider>();
31+
32+
//Adding setting providers
33+
Configuration.Settings.Providers.Add<AppSettingProvider>();
34+
35+
//todo@ismail -> check this.
36+
//Adding notification providers
37+
//Configuration.Notifications.Providers.Add<AppNotificationProvider>();
38+
39+
//Enable this line to create a multi-tenant application.
2640
Configuration.MultiTenancy.IsEnabled = true;
2741

28-
//Add/remove localization sources here
29-
AbpProjectNameLocalizationConfigurer.Configure(Configuration.Localization);
42+
//Enable LDAP authentication (It can be enabled only if MultiTenancy is disabled!)
43+
//Configuration.Modules.ZeroLdap().Enable(typeof(AppLdapAuthenticationSource));
3044

45+
//Configure roles
3146
AppRoleConfig.Configure(Configuration.Modules.Zero().RoleManagement);
3247

33-
Configuration.Authorization.Providers.Add<AbpProjectNameAuthorizationProvider>();
48+
//todo@ismail -> check this.
49+
//if (DebugHelper.IsDebug)
50+
//{
51+
// //Disabling email sending in debug mode
52+
// IocManager.Register<IEmailSender, NullEmailSender>(DependencyLifeStyle.Transient);
53+
//}
54+
55+
//todo@ismail -> check this.
56+
//Configuration.ReplaceService<IAbpSession, AspNetZeroAbpSession>();
57+
3458
}
3559

3660
public override void Initialize()

src/AbpCompanyName.AbpProjectName.Core/Localization/AbpProjectNameLocalizationConfigurer.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
using System.Reflection;
22
using Abp.Configuration.Startup;
33
using Abp.Localization.Dictionaries;
4-
using Abp.Localization.Dictionaries.Json;
4+
using Abp.Localization.Dictionaries.Xml;
55

66
namespace AbpCompanyName.AbpProjectName.Localization
77
{
88
public static class AbpProjectNameLocalizationConfigurer
99
{
1010
public static void Configure(ILocalizationConfiguration localizationConfiguration)
1111
{
12-
//todo@ismail -> This add lines probably will be deleted
13-
//localizationConfiguration.Languages.Add(new LanguageInfo("en", "English", "famfamfam-flags england", isDefault: true));
14-
//localizationConfiguration.Languages.Add(new LanguageInfo("tr", "Türkçe", "famfamfam-flags tr"));
1512
localizationConfiguration.Sources.Add(
1613
new DictionaryBasedLocalizationSource(AbpProjectNameConsts.LocalizationSourceName,
17-
new JsonEmbeddedFileLocalizationDictionaryProvider(
14+
new XmlEmbeddedFileLocalizationDictionaryProvider(
1815
Assembly.GetExecutingAssembly(),
1916
"AbpCompanyName.AbpProjectName.Core.Localization.SourceFiles"
2017
)

src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName-es.json

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<localizationDictionary culture="es">
3+
<texts>
4+
<text name="HomePage" value="Página de inicio" />
5+
<text name="About" value="Acerca de" />
6+
<text name="WellcomeMessage" value="Bienvenido a WMS!" />
7+
8+
<text name="FormIsNotValidMessage" value="Formulario no es válido. Por favor, compruebe y corrija los errores." />
9+
<text name="TenantNameCanNotBeEmpty" value="Nombre de la empresa no puede estar vacío" />
10+
11+
<text name="InvalidUserNameOrPassword" value="Usuario o contraseña invalido" />
12+
<text name="ThereIsNoTenantDefinedWithName{0}" value="No hay empresa definida con el nombre {0}" />
13+
<text name="TenantIsNotActive" value="La empresa {0} no está activa." />
14+
<text name="UserIsNotActiveAndCanNotLogin" value="El usuario {0} no está activo y no puede conectarse." />
15+
<text name="PleaseEnterLoginInformation" value="Por favor, introduzca la información de inicio de sesión" />
16+
<text name="TenancyName" value="Nombre de la empresa" />
17+
<text name="UserNameOrEmail" value="Nombre de usuario o correo electrónico" />
18+
<text name="Password" value="Contraseña" />
19+
<text name="RememberMe" value="Recuérdame" />
20+
<text name="LogIn" value="Iniciar sesión" />
21+
22+
<text name="LoginFailed" value="¡Error de inicio de sesion!" />
23+
24+
<text name="NameSurname" value="Nombre Apellido" />
25+
<text name="UserName" value="Nombre de usuario" />
26+
<text name="Name" value="Nombre" />
27+
<text name="Surname" value="Apellido" />
28+
<text name="EmailAddress" value="Dirección de correo electrónico" />
29+
30+
<text name="Tenants" value="Empresas" />
31+
<text name="SavedSuccessfully" value="Guardado correctamente" />
32+
<text name="CreateNewTenant" value="Crear nueva empresa" />
33+
<text name="AdminEmailAddress" value="Dirección de correo electrónico del administrador" />
34+
<text name="Save" value="Guardar" />
35+
<text name="Cancel" value="Cancelar" />
36+
<text name="TenantName_Regex_Description" value="El nombre de la empresa debe ser de al menos 2 caracteres, empieza con una letra y continua con una letra, número, guión o un guión bajo." />
37+
<text name="DefaultPasswordIs" value="La contraseña por defecto es {0}" />
38+
<text name="CanBeEmptyToLoginAsHost" value="Puede estar vacía para iniciar la sesión como anfitrión." />
39+
<text name="Register" value="Registro" />
40+
<text name="OrLoginWith" value="o iniciar sesión con" />
41+
<text name="WaitingForActivationMessage" value="Su cuenta está en espera de ser activada por el administrador del sistema." />
42+
<text name="TenantSelection" value="Selección de Empresa" />
43+
<text name="TenantSelection_Detail" value="Por favor seleccione una de las siguientes empresas." />
44+
<text name="Logout" value="Cerrar sesión" />
45+
46+
</texts>
47+
</localizationDictionary>

src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName-fr.json

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<localizationDictionary culture="fr">
3+
<texts>
4+
<text name="HomePage" value="Accueil" />
5+
<text name="About" value="A propos" />
6+
<text name="WellcomeMessage" value="Bienvenue sur AbpProjectName !" />
7+
8+
<text name="FormIsNotValidMessage" value="Le formulaire n'est pas valide. Veuillez le corriger." />
9+
<text name="TenantNameCanNotBeEmpty" value="Le nom de client (tenant) doit être renseigné." />
10+
11+
<text name="InvalidUserNameOrPassword" value="Nom d'utilisateur ou mot de passe non valide." />
12+
<text name="ThereIsNoTenantDefinedWithName{0}" value="Il n'y a aucun nom de client (tenant) correspondant à {0}" />
13+
<text name="TenantIsNotActive" value="Le client (tenant) {0} n'est pas actif." />
14+
<text name="UserIsNotActiveAndCanNotLogin" value="L'utilisateur {0} n'est pas actif ou ne peut pas s'authentifier." />
15+
<text name="PleaseEnterLoginInformation" value="Veuillez entrer vos informations d'authentification" />
16+
<text name="TenancyName" value="Nom du client (tenant)" />
17+
<text name="UserNameOrEmail" value="Nom d'utilisateur ou email" />
18+
<text name="Password" value="Mot de passe" />
19+
<text name="RememberMe" value="Se rappeler de moi" />
20+
<text name="LogIn" value="Se connecter" />
21+
22+
<text name="LoginFailed" value="Echec d'authentification !" />
23+
24+
<text name="NameSurname" value="Nom de famille" />
25+
<text name="UserName" value="Nom d'utilisateur" />
26+
<text name="Name" value="Prénom" />
27+
<text name="Surname" value="Nom de famille" />
28+
<text name="EmailAddress" value="Adresse email" />
29+
30+
<text name="Tenants" value="Clients (tenants)" />
31+
<text name="SavedSuccessfully" value="Enregistrement réussi" />
32+
<text name="CreateNewTenant" value="Créer un nouveau client (tenant)" />
33+
<text name="AdminEmailAddress" value="Adresse email de l'administrateur" />
34+
<text name="Save" value="Valider" />
35+
<text name="Cancel" value="Annuler" />
36+
<text name="TenantName_Regex_Description" value="Le nom de client (tenant) doit comporter au moins 2 caractères et commencer par une lettre suivie d'autres lettres, chiffres ou tirets." />
37+
<text name="DefaultPasswordIs" value="Le mot de passe par défaut est {0}" />
38+
<text name="CanBeEmptyToLoginAsHost" value="Peut être laissé vide pour s'authentifier en tant qu'hébergeur (host)." />
39+
<text name="Register" value="S'enregistrer" />
40+
<text name="OrLoginWith" value="Ou s'authentifier avec" />
41+
<text name="WaitingForActivationMessage" value="Votre compte est en attente d'activation par l'administrateur du système." />
42+
<text name="TenantSelection" value="Sélection du client (tenant)" />
43+
<text name="TenantSelection_Detail" value="Veuillez choisir l'un de ces clients (tenants) suivants." />
44+
<text name="Logout" value="Déconnexion" />
45+
46+
</texts>
47+
</localizationDictionary>

src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName-it.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)