|
|
|
@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Mvc.Rendering; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|
|
|
using Volo.Abp.Validation; |
|
|
|
using Volo.Docs.Admin.Projects; |
|
|
|
using Volo.Docs.Projects; |
|
|
|
|
|
|
|
@ -70,11 +71,11 @@ namespace Volo.Docs.Admin.Pages.Docs.Admin.Projects |
|
|
|
public abstract class CreateProjectViewModelBase |
|
|
|
{ |
|
|
|
[Required] |
|
|
|
[StringLength(ProjectConsts.MaxNameLength)] |
|
|
|
[DynamicStringLength(typeof(ProjectConsts), nameof(ProjectConsts.MaxNameLength))] |
|
|
|
public string Name { get; set; } |
|
|
|
|
|
|
|
[Required] |
|
|
|
[StringLength(ProjectConsts.MaxShortNameLength)] |
|
|
|
[DynamicStringLength(typeof(ProjectConsts), nameof(ProjectConsts.MaxShortNameLength))] |
|
|
|
[InputInfoText("ShortNameInfoText")] |
|
|
|
public string ShortName { get; set; } |
|
|
|
|
|
|
|
@ -82,21 +83,21 @@ namespace Volo.Docs.Admin.Pages.Docs.Admin.Projects |
|
|
|
[SelectItems(nameof(FormatTypes))] |
|
|
|
public string Format { get; set; } |
|
|
|
|
|
|
|
[StringLength(ProjectConsts.MaxDefaultDocumentNameLength)] |
|
|
|
[DynamicStringLength(typeof(ProjectConsts), nameof(ProjectConsts.MaxDefaultDocumentNameLength))] |
|
|
|
public string DefaultDocumentName { get; set; } = "Index"; |
|
|
|
|
|
|
|
[StringLength(ProjectConsts.MaxNavigationDocumentNameLength)] |
|
|
|
[DynamicStringLength(typeof(ProjectConsts), nameof(ProjectConsts.MaxNavigationDocumentNameLength))] |
|
|
|
public string NavigationDocumentName { get; set; } = "docs-nav.json"; |
|
|
|
|
|
|
|
[StringLength(ProjectConsts.MaxParametersDocumentNameLength)] |
|
|
|
[DynamicStringLength(typeof(ProjectConsts), nameof(ProjectConsts.MaxParametersDocumentNameLength))] |
|
|
|
public string ParametersDocumentName { get; set; } = "docs-params.json"; |
|
|
|
|
|
|
|
[StringLength(ProjectConsts.MaxVersionNameLength)] |
|
|
|
[DynamicStringLength(typeof(ProjectConsts), nameof(ProjectConsts.MaxVersionNameLength))] |
|
|
|
public string MinimumVersion { get; set; } |
|
|
|
|
|
|
|
public string MainWebsiteUrl { get; set; } |
|
|
|
|
|
|
|
[StringLength(ProjectConsts.MaxLatestVersionBranchNameLength)] |
|
|
|
[DynamicStringLength(typeof(ProjectConsts), nameof(ProjectConsts.MaxLatestVersionBranchNameLength))] |
|
|
|
public string LatestVersionBranchName { get; set; } |
|
|
|
|
|
|
|
[HiddenInput] |
|
|
|
|