-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59b7395
commit 4d3584a
Showing
11 changed files
with
138 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<MudDialog Gutters="true"> | ||
<TitleContent> | ||
<MudStack Row="true" AlignItems="AlignItems.Center"> | ||
<MudAvatar Color="Color.Tertiary" Variant="Variant.Filled"> | ||
<MudIcon Color="@(ThemeProvider.IsDarkMode ? Color.Dark : Color.Surface)" Icon="@Icons.Material.Sharp.MusicNote" Size="Size.Large" /> | ||
</MudAvatar> | ||
<MudText Typo="Typo.h4" Color="Color.Tertiary">Baroquen Melody</MudText> | ||
</MudStack> | ||
</TitleContent> | ||
<DialogContent> | ||
<MudContainer Gutters="false"> | ||
<MudStack> | ||
<MudStack Spacing="0"> | ||
<MudText Typo="Typo.caption">Version: @ApplicationInfo.Version</MudText> | ||
<MudText Typo="Typo.caption">Revision: <MudLink Typo="Typo.inherit" Href="@($"{ApplicationInfo.RepositoryUrl}/tree/{ApplicationInfo.Sha}")">@ApplicationInfo.Commit</MudLink></MudText> | ||
<MudText Typo="Typo.caption">Revision Date: @ApplicationInfo.CommitDate</MudText> | ||
</MudStack> | ||
<MudDivider DividerType="DividerType.Middle"/> | ||
<MudStack> | ||
<MudText Typo="Typo.body1">Baroquen Melody ("broken melody") is an app that automagically generates neo-baroque style music based on your own configurations and rules. Explore, experiment, and learn a bit about making music!</MudText> | ||
<MudText Typo="Typo.body2">Want to help? <MudLink Typo="Typo.inherit" Href="@ApplicationInfo.SupportUrl">Show your support</MudLink> or <MudLink Typo="Typo.inherit" Href="@ApplicationInfo.ContributeUrl">get involved!</MudLink></MudText> | ||
</MudStack> | ||
<MudDivider/> | ||
<MudStack Row="true" Justify="Justify.SpaceEvenly" Class="mb-1"> | ||
<MudLink Href="@ApplicationInfo.RepositoryUrl" Typo="Typo.caption">source code</MudLink> | ||
<MudText Typo="Typo.caption">© @DateTime.Now.Year William Baldoumas</MudText> | ||
<MudLink Href="@ApplicationInfo.LicenseUrl" Typo="Typo.caption">licensing info</MudLink> | ||
</MudStack> | ||
</MudStack> | ||
</MudContainer> | ||
</DialogContent> | ||
</MudDialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/BaroquenMelody.App/Infrastructure/Application/ApplicationInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using BaroquenMelody.Infrastructure.Application; | ||
using System.Globalization; | ||
|
||
namespace BaroquenMelody.App.Infrastructure.Application; | ||
|
||
internal sealed class ApplicationInfo(IAppInfo appInfo) : IApplicationInfo | ||
{ | ||
public string Version => appInfo.Version.ToString(3); | ||
|
||
public string Build => appInfo.BuildString; | ||
|
||
public string Commit => ThisAssembly.Git.Commit; | ||
|
||
public string CommitDate => DateTime.Parse(ThisAssembly.Git.CommitDate, CultureInfo.InvariantCulture).ToString("dd-MMM-yyyy HH:mm:ss", CultureInfo.InvariantCulture); | ||
|
||
public string Sha => ThisAssembly.Git.Sha; | ||
|
||
public string RepositoryUrl => "https://github.com/wbaldoumas/baroquen-melody"; | ||
|
||
public string SupportUrl => "https://buymeacoffee.com/baroquenmelody"; | ||
|
||
public string ContributeUrl => "https://github.com/wbaldoumas/baroquen-melody/blob/main/CONTRIBUTING.md"; | ||
|
||
public string LicenseUrl => "https://github.com/wbaldoumas/baroquen-melody/blob/main/LICENSE"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/BaroquenMelody.Infrastructure/Application/IApplicationInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
namespace BaroquenMelody.Infrastructure.Application; | ||
|
||
/// <summary> | ||
/// An abstraction for providing application information. | ||
/// </summary> | ||
public interface IApplicationInfo | ||
{ | ||
/// <summary> | ||
/// The application version. | ||
/// </summary> | ||
public string Version { get; } | ||
|
||
/// <summary> | ||
/// The application build number. | ||
/// </summary> | ||
public string Build { get; } | ||
|
||
/// <summary> | ||
/// The short commit hash. | ||
/// </summary> | ||
public string Commit { get; } | ||
|
||
/// <summary> | ||
/// The commit date. | ||
/// </summary> | ||
public string CommitDate { get; } | ||
|
||
/// <summary> | ||
/// The full commit hash. | ||
/// </summary> | ||
public string Sha { get; } | ||
|
||
/// <summary> | ||
/// The repository URL. | ||
/// </summary> | ||
public string RepositoryUrl { get; } | ||
|
||
/// <summary> | ||
/// The support URL. | ||
/// </summary> | ||
public string SupportUrl { get; } | ||
|
||
/// <summary> | ||
/// The contribution URL. | ||
/// </summary> | ||
public string ContributeUrl { get; } | ||
|
||
/// <summary> | ||
/// The license URL. | ||
/// </summary> | ||
public string LicenseUrl { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters