kopia lustrzana https://github.com/badgen/badgen.net
feat: migrate /apm badges (#601)
rodzic
d7adf406b8
commit
705157b91c
|
@ -19,7 +19,6 @@ export const liveBadgeList = [
|
|||
'nuget',
|
||||
'packagist',
|
||||
'rubygems',
|
||||
'apm',
|
||||
'vs-marketplace',
|
||||
'melpa',
|
||||
'maven',
|
||||
|
|
|
@ -50,6 +50,8 @@ const nextConfig = {
|
|||
'/runkit',
|
||||
'/winget',
|
||||
'/xo',
|
||||
// discontinued
|
||||
'/apm',
|
||||
]
|
||||
|
||||
badgeApis.forEach(badge => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { createBadgenHandler } from '../libs/create-badgen-handler'
|
||||
import { createBadgenHandler } from '../../libs/create-badgen-handler-next'
|
||||
|
||||
const help = `
|
||||
## Discontinued
|
||||
|
@ -8,10 +8,16 @@ Read all about GitHub [Sunsetting Atom](https://github.blog/2022-06-08-sunsettin
|
|||
|
||||
export default createBadgenHandler({
|
||||
title: 'Atom Package',
|
||||
examples: {},
|
||||
examples: {
|
||||
'/apm/v/linter': 'version',
|
||||
'/apm/stars/linter': 'stars',
|
||||
'/apm/license/linter': 'license',
|
||||
'/apm/downloads/linter': 'downloads',
|
||||
},
|
||||
handlers: {
|
||||
'/apm/:topic/:pkg': handler
|
||||
}
|
||||
},
|
||||
help: help
|
||||
})
|
||||
|
||||
async function handler () {
|
|
@ -6,10 +6,6 @@
|
|||
"source": "/amo/:match*",
|
||||
"destination": "https://v2022.badgen.net/amo/:match*"
|
||||
},
|
||||
{
|
||||
"source": "/apm/:match*",
|
||||
"destination": "https://v2022.badgen.net/apm/:match*"
|
||||
},
|
||||
{
|
||||
"source": "/appveyor/:match*",
|
||||
"destination": "https://v2022.badgen.net/appveyor/:match*"
|
||||
|
|
Ładowanie…
Reference in New Issue