😱 The progress bar / status badge of SVG generator service
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
controllers
docs
helper
middlewares
tests
views
.editorconfig
.eslintrc
.gitignore
.travis.yml
Dockerfile
LICENSE
README-zh.md
README.md
index.js
logo.jpg
package.json
qrcode.jpg
routers.js

README.md


The progress bar / status badge of SVG generator service

Features

Type Config Url Preview
Bar percent
width
height
color
https://img.lishengcn.cn/progress?percent=25
Circle percent
width
color
https://img.lishengcn.cn/progress?percent=35&type=circle
Checkbox checked
size
color
https://img.lishengcn.cn/checkbox?checked=1
Label key
value
keyColor
valueColor
keyBgColor
valueBgColor
size
https://img.lishengcn.cn/label?key=解决率&value=99%
Seal value
size
valueBgColor
valueColor
ghost
https://img.lishengcn.cn/seal?value=FIXED
Dot width
color
https://img.lishengcn.cn/dot
Histogram list
color
title
type(histogram / line)
https://img.lishengcn.cn/histogram?list=[{"k":"k","v":1}]
Count (WIP) ... ... ...
... ... ... ...

Deploy Run

$ docker build -t duing-image .
$ docker run --rm --name duing -p 3000:3000 duing-image

I used caddy to make it in product environment well! (HTTPS, HTTP/2) Not only you can get service from img.lishengcn.cn, but also can deploy it by yourself.

Dev

$ npm install
$ npm run dev

Contributing

Welcome~

Donate

You can get all "duing"s by img.lishengcn.cn. If it makes you feel convenient, you may help me to get one or two stable and better server. (I don't mean now is not stable, now is stable enough for the current user. But the service will be disable when deploying. It doesn't master by 200 from cache)

License

MIT License

Copyright (c) 2017 ls

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

很强