Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianMorozov committed Jan 25, 2025
1 parent d193b2f commit d20c2c3
Show file tree
Hide file tree
Showing 22 changed files with 40 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Core/TgInfrastructure/Helpers/TgConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ namespace TgInfrastructure.Helpers;
public sealed class TgConstants
{
public static string AppTitle => "TgDownloader";
public static string AppTitleBlazor => "TgDownloader-Blazor";
public static string AppTitleConsole => "TgDownloader-Console";
public static string AppTitleBlazor => "TgDownloaderBlazor";
public static string AppTitleConsole => "TgDownloaderConsole";
public static string AppTitleConsoleShort => "TGDC";
public static string AppTitleDesktop => "TgDownloader-Desktop";
public static string AppTitleDesktop => "TgDownloaderDesktop";
public static string LinkDockerHub => "https://hub.docker.com/r/damianmorozov/tgdownloader-blazor";
public static string LinkDockerHubTitle => "DockerHub";
public static string LinkGitHub => "https://github.com/DamianMorozov/TgDownloader";
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/Assets/v0.5.440/TgDownloaderConsoleHome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/Assets/v0.5.440/TgDownloaderDesktopChats.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## <div align="center"><b><a href="../README-RUS.md">Прочти меня</a> | <a href="../CHANGELOG-RUS.md">История версий</a> | <a href="RELEASE.md">Релизы</a> | <a href="SCREENSHOTS.md">Скриншоты</a> | <a href="GUIDES-RUS.md">Руководства</a></b></div>

- GitHub all releases ![GitHub all releases](https://img.shields.io/github/downloads/DamianMorozov/TgDownloader/total?style=social)
- GitHub preview v0.5.440 ![GitHub preview v0.5.440](https://img.shields.io/github/downloads/DamianMorozov/TgDownloader/v0.5.440/total?style=social)
- GitHub preview v0.5.430 ![GitHub preview v0.5.430](https://img.shields.io/github/downloads/DamianMorozov/TgDownloader/v0.5.430/total?style=social)
- GitHub preview v0.5.410 ![GitHub preview v0.5.410](https://img.shields.io/github/downloads/DamianMorozov/TgDownloader/v0.5.410/total?style=social)
- GitHub preview v0.5.370 ![GitHub preview v0.5.370](https://img.shields.io/github/downloads/DamianMorozov/TgDownloader/v0.5.370/total?style=social)
Expand Down
18 changes: 18 additions & 0 deletions Docs/SCREENSHOTS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Screenshots

## [0.5.440] - 2025-01-25
### TgDownloaderConsole
<p align="center"><img src="Assets/v0.5.440/TgDownloaderConsoleHome.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderConsoleApplication.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderConsoleAdvanced.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderConsoleUpdate.png"></p>
### TgDownloaderDesktop
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopHome.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopConnection.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopFilters.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopProxies.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopContacts.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopContactDetails.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopStories.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopChats.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopChatDetails.png"></p>
<p align="center"><img src="Assets/v0.5.440/TgDownloaderDesktopSettings.png"></p>

## [0.5.410] - 2025-01-18
### TgDownloaderConsole
<p align="center"><img src="Assets/v0.5.410/TgDownloaderConsoleHome.png"></p>
Expand Down
10 changes: 7 additions & 3 deletions Presentation/TgDownloaderConsole/Helpers/TgMenuHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
// ReSharper disable InconsistentNaming

using CodingSeb.Localization;

namespace TgDownloaderConsole.Helpers;

[DebuggerDisplay("{ToDebugString()}")]
Expand Down Expand Up @@ -549,7 +551,9 @@ public async Task VelopackUpdateAsync()
Console.Title = TgConstants.AppTitleConsoleShort;
TgLog.SetMarkupLine(AnsiConsole.WriteLine);
TgLog.SetMarkupLineStamp(AnsiConsole.MarkupLine);
TgLog.WriteLine($"{TgConstants.AppTitleConsole} {TgAppSettingsHelper.Instance.AppVersion} started");
TgLog.WriteLine($"Update started");
TgAppSettingsHelper.Instance.SetVersion(Assembly.GetExecutingAssembly());
TgLog.WriteLine($"{TgConstants.AppTitleConsole} {TgAppSettingsHelper.Instance.AppVersion}");

VelopackApp.Build()
#if WINDOWS
Expand All @@ -562,7 +566,7 @@ public async Task VelopackUpdateAsync()
TgLog.WriteLine($"Thanks for installing the {TgConstants.AppTitleConsole}!");
})
.Run();
TgLog.WriteLine($"Checking updates on the link github.com...");
TgLog.WriteLine($"Checking updates on the link github.com");
var mgr = new UpdateManager(new GithubSource(TgConstants.LinkGitHub, string.Empty, prerelease: false));
// Check for new version
try
Expand All @@ -574,7 +578,7 @@ public async Task VelopackUpdateAsync()
return;
}
// Download new version
TgLog.WriteLine("Download new version...");
TgLog.WriteLine("Download new version");
await mgr.DownloadUpdatesAsync(newVersion);
// Install new version and restart app
var prompt = AnsiConsole.Prompt(
Expand Down
13 changes: 9 additions & 4 deletions Presentation/TgDownloaderDesktop/ViewModels/TgUpdateViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ private async Task VelopackUpdateAsync()
var log = new StringBuilder();
try
{
log.AppendLine($"{TgConstants.AppTitleDesktop} {TgAppSettingsHelper.Instance.AppVersion} started");
log.AppendLine($"Checking updates on the link github.com...");
log.AppendLine($"Update started");
TgAppSettingsHelper.Instance.SetVersion(Assembly.GetExecutingAssembly());
log.AppendLine($"{TgConstants.AppTitleDesktop} {TgAppSettingsHelper.Instance.AppVersion}");
log.AppendLine($"Checking updates on the link github.com");
var mgr = new UpdateManager(new GithubSource(TgConstants.LinkGitHub, string.Empty, prerelease: false));
// Check for new version
var newVersion = await mgr.CheckForUpdatesAsync();
Expand All @@ -47,7 +49,7 @@ private async Task VelopackUpdateAsync()
return;
}
// Download new version
log.AppendLine("Download new version...");
log.AppendLine("Download new version");
await mgr.DownloadUpdatesAsync(newVersion);
//// Install new version and restart app
//var prompt = AnsiConsole.Prompt(
Expand All @@ -65,7 +67,10 @@ private async Task VelopackUpdateAsync()
{
log.AppendLine(ex.Message);
}
UpdateLog = log.ToString();
finally
{
UpdateLog = log.ToString();
}
}

#endregion
Expand Down
2 changes: 1 addition & 1 deletion README-RUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- [Русскоязычный чат](https://t.me/TgDownloaderChatRus)

## Docker образы
- [TgDownloader-Console Докер образ](https://hub.docker.com/repository/docker/damianmorozov/tgdownloader-console)
- [TgDownloaderConsole Докер образ](https://hub.docker.com/repository/docker/damianmorozov/tgdownloader-console)

## Требования к установке
- [Скачать .NET 9.0](https://dotnet.microsoft.com/ru-ru/download/dotnet/9.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The desktop version is in active development stage (preview).
- [Global Chat](https://t.me/TgDownloaderChat)

## Docker images
- [TgDownloader-Console Docker image](https://hub.docker.com/repository/docker/damianmorozov/tgdownloader-console)
- [TgDownloaderConsole Docker image](https://hub.docker.com/repository/docker/damianmorozov/tgdownloader-console)

## Install Requirements
- [Download .NET 9.0](https://dotnet.microsoft.com/en-us/download/dotnet/9.0)
Expand Down

0 comments on commit d20c2c3

Please sign in to comment.