Skip to content

Commit 9e897c7

Browse files
committed
#94: home page and languages section is implemented for AngularJs template
1 parent 7eab92f commit 9e897c7

40 files changed

+1161
-226
lines changed

src/AbpCompanyName.AbpProjectName.Application/AbpCompanyName.AbpProjectName.Application.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@
133133
<Compile Include="Authorization\Accounts\Dto\RegisterOutput.cs" />
134134
<Compile Include="Authorization\Accounts\Dto\TenantAvailabilityState.cs" />
135135
<Compile Include="Authorization\Accounts\IAccountAppService.cs" />
136-
<Compile Include="Configuration\UiThemeInfo.cs" />
137-
<Compile Include="Configuration\UiThemes.cs" />
136+
<Compile Include="Configuration\ConfigurationAppService.cs" />
137+
<Compile Include="Configuration\Dto\ChangeUiThemeInput.cs" />
138+
<Compile Include="Configuration\IConfigurationAppService.cs" />
139+
<Compile Include="Configuration\Ui\UiThemeInfo.cs" />
140+
<Compile Include="Configuration\Ui\UiThemes.cs" />
138141
<Compile Include="MultiTenancy\Dto\CreateTenantDto.cs" />
139142
<Compile Include="MultiTenancy\Dto\EditTenantDto.cs" />
140143
<Compile Include="MultiTenancy\Dto\TenantDto.cs" />
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Threading.Tasks;
2+
using Abp.Authorization;
3+
using Abp.Runtime.Session;
4+
using AbpCompanyName.AbpProjectName.Configuration.Dto;
5+
6+
namespace AbpCompanyName.AbpProjectName.Configuration
7+
{
8+
[AbpAuthorize]
9+
public class ConfigurationAppService : AbpProjectNameAppServiceBase, IConfigurationAppService
10+
{
11+
public async Task ChangeUiTheme(ChangeUiThemeInput input)
12+
{
13+
await SettingManager.ChangeSettingForUserAsync(AbpSession.ToUserIdentifier(), AppSettingNames.UiTheme, input.Theme);
14+
}
15+
}
16+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.ComponentModel.DataAnnotations;
2+
3+
namespace AbpCompanyName.AbpProjectName.Configuration.Dto
4+
{
5+
public class ChangeUiThemeInput
6+
{
7+
[Required]
8+
[MaxLength(32)]
9+
public string Theme { get; set; }
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Threading.Tasks;
2+
using Abp.Application.Services;
3+
using AbpCompanyName.AbpProjectName.Configuration.Dto;
4+
5+
namespace AbpCompanyName.AbpProjectName.Configuration
6+
{
7+
public interface IConfigurationAppService: IApplicationService
8+
{
9+
Task ChangeUiTheme(ChangeUiThemeInput input);
10+
}
11+
}

src/AbpCompanyName.AbpProjectName.Application/Configuration/UiThemeInfo.cs renamed to src/AbpCompanyName.AbpProjectName.Application/Configuration/Ui/UiThemeInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AbpCompanyName.AbpProjectName.Configuration
1+
namespace AbpCompanyName.AbpProjectName.Configuration.Ui
22
{
33
public class UiThemeInfo
44
{
@@ -11,4 +11,4 @@ public UiThemeInfo(string name, string cssClass)
1111
CssClass = cssClass;
1212
}
1313
}
14-
}
14+
}

src/AbpCompanyName.AbpProjectName.Application/Configuration/UiThemes.cs renamed to src/AbpCompanyName.AbpProjectName.Application/Configuration/Ui/UiThemes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Generic;
22

3-
namespace AbpCompanyName.AbpProjectName.Configuration
3+
namespace AbpCompanyName.AbpProjectName.Configuration.Ui
44
{
55
public static class UiThemes
66
{
@@ -33,4 +33,4 @@ static UiThemes()
3333
};
3434
}
3535
}
36-
}
36+
}

src/AbpCompanyName.AbpProjectName.WebMpa/Controllers/LayoutController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Abp.Runtime.Session;
88
using Abp.Threading;
99
using AbpCompanyName.AbpProjectName.Configuration;
10+
using AbpCompanyName.AbpProjectName.Configuration.Ui;
1011
using AbpCompanyName.AbpProjectName.Sessions;
1112
using AbpCompanyName.AbpProjectName.WebMpa.Models;
1213
using AbpCompanyName.AbpProjectName.WebMpa.Models.Layout;

src/AbpCompanyName.AbpProjectName.WebMpa/Models/Layout/RightSideBarViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using AbpCompanyName.AbpProjectName.Configuration;
1+
using AbpCompanyName.AbpProjectName.Configuration.Ui;
22

33
namespace AbpCompanyName.AbpProjectName.WebMpa.Models.Layout
44
{

src/AbpCompanyName.AbpProjectName.WebMpa/Views/Layout/_RightSideBar.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@using AbpCompanyName.AbpProjectName.Configuration
1+
@using AbpCompanyName.AbpProjectName.Configuration.Ui
22
@model AbpCompanyName.AbpProjectName.WebMpa.Models.Layout.RightSideBarViewModel
33
<aside id="rightsidebar" class="right-sidebar">
44
<ul class="nav nav-tabs tab-nav-right" role="tablist">

src/AbpCompanyName.AbpProjectName.WebSpaAngular/AbpCompanyName.AbpProjectName.WebSpaAngular.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@
347347
<Content Include="App\Main\services\appSession.js" />
348348
<Content Include="App\Main\views\directives\autoFocus.js" />
349349
<Content Include="App\Main\views\directives\enterKey.js" />
350-
<Content Include="App\Main\views\layout\header.js" />
351350
<Content Include="App\Main\views\layout\layout.js" />
352351
<Content Include="App\Main\views\home\home.js" />
353352
<Content Include="App\Main\views\about\about.js" />
@@ -356,6 +355,9 @@
356355
<Content Include="App\Main\views\layout\sidebar-nav.js" />
357356
<Content Include="App\Main\views\layout\sidebar-user-area.js" />
358357
<Content Include="App\Main\views\layout\topbar.js" />
358+
<Content Include="App\Main\views\roles\editModal.js" />
359+
<Content Include="App\Main\views\roles\createModal.js" />
360+
<Content Include="App\Main\views\roles\index.js" />
359361
<Content Include="App\Main\views\tenants\editModal.js" />
360362
<Content Include="App\Main\views\users\editModal.js" />
361363
<Content Include="App\Main\views\users\createModal.js" />
@@ -2224,7 +2226,6 @@
22242226
<Content Include="lib\Waves\Gruntfile.js" />
22252227
<Content Include="lib\Waves\src\js\waves.js" />
22262228
<Content Include="log4net.config" />
2227-
<Content Include="App\Main\views\layout\header.cshtml" />
22282229
<Content Include="Scripts\angular-animate.js" />
22292230
<Content Include="Scripts\angular-animate.min.js" />
22302231
<Content Include="Scripts\angular-aria.js" />
@@ -2751,6 +2752,9 @@
27512752
<Content Include="App\Main\views\layout\right-sidebar.cshtml" />
27522753
<Content Include="App\Main\views\tenants\editModal.cshtml" />
27532754
<Content Include="App\Main\views\users\editModal.cshtml" />
2755+
<Content Include="App\Main\views\roles\index.cshtml" />
2756+
<Content Include="App\Main\views\roles\createModal.cshtml" />
2757+
<Content Include="App\Main\views\roles\editModal.cshtml" />
27542758
<None Include="compilerconfig.json" />
27552759
<None Include="compilerconfig.json.defaults">
27562760
<DependentUpon>compilerconfig.json</DependentUpon>

0 commit comments

Comments
 (0)