Giter Site home page Giter Site logo

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

View Code? Open in Web Editor NEW

This project forked from mucahiddanis/abp.aspnetcore.mvc.ui.theme.adminlte

0.0 1.0 0.0 16.13 MB

ABP framework AdminLTE Theme

License: MIT License

JavaScript 82.84% C# 0.50% CSS 15.26% HTML 1.25% 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

Watchers

 avatar

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.