|
|
@@ -1,19 +1,66 @@
|
|
1
|
1
|
<div class="main-container">
|
|
2
|
2
|
<header class="header-2">
|
|
3
|
3
|
<div class="branding">
|
|
4
|
|
- <a class="nav-link">
|
|
|
4
|
+ <a class="nav-link" target="_blank" [href]="'https://testnet.xrpl.org/accounts/'+contractAddress">
|
|
5
|
5
|
<cds-icon shape="home" size="lg"></cds-icon>
|
|
6
|
|
- <span class="title">httXrp</span>
|
|
|
6
|
+ <span class="title">{{contractAddress}}</span>
|
|
7
|
7
|
</a>
|
|
8
|
8
|
</div>
|
|
9
|
9
|
<div class="header-nav">
|
|
10
|
10
|
<a class="active nav-link nav-text">Shoutbox</a>
|
|
11
|
11
|
</div>
|
|
12
|
12
|
</header>
|
|
|
13
|
+
|
|
13
|
14
|
<div class="content-container">
|
|
14
|
15
|
<div class="content-area">
|
|
15
|
16
|
<div class="clr-row">
|
|
16
|
|
- <div class="clr-col-lg-5 clr-col-md-8 clr-col-12">
|
|
|
17
|
+ <div class="clr-col-lg-6 clr-col-md-8 clr-col-12">
|
|
|
18
|
+ <div class="card">
|
|
|
19
|
+ <h3 class="card-header">Wallets in use</h3>
|
|
|
20
|
+
|
|
|
21
|
+ <div class="clr-row">
|
|
|
22
|
+
|
|
|
23
|
+ <div class="clr-col-lg-6 clr-col-md-8 clr-col-12">
|
|
|
24
|
+
|
|
|
25
|
+
|
|
|
26
|
+ <div class="card-block">
|
|
|
27
|
+ <clr-input-container>
|
|
|
28
|
+ <label>User Wallet 1 Address</label>
|
|
|
29
|
+ <input clrInput [disabled]="true" required type="text" [(ngModel)]="userWallet.address"
|
|
|
30
|
+ name="title" size="29" />
|
|
|
31
|
+ </clr-input-container>
|
|
|
32
|
+ <clr-input-container>
|
|
|
33
|
+ <label>Secret</label>
|
|
|
34
|
+ <input clrInput [disabled]="true" required type="text" [(ngModel)]="userWallet.secret"
|
|
|
35
|
+ name="title" size="29" />
|
|
|
36
|
+ </clr-input-container>
|
|
|
37
|
+ </div>
|
|
|
38
|
+
|
|
|
39
|
+ </div>
|
|
|
40
|
+ <div class="clr-col-lg-6 clr-col-md-8 clr-col-12">
|
|
|
41
|
+
|
|
|
42
|
+
|
|
|
43
|
+ <div class="card-block">
|
|
|
44
|
+ <clr-input-container>
|
|
|
45
|
+ <label>User Wallet 2 Address</label>
|
|
|
46
|
+ <input clrInput [disabled]="true" required type="text" [(ngModel)]="drainWallet.address"
|
|
|
47
|
+ name="title" size="29" />
|
|
|
48
|
+ </clr-input-container>
|
|
|
49
|
+ <clr-input-container>
|
|
|
50
|
+ <label>Secret</label>
|
|
|
51
|
+ <input clrInput [disabled]="true" required type="text" [(ngModel)]="drainWallet.secret"
|
|
|
52
|
+ name="title" size="29" />
|
|
|
53
|
+ </clr-input-container>
|
|
|
54
|
+ </div>
|
|
|
55
|
+ </div>
|
|
|
56
|
+
|
|
|
57
|
+ </div>
|
|
|
58
|
+ </div>
|
|
|
59
|
+ </div>
|
|
|
60
|
+ </div>
|
|
|
61
|
+
|
|
|
62
|
+ <div class="clr-row">
|
|
|
63
|
+ <div class="clr-col-lg-6 clr-col-md-8 clr-col-12">
|
|
17
|
64
|
<div class="card">
|
|
18
|
65
|
<h3 class="card-header">Shout Something</h3>
|
|
19
|
66
|
<form clrForm #loginForm="ngForm">
|
|
|
@@ -21,20 +68,27 @@
|
|
21
|
68
|
<div class="card-block">
|
|
22
|
69
|
<clr-input-container>
|
|
23
|
70
|
<input clrInput [disabled]="sending" required placeholder="Title" type="text"
|
|
24
|
|
- [(ngModel)]="newShout.title" name="title" />
|
|
|
71
|
+ [(ngModel)]="newShout.title" name="title" size="45" />
|
|
25
|
72
|
</clr-input-container>
|
|
26
|
73
|
<textarea clrTextarea [disabled]="sending" required placeholder="Shout Body" type="text"
|
|
27
|
|
- [(ngModel)]="newShout.body" name="body"></textarea>
|
|
|
74
|
+ [(ngModel)]="newShout.body" name="body" cols="43" rows="15"></textarea>
|
|
28
|
75
|
<clr-input-container>
|
|
29
|
76
|
<input clrInput [disabled]="sending" required placeholder="Your Name" type="text"
|
|
30
|
|
- [(ngModel)]="newShout.from" name="from" />
|
|
|
77
|
+ [(ngModel)]="newShout.from" name="from" size="45" />
|
|
31
|
78
|
</clr-input-container>
|
|
32
|
79
|
</div>
|
|
33
|
80
|
<div class="card-footer">
|
|
34
|
81
|
<button class="btn btn-success" (click)="submitShout()"
|
|
35
|
82
|
[disabled]="!loginForm.form.valid || sending">Shout</button>
|
|
36
|
|
- <span *ngIf="sending">Sending...</span>
|
|
37
|
|
- <span *ngIf="waiting">It may take up to 30 seconds for the new entry to persist</span>
|
|
|
83
|
+
|
|
|
84
|
+ <span *ngIf="sending">Sending...</span>
|
|
|
85
|
+ <span *ngIf="waiting">
|
|
|
86
|
+ TX <a [href]="'https://testnet.xrpl.org/transactions/'+lastMessageHash+'/detailed'" target="_blank">
|
|
|
87
|
+ <cds-icon shape="link"></cds-icon>
|
|
|
88
|
+ </a>
|
|
|
89
|
+ <br />
|
|
|
90
|
+ It may take up to 30 seconds for the new entry to persist
|
|
|
91
|
+ </span>
|
|
38
|
92
|
</div>
|
|
39
|
93
|
</form>
|
|
40
|
94
|
</div>
|
|
|
@@ -42,7 +96,7 @@
|
|
42
|
96
|
</div>
|
|
43
|
97
|
|
|
44
|
98
|
<div class="clr-row" *ngIf="initializing">
|
|
45
|
|
- <div class="clr-col-lg-5 clr-col-md-8 clr-col-12">
|
|
|
99
|
+ <div class="clr-col-lg-6 clr-col-md-8 clr-col-12">
|
|
46
|
100
|
<div class="card">
|
|
47
|
101
|
<h3 class="card-header">Syncing application state</h3>
|
|
48
|
102
|
<div class="card-block">
|
|
|
@@ -56,9 +110,14 @@
|
|
56
|
110
|
</div>
|
|
57
|
111
|
|
|
58
|
112
|
<div class="clr-row" *ngFor="let shout of shouts">
|
|
59
|
|
- <div class="clr-col-lg-5 clr-col-md-8 clr-col-12">
|
|
|
113
|
+ <div class="clr-col-lg-6 clr-col-md-8 clr-col-12">
|
|
60
|
114
|
<div class="card">
|
|
61
|
|
- <h3 class="card-header">{{shout.title}}</h3>
|
|
|
115
|
+ <h3 class="card-header">
|
|
|
116
|
+ {{shout.title}}
|
|
|
117
|
+ <a [href]="'https://testnet.xrpl.org/transactions/'+shout.hash+'/detailed'" target="_blank">
|
|
|
118
|
+ <cds-icon shape="link"></cds-icon>
|
|
|
119
|
+ </a>
|
|
|
120
|
+ </h3>
|
|
62
|
121
|
<div class="card-block">
|
|
63
|
122
|
<div class="card-text">
|
|
64
|
123
|
{{shout.body}}
|