revert drag file function
This commit is contained in:
parent
a9cdfb9d34
commit
43aa214942
@ -15,33 +15,33 @@
|
||||
<DataAnnotationsValidator/>
|
||||
|
||||
<FluentStack Orientation="Orientation.Vertical">
|
||||
@* <FluentSwitch Label="Use custom .apk (not recommended)" @bind-Value="UseCustomApk"/> *@
|
||||
@* @if (UseCustomApk) *@
|
||||
@* { *@
|
||||
@* <!-- Nesting FluentCards causes recursion error in console --> *@
|
||||
@* <FluentCard AreaRestricted="false"> *@
|
||||
@* <FluentStack Orientation="Orientation.Vertical"> *@
|
||||
@* <FluentLabel>Loaded file: <code>@(_customApkOriginalFileName ?? "None")</code></FluentLabel> *@
|
||||
@* <FluentInputFile Id="file-uploader" *@
|
||||
@* Mode="InputFileMode.SaveToTemporaryFolder" *@
|
||||
@* Accept=".apk" *@
|
||||
@* Style="border: 1px dashed var(--accent-fill-rest); padding: 1rem;" *@
|
||||
@* MaximumFileSize="1 * 1024 * 1024 * 1024" *@
|
||||
@* BufferSize="1 * 1024 * 1024" *@
|
||||
@* OnCompleted="OnCustomApkUploadComplete" *@
|
||||
@* OnProgressChange="OnCustomApkUploadProgress"> *@
|
||||
@* <ChildContent> *@
|
||||
@* <label for="file-uploader"> *@
|
||||
@* <FluentIcon Value="@(new Icons.Regular.Size24.ArrowUpload())"/> *@
|
||||
@* </label> *@
|
||||
@* <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> *@
|
||||
@* </FluentStack> *@
|
||||
@* </ChildContent> *@
|
||||
@* </FluentInputFile> *@
|
||||
@* </FluentStack> *@
|
||||
@* </FluentCard> *@
|
||||
@* } *@
|
||||
<FluentSwitch Label="Use custom .apk (not recommended)" @bind-Value="UseCustomApk"/>
|
||||
@if (UseCustomApk)
|
||||
{
|
||||
<!-- Nesting FluentCards causes recursion error in console -->
|
||||
<FluentCard AreaRestricted="false">
|
||||
<FluentStack Orientation="Orientation.Vertical">
|
||||
<FluentLabel>Loaded file: <code>@(_customApkOriginalFileName ?? "None")</code></FluentLabel>
|
||||
<FluentInputFile Id="file-uploader"
|
||||
Mode="InputFileMode.SaveToTemporaryFolder"
|
||||
Accept=".apk"
|
||||
Style="border: 1px dashed var(--accent-fill-rest); padding: 1rem;"
|
||||
MaximumFileSize="1 * 1024 * 1024 * 1024"
|
||||
BufferSize="1 * 1024 * 1024"
|
||||
OnCompleted="OnCustomApkUploadComplete"
|
||||
OnProgressChange="OnCustomApkUploadProgress">
|
||||
<ChildContent>
|
||||
<label for="file-uploader">
|
||||
<FluentIcon Value="@(new Icons.Regular.Size24.ArrowUpload())"/>
|
||||
</label>
|
||||
<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>
|
||||
</FluentStack>
|
||||
</ChildContent>
|
||||
</FluentInputFile>
|
||||
</FluentStack>
|
||||
</FluentCard>
|
||||
}
|
||||
<FluentStack Orientation="Orientation.Vertical" VerticalGap="0">
|
||||
<FluentTextField Label="服务器URL" Placeholder="https://sif2.zhushenwudi.top" @bind-Value="PatchSettings.ApiUri" Spellcheck="false" Size="50"/>
|
||||
<FluentValidationMessage For="@(() => PatchSettings.ApiUri)"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user