Skip to content

Commit 9b11bcd

Browse files
authored
Merge pull request #75 from nervosnetwork/release/v0.1.9
Release/v0.1.9
2 parents e8a033d + 6d41bec commit 9b11bcd

File tree

11 files changed

+48
-48
lines changed

11 files changed

+48
-48
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# tippy
1+
<p align="center">
2+
<img src="logo.png" width="250px">
3+
</p>
24

35
![tippy](https://github.com/nervosnetwork/tippy/workflows/tippy/badge.svg)
46

5-
> Tippy is still under active development and considered to be a work in progress.
6-
77
![Tippy](tippy.png)
88

99
## Getting Started
@@ -35,9 +35,17 @@ Tippy is pre-built as self-contained .Net Core application. You don't have to in
3535

3636
While Tippy runs as a console application, it also provides web UI. By default the dashboard UI will be opened automatically, if not you can access it by visiting [http://localhost:5000/Home](http://localhost:5000/Home) from a browser.
3737

38+
### Debugger
39+
40+
Tippy ships with [CKB Debugger](https://github.com/nervosnetwork/ckb-standalone-debugger) to help off-chain contract development.
41+
42+
*Note: debugger is only supported on Linux and macOS. It's unavailable on Windows.*
43+
44+
![CKB Debugger](debugger.png)
45+
3846
## Install Dependencies
3947

40-
Transaction debugger requires `ttyd` and `gdb 10`
48+
Debugger requires `ttyd` and `gdb`.
4149

4250
For Linux
4351

@@ -48,12 +56,10 @@ brew install ttyd gdb
4856
For macOS, must build gdb from source
4957

5058
```bash
51-
brew install gdb --build-from-source
59+
brew install gdb --HEAD --build-from-source
5260
brew install ttyd
5361
```
5462

55-
*Note: debugger is not supported on Windows.*
56-
5763
## Contributing
5864

5965
1. Fetch the codebase: `git clone https://github.com/nervosnetwork/tippy.git`

debugger.png

583 KB
Loading

logo.png

39.9 KB
Loading

src/Tippy/Pages/Doc/Debugger.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<h3>On macOS</h3>
2121

22-
<pre class="has-background-dark"><code>brew install gdb --build-from-source
22+
<pre class="has-background-dark"><code>brew install gdb --HEAD --build-from-source
2323
brew install ttyd</code></pre>
24-
24+
2525
</div>

src/Tippy/Pages/Home/Index.cshtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@
9696
@if (Model.ActiveProject.Chain == Tippy.Core.Models.Project.ChainType.Dev)
9797
{
9898
<div class="heading">Miner</div>
99-
<div class="title is-5"><span style="font-size: 70%;">@Model.MinerAddress</span></div>
99+
<div class="title is-5">
100+
<a title="@Model.MinerAddress" style="font-size: 80%;" asp-page="/Addresses/Details" asp-route-address="@Model.MinerAddress">
101+
@Model.MinerAddress.Substring(0, 18)...@Model.MinerAddress.Substring(Model.MinerAddress.Length - 18, 18)
102+
</a>
103+
</div>
100104
@if (Model.IsMinerRunning)
101105
{
102106
<form method="post" class="columns">

src/Tippy/Pages/Shared/_DebuggerInfo.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<p>Debuger requires <code style="color: white;">ttyd</code> and <code style="color: white;">gdb 10</code>. To install them:</p>
1212
@if (OperatingSystem.IsMacOS())
1313
{
14-
<pre class="has-background-dark"><code style="color: white;">brew install gdb --build-from-source
14+
<pre class="has-background-dark"><code style="color: white;">brew install gdb --HEAD --build-from-source
1515
brew install ttyd</code></pre>
1616
}
1717
else
18-
{
18+
{
1919
<pre class="has-background-dark"><code style="color: white;">brew install ttyd gdb</code></pre>
2020
}
2121
</div>

src/Tippy/Pages/Shared/_Layout.cshtml

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
</div>
3737

3838
<div class="navbar-dropdown is-right" style="height: 100vh;">
39-
@foreach (var item in Model.Projects)
39+
@foreach (var item in Model.Projects)
4040
{
41-
@if (item.Id == Model.ActiveProject?.Id)
41+
@if (item.Id == Model.ActiveProject?.Id)
4242
{
4343
<span class="navbar-item"><strong>@item.Name</strong></span>
44-
}
45-
else
44+
}
45+
else
4646
{
4747
<a asp-page="/Home/SwitchProject" asp-route-id="@item.Id" class="navbar-item button-as-link">@item.Name</a>
4848
}
@@ -70,21 +70,21 @@
7070
</span>
7171
</div>
7272

73-
@if (Model.ActiveProject != null && ProcessManager.IsRunning(Model.ActiveProject))
74-
{
75-
<script>
76-
var intervalId = setInterval(() => {
77-
$.get("/Home/NavbarStatus", (data) => {
78-
$(".navbar-status").remove();
79-
$("#header-navbar").append(data);
80-
$.event.trigger({
81-
type: "tipnumberupdated",
82-
message: $(".navbar-status #tip-block-number").text(),
83-
time: new Date()
84-
});
85-
});
86-
}, 5000);
87-
</script>
73+
@if (Model.ActiveProject != null && ProcessManager.IsRunning(Model.ActiveProject))
74+
{
75+
<script>
76+
var intervalId = setInterval(() => {
77+
$.get("/Home/NavbarStatus", (data) => {
78+
$(".navbar-status").remove();
79+
$("#header-navbar").append(data);
80+
$.event.trigger({
81+
type: "tipnumberupdated",
82+
message: $(".navbar-status #tip-block-number").text(),
83+
time: new Date()
84+
});
85+
});
86+
}, 5000);
87+
</script>
8888
}
8989
<Partial name="_NavbarStatus" />
9090
</nav>
@@ -160,20 +160,10 @@
160160
</nav>
161161

162162
<div class="sidebar-toggler-container p-4">
163-
<div class="level px-2">
164-
<div class="level-left">
165-
<span class="">
166-
<img src="~/img/logo.png" width="40" />
167-
<strong>Tippy</strong>
168-
</span>
169-
</div>
170-
<div class="level-right">
171-
<!--
172-
<div id="sidebar-toggler-button">
173-
<span class="icon is-small"><i class="fa fa-angle-double-left"></i></span>
174-
</div>
175-
-->
176-
</div>
163+
<div class="has-text-centered">
164+
<figure class="is-inline-block">
165+
<img src="~/img/logo.png" width="100" />
166+
</figure>
177167
</div>
178168
</div>
179169
</aside>

src/Tippy/Tippy.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<IsPackable>false</IsPackable>
99
<DebugType>embedded</DebugType>
1010
<UserSecretsId>6e0dc08b-01f2-47f6-8249-66ed1b18f469</UserSecretsId>
11-
<Version>0.1.8</Version>
11+
<Version>0.1.9</Version>
1212
<PackageProjectUrl>https://github.com/nervosnetwork/tippy</PackageProjectUrl>
1313
<RepositoryUrl>https://github.com/nervosnetwork/tippy</RepositoryUrl>
1414
<Copyright>Copyright (c) Nervos Foundation</Copyright>

src/Tippy/wwwroot/img/logo.png

-21.9 KB
Loading

tools/osx/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<key>CFBundleIconFile</key>
1010
<string>Tippy.icns</string>
1111
<key>CFBundleVersion</key>
12-
<string>0.1.8</string>
12+
<string>0.1.9</string>
1313
<key>CFBundleShortVersionString</key>
14-
<string>0.1.8</string>
14+
<string>0.1.9</string>
1515
<key>CFBundleExecutable</key>
1616
<string>main</string>
1717
<key>CFBundleInfoDictionaryVersion</key>

tools/osx/Tippy.icns

-9.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)