Pārlūkot izejas kodu

added a select count to node info

tags/v0.2.0^2
big bad waffle pirms 6 gadiem
vecāks
revīzija
c9a7d721ac
4 mainītis faili ar 13 papildinājumiem un 2 dzēšanām
  1. +2
    -0
      helpers/passives/client/ui/templates/nodeInfo/nodeInfo.js
  2. +1
    -1
      helpers/passives/client/ui/templates/nodeInfo/styles.css
  3. +9
    -0
      helpers/passives/client/ui/templates/nodeInfo/styles.less
  4. +1
    -1
      helpers/passives/client/ui/templates/nodeInfo/template.html

+ 2
- 0
helpers/passives/client/ui/templates/nodeInfo/nodeInfo.js Parādīt failu

@@ -125,6 +125,8 @@ define([
else if (nodes.length == 0)
return;

this.find('.nodeCount').html(nodes.length);

this.setStats();
},



+ 1
- 1
helpers/passives/client/ui/templates/nodeInfo/styles.css Parādīt failu

@@ -1 +1 @@
.q0{color:#f2f5f5}.q1{color:#3fa7dd}.q2{color:#ffeb38}.q3{color:#a24eff}.q4{color:#ff6942}.color-red{color:#d43346}.color-green{color:#80f643}.uiNodeInfo{position:absolute;right:10px;top:10px;padding:10px;width:250px;background-color:#373041;text-align:center}.uiNodeInfo.picking{height:calc(100% - 15px)}.uiNodeInfo .heading-text{color:#f2f5f5;margin-bottom:15px}.uiNodeInfo .content{height:calc(100% - 15px)}.uiNodeInfo .lbl{color:#f2f5f5}.uiNodeInfo .lbl:not(:empty).lblId:before{content:'Id: '}.uiNodeInfo .lbl:not(:empty).lblGroup:before{content:'Group: '}.uiNodeInfo .lbl:not(:empty).lblType:before{content:'Type: '}.uiNodeInfo .lbl:not(:empty).lblPos:before{content:'Pos: '}.uiNodeInfo .lbl:not(:empty).lblLinks:before{content:'Links: '}.uiNodeInfo .stats:not(:empty){margin-top:15px}.uiNodeInfo .stats .item{width:100%;height:28px;color:#f2f5f5;background-color:#505360;padding:5px 0 5px 0;margin-bottom:5px;cursor:pointer}.uiNodeInfo .stats .item:hover{background-color:#929398}.uiNodeInfo .stats .item:last-child{margin-bottom:0}.uiNodeInfo .lookup{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#373041;overflow:auto}.uiNodeInfo .lookup .item{width:100%;color:#f2f5f5;background-color:#505360;padding:5px 0 5px 0;margin-bottom:5px;cursor:pointer}.uiNodeInfo .lookup .item:hover{background-color:#929398}.uiNodeInfo .lookup .item:last-child{margin-bottom:0}
.q0{color:#f2f5f5}.q1{color:#3fa7dd}.q2{color:#ffeb38}.q3{color:#a24eff}.q4{color:#ff6942}.color-red{color:#d43346}.color-green{color:#80f643}.uiNodeInfo{position:absolute;right:10px;top:10px;padding:10px;width:250px;background-color:#373041;text-align:center}.uiNodeInfo.picking{height:calc(100% - 15px)}.uiNodeInfo .heading-text{color:#f2f5f5;margin-bottom:15px}.uiNodeInfo .content{height:calc(100% - 15px)}.uiNodeInfo .lbl{color:#f2f5f5}.uiNodeInfo .lbl:not(:empty).lblId:before{content:'Id: '}.uiNodeInfo .lbl:not(:empty).lblGroup:before{content:'Group: '}.uiNodeInfo .lbl:not(:empty).lblType:before{content:'Type: '}.uiNodeInfo .lbl:not(:empty).lblPos:before{content:'Pos: '}.uiNodeInfo .lbl:not(:empty).lblLinks:before{content:'Links: '}.uiNodeInfo .stats:not(:empty){margin-top:15px}.uiNodeInfo .stats .item{width:100%;height:28px;color:#f2f5f5;background-color:#505360;padding:5px 0 5px 0;margin-bottom:5px;cursor:pointer}.uiNodeInfo .stats .item:hover{background-color:#929398}.uiNodeInfo .stats .item:last-child{margin-bottom:0}.uiNodeInfo .nodeCount{color:#f2f5f5;margin-top:10px}.uiNodeInfo .nodeCount:before{content:'Selected: '}.uiNodeInfo .lookup{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#373041;overflow:auto}.uiNodeInfo .lookup .item{width:100%;color:#f2f5f5;background-color:#505360;padding:5px 0 5px 0;margin-bottom:5px;cursor:pointer}.uiNodeInfo .lookup .item:hover{background-color:#929398}.uiNodeInfo .lookup .item:last-child{margin-bottom:0}

+ 9
- 0
helpers/passives/client/ui/templates/nodeInfo/styles.less Parādīt failu

@@ -72,6 +72,15 @@
}
}

.nodeCount {
color: @white;
margin-top: 10px;

&:before {
content: 'Selected: ';
}
}

.lookup {
display: none;
position: absolute;


+ 1
- 1
helpers/passives/client/ui/templates/nodeInfo/template.html Parādīt failu

@@ -8,8 +8,8 @@
<div class="lbl lblType"></div>
<div class="lbl lblPos"></div>
<div class="stats"></div>

</div>
<div class="nodeCount"></div>

<div class="lookup"></div>
</div>

Notiek ielāde…
Atcelt
Saglabāt