Skip to content
Permalink
Browse files

Add the slackin.js static route

  • Loading branch information
emedvedev committed Oct 27, 2019
1 parent 8aa693f commit f0d93a0450b793bf5f0bfe40667858fa726f6b48
Showing with 3 additions and 2 deletions.
  1. +1 −0 now.json
  2. +2 −2 views/badge-svg.pug
@@ -21,6 +21,7 @@
],
"routes": [
{ "src": "/assets/(.*)", "dest": "$1" },
{ "src": "/slackin.js", "dest": "badge.js" },
{ "src": "/(.*)", "dest": "bin/slackin" }
]
}
@@ -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

Contributor

@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

Contributor

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.
You can’t perform that action at this time.