kopia lustrzana https://github.com/badgen/badgen.net
Clean code
rodzic
cd265d3c53
commit
9f66579538
|
@ -1,4 +1,5 @@
|
|||
export default ({ data }) => {
|
||||
console.log(data)
|
||||
return data.map(({ title, examples }) => (
|
||||
<dl id={title} key={title}>
|
||||
<dt>
|
||||
|
|
|
@ -7,8 +7,6 @@ import {
|
|||
BadgenServeHandlers
|
||||
} from '../libs/badgen-serve'
|
||||
|
||||
// https://atom.io/api/packages/*
|
||||
|
||||
export const meta: BadgenServeMeta = {
|
||||
title: 'Atom Package',
|
||||
examples: {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { badgenServe } from '../libs/badgen-serve'
|
|||
|
||||
export const examples = [
|
||||
{
|
||||
title: 'general',
|
||||
title: 'General',
|
||||
examples: {
|
||||
'/badge/Swift/4.2/orange': 'swift version',
|
||||
'/badge/license/MIT/blue': 'license MIT',
|
||||
|
|
|
@ -7,10 +7,9 @@ import matchRoute from './match-route'
|
|||
import { BadgenParams } from './types'
|
||||
|
||||
export type BadgenServeMeta = {
|
||||
title?: string
|
||||
help?: string
|
||||
title: string
|
||||
examples: { [url: string]: string }
|
||||
schemes?: string[]
|
||||
help?: string
|
||||
}
|
||||
|
||||
export type BadgenServeHandlerArgs = { [key: string]: string }
|
||||
|
|
Ładowanie…
Reference in New Issue