pull/282/head
Amio 2019-05-26 13:09:19 +08:00
rodzic cd265d3c53
commit 9f66579538
4 zmienionych plików z 4 dodań i 6 usunięć

Wyświetl plik

@ -1,4 +1,5 @@
export default ({ data }) => {
console.log(data)
return data.map(({ title, examples }) => (
<dl id={title} key={title}>
<dt>

Wyświetl plik

@ -7,8 +7,6 @@ import {
BadgenServeHandlers
} from '../libs/badgen-serve'
// https://atom.io/api/packages/*
export const meta: BadgenServeMeta = {
title: 'Atom Package',
examples: {

Wyświetl plik

@ -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',

Wyświetl plik

@ -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 }