Browse Source

Merge pull request #8819 from wieslawsoltes/UpdateWebBlazor

Update Avalonia.Web.Blazor dependencies
fixes/android-render-issue
Dan Walmsley 4 years ago
committed by GitHub
parent
commit
f95dde85fd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Web/Avalonia.Web.Blazor/Avalonia.Web.Blazor.csproj
  2. 5
      src/Web/Avalonia.Web.Blazor/Interop/Typescript/StorageProvider.ts

4
src/Web/Avalonia.Web.Blazor/Avalonia.Web.Blazor.csproj

@ -45,8 +45,8 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.8" />
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.5.2" PrivateAssets="all" /> <PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.7.4" PrivateAssets="all" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

5
src/Web/Avalonia.Web.Blazor/Interop/Typescript/StorageProvider.ts

@ -8,7 +8,6 @@ declare global {
type PermissionsMode = "read" | "readwrite"; type PermissionsMode = "read" | "readwrite";
interface FileSystemFileHandle { interface FileSystemFileHandle {
name: string, name: string,
kind: "file" | "directory",
getFile(): Promise<File>; getFile(): Promise<File>;
createWritable(options?: { keepExistingData?: boolean }): Promise<FileSystemWritableFileStream>; createWritable(options?: { keepExistingData?: boolean }): Promise<FileSystemWritableFileStream>;
@ -169,10 +168,6 @@ class StorageItem {
} }
public async getItems(): Promise<StorageItems> { public async getItems(): Promise<StorageItems> {
if (this.handle.kind !== "directory"){
return new StorageItems([]);
}
const items: StorageItem[] = []; const items: StorageItem[] = [];
for await (const [key, value] of this.handle.entries()) { for await (const [key, value] of this.handle.entries()) {
items.push(new StorageItem(value)); items.push(new StorageItem(value));

Loading…
Cancel
Save