Lazy load images and fix build.

This commit is contained in:
Unnoen 2022-01-12 19:45:30 +11:00
parent 3f62690f4c
commit b19a86f298
No known key found for this signature in database
GPG Key ID: 8F8E42252BA20553
2 changed files with 16 additions and 22 deletions

View File

@ -5,7 +5,7 @@
<div class="item">
<div class="display">
<img src="@Metadata.Links.ImageUri" class="image" alt="@Metadata.Title Image">
<img src="@Metadata.Links.ImageUri" loading="lazy" class="image" alt="@Metadata.Title Image">
<div class="interaction">
@if (_downloadState.Value.CurrentDownloadState == DownloadState.DownloadStateEnum.Downloading)
{

View File

@ -12,13 +12,6 @@
<SupportedPlatform Include="browser" />
</ItemGroup>
<PropertyGroup>
<LibSassOutputStyle>compressed</LibSassOutputStyle>
<LibSassOutputStyle Condition="'$(Configuration)' == 'Debug'">expanded</LibSassOutputStyle>
<LibSassOutputLevel>verbose</LibSassOutputLevel>
<LibSassMessageLevel>High</LibSassMessageLevel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="LibSassBuilder" Version="2.0.1" />
<PackageReference Include="Fluxor" Version="4.2.2-Alpha" />
@ -26,19 +19,15 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Wpf" Version="6.0.101-preview.11.2349" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.1" />
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.5.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<!-- <Content Include="**\*.scss" />-->
<!-- <Content Include="**\*.scss" Watch="false" />-->
<!-- <Content Update="wwwroot\index.html">-->
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory>-->
<!-- </Content>-->
<EmbeddedResource Include="wwwroot\index.html" />
<!-- Required so updating the .scss files doesn't trigger a reload when using dotnet watch run. -->
<Content Remove="**\*.scss" />
<Content Include="**\*.scss" Watch="false" />
<Content Update="wwwroot\index.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
@ -49,8 +38,13 @@
<ProjectReference Include="..\Wabbajack.Services.OSIntegrated\Wabbajack.Services.OSIntegrated.csproj" />
</ItemGroup>
<!-- <ItemGroup>-->
<!-- <Folder Include="wwwroot" />-->
<!-- </ItemGroup>-->
<!-- <Target Name="DeleteGeneratedCSSFiles" AfterTargets="Build">-->
<!-- <ItemGroup>-->
<!-- <FilesToDelete Include="$(ProjectDir)Components\**\*.css"/>-->
<!-- <FilesToDelete Include="$(ProjectDir)Pages\**\*.css"/>-->
<!-- <FilesToDelete Include="$(ProjectDir)Shared\**\*.css"/>-->
<!-- </ItemGroup>-->
<!-- <Message Text="@(FilesToDelete, ', ')" Importance="High"/>-->
<!-- <Delete Files="@(FilesToDelete)"/>-->
<!-- </Target>-->
</Project>