kopia lustrzana https://github.com/badgen/badgen.net
feat: migrate /liberapay (#672)
rodzic
c0f8ac219a
commit
b58e0de176
|
|
@ -48,7 +48,6 @@ export const liveBadgeList = [
|
||||||
'mastodon',
|
'mastodon',
|
||||||
'tidelift',
|
'tidelift',
|
||||||
'jenkins',
|
'jenkins',
|
||||||
'liberapay',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
export async function loadBadgeMeta() {
|
export async function loadBadgeMeta() {
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ import matrix from '../pages/api/matrix'
|
||||||
import runkit from '../pages/api/runkit'
|
import runkit from '../pages/api/runkit'
|
||||||
import winget from '../pages/api/winget'
|
import winget from '../pages/api/winget'
|
||||||
import xo from '../pages/api/xo'
|
import xo from '../pages/api/xo'
|
||||||
|
import liberapay from 'pages/api/liberapay'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
static: staticBadge.meta,
|
static: staticBadge.meta,
|
||||||
|
|
@ -55,5 +56,6 @@ export default {
|
||||||
discord: discord.meta,
|
discord: discord.meta,
|
||||||
matrix: matrix.meta,
|
matrix: matrix.meta,
|
||||||
runkit: runkit.meta,
|
runkit: runkit.meta,
|
||||||
xo: xo.meta
|
xo: xo.meta,
|
||||||
|
liberapay: liberapay.meta,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,8 @@ const nextConfig = {
|
||||||
'/matrix',
|
'/matrix',
|
||||||
'/runkit',
|
'/runkit',
|
||||||
'/peertube',
|
'/peertube',
|
||||||
|
// utilities
|
||||||
|
'/liberapay',
|
||||||
// discontinued
|
// discontinued
|
||||||
'/apm',
|
'/apm',
|
||||||
'/lgtm',
|
'/lgtm',
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import got from '../libs/got'
|
import got from '../../libs/got'
|
||||||
import { createBadgenHandler, PathArgs } from '../libs/create-badgen-handler'
|
import { createBadgenHandler, PathArgs } from '../../libs/create-badgen-handler-next'
|
||||||
|
|
||||||
export default createBadgenHandler({
|
export default createBadgenHandler({
|
||||||
title: 'Liberapay',
|
title: 'Liberapay',
|
||||||
|
|
@ -61,5 +61,11 @@ async function handler ({ topic, slug }: PathArgs) {
|
||||||
status: goal,
|
status: goal,
|
||||||
color: goal !== 'not set' ? 'yellow' : 'grey'
|
color: goal !== 'not set' ? 'yellow' : 'grey'
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
return {
|
||||||
|
subject: 'liberapay',
|
||||||
|
status: 'unknown',
|
||||||
|
color: 'grey'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ładowanie…
Reference in New Issue