Add missing pending for terminal template
This commit is contained in:
2
action/dist/index.js
vendored
2
action/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -58,8 +58,7 @@ Last generated: <%= new Date().toGMTString() %>
|
||||
<b><%= `${user.watching.totalCount}`.padStart(5) %></b> repositor<%= s(user.watching.totalCount, "y") %> watched
|
||||
<% if (computed.plugins.lines) { -%><% if (computed.plugins.lines.error) { -%>
|
||||
|
||||
<span class="diff error">@@ <%= computed.plugins.lines.error %> @@</span>
|
||||
<% } else { -%>
|
||||
<span class="diff error">@@ <%= computed.plugins.lines.error %> @@</span><% } else { -%>
|
||||
|
||||
<span class="diff">@@ -<%= computed.plugins.lines.deleted %> +<%= computed.plugins.lines.added %> @@</span>
|
||||
<% }} -%></div>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
@@ -6,19 +6,20 @@
|
||||
//Common
|
||||
await common(...arguments)
|
||||
const computed = data.computed
|
||||
await Promise.all(pending)
|
||||
|
||||
//Compute image size
|
||||
computed.svg = {height:640, width:480}
|
||||
if (computed.plugins.followup)
|
||||
computed.svg.height += 100 + 32
|
||||
computed.svg.height += 100
|
||||
if (computed.plugins.lines)
|
||||
computed.svg.height += 30 + 32
|
||||
computed.svg.height += 30
|
||||
if (computed.plugins.traffic)
|
||||
computed.svg.height += 16 + 32
|
||||
computed.svg.height += 16
|
||||
if (computed.plugins.pagespeed)
|
||||
computed.svg.height += 136 + 32
|
||||
computed.svg.height += 136
|
||||
if (computed.plugins.languages)
|
||||
computed.svg.height += 170 + 32
|
||||
computed.svg.height += 170
|
||||
|
||||
//Compute registration date
|
||||
const diff = (Date.now()-(new Date(data.user.createdAt)).getTime())/(365*24*60*60*1000)
|
||||
|
||||
Reference in New Issue
Block a user