|
7 | 7 | <div class="col-md col-sm-12 col-xs-12">
|
8 | 8 | <div class="row items-center">
|
9 | 9 | <div class="text-h6 text-uppercase text-vgrey">vdexnode <q-badge color="vgreen" text-color="vblack" align="middle" transparent>{{ version }}</q-badge></div>
|
10 |
| - <q-btn color="vgrey" size="11px" flat round icon="fas fa-question" class="q-mx-sm" @click="helpDialog = true" /> |
| 10 | + <q-btn color="vgrey" size="11px" flat round icon="fas fa-question" class="q-mx-sm" @click="helpDialog = true" > |
| 11 | + <q-tooltip content-class="bg-vgreen text-vdark" content-style="font-size: 16px" :offset="[10, 10]">Click to know more</q-tooltip> |
| 12 | + </q-btn> |
11 | 13 | </div>
|
12 | 14 | <div class="text-italic text-vgrey">Rent your computer to earn VTX</div>
|
13 | 15 | </div>
|
|
74 | 76 | </q-item>
|
75 | 77 | <q-item>
|
76 | 78 | <q-item-section>
|
77 |
| - <q-item-label>Rank</q-item-label> |
| 79 | + <q-item-label> |
| 80 | + Rank |
| 81 | + <q-badge color="vgreen" class="text-vdark" @click="rankDialog = true"> |
| 82 | + <q-icon name="fas fa-question" color="vdark"/> |
| 83 | + <q-tooltip content-class="bg-vgreen text-vdark" content-style="font-size: 16px" :offset="[10, 10]">Click to know more</q-tooltip> |
| 84 | + </q-badge> |
| 85 | + </q-item-label> |
78 | 86 | <q-item-label class="code text-vgreen" caption>{{ identity.rank }}</q-item-label>
|
79 | 87 | </q-item-section>
|
80 | 88 | <q-item-section side top>
|
|
126 | 134 | <div class="col self-center">
|
127 | 135 | <div class="text-italic">
|
128 | 136 | List of nodes on the network.
|
129 |
| - <q-btn flat round size="sm" color="vgreen" icon="fas fa-question" class=""> |
| 137 | + <q-badge color="vgreen" class="text-vdark"> |
| 138 | + <q-icon name="fas fa-question" color="vdark"/> |
130 | 139 | <q-tooltip content-class="bg-vgreen text-vdark" content-style="font-size: 16px" :offset="[10, 10]">List of the nodes is automatically updated every 5 minutes</q-tooltip>
|
131 |
| - </q-btn> |
| 140 | + </q-badge> |
132 | 141 | </div>
|
133 | 142 | <div class="text-italic text-caption">*You are required to vote for 21 nodes per day to activate the distribution of VTX.</div>
|
134 | 143 | </div>
|
|
169 | 178 | <div class="text-italic text-caption">*See rules for details.</div>
|
170 | 179 | <template v-slot:action>
|
171 | 180 | <q-btn color="vgreen" class="text-vdark q-mx-xs" v-on:click="vote()" v-if="voting_list.length > 0">Vote now</q-btn>
|
172 |
| - <div v-if="voting_list.length <= 0">Choose nodes to vote</div> |
| 181 | + <div v-if="voting_list.length <= 0">Choose nodes</div> |
173 | 182 | </template>
|
174 | 183 | </q-banner>
|
175 | 184 | <div class="bg-vdark inset-shadow" v-if="nodes.length > 0">
|
|
185 | 194 | </div>
|
186 | 195 | </div>
|
187 | 196 | </div>
|
188 |
| - |
189 | 197 | <!-- Error dialog -->
|
190 | 198 | <q-dialog v-model="errorDialog">
|
191 | 199 | <q-card style="min-width: 50vw; max-width: 70vw;" class="bg-negative text-vgrey">
|
|
249 | 257 | </q-card-actions>
|
250 | 258 | </q-card>
|
251 | 259 | </q-dialog>
|
252 |
| - <!-- Add node dialog --> |
253 |
| - <!-- <q-dialog v-model="addNodeDialog"> |
254 |
| - <q-card style="min-width: 50vw; max-width: 70vw;" class="bg-vgrey"> |
255 |
| - <q-card-section> |
256 |
| - <div class="text-h6">Add the node into the distribution contract</div> |
257 |
| - </q-card-section> |
258 |
| - <q-card-section> |
259 |
| - Your account is: {{ identity.account_name }} |
260 |
| - </q-card-section> |
261 |
| - <q-card-section style="max-height: 50vh" class="scroll"> |
262 |
| - <pre>{{ addNodeMessage }}</pre> |
263 |
| - </q-card-section> |
264 |
| - <q-card-actions align="right"> |
265 |
| - <q-btn flat label="Close" color="vdark" v-close-popup /> |
266 |
| - <q-btn flat label="Add" color="vblack" @click=addNode /> |
267 |
| - </q-card-actions> |
268 |
| - </q-card> |
269 |
| - </q-dialog> --> |
270 |
| - <!-- register node dialog --> |
271 |
| - <!-- <q-dialog v-model="registerNodeDialog"> |
272 |
| - <q-card style="min-width: 50vw; max-width: 70vw;" class="bg-vgrey"> |
273 |
| - <q-card-section> |
274 |
| - <div class="text-h6">Register the node into the voting contract</div> |
275 |
| - </q-card-section> |
276 |
| - <q-card-section> |
277 |
| - Your account is: {{ identity.account_name }} |
278 |
| - </q-card-section> |
279 |
| - <q-card-section style="max-height: 50vh" class="scroll"> |
280 |
| - <pre>{{ registerNodeMessage }}</pre> |
281 |
| - </q-card-section> |
282 |
| - <q-card-actions align="right"> |
283 |
| - <q-btn flat label="Close" color="vdark" v-close-popup /> |
284 |
| - <q-btn flat label="Register" color="vblack" @click=registerNode /> |
285 |
| - </q-card-actions> |
286 |
| - </q-card> |
287 |
| - </q-dialog> --> |
288 | 260 | <!-- Private key update dialog -->
|
289 | 261 | <q-dialog v-model="privateDialog" @show="$refs.input.focus()">
|
290 | 262 | <q-card style="min-width: 50vw; max-width: 70vw;" class="bg-vgrey">
|
|
369 | 341 | </q-card-actions>
|
370 | 342 | </q-card>
|
371 | 343 | </q-dialog>
|
| 344 | + <!-- Rank dialog --> |
| 345 | + <q-dialog v-model="rankDialog"> |
| 346 | + <q-card style="min-width: 50vw; max-width: 70vw;" class="bg-vgrey"> |
| 347 | + <q-card-section> |
| 348 | + <div class="text-h6">Rank</div> |
| 349 | + </q-card-section> |
| 350 | + <q-card-section style="max-height: 60vh" class="scroll"> |
| 351 | + <div class="text-subtitle1">How the rank works</div> |
| 352 | + <ul> |
| 353 | + <li>Rank is your position among all registered nodes based on the vote points.</li> |
| 354 | + <li>Those users who vote for your node give you their points based on the power of their vote. The sum of points and its position harm the other nodes forms the rank. Foe example #1 means you have the most vote points.</li> |
| 355 | + <li>The power of the vote depends on the VTX balance. The more VTX you have, the stronger your vote.</li> |
| 356 | + <li>Votes are divided by the number of nodes for which you vote. For example, if the strength of your vote is 10 points and you vote for 1 node, you give all 10 points to this node, but if you vote for 5 nodes, each will receive 2 points only.</li> |
| 357 | + </ul> |
| 358 | + </q-card-section> |
| 359 | + <q-card-actions align="right"> |
| 360 | + <q-btn flat label="Got it" v-close-popup /> |
| 361 | + </q-card-actions> |
| 362 | + </q-card> |
| 363 | + </q-dialog> |
372 | 364 | </q-page>
|
373 | 365 | </q-page-container>
|
374 | 366 | </q-layout>
|
@@ -433,17 +425,14 @@ export default {
|
433 | 425 | nodes: [],
|
434 | 426 | voting_list: [],
|
435 | 427 | privateDialog: false,
|
436 |
| - // addNodeDialog: false, |
437 |
| - // addNodeMessage: '', |
438 |
| - // registerNodeDialog: false, |
439 |
| - // registerNodeMessage: '', |
440 | 428 | errorDialog: false,
|
441 | 429 | errorMessage: '',
|
442 | 430 | resultDialog: false,
|
443 | 431 | resultMessage: '',
|
444 | 432 | helpDialog: false,
|
445 | 433 | votedDialog: false,
|
446 | 434 | rulesDialog: false,
|
| 435 | + rankDialog: false, |
447 | 436 | isPwd: true,
|
448 | 437 | isPrvt: true,
|
449 | 438 | running_nodes: 0,
|
|
0 commit comments