Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Cesium-grp
Cesium
Commits
e0cb2991
Commit
e0cb2991
authored
8 years ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
- Peers: fix icons
- Block entity: clean raw attribute (not used)
parent
c8bd2d0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
www/js/entities/block.js
+4
-0
4 additions, 0 deletions
www/js/entities/block.js
www/templates/network/items_peers.html
+1
-1
1 addition, 1 deletion
www/templates/network/items_peers.html
www/templates/network/view_peer.html
+20
-19
20 additions, 19 deletions
www/templates/network/view_peer.html
with
25 additions
and
20 deletions
www/js/entities/block.js
+
4
−
0
View file @
e0cb2991
...
@@ -51,6 +51,8 @@ Block.prototype.parseData = function() {
...
@@ -51,6 +51,8 @@ Block.prototype.parseData = function() {
// TX
// TX
this
.
transactions
=
this
.
parseTransactions
(
this
.
transactions
);
this
.
transactions
=
this
.
parseTransactions
(
this
.
transactions
);
delete
this
.
raw
;
// not need
};
};
Block
.
prototype
.
cleanData
=
function
()
{
Block
.
prototype
.
cleanData
=
function
()
{
...
@@ -62,6 +64,8 @@ Block.prototype.cleanData = function() {
...
@@ -62,6 +64,8 @@ Block.prototype.cleanData = function() {
delete
this
.
excluded
;
delete
this
.
excluded
;
delete
this
.
certifications
;
delete
this
.
certifications
;
delete
this
.
transactions
;
delete
this
.
transactions
;
delete
this
.
raw
;
// not need
};
};
Block
.
prototype
.
parseArrayValues
=
function
(
array
,
itemObjProperties
){
Block
.
prototype
.
parseArrayValues
=
function
(
array
,
itemObjProperties
){
...
...
This diff is collapsed.
Click to expand it.
www/templates/network/items_peers.html
+
1
−
1
View file @
e0cb2991
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
ng-click=
"selectPeer(peer)"
>
ng-click=
"selectPeer(peer)"
>
<i
class=
"icon ion-android-desktop"
></i>
<i
class=
"icon ion-android-desktop"
></i>
<b
class=
"
positive"
ng-class=
"{'
ion-android-person
':
peer.uid
}
"
style=
"position: absolute; top: 11px; left: 27px;"
></b>
<b
class=
"ion-android-person
"
ng-if=
"
peer.uid"
style=
"position: absolute; top: 11px; left: 27px;"
></b>
<div
class=
"row no-padding"
>
<div
class=
"row no-padding"
>
<div
class=
"col no-padding"
>
<div
class=
"col no-padding"
>
...
...
This diff is collapsed.
Click to expand it.
www/templates/network/view_peer.html
+
20
−
19
View file @
e0cb2991
...
@@ -4,26 +4,27 @@
...
@@ -4,26 +4,27 @@
</ion-nav-title>
</ion-nav-title>
<ion-content
class=
"has-header padding"
>
<ion-content
class=
"has-header padding"
>
<div
class=
"list"
>
<div
class=
"list"
>
<div
class=
"item item-divider"
>
<div
class=
"item item-divider"
>
<h2
translate
>
PEER.KNOWN_PEERS
</h2>
<h2
translate
>
PEER.KNOWN_PEERS
</h2>
</div>
</div>
<div
class=
"item center"
ng-if=
"!loaded"
>
<div
class=
"item center"
ng-if=
"!loaded"
>
<ion-spinner
class=
"icon"
icon=
"android"
></ion-spinner>
<ion-spinner
class=
"icon"
icon=
"android"
></ion-spinner>
</div>
</div>
<a
class=
"peer-item item item-icon-left"
<a
class=
"peer-item item item-icon-left"
collection-repeat=
"peer in peers"
collection-repeat=
"peer in peers"
ng-class=
"{ assertive: !peer.online, balanced: peer.online }"
ng-class=
"{ assertive: !peer.online, balanced: peer.online }"
target=
"_blank"
target=
"_blank"
ng-href=
"{{peer.getURL()}}/blockchain/current"
>
ng-href=
"{{peer.getURL()}}/blockchain/current"
>
<i
class=
"icon ion-android-globe"
></i>
<i
class=
"icon ion-android-desktop"
></i>
<h3><span
ng-class=
"{ positive: peer.uid }"
>
{{peer.uid || peer.pubkey.substr(0,8)}}
</span>
<span
class=
"gray"
>
{{peer.dns
&&
' | ' + peer.dns}}
</span></h3>
<b
class=
"ion-android-person"
ng-if=
"peer.uid"
style=
"position: absolute; top: 13px; left: 27px;"
></b>
<h4>
{{peer.getServer()}}
<span
class=
"gray"
>
| {{'PEER.SIGNED_ON_BLOCK' | translate}}
</span>
#{{peer.blockNumber}}
</h4>
<h3><span
ng-class=
"{ positive: peer.uid }"
>
{{peer.uid || peer.pubkey.substr(0,8)}}
</span>
<span
class=
"gray"
>
{{peer.dns
&&
' | ' + peer.dns}}
</span></h3>
<span
class=
"badge"
ng-class=
"{ 'badge-balanced': peer.hasMainConsensusBlock, 'badge-energized': peer.hasConsensusBlock }"
>
{{peer.current.number}}
</span>
<h4>
{{peer.getServer()}}
<span
class=
"gray"
>
| {{'PEER.SIGNED_ON_BLOCK' | translate}}
</span>
#{{peer.blockNumber}}
</h4>
</a>
<span
class=
"badge"
ng-class=
"{ 'badge-balanced': peer.hasMainConsensusBlock, 'badge-energized': peer.hasConsensusBlock }"
>
{{peer.current.number}}
</span>
</div>
</a>
</ion-content>
</div>
</ion-content>
</ion-view>
</ion-view>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment