GithubHelp home page GithubHelp logo

mucahiddanis / abp.aspnetcore.mvc.ui.theme.adminlte Goto Github PK

View Code? Open in Web Editor NEW
37.0 3.0 20.0 16.13 MB

ABP framework AdminLTE Theme

License: MIT License

C# 0.50% HTML 1.25% JavaScript 82.84% CSS 15.26% Less 0.15%

abp.aspnetcore.mvc.ui.theme.adminlte's Introduction

Abp.AspNetCore.Mvc.UI.Theme.AdminLTE

ABP framework AdminLTE Theme

ABP framework ile geliştirilen AspNet MVC / Razor projeleri için AdminLTE temasıdır.

Öncelikle ABP CLI aracını aşağıdaki komutu kullanarak kuralım.

dotnet tool install -g Volo.Abp.Cli

Zaten yüklüyse aşağıdaki komutla güncelleyebilirsiniz:

dotnet tool update -g Volo.Abp.Cli

Temayı uygulamak için örnek yeni bir proje oluşturalım:

abp new AbpThemeAdminLte

Proje ana dizininde Tema projesi için theme isminde klasör oluşturalım ve komut satırında theme dizinine gidelim:

mkdir theme
cd theme

ABP için AdminLTE tema modülü projesini git üzerinden alalım:

git clone https://github.com/mucahiddanis/Abp.AspNetCore.Mvc.UI.Theme.AdminLTE.git

Proje ana dizinine dönelim:

cd ..
cd ..

sln dosyasına AdminLTE tema projesini ekleyelim:

dotnet sln add theme/Abp.AspNetCore.Mvc.UI.Theme.AdminLTE/Abp.AspNetCore.Mvc.UI.Theme.AdminLTE.csproj

AbpThemeAdminLte.Web projemize AdminLTE tema projesini referans edelim:

<ProjectReference Include="..\..\theme\Abp.AspNetCore.Mvc.UI.Theme.AdminLTE\Abp.AspNetCore.Mvc.UI.Theme.AdminLTE.csproj" />

AbpThemeAdminLte.Web.AbpThemeAdminLteWebModule.cs web modülünde temamızı konfigüre edelim:

[DependsOn(
        typeof(AbpThemeAdminLteHttpApiModule),
        typeof(AbpThemeAdminLteApplicationModule),
        typeof(AbpThemeAdminLteEntityFrameworkCoreDbMigrationsModule),
        typeof(AbpAutofacModule),
        typeof(AbpIdentityWebModule),
        typeof(AbpAccountWebIdentityServerModule),
        typeof(AbpAspNetCoreMvcUiBasicThemeModule),
        typeof(AbpAspNetCoreAuthenticationJwtBearerModule),
        typeof(AbpTenantManagementWebModule),
        typeof(AbpAspNetCoreSerilogModule)
        )]
    public class AbpThemeAdminLteWebModule : AbpModule
typeof(AbpAspNetCoreMvcUiBasicThemeModule),

Yukarıdaki kodun altına aşağıdaki kodu ekleyelim:

typeof(AbpAspNetCoreMvcUiAdminLTEThemeModule),

modülün çözümlenmesi için using ekleyelim:

using Abp.AspNetCore.Mvc.UI.Theme.AdminLTE;

DependsOn listesi son olarak şöyle olmalı:

[DependsOn(
        typeof(AbpThemeAdminLteHttpApiModule),
        typeof(AbpThemeAdminLteApplicationModule),
        typeof(AbpThemeAdminLteEntityFrameworkCoreDbMigrationsModule),
        typeof(AbpAutofacModule),
        typeof(AbpIdentityWebModule),
        typeof(AbpAccountWebIdentityServerModule),
        typeof(AbpAspNetCoreMvcUiBasicThemeModule),
        typeof(AbpAspNetCoreMvcUiAdminLTEThemeModule),
        typeof(AbpAspNetCoreAuthenticationJwtBearerModule),
        typeof(AbpTenantManagementWebModule),
        typeof(AbpAspNetCoreSerilogModule)
        )]
    public class AbpThemeAdminLteWebModule : AbpModule

AdminLTE temasının css, js, image gibi kaynak dosyaları için VirtualFileSystem ayarını yapalım. Bunun için AbpThemeAdminLte.Web.AbpThemeAdminLteWebModule.cs dosyasında ConfigureVirtualFileSystem methoduna ekleme yapalım:

private void ConfigureVirtualFileSystem(IWebHostEnvironment hostingEnvironment)
        {
            if (hostingEnvironment.IsDevelopment())
            {
                Configure<AbpVirtualFileSystemOptions>(options =>
                {
                    options.FileSets.ReplaceEmbeddedByPhysical<AbpThemeAdminLteDomainSharedModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}AbpThemeAdminLte.Domain.Shared"));
                    options.FileSets.ReplaceEmbeddedByPhysical<AbpThemeAdminLteDomainModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}AbpThemeAdminLte.Domain"));
                    options.FileSets.ReplaceEmbeddedByPhysical<AbpThemeAdminLteApplicationContractsModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}AbpThemeAdminLte.Application.Contracts"));
                    options.FileSets.ReplaceEmbeddedByPhysical<AbpThemeAdminLteApplicationModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}AbpThemeAdminLte.Application"));
                    options.FileSets.ReplaceEmbeddedByPhysical<AbpThemeAdminLteWebModule>(hostingEnvironment.ContentRootPath);

                    // AdminLTE teması
                    options.FileSets.ReplaceEmbeddedByPhysical<AbpThemeAdminLteApplicationModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}..{Path.DirectorySeparatorChar}Abp.AspNetCore.Mvc.UI.Theme.AdminLTE"));
                });
            }
        }

Projeyi Build edelim.

AbpThemeAdminLte.DbMigrator projesini çalıştıralım. AbpThemeAdminLte.Web Projesini çalıştıralım.

login

home

user-management

user-management-permissions

account-manage

Versiyon Güncelleme

Aktif versiyon

ABP v4.3.3

Abp.AspNetCore.Mvc.UI.Theme.AdminLTE.csproj tema proje dosyasında ABP paketlerinin versiyonlarını güncellemeniz yeterli.

theme-abp-package-references

abp.aspnetcore.mvc.ui.theme.adminlte's People

Contributors

hikalkan avatar mucahiddanis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

abp.aspnetcore.mvc.ui.theme.adminlte's Issues

Box component problem

Many thanks for your effort. Box component is not shown as original adminlte box. Is there any workaround?

Javascript bundling location

Hi,
I've added javascript file for users index page with below codes and put js file into "theme\Abp.AspNetCore.Mvc.UI.Theme.AdminLTE\Pages\Identity\Users" folder. Abp cannot find js file in this location when loading index page of users. Because abp searches bundled file in orginal project folder. If I put js file in "src\Portal.Web\Pages\Identity\Users" folder it loads js file successfully.

What did I wrong?
Or is this normal behaviour of abp?

Configure(options =>
{
options.ScriptBundles
.Configure(
typeof(Volo.Abp.Identity.Web.Pages.Identity.Users.IndexModel).FullName,
bundleConfig =>
{
bundleConfig.AddFiles("/Pages/Identity/Users/createmodal.js");
});
});

There was a problem switching to production

  1. Switch to the production environment
    image
    2.Run
    image
    3.Press F12 in the Google browser to enter the debugging interface
    image
    4.Click on any of the menus
    image
    5.Report an error
    image

Because pageUrl is null,Could you please help me to see what error is causing this?

have a bug ?

In 'Personal info' page ,I clicked the submit button and reported an error!

Manage.cshtml
@foreach (var group in Model.ProfileManagementPageCreationContext.Groups)

Model.ProfileManagementPageCreationContext is null .

Hope to check and look forward to reply , thanks!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.