Skip to content

Commit

Permalink
Merge pull request #3 from gjmwolmarans/syncfusion
Browse files Browse the repository at this point in the history
moved ResourceList and added no-cache meta tags
  • Loading branch information
gjmwolmarans authored Jul 26, 2024
2 parents 9c323ca + 3210eb4 commit ce2b8c8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@

@if (Resources != null)
{
<SfGrid DataSource=Resources AllowPaging=true >
<SfGrid DataSource=Resources AllowPaging=true AllowSorting=true AllowMultiSorting=true AllowFiltering=true>
<GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.Excel"></GridFilterSettings>
<GridPageSettings PageSize=50></GridPageSettings>
<GridColumns>
<GridColumn Field="@nameof(Resource.Id)" HeaderText="ID" TextAlign=TextAlign.Right Width=48 AllowSorting=true />
<GridColumn Field="@nameof(Resource.Title)" HeaderText="Title" AllowSorting=true >
<GridColumn Field="@nameof(Resource.Id)" IsPrimaryKey=true HeaderText="ID" TextAlign=TextAlign.Right Width=72 />
<GridColumn Field="@nameof(Resource.Title)" HeaderText="Title">
<Template>
@{
var resource = context as Resource;
Expand All @@ -29,8 +30,8 @@
</Template>
</GridColumn>
<GridColumn Field="@nameof(Resource.Type)" HeaderText="Type" />
<GridColumn Field="@nameof(Resource.Experience)" HeaderText="Experience" Type=ColumnType.Double Format="N2" AllowSorting=true />
<GridColumn Field="@nameof(Resource.Duration)" HeaderText="Duration" AllowSorting=true>
<GridColumn Field="@nameof(Resource.Experience)" HeaderText="Experience" Type=ColumnType.Double Format="N2" />
<GridColumn Field="@nameof(Resource.Duration)" HeaderText="Duration">
<Template>
@{
var resource = context as Resource;
Expand Down
11 changes: 6 additions & 5 deletions me/Pages/AboutMe.razor
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
@page "/"
@using me.shared
@using me.Pages.Learning

@inject IExcelFileService ExcelFileService

<PageTitle>Gabriël J. M. Wolmarans</PageTitle>
<PageTitle>gjmwolmarans.me | About Me</PageTitle>

<h1>Hello, world!</h1>
<FluentStack Orientation="Orientation.Vertical">
<h1>Hello, world!</h1>
<p></p>
</FluentStack>

<h2>Competency Matrix</h2>

Expand All @@ -27,7 +28,7 @@
if (firstRender)
{
Data = await ExcelFileService.LoadData();
Console.WriteLine(Data.Resources.Count());
Console.WriteLine($"Resources ({Data.Resources.Count()})");
}
}
}
2 changes: 2 additions & 0 deletions me/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
@using Microsoft.FluentUI.AspNetCore.Components
@using Microsoft.JSInterop
@using me
@using me.shared
@using me.Layout
@using me.Components.Resource
6 changes: 6 additions & 0 deletions me/me.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.*-*" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.*-*" PrivateAssets="all" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.*-* " />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Emoji" Version="4.6.0" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.*-* " />
<PackageReference Include="Syncfusion.Blazor" Version="26.2.4" />
<PackageReference Include="Syncfusion.Blazor.Themes" Version="26.2.4" />
Expand All @@ -20,4 +21,9 @@
<ProjectReference Include="..\me.shared\me.shared.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="Components\" />
<Folder Include="Components\Resource\" />
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions me/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
</script>
<link href="_content/Syncfusion.Blazor.Themes/fluent.css" rel="stylesheet" />
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
</head>

<body>
Expand Down

0 comments on commit ce2b8c8

Please sign in to comment.