mirror of https://github.com/abpframework/abp
parent
1cb00b6662
commit
6b3668bf18
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.Theming;
|
||||
|
||||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling
|
||||
{
|
||||
public class BundleConfigurationContext : IBundleConfigurationContext
|
||||
{
|
||||
public List<string> Files { get; }
|
||||
public ITheme Theme { get; }
|
||||
public IServiceProvider ServiceProvider { get; }
|
||||
|
||||
public BundleConfigurationContext(List<string> files, ITheme theme, IServiceProvider serviceProvider)
|
||||
{
|
||||
Files = files;
|
||||
Theme = theme;
|
||||
ServiceProvider = serviceProvider;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.Theming;
|
||||
using Volo.Abp.DependencyInjection;
|
||||
|
||||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling
|
||||
{
|
||||
public interface IBundleConfigurationContext : IServiceProviderAccessor
|
||||
{
|
||||
List<string> Files { get; }
|
||||
|
||||
ITheme Theme { get; }
|
||||
}
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
@model List<string>
|
||||
@foreach (var scriptFile in Model)
|
||||
{
|
||||
<script src="@scriptFile" type="text/javascript"></script>
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
@model List<string>
|
||||
@foreach (var styleFile in Model)
|
||||
{
|
||||
<link rel="stylesheet" type="text/css" href="@styleFile" />
|
||||
}
|
||||
Loading…
Reference in new issue