-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from nervosnetwork/release/v0.1.8
Release/v0.1.8
- Loading branch information
Showing
15 changed files
with
248 additions
and
129 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 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,4 @@ | ||
@page | ||
@model Tippy.Pages.Home.EpochInfoModel | ||
@{ | ||
} |
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,17 @@ | ||
using System; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace Tippy.Pages.Home | ||
{ | ||
public class EpochInfoModel : PageModelBase | ||
{ | ||
public EpochInfoModel(Tippy.Core.Data.TippyDbContext context) : base(context) | ||
{ | ||
} | ||
|
||
public PartialViewResult OnGet() | ||
{ | ||
return Partial("_EpochInfo", this); | ||
} | ||
} | ||
} |
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,4 @@ | ||
@page | ||
@model Tippy.Pages.Home.NavbarStatusModel | ||
@{ | ||
} |
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,17 @@ | ||
using System; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace Tippy.Pages.Home | ||
{ | ||
public class NavbarStatusModel : PageModelBase | ||
{ | ||
public NavbarStatusModel(Tippy.Core.Data.TippyDbContext context) : base(context) | ||
{ | ||
} | ||
|
||
public PartialViewResult OnGet() | ||
{ | ||
return Partial("Shared/_NavbarStatus", this); | ||
} | ||
} | ||
} |
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,14 @@ | ||
@model Tippy.Pages.PageModelBase | ||
@using Tippy.Util; | ||
|
||
<div class="box" style="background-color: #6C5054"> | ||
<div class="heading">Epoch</div> | ||
<div class="title">@Hex.HexToUInt64(Model.EpochView!.Number)</div> | ||
<div class="heading">Block Index</div> | ||
@{ var current = Model.TipBlockNumber - Hex.HexToUInt64(Model.EpochView!.StartNumber) + 1; } | ||
<div class="title is-5">@current</div> | ||
<div class="heading">Length</div> | ||
<div class="title is-5">@Hex.HexToUInt64(Model.EpochView!.Length)</div> | ||
<div class="heading">Compact Target</div> | ||
<div class="title is-5">@Hex.HexToUInt32(Model.EpochView!.CompactTarget)</div> | ||
</div> |
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
Oops, something went wrong.