mirror of
https://github.com/tonytins/amtkstat.git
synced 2026-10-24 13:42:51 -04:00
No more code in Home.razor
- All functionality has been modularized to their new respective components (I love Blazor) - Minor versions are now in the triple digits, patches are in the double digits
This commit is contained in:
parent
d092853bf7
commit
bd98119710
8 changed files with 73 additions and 68 deletions
19
src/Components/GitVersion.razor
Normal file
19
src/Components/GitVersion.razor
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
@PrintVersion
|
||||
|
||||
@code
|
||||
{
|
||||
// Bit of a workaround until I get native version from Tauri.
|
||||
// Regardless, it's useful for printing the commit hash alone.
|
||||
private string PrintVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
var major = ThisAssembly.Git.SemVer.Major;
|
||||
var minor = ThisAssembly.Git.SemVer.Minor;
|
||||
var patch = ThisAssembly.Git.SemVer.Patch;
|
||||
var commit = ThisAssembly.Git.Commit;
|
||||
|
||||
return $"v{major}.{minor}.{patch}-{commit}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue