Open Closed

Plugin how to use LeptonX #7801


User avatar
0
niall created
  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I Create a plugin with follow command:

abp new My.Plugin -t module

but i notice the .Web project use the Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared, and the .Web.Host, .Web.Unified, .AuthServer projects use the Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.

I try to update them to Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX, but nothing found at nuget.

So how to change the UI of module to Pro(LeptonX)? or abp cli has a parameter to create pro like as abp new My.Plugin -t module-pro?


11 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can replace all the basic packages with leptons.

    Update the module depends and csproj files.

  • User Avatar
    0
    niall created

    I try to update them to Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX, but nothing found at nuget, only found LeptonXLite.

    How to replace them ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The packages exist on https://nuget.abp.io .

    https://abp.io/packages https://abp.io/docs/latest/ui-themes/lepton?_redirected=B8ABF606AA1BDF5C629883DF1061649A#nuget-packages

  • User Avatar
    0
    niall created

    got a error.

    xxxx> abp add-package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX
    
    ABP CLI 8.2.2
    Installing 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' package to the project 'XTC.License.Web'...
      正在确定要还原的项目…
      Writing xxxxxxxx\tmpfvyqbq.tmp
    info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
    info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
    info : 正在将包“Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX”的 PackageReference 添加到项目“xxxx\XTC.License.Web\XTC.License.Web.csproj”。
    info : 正在还原 xxxx\vs2022\src\XTC.License.Web\XTC.License.Web.csproj 的包...
    info :   GET https://api.nuget.org/v3-flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json
    info :   NotFound https://api.nuget.org/v3-flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json 274 毫秒
    error: NU1101: 找不到包 Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX。源 C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages, nuget.org 中不存在具有此 ID 的包
    info :   GET https://api.nuget.org/v3/vulnerabilities/index.json
    info :   OK https://api.nuget.org/v3/vulnerabilities/index.json 176 毫秒
    info :   GET https://api.nuget.org/v3/vulnerabilities/vulnerability.base.json
    info :   GET https://api.nuget.org/v3/vulnerabilities/vulnerability.update.json
    info :   OK https://api.nuget.org/v3/vulnerabilities/vulnerability.base.json 258 毫秒
    info :   OK https://api.nuget.org/v3/vulnerabilities/vulnerability.update.json 350 毫秒
    error: 包“Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX”与项目“E:\github\BaaSo\BaaSo-BusinessUnit-License\vs2022\src\XTC.License.Web\XTC.License.Web.csproj”中的“all”框架不兼容。
    Successfully installed.
    

    I logined with my account.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    1. Create a new app-pro template project with the Lepton theme, then check its source code.
    2. Update the module and csproj files that contain the basic theme manually.
  • User Avatar
    0
    niall created

    Hi,

    I update the basic to leptonX manually. but got a error tip me need license.

    ABP-LIC-0020 - License code not found! Ensure that your appsettings.json or appsettings.secrets.json has "AbpLicenseCode" key with your license code.
    

    How do i generate the license manually in my project?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Ensure that your appsettings.json or appsettings.secrets.json has "AbpLicenseCode" key with your license code.

    You can create a new app-pro project and copy the AbpLicenseCode to your project.

  • User Avatar
    0
    niall created

    HAH, it works.

    but a new issue, I only updated the basic to leptonx, but some ui need update to pro, such as account.

    Is there a document to explain how to update them?

    for example. i notice them at pro project.

        <PackageReference Include="Volo.Abp.Identity.Pro.Web" Version="8.2.2" />
        <PackageReference Include="Volo.Abp.Account.Pro.Admin.Web" Version="8.2.2" />
        <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.Impersonation" Version="8.2.2" />
        <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.Shared" Version="8.2.2" />
        <PackageReference Include="Volo.Abp.OpenIddict.Pro.Web" Version="8.2.2" />
    

    but at basic like this:

        <PackageReference Include="Volo.Abp.Account.Web.OpenIddict" Version="8.2.2" />
    

    How do the module of the Basic and Professional correspond?

    I just want to get a pro module template. Or can you generate one for me?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can use CLI or SUITE to create a new app-pro or module-pro template and compare the code.

  • User Avatar
    0
    niall created

    Yes, the project created by SUITE is pro, now resolved it. Thanks!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07