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