-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated to TypeScript, switched to local Badgen instance
Improved icon support as well, allowing for both links and Base64 encoded SVGs.
- Loading branch information
Showing
19 changed files
with
5,767 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ doc/api/ | |
*.iml | ||
|
||
dist/ | ||
!workers/badgen/dist | ||
node_modules/ | ||
worker/ | ||
wrangler.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Copyright 2018 Amio | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This is the packed source of [badgen](https://github.com/badgen/badgen), the badge-generator powering BYOB. The normal npm package could not be used, as Cloudflare Workers can't use Node libraries. I might just be stupid and overlooking something very basic, if so, let me know! | ||
|
||
To rebuild these sources from the latest badgen commit, invoke | ||
```bash | ||
./build_badgen.sh | ||
``` | ||
|
||
And the packaged files will be updated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
rm -rf dist/*.js dist/*.js.map dist/*.ts | ||
git clone https://github.com/badgen/badgen | ||
cd badgen | ||
npm run build:node | ||
npm run build:types | ||
cd .. | ||
cp badgen/dist/*.* ./dist | ||
rm -rf badgen | ||
|
||
rm icons.json | ||
git clone https://github.com/badgen/badgen-icons | ||
node badgen-icons/build.js | ||
cp badgen-icons/icons.json ./dist | ||
rm -rf badgen-icons | ||
|
||
echo "Updated badgen & icons!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const Verdana110: ([...text]: Iterable<any>) => number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
declare const _default: { | ||
green: string; | ||
blue: string; | ||
red: string; | ||
yellow: string; | ||
orange: string; | ||
purple: string; | ||
pink: string; | ||
grey: string; | ||
gray: string; | ||
cyan: string; | ||
black: string; | ||
}; | ||
export default _default; |
Oops, something went wrong.