Skip to content

Commit f2f9456

Browse files
committed
[enh] Network: display WS2P api
1 parent e0a0769 commit f2f9456

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

www/js/services/bma-services.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ angular.module('cesium.bma.services', ['ngApi', 'cesium.http.services', 'cesium.
2929
URI_WITH_PATH: "duniter://([a-zA-Z0-9-.]+.[a-zA-Z0-9-_:.]+)/([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44})(?:/([A-Za-z0-9_-]+))?",
3030
BMA_ENDPOINT: "BASIC_MERKLED_API" + REGEX_ENDPOINT_PARAMS,
3131
BMAS_ENDPOINT: "BMAS" + REGEX_ENDPOINT_PARAMS,
32+
WS2P_ENDPOINT: "WS2P ([0-9a-z]+)"+ REGEX_ENDPOINT_PARAMS,
3233
BMATOR_ENDPOINT: "BMATOR" + "( ([a-z0-9-_.]+.onion))( ([0-9]+))?"
3334
},
3435
errorCodes = {
@@ -349,6 +350,7 @@ angular.module('cesium.bma.services', ['ngApi', 'cesium.http.services', 'cesium.
349350
URI: exact(regexp.URI),
350351
BMA_ENDPOINT: exact(regexp.BMA_ENDPOINT),
351352
BMAS_ENDPOINT: exact(regexp.BMAS_ENDPOINT),
353+
WS2P_ENDPOINT: exact(regexp.WS2P_ENDPOINT),
352354
BMATOR_ENDPOINT: exact(regexp.BMATOR_ENDPOINT),
353355
// TX output conditions
354356
TX_OUTPUT_SIG: exact(SIG),

www/templates/network/item_content_peer.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@ <h4>
2424
</h4>
2525
</div>
2626
<div class="col col-15 no-padding text-center hidden-xs hidden-sm" ng-if="::expertMode">
27-
<div style="min-width: 50px; padding-top: 5px;" >
28-
<span ng-if="peer.isSsl()">
29-
<i class="ion-locked"></i> <small>SSL</small>
27+
<div style="min-width: 50px; padding-top: 5px;" title="SSL">
28+
<span ng-if=":rebind:peer.isSsl()">
29+
<i class="ion-locked"></i><small class="hidden-md"> SSL</small>
30+
</span>
31+
<span ng-if=":rebind:peer.hasEndpoint('WS2P')" title="WS2P">
32+
<i class="ion-arrow-swap"></i><small class="hidden-md"> WS2P</small>
3033
</span>
3134
</div>
32-
<div ng-if=":rebind:peer.hasEndpoint('ES_USER_API')" ng-click="showEndpointsPopover($event, peer, 'ES_USER_API')">
35+
<div ng-if=":rebind:peer.hasEndpoint('ES_USER_API')"
36+
ng-click="showEndpointsPopover($event, peer, 'ES_USER_API')"
37+
title="Cesium+">
3338
<i class="ion-es-user-api"></i>
3439
<b class="ion-plus dark" style="position: relative; left: -14px; top:-17px; font-size : 16px;"></b>
3540
</div>

0 commit comments

Comments
 (0)