|
|
|
@ -1,9 +1,7 @@ |
|
|
|
using System.Diagnostics; |
|
|
|
using System.Text; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Volo.Abp.Auditing; |
|
|
|
using Volo.Abp.Http; |
|
|
|
using Volo.Abp.Json; |
|
|
|
@ -39,18 +37,12 @@ namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations |
|
|
|
{ |
|
|
|
var script = CreateAbpExtendScript(await _configurationAppService.GetAsync()); |
|
|
|
|
|
|
|
return Content(_options.MinifyGeneratedScript == true ? _javascriptMinifier.Minify(script) : script, |
|
|
|
return Content( |
|
|
|
_options.MinifyGeneratedScript == true |
|
|
|
? _javascriptMinifier.Minify(script) |
|
|
|
: script, |
|
|
|
MimeTypes.Application.Javascript |
|
|
|
|
|
|
|
Logger.LogDebug("Executing AbpApplicationConfigurationScriptController.Get()"); |
|
|
|
|
|
|
|
var result = CreateAbpExtendScript( |
|
|
|
await _configurationAppService.GetAsync() |
|
|
|
); |
|
|
|
|
|
|
|
Logger.LogDebug("Executed AbpApplicationConfigurationScriptController.Get()"); |
|
|
|
|
|
|
|
return Content(result, MimeTypes.Application.Javascript); |
|
|
|
} |
|
|
|
|
|
|
|
private string CreateAbpExtendScript(ApplicationConfigurationDto config) |
|
|
|
|