Browse Source

Merge pull request #12567 from abpframework/enisn/5.3-leptonxlite-documentation

Update LeptonX Documentation
pull/12571/head
İsmail ÇAĞDAŞ 4 years ago
committed by GitHub
parent
commit
0464eb0b9c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      docs/en/Themes/LeptonXLite/blazor.md
  2. 11
      docs/en/Themes/LeptonXLite/mvc.md

23
docs/en/Themes/LeptonXLite/blazor.md

@ -23,12 +23,17 @@ LeptonX Lite has implementation for the ABP Framework Blazor WebAssembly & Blazo
dotnet add package Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme dotnet add package Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme
``` ```
- Remmove **Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme** reference from the project since it's not necessary after switching to LeptonX Lite.
- Remove the old theme from the **DependsOn** attribute in your module class and add the **AbpAspNetCoreComponentsWebAssemblyLeptonXLiteThemeModule** type to the **DependsOn** attribute. - Remove the old theme from the **DependsOn** attribute in your module class and add the **AbpAspNetCoreComponentsWebAssemblyLeptonXLiteThemeModule** type to the **DependsOn** attribute.
```diff ```diff
[DependsOn( [DependsOn(
// Remove BasicTheme module from DependsOn attribute
- typeof(AbpAspNetCoreComponentsWebAssemblyBasicThemeModule), - typeof(AbpAspNetCoreComponentsWebAssemblyBasicThemeModule),
+ typeof(AbpAspNetCoreComponentsWebAssemblyLeptonXLiteThemeModule)
// Add LeptonX Lite module to DependsOn attribute
+ typeof(AbpAspNetCoreComponentsWebAssemblyLeptonXLiteThemeModule),
)] )]
``` ```
@ -53,19 +58,27 @@ builder.RootComponents.Add<App>("#ApplicationContainer");
dotnet add package Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme dotnet add package Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme
``` ```
- Remove old theme from the **DependsOn** attribute in your module class and add the **AbpAspNetCoreComponentsWebAssemblyLeptonXLiteThemeModule** type to the **DependsOn** attribute. - Remmove **Volo.Abp.AspNetCore.Components.Server.BasicTheme** reference from the project since it's not necessary after switching to LeptonX Lite.
- Remove old theme from the **DependsOn** attribute in your module class and add the **AbpAspNetCoreComponentsServerLeptonXLiteThemeModule** type to the **DependsOn** attribute.
```diff ```diff
[DependsOn( [DependsOn(
// Remove BasicTheme module from DependsOn attribute
- typeof(AbpAspNetCoreComponentsServerBasicThemeModule), - typeof(AbpAspNetCoreComponentsServerBasicThemeModule),
// Add LeptonX Lite module to DependsOn attribute
+ typeof(AbpAspNetCoreComponentsServerLeptonXLiteThemeModule) + typeof(AbpAspNetCoreComponentsServerLeptonXLiteThemeModule)
)] )]
``` ```
- Update AbpBundlingOptions - Replace BlazorBasicThemeBundles with BlazorLeptonXLiteThemeBundles in AbpBundlingOptions
```diff ```diff
options.StyleBundles.Configure( options.StyleBundles.Configure(
// Remove following line
- BlazorBasicThemeBundles.Styles.Global, - BlazorBasicThemeBundles.Styles.Global,
// Add following line instead
+ BlazorLeptonXLiteThemeBundles.Styles.Global, + BlazorLeptonXLiteThemeBundles.Styles.Global,
bundle => bundle =>
{ {
@ -84,12 +97,16 @@ builder.RootComponents.Add<App>("#ApplicationContainer");
``` ```
- Then replace script & style bundles as following: - Then replace script & style bundles as following:
```diff ```diff
// Remove following line
- <abp-style-bundle name="@BlazorBasicThemeBundles.Styles.Global" /> - <abp-style-bundle name="@BlazorBasicThemeBundles.Styles.Global" />
// Add following line instead
+ <abp-style-bundle name="@BlazorLeptonXLiteThemeBundles.Styles.Global" /> + <abp-style-bundle name="@BlazorLeptonXLiteThemeBundles.Styles.Global" />
``` ```
```diff ```diff
// Remove following line
- <abp-script-bundle name="@BlazorBasicThemeBundles.Scripts.Global" /> - <abp-script-bundle name="@BlazorBasicThemeBundles.Scripts.Global" />
// Add following line instead
+ <abp-script-bundle name="@BlazorLeptonXLiteThemeBundles.Scripts.Global" /> + <abp-script-bundle name="@BlazorLeptonXLiteThemeBundles.Scripts.Global" />
``` ```

11
docs/en/Themes/LeptonXLite/mvc.md

@ -13,22 +13,29 @@ LeptonX Lite has implementation for the ABP Framework Razor Pages. It's a simpli
dotnet add package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite --prerelease dotnet add package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite --prerelease
``` ```
- Remove **Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic** reference from the project since it's not necessary after switching to LeptonX Lite.
- Make sure the old theme is removed and LeptonX is added in your Module class. - Make sure the old theme is removed and LeptonX is added in your Module class.
```diff ```diff
[DependsOn( [DependsOn(
// Remove BasicTheme module from DependsOn attribute
- typeof(AbpAspNetCoreMvcUiBasicThemeModule), - typeof(AbpAspNetCoreMvcUiBasicThemeModule),
+ typeof(AbpAspNetCoreMvcUiLeptonXLiteThemeModule)
// Add LeptonX Lite module to DependsOn attribute
+ typeof(AbpAspNetCoreMvcUiLeptonXLiteThemeModule),
)] )]
``` ```
- Update AbpBundlingOptions - Replace `BasicThemeBundles` with `LeptonXLiteThemeBundles` in AbpBundlingOptions
```diff ```diff
Configure<AbpBundlingOptions>(options => Configure<AbpBundlingOptions>(options =>
{ {
options.StyleBundles.Configure( options.StyleBundles.Configure(
// Remove following line
- BasicThemeBundles.Styles.Global, - BasicThemeBundles.Styles.Global,
// Add following line instead
+ LeptonXLiteThemeBundles.Styles.Global + LeptonXLiteThemeBundles.Styles.Global
bundle => bundle =>
{ {

Loading…
Cancel
Save