mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-07-29 05:49:50 +00:00
Start language radial progress
This commit is contained in:
committed by
Juha Ristolainen
parent
1643159674
commit
ac74701866
51
assets/profile.html.eex
Normal file
51
assets/profile.html.eex
Normal file
@ -0,0 +1,51 @@
|
||||
<link rel="stylesheet" href="file:///${profile.style}">
|
||||
<h3> ${profile.user} Level ${profile.level} (${profile.total_xp} XP)
|
||||
<% if( profile.new_xp > 0 ) { %>
|
||||
<sup>(
|
||||
<%= profile.new_xp %>)</sup>
|
||||
<% } %>
|
||||
</h3>
|
||||
<div style="clear: both;">
|
||||
<% for( let l in languages) { %>
|
||||
<div class="circle-progress">
|
||||
<div class="language">
|
||||
<%= languages[l].name %>
|
||||
<span>
|
||||
<%= languages[l].xp %>
|
||||
</span>
|
||||
</div>
|
||||
<svg viewBox="0 0 100 100">
|
||||
<circle cx="50" cy="50" r="45" stroke="#424242" stroke-width="5"></circle>
|
||||
<circle cx="50" cy="50" r="45" stroke="#318245" stroke-width="5" stroke-dasharray="282.6" stroke-dashoffset="70.65"></circle>
|
||||
</svg>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
<p/>
|
||||
<div class="machines">
|
||||
<% for( let m in machines) { %>
|
||||
<div class="machine">
|
||||
<strong>
|
||||
<%= machines[m].name %>
|
||||
</strong>
|
||||
<span class="level">
|
||||
level <%= machines[m].level %>
|
||||
</span>
|
||||
<span class="xp">
|
||||
(<%= machines[m].xp %> XP)
|
||||
</span>
|
||||
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-success" style='width:${machines[m].progress}%;'>
|
||||
<span class="sr-only">Level progress ${machines[m].progress}%.</span>
|
||||
</div>
|
||||
<div class="progress-bar progress-bar-striped progress-bar-warning" style='width:${machines[m].new_progress}%;'>
|
||||
<span class="sr-only">Recent level progress ${machines[m].new_progress}%.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<circle cx="60" cy="60" r="50"/>
|
Reference in New Issue
Block a user