Skip to content

Commit

Permalink
Add the slackin.js static route
Browse files Browse the repository at this point in the history
  • Loading branch information
emedvedev committed Oct 27, 2019
1 parent 8aa693f commit f0d93a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions now.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
],
"routes": [
{ "src": "/assets/(.*)", "dest": "$1" },
{ "src": "/slackin.js", "dest": "badge.js" },
{ "src": "/(.*)", "dest": "bin/slackin" }
]
}
4 changes: 2 additions & 2 deletions views/badge-svg.pug
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ svg(xmlns='http://www.w3.org/2000/svg', width=tw, height='20')
text(fill='#010101', x=Math.round(lw / 2), y='15', fill-opacity='.3')= title
text(fill='#fff', x=Math.round(lw / 2), y='14')= title

text(fill='#010101', x=(lw + Math.round(lw / 2)), y='15', fill-opacity='.3')= value
text(fill=fg, x=(lw + Math.round(lw / 2)), y='14')= value
text(fill='#010101', x=(tw + Math.round(lw / 2)), y='15', fill-opacity='.3')= value

This comment has been minimized.

Copy link
@XhmikosR

XhmikosR Oct 28, 2019

Collaborator

@emedvedev these seem unrelated changes?

This comment has been minimized.

Copy link
@emedvedev

emedvedev Oct 28, 2019

Author Owner

Ugh, yes, didn't stash it. :| Fixes a bug with the badge.

This comment has been minimized.

Copy link
@XhmikosR

XhmikosR Oct 28, 2019

Collaborator

When I see https://slackin-extended.now.sh/badge.svg it doesn't show 1 or anything. Not sure if that's normal

text(fill=fg, x=(tw + Math.round(lw / 2)), y='14')= value

0 comments on commit f0d93a0

Please sign in to comment.