|
|
|
@ -4,10 +4,8 @@ using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.AspNetCore.Mvc.Rendering; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|
|
|
using Volo.Abp.Configuration; |
|
|
|
using Volo.Docs.Documents; |
|
|
|
using Volo.Docs.HtmlConverting; |
|
|
|
using Volo.Docs.Models; |
|
|
|
@ -56,20 +54,17 @@ namespace Volo.Docs.Pages.Documents.Project |
|
|
|
private readonly IDocumentAppService _documentAppService; |
|
|
|
private readonly IDocumentToHtmlConverterFactory _documentToHtmlConverterFactory; |
|
|
|
private readonly IProjectAppService _projectAppService; |
|
|
|
private readonly IConfigurationRoot _configuration; |
|
|
|
private readonly DocsUrlOptions _options; |
|
|
|
|
|
|
|
public IndexModel( |
|
|
|
IDocumentAppService documentAppService, |
|
|
|
IDocumentToHtmlConverterFactory documentToHtmlConverterFactory, |
|
|
|
IProjectAppService projectAppService, |
|
|
|
IConfigurationAccessor configurationAccessor, |
|
|
|
IOptions<DocsUrlOptions> options) |
|
|
|
{ |
|
|
|
_documentAppService = documentAppService; |
|
|
|
_documentToHtmlConverterFactory = documentToHtmlConverterFactory; |
|
|
|
_projectAppService = projectAppService; |
|
|
|
_configuration = configurationAccessor.Configuration; |
|
|
|
_options = options.Value; |
|
|
|
} |
|
|
|
|
|
|
|
|