Skip to content

Commit 60fc5d5

Browse files
authored
Merge pull request #9362 from NuGet/dev
[ReleasePrep][2023.01.26]RI of dev into main
2 parents c1ccf24 + 92ae551 commit 60fc5d5

41 files changed

Lines changed: 868 additions & 220 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/AccountDeleter/EmptyFeatureFlagService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,5 +295,9 @@ public bool IsDisplayUploadWarningV2Enabled(User user)
295295
{
296296
throw new NotImplementedException();
297297
}
298+
299+
public bool IsFrameworkFilteringEnabled(User user) {
300+
throw new NotImplementedException();
301+
}
298302
}
299303
}

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 53 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/dist/js/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap v3.4.1 (https://getbootstrap.com/)
3-
* Copyright 2011-2022 Twitter, Inc.
3+
* Copyright 2011-2023 Twitter, Inc.
44
* Licensed under the MIT license
55
*/
66

src/Bootstrap/less/theme/page-list-packages.less

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,23 @@
1111
margin: 0 !important;
1212
}
1313

14-
.btn-command {
14+
.btn-filter {
1515
margin-top: 33px;
1616
margin-bottom: 33px;
1717
width: 90px;
1818
height: 45px;
19+
font-weight: 500;
20+
font-size: medium;
1921
background-color: transparent;
2022
border: none;
2123
}
2224

25+
.btn-filter:hover {
26+
background-color: #f4f4f4;
27+
}
28+
2329
@media (max-width: @screen-md) {
24-
.btn-command {
30+
.btn-filter {
2531
text-align: left;
2632
margin-top: 0px;
2733
margin-bottom: 5px;
@@ -30,6 +36,7 @@
3036

3137
.prerel-filter {
3238
white-space: nowrap;
39+
float: right;
3340
}
3441

3542
@media (min-width: @screen-md) {
@@ -39,16 +46,30 @@
3946
}
4047
}
4148

42-
.btn-command:hover {
43-
background-color: #f4f4f4;
49+
.sortby {
50+
margin-top: 47px;
51+
52+
label {
53+
font-weight: 500;
54+
font-size: large;
55+
}
56+
57+
select {
58+
float: right;
59+
}
60+
}
61+
62+
.framework-filter-info-icon {
63+
margin-bottom: -6px;
64+
overflow: hidden;
4465
}
4566

4667
.advanced-search-panel {
4768
background-color: @alert-info-bg;
4869
border-color: @alert-info-border;
4970
margin-right: 0px;
5071
margin-left: 0;
51-
margin-bottom: 15px;
72+
margin-top: 30px;
5273

5374
fieldset {
5475
margin: 20px;
@@ -79,13 +100,47 @@
79100
margin-bottom: 10px;
80101
}
81102

103+
.reset-btn {
104+
padding-left: 0px;
105+
}
106+
82107
.warning-panel {
83108
margin-left: 10px;
84109
margin-right: 10px;
85110
}
86111

87112
#reset-advanced-search {
88113
color: darken(@link-color, 10%);
114+
margin-left: 0px;
115+
margin-right: 20px;
116+
}
117+
118+
.collapsible {
119+
color: rgb(73, 73, 73);
120+
background-color: @alert-info-bg;
121+
padding-top: 0px;
122+
padding-bottom: 0px;
123+
border: none;
124+
outline: none;
125+
float: right;
126+
}
127+
128+
.active, .collapsible:hover {
129+
color: rgb(90, 135, 220);
130+
}
131+
132+
.collapsible:focus {
133+
outline: solid;
134+
}
135+
136+
.tfmTab {
137+
max-height: 0;
138+
overflow: hidden;
139+
transition: max-height 0.1s ease-out;
140+
141+
ul {
142+
list-style: none;
143+
}
89144
}
90145
}
91146

src/GitHubVulnerabilities2Db/Fakes/FakeFeatureFlagService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,5 +294,9 @@ public bool IsNuGetAccountPasswordLoginEnabled()
294294
{
295295
throw new NotImplementedException();
296296
}
297+
298+
public bool IsFrameworkFilteringEnabled(User user) {
299+
throw new NotImplementedException();
300+
}
297301
}
298302
}

src/GitHubVulnerabilities2Db/Gallery/ThrowingTelemetryService.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,5 +400,13 @@ public IDisposable TrackAsyncSqlConnectionCreationDuration()
400400
{
401401
throw new NotImplementedException();
402402
}
403+
404+
public void TrackDownloadJsonTotalPackageIds(int totalPackageIds) {
405+
throw new NotImplementedException();
406+
}
407+
408+
public void TrackDownloadJsonTotalPackageVersions(int totalPackageVersions) {
409+
throw new NotImplementedException();
410+
}
403411
}
404412
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
using NuGet.Frameworks;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace NuGetGallery.Frameworks
9+
{
10+
public static class FrameworkFilterHelper
11+
{
12+
13+
/// <summary>
14+
/// Each Framework Filter Group represents one of the four Framework generations
15+
/// represented in the Search Filters.
16+
/// </summary>
17+
public class FrameworkFilterGroup
18+
{
19+
public FrameworkFilterGroup(
20+
string shortName,
21+
string displayName,
22+
List<string> tfms) {
23+
ShortName = shortName;
24+
DisplayName = displayName;
25+
Tfms = tfms;
26+
}
27+
28+
public string ShortName { get; set; }
29+
public string DisplayName { get; set; }
30+
public List<string> Tfms { get; set; }
31+
}
32+
33+
public static readonly Dictionary<string, FrameworkFilterGroup> FrameworkFilters = new Dictionary<string, FrameworkFilterGroup>()
34+
{
35+
{
36+
AssetFrameworkHelper.FrameworkGenerationIdentifiers.Net,
37+
new FrameworkFilterGroup(
38+
AssetFrameworkHelper.FrameworkGenerationIdentifiers.Net,
39+
AssetFrameworkHelper.FrameworkGenerationDisplayNames.Net,
40+
SupportedFrameworks.TfmFilters.NetTfms
41+
.Select(f => f.GetShortFolderName())
42+
.ToList()
43+
)
44+
},
45+
{
46+
AssetFrameworkHelper.FrameworkGenerationIdentifiers.NetCoreApp,
47+
new FrameworkFilterGroup(
48+
AssetFrameworkHelper.FrameworkGenerationIdentifiers.NetCoreApp,
49+
AssetFrameworkHelper.FrameworkGenerationDisplayNames.NetCoreApp,
50+
SupportedFrameworks.TfmFilters.NetCoreAppTfms
51+
.Select(f => f.GetShortFolderName())
52+
.ToList()
53+
)
54+
},
55+
{
56+
AssetFrameworkHelper.FrameworkGenerationIdentifiers.NetStandard,
57+
new FrameworkFilterGroup(
58+
AssetFrameworkHelper.FrameworkGenerationIdentifiers.NetStandard,
59+
AssetFrameworkHelper.FrameworkGenerationDisplayNames.NetStandard,
60+
SupportedFrameworks.TfmFilters.NetStandardTfms
61+
.Select(f => f.GetShortFolderName())
62+
.ToList()
63+
)
64+
},
65+
{
66+
AssetFrameworkHelper.FrameworkGenerationIdentifiers.NetFramework,
67+
new FrameworkFilterGroup(
68+
AssetFrameworkHelper.FrameworkGenerationIdentifiers.NetFramework,
69+
AssetFrameworkHelper.FrameworkGenerationDisplayNames.NetFramework,
70+
SupportedFrameworks.TfmFilters.NetFrameworkTfms
71+
.Select(f => f.GetShortFolderName())
72+
.ToList()
73+
)
74+
}
75+
};
76+
}
77+
}

0 commit comments

Comments
 (0)