Skip to content

Commit e22b4cc

Browse files
Merge branch 'master' into grid
2 parents 5c00e86 + faae068 commit e22b4cc

Some content is hidden

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

68 files changed

+1507
-44
lines changed

.github/workflows/gitleaks.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Secret Value found!!
2+
on:
3+
push:
4+
public:
5+
jobs:
6+
scan:
7+
name: gitleaks
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
- name: Install the gitleaks
13+
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
14+
shell: pwsh
15+
- name: Extract the tar file
16+
run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz
17+
- name: Generate the report
18+
id: gitleaks
19+
run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json
20+
shell: bash
21+
continue-on-error: true
22+
- name: Setup NuGet.exe
23+
if: steps.gitleaks.outcome != 'success'
24+
uses: nuget/setup-nuget@v1
25+
with:
26+
nuget-version: latest
27+
- name: Install the dotnet
28+
if: steps.gitleaks.outcome != 'success'
29+
uses: actions/setup-dotnet@v3
30+
with:
31+
dotnet-version: '3.1.x'
32+
- name: Install the report tool packages
33+
if: steps.gitleaks.outcome != 'success'
34+
run: |
35+
nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion
36+
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1
37+
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
38+
exit 1
File renamed without changes.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Syncfusion.Blazor.Grid" Version="20.2.0.38" />
11+
<PackageReference Include="Syncfusion.Blazor.Grid" Version="20.4.0.49" />
12+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="20.4.0.49" />
1213
</ItemGroup>
1314

1415
</Project>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
@page "/adaptiveui-using-mediaquery"
2+
3+
@using Syncfusion.Blazor
4+
@using Syncfusion.Blazor.Grids
5+
6+
<p>DataGrid Adaptive UI layout using Media Query Component</p>
7+
8+
<div style="position:relative; min-height: 500px;">
9+
<SfMediaQuery @bind-ActiveBreakPoint="activeBreakpoint"/>
10+
@if (activeBreakpoint == "Small")
11+
{
12+
rowDirection = RowDirection.Vertical;
13+
}
14+
else
15+
{
16+
rowDirection = RowDirection.Horizontal;
17+
}
18+
<SfGrid DataSource="@Orders" AllowSorting="true" AllowFiltering="true"
19+
EnableAdaptiveUI="true" AdaptiveUIMode="AdaptiveMode.Mobile" RowRenderingMode="@rowDirection"
20+
Height="100%" Width="100%" AllowPaging="true"
21+
Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update", "Search" })">
22+
<GridFilterSettings Type="@FilterType.Excel"/>
23+
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Dialog"/>
24+
<GridColumns>
25+
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" IsPrimaryKey="true" Width="80" ValidationRules="@(new ValidationRules{ Required= true })"/>
26+
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name" Width="120"/>
27+
<GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order Date" Format="d" Type="ColumnType.Date" Width="130"/>
28+
<GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" Width="120"/>
29+
</GridColumns>
30+
</SfGrid>
31+
</div>
32+
33+
@code {
34+
public List<Order>? Orders { get; set; }
35+
private string? activeBreakpoint { get; set; }
36+
private RowDirection rowDirection{ get; set; }
37+
38+
protected override void OnInitialized()
39+
{
40+
Orders = Enumerable.Range(1, 75).Select(x => new Order()
41+
{
42+
OrderID = 1000 + x,
43+
CustomerID = (new string[] { "ALFKI", "ANANTR", "ANTON", "BLONP", "BOLID" })[new Random().Next(5)],
44+
Freight = 2.1 * x,
45+
OrderDate = DateTime.Now.AddDays(-x),
46+
}).ToList();
47+
}
48+
49+
public class Order
50+
{
51+
public int? OrderID { get; set; }
52+
public string? CustomerID { get; set; }
53+
public DateTime? OrderDate { get; set; }
54+
public double? Freight { get; set; }
55+
}
56+
}

0 commit comments

Comments
 (0)