Jacob Müller
915b4f5b49
refactor: modernize codebase and unify code style ( #97 )
...
* core: modernize codebase and unify code style
- Always use arrow functions
- Always use bracket spacing
- Avoid arrow function parentheses when possible
* Revert `prettiers` multiline changes
* Revert another multiline change
* Revert some more stuff
2018-08-10 21:53:45 +08:00
Amio
ff58bea63f
feat: increase static badge cache to 1 year
2018-08-10 13:02:23 +08:00
Amio
dd15fb76d1
chore: redirect badgen.now.sh's homepage to badgen.net
...
Guide new user to badgen.net
2018-08-05 20:22:19 +08:00
Amio /
fdb7ab493b
feat: add api server ( #74 )
...
Mainly two purposes:
1. Provide https://api.badgen.net
2. Serve this api behind Now CDN as a cache layer
2018-08-05 08:40:10 +08:00
Amio
fbe38de6cc
docs: add serve-docs.js #41
2018-07-26 22:55:42 +08:00
Amio
6cba17e3d8
chore: support debug with nodemon
2018-07-24 18:39:35 +08:00
Amio
f24a66a17d
fix: no query object on defaultRoute(404)
2018-07-24 18:05:25 +08:00
Amio /
c84a4a2fa9
refactor: find-my-way => micro + micro-fork ( #29 )
...
and nodemon => micro-dev
and support query params: style, label, emoji, list
Regarding https://github.com/amio/badgen-service/issues/10#issuecomment-406813669
2018-07-22 21:00:51 +08:00
Amio
200156cec4
Leave a note after server running
2018-07-20 23:52:38 +08:00
Amio
ec67a10403
Add emoji support. but hide it for now
...
Not sure if it's really needed, and emoji looks not that cool in
11px size 🤔 just leave it here hidden for now.
Preview at /emoji/unicorns/💩 🤱 🦄 /DDD
2018-07-20 17:43:12 +08:00
Amio
422dd86fd7
All badge redirection have been merge to live badge
2018-07-17 17:07:06 +08:00
Amio
71a817620d
Serve favicon.svg
2018-07-12 17:33:08 +08:00
Amio
042387cb33
Add serve-favicon.js
2018-07-12 16:28:02 +08:00
Amio
fa76e5b7c6
Format service.js
2018-07-12 15:28:33 +08:00
Amio
3dc424761e
serve-404
2018-07-12 14:47:40 +08:00
Amio
bbbc37e66c
Remove lru-cache-static in favor of Now CDN
2018-07-12 14:31:48 +08:00
Amio
4da0ba34ee
Serve badge for 404
2018-07-10 21:07:27 +08:00
Amio
a0b76330b4
Add redirect fns: circleci, travis
2018-07-10 20:37:48 +08:00
Amio
190a4ac7b5
Remove cors
2018-07-03 23:22:38 +08:00
Amio
4735a64511
lru-cache => lru-cache-static
2018-07-03 23:02:42 +08:00
Amio
d1ec796212
Add live badge: npm
2018-07-01 01:52:50 +08:00
Amio
e54b2c78df
Split lru-cache
2018-06-30 01:34:06 +08:00
Amio
8f7d34b6bb
Split files
2018-06-30 00:52:17 +08:00
Amio
30b536e77f
Use serve-marked
2018-06-28 17:34:42 +08:00
Amio
35db004681
Refine index style
2018-06-27 13:15:14 +08:00
Amio
db8c0a8a4f
Merge branch 'master' of https://github.com/amio/badgen-service
2018-06-27 10:13:23 +08:00
Amio
21a3eb9543
Update index style for small screens
2018-06-26 23:41:18 +08:00
Amio
6321909ad5
Add error handler
2018-06-26 23:38:40 +08:00
Amio
a114aa5e87
Add /list-cache
2018-06-26 23:06:50 +08:00
Amio
2dbb2571cc
Refactor cache code
2018-06-26 23:06:22 +08:00
Amio
d9bead5538
Update index style
2018-06-26 19:23:33 +08:00
Amio
69f99413a0
Add cache-control 60s
2018-06-26 19:13:30 +08:00
Amio
a9fdac5f31
Remove black from color names preset
2018-06-26 19:05:56 +08:00
Amio
189ec849dd
Refine index style
2018-06-26 18:36:22 +08:00
Amio
d58c95a613
Rollback to index redirect
2018-06-26 18:09:22 +08:00
Amio
4ada41e93f
Serve local markdown as index
2018-06-26 17:51:27 +08:00
Amio
b872351463
Add clean-cache handler
2018-06-26 15:06:02 +08:00
Amio
65341f4231
New homepage
2018-06-26 14:38:53 +08:00
Amio
b68f2e6b52
Initial commit
2018-06-26 13:53:03 +08:00