This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - first dasboard commit - upgraded correctly BitcoinD to dotnetcore 1.1 - wired Dashboard in BitcoinD (actually listen on port 5000) * removed typescript references and files * removed wwwroot/app folder * NodeSettings page * freegeoip integration wip * wip * wip * - first dasboard commit - upgraded correctly BitcoinD to dotnetcore 1.1 - wired Dashboard in BitcoinD (actually listen on port 5000) * removed typescript references and files * freegeoip integration wip * wip * wip
- Loading branch information
1 parent
37a6c23
commit 19b579c
Showing
13 changed files
with
46 additions
and
1,333 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Microsoft.AspNetCore.Mvc.Rendering; | ||
|
||
namespace Stratis.Dashboard.HtmlHelpers { | ||
public static class PrettyfyExtension { | ||
public static string PrettySize(this IHtmlHelper helper, long size) { | ||
string postfix = "Bytes"; | ||
long result = size; | ||
//more than 1 GB | ||
if (size >= 1073741824) { | ||
result = size / 1073741824; | ||
postfix = "GB"; | ||
} | ||
//more that 1 MB | ||
else if (size >= 1048576) { | ||
result = size / 1048576; | ||
postfix = "MB"; | ||
} | ||
//more that 1 KB | ||
else if (size >= 1024) { | ||
result = size / 1024; | ||
postfix = "KB"; | ||
} | ||
|
||
return result.ToString("F1") + " " + postfix; | ||
} | ||
} | ||
} |
19 changes: 0 additions & 19 deletions
19
Stratis.Dashboard/Properties/PublishProfiles/file-publish.ps1
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.