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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
7 deletions
-
src/Web/Avalonia.Web.Blazor/Avalonia.Web.Blazor.csproj
-
src/Web/Avalonia.Web.Blazor/Interop/Typescript/StorageProvider.ts
|
|
|
@ -45,8 +45,8 @@ |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" /> |
|
|
|
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.5.2" PrivateAssets="all" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.8" /> |
|
|
|
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.7.4" PrivateAssets="all" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
|
|
|
|
@ -8,7 +8,6 @@ declare global { |
|
|
|
type PermissionsMode = "read" | "readwrite"; |
|
|
|
interface FileSystemFileHandle { |
|
|
|
name: string, |
|
|
|
kind: "file" | "directory", |
|
|
|
getFile(): Promise<File>; |
|
|
|
createWritable(options?: { keepExistingData?: boolean }): Promise<FileSystemWritableFileStream>; |
|
|
|
|
|
|
|
@ -169,10 +168,6 @@ class StorageItem { |
|
|
|
} |
|
|
|
|
|
|
|
public async getItems(): Promise<StorageItems> { |
|
|
|
if (this.handle.kind !== "directory"){ |
|
|
|
return new StorageItems([]); |
|
|
|
} |
|
|
|
|
|
|
|
const items: StorageItem[] = []; |
|
|
|
for await (const [key, value] of this.handle.entries()) { |
|
|
|
items.push(new StorageItem(value)); |
|
|
|
|