@@ -10,7 +10,6 @@ public static class GalleryConstants
1010 {
1111 public const string AlphabeticSortOrder = "package-title" ;
1212 public const int DefaultPackageListPageSize = 20 ;
13- public const string DefaultPackageListSortOrder = "package-download-count" ;
1413 public const int PasswordResetTokenExpirationHours = 1 ;
1514
1615 public const int ColumnsAuthenticationSm = 6 ;
@@ -19,39 +18,22 @@ public static class GalleryConstants
1918 public const int ColumnsWideAuthenticationMd = 6 ;
2019 public const int ColumnsFormMd = 12 ;
2120
22- public const int VisibleVersions = 5 ;
23-
2421 public const int GravatarElementSize = 32 ;
2522 public const int GravatarImageSize = GravatarElementSize * 2 ;
2623 public const int GravatarImageSizeLarge = 332 ;
2724 public const int GravatarCacheDurationSeconds = 300 ;
2825
29- public const int MaxEmailSubjectLength = 255 ;
3026 public const int MaxFileLengthBytes = 1024 * 1024 ; // 1MB for License, Icon, readme file
3127 internal static readonly NuGetVersion MaxSupportedMinClientVersion = new NuGetVersion ( "5.9.0.0" ) ;
32- public const string PackageFileDownloadUriTemplate = "packages/{0}/{1}/download" ;
33-
34- public const string ReadMeFileSavePathTemplateActive = "active/{0}/{1}{2}" ;
35- public const string ReadMeFileSavePathTemplatePending = "pending/{0}/{1}{2}" ;
3628
37- public const string PopularitySortOrder = "package-download-count" ;
3829 public const string RecentSortOrder = "package-created" ;
39- public const string RelevanceSortOrder = "relevance" ;
40-
41- public const string PBKDF2HashAlgorithmId = "PBKDF2" ;
4230
4331 public const string UploadFileNameTemplate = "{0}{1}" ;
44- public const string NuGetCommandLinePackageId = "NuGet.CommandLine" ;
4532
4633 public static readonly string ReturnUrlViewDataKey = "ReturnUrl" ;
4734 public static readonly string ReturnUrlMessageViewDataKey = "ReturnUrlMessage" ;
4835 public const string AskUserToEnable2FA = "AskUserToEnable2FA" ;
4936
50- public const string UrlValidationRegEx = @"(https?):\/\/[^ ""]+$" ;
51- public const string UrlValidationErrorMessage = "This doesn't appear to be a valid HTTP/HTTPS URL" ;
52-
53- public const string PackageBaseAddress = "PackageBaseAddress/3.0.0" ;
54-
5537 // Note: regexes must be tested to work in JavaScript
5638 // We do NOT follow strictly the RFCs at this time, and we choose not to support many obscure email address variants.
5739 // Specifically the following are not supported by-design:
@@ -85,13 +67,10 @@ public static class GalleryConstants
8567 /// </summary>
8668 internal const string CustomQueryHeaderName = "X-NuGet-CustomQuery" ;
8769
88- public static readonly string ReturnUrlParameterName = "ReturnUrl" ;
89-
9070 public const string LicenseDeprecationUrl = "https://aka.ms/deprecateLicenseUrl" ;
9171
9272 public static class ContentNames
9373 {
94- public static readonly string ReadOnly = "ReadOnly" ;
9574 public static readonly string TermsOfUse = "Terms-Of-Use" ;
9675 public static readonly string PrivacyPolicy = "Privacy-Policy" ;
9776 public static readonly string Team = "Team" ;
@@ -102,7 +81,6 @@ public static class StatisticsDimensions
10281 public const string Version = "Version" ;
10382 public const string ClientName = "ClientName" ;
10483 public const string ClientVersion = "ClientVersion" ;
105- public const string Operation = "Operation" ;
10684 }
10785
10886 public static class FAQLinks
0 commit comments