revert drag file function

This commit is contained in:
zhushenwudi 2025-01-07 23:51:37 +08:00
parent a9cdfb9d34
commit 43aa214942

View File

@ -15,33 +15,33 @@
<DataAnnotationsValidator/> <DataAnnotationsValidator/>
<FluentStack Orientation="Orientation.Vertical"> <FluentStack Orientation="Orientation.Vertical">
@* <FluentSwitch Label="Use custom .apk (not recommended)" @bind-Value="UseCustomApk"/> *@ <FluentSwitch Label="Use custom .apk (not recommended)" @bind-Value="UseCustomApk"/>
@* @if (UseCustomApk) *@ @if (UseCustomApk)
@* { *@ {
@* <!-- Nesting FluentCards causes recursion error in console --> *@ <!-- Nesting FluentCards causes recursion error in console -->
@* <FluentCard AreaRestricted="false"> *@ <FluentCard AreaRestricted="false">
@* <FluentStack Orientation="Orientation.Vertical"> *@ <FluentStack Orientation="Orientation.Vertical">
@* <FluentLabel>Loaded file: <code>@(_customApkOriginalFileName ?? "None")</code></FluentLabel> *@ <FluentLabel>Loaded file: <code>@(_customApkOriginalFileName ?? "None")</code></FluentLabel>
@* <FluentInputFile Id="file-uploader" *@ <FluentInputFile Id="file-uploader"
@* Mode="InputFileMode.SaveToTemporaryFolder" *@ Mode="InputFileMode.SaveToTemporaryFolder"
@* Accept=".apk" *@ Accept=".apk"
@* Style="border: 1px dashed var(--accent-fill-rest); padding: 1rem;" *@ Style="border: 1px dashed var(--accent-fill-rest); padding: 1rem;"
@* MaximumFileSize="1 * 1024 * 1024 * 1024" *@ MaximumFileSize="1 * 1024 * 1024 * 1024"
@* BufferSize="1 * 1024 * 1024" *@ BufferSize="1 * 1024 * 1024"
@* OnCompleted="OnCustomApkUploadComplete" *@ OnCompleted="OnCustomApkUploadComplete"
@* OnProgressChange="OnCustomApkUploadProgress"> *@ OnProgressChange="OnCustomApkUploadProgress">
@* <ChildContent> *@ <ChildContent>
@* <label for="file-uploader"> *@ <label for="file-uploader">
@* <FluentIcon Value="@(new Icons.Regular.Size24.ArrowUpload())"/> *@ <FluentIcon Value="@(new Icons.Regular.Size24.ArrowUpload())"/>
@* </label> *@ </label>
@* <FluentStack Orientation="Orientation.Vertical" HorizontalAlignment="HorizontalAlignment.Center"> *@ <FluentStack Orientation="Orientation.Vertical" HorizontalAlignment="HorizontalAlignment.Center">
@* <FluentLabel>You can drag and drop your .apk here, or <label for="file-uploader">browse</label> to upload it.</FluentLabel> *@ <FluentLabel>You can drag and drop your .apk here, or <label for="file-uploader">browse</label> to upload it.</FluentLabel>
@* </FluentStack> *@ </FluentStack>
@* </ChildContent> *@ </ChildContent>
@* </FluentInputFile> *@ </FluentInputFile>
@* </FluentStack> *@ </FluentStack>
@* </FluentCard> *@ </FluentCard>
@* } *@ }
<FluentStack Orientation="Orientation.Vertical" VerticalGap="0"> <FluentStack Orientation="Orientation.Vertical" VerticalGap="0">
<FluentTextField Label="服务器URL" Placeholder="https://sif2.zhushenwudi.top" @bind-Value="PatchSettings.ApiUri" Spellcheck="false" Size="50"/> <FluentTextField Label="服务器URL" Placeholder="https://sif2.zhushenwudi.top" @bind-Value="PatchSettings.ApiUri" Spellcheck="false" Size="50"/>
<FluentValidationMessage For="@(() => PatchSettings.ApiUri)"/> <FluentValidationMessage For="@(() => PatchSettings.ApiUri)"/>