mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 23:32:55 +00:00
Rename GenerateUriAsync to GenerateArchiveUriAsync
This commit is contained in:
parent
5b685193ef
commit
ece7801c7e
@ -69,7 +69,7 @@ public partial class PandocDialog : ComponentBase
|
|||||||
|
|
||||||
private async Task GetArchive()
|
private async Task GetArchive()
|
||||||
{
|
{
|
||||||
var uri = await Pandoc.GenerateUriAsync();
|
var uri = await Pandoc.GenerateArchiveUriAsync();
|
||||||
var filename = this.FilenameFromUri(uri);
|
var filename = this.FilenameFromUri(uri);
|
||||||
await this.JsRuntime.InvokeVoidAsync("triggerDownload", uri, filename);
|
await this.JsRuntime.InvokeVoidAsync("triggerDownload", uri, filename);
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@ public static partial class Pandoc
|
|||||||
Directory.CreateDirectory(installDir);
|
Directory.CreateDirectory(installDir);
|
||||||
|
|
||||||
using var client = new HttpClient();
|
using var client = new HttpClient();
|
||||||
var uri = await GenerateUriAsync();
|
var uri = await GenerateArchiveUriAsync();
|
||||||
|
|
||||||
var response = await client.GetAsync(uri);
|
var response = await client.GetAsync(uri);
|
||||||
if (!response.IsSuccessStatusCode)
|
if (!response.IsSuccessStatusCode)
|
||||||
@ -229,8 +229,8 @@ public static partial class Pandoc
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads the systems architecture to find the correct archive
|
/// Reads the systems architecture to find the correct archive
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Full URI to the right archive in Pandoc's repo</returns>
|
/// <returns>Full URI to the right archive in Pandoc's repository.</returns>
|
||||||
public static async Task<string> GenerateUriAsync()
|
public static async Task<string> GenerateArchiveUriAsync()
|
||||||
{
|
{
|
||||||
var version = await FetchLatestVersionAsync();
|
var version = await FetchLatestVersionAsync();
|
||||||
var baseUri = $"{DOWNLOAD_URL}/{version}/pandoc-{version}-";
|
var baseUri = $"{DOWNLOAD_URL}/{version}/pandoc-{version}-";
|
||||||
|
Loading…
Reference in New Issue
Block a user