Sort some badges (#1945)
This implements proposals 1, 2, and 4 from #1905: * Move gem rank from ratings to downloads; tweak title * Move docker build from other to build * Move bundlephobia, github file, github repo, imagelayers, and microbadger size + layers badges into new category * Fill in a couple missing titles
This commit is contained in:
@@ -401,6 +401,16 @@ const allBadgeExamples = [
|
||||
previewUri:
|
||||
'/codacy/coverage/c44df2d9c89a4809896914fd1a40bedd/master.svg',
|
||||
},
|
||||
{
|
||||
title: 'Docker Automated build',
|
||||
previewUri: '/docker/automated/jrottenberg/ffmpeg.svg',
|
||||
keywords: ['docker', 'automated', 'build'],
|
||||
},
|
||||
{
|
||||
title: 'Docker Build Status',
|
||||
previewUri: '/docker/build/jrottenberg/ffmpeg.svg',
|
||||
keywords: ['docker', 'build', 'status'],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -487,6 +497,73 @@ const allBadgeExamples = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: {
|
||||
id: 'size',
|
||||
name: 'Size',
|
||||
},
|
||||
examples: [
|
||||
{
|
||||
title: 'npm bundle size (minified)',
|
||||
previewUri: '/bundlephobia/min/react.svg',
|
||||
keywords: ['node'],
|
||||
},
|
||||
{
|
||||
title: 'npm bundle size (minified + gzip)',
|
||||
previewUri: '/bundlephobia/minzip/react.svg',
|
||||
keywords: ['node'],
|
||||
},
|
||||
{
|
||||
title: 'GitHub code size in bytes',
|
||||
previewUri: '/github/languages/code-size/badges/shields.svg',
|
||||
keywords: ['GitHub', 'byte', 'code', 'size'],
|
||||
documentation: githubDoc,
|
||||
},
|
||||
{
|
||||
title: 'GitHub repo size in bytes',
|
||||
previewUri: '/github/repo-size/badges/shields.svg',
|
||||
keywords: ['GitHub', 'repo', 'size'],
|
||||
documentation: githubDoc,
|
||||
},
|
||||
{
|
||||
title: 'Github file size',
|
||||
previewUri:
|
||||
'/github/size/webcaetano/craft/build/phaser-craft.min.js.svg',
|
||||
keywords: ['GitHub', 'file', 'size'],
|
||||
documentation: githubDoc,
|
||||
},
|
||||
{
|
||||
title: 'ImageLayers Size',
|
||||
previewUri: '/imagelayers/image-size/_/ubuntu/latest.svg',
|
||||
keywords: ['imagelayers'],
|
||||
},
|
||||
{
|
||||
title: 'ImageLayers Layers',
|
||||
previewUri: '/imagelayers/layers/_/ubuntu/latest.svg',
|
||||
keywords: ['imagelayers'],
|
||||
},
|
||||
{
|
||||
title: 'MicroBadger Size',
|
||||
previewUri: '/microbadger/image-size/fedora/apache.svg',
|
||||
keywords: ['docker'],
|
||||
},
|
||||
{
|
||||
title: 'MicroBadger Size (tag)',
|
||||
previewUri: '/microbadger/image-size/_/httpd/alpine.svg',
|
||||
keywords: ['docker'],
|
||||
},
|
||||
{
|
||||
title: 'MicroBadger Layers',
|
||||
previewUri: '/microbadger/layers/_/httpd.svg',
|
||||
keywords: ['docker'],
|
||||
},
|
||||
{
|
||||
title: 'MicroBadger Layers (tag)',
|
||||
previewUri: '/microbadger/layers/_/httpd/alpine.svg',
|
||||
keywords: ['docker'],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: {
|
||||
id: 'downloads',
|
||||
@@ -1156,16 +1233,6 @@ const allBadgeExamples = [
|
||||
name: 'Version',
|
||||
},
|
||||
examples: [
|
||||
{
|
||||
title: 'npm bundle size (minified)',
|
||||
previewUri: '/bundlephobia/min/react.svg',
|
||||
keywords: ['node'],
|
||||
},
|
||||
{
|
||||
title: 'npm bundle size (minified + gzip)',
|
||||
previewUri: '/bundlephobia/minzip/react.svg',
|
||||
keywords: ['node'],
|
||||
},
|
||||
{
|
||||
title: 'PyPI',
|
||||
previewUri: '/pypi/v/nine.svg',
|
||||
@@ -1535,13 +1602,6 @@ const allBadgeExamples = [
|
||||
keywords: ['GitHub', 'contributor'],
|
||||
documentation: githubDoc,
|
||||
},
|
||||
{
|
||||
title: 'Github file size',
|
||||
previewUri:
|
||||
'/github/size/webcaetano/craft/build/phaser-craft.min.js.svg',
|
||||
keywords: ['GitHub', 'file', 'size'],
|
||||
documentation: githubDoc,
|
||||
},
|
||||
{
|
||||
title: 'Github search hit counter',
|
||||
previewUri: '/github/search/torvalds/linux/goto.svg',
|
||||
@@ -1578,18 +1638,6 @@ const allBadgeExamples = [
|
||||
keywords: ['GitHub', 'language', 'count'],
|
||||
documentation: githubDoc,
|
||||
},
|
||||
{
|
||||
title: 'GitHub code size in bytes',
|
||||
previewUri: '/github/languages/code-size/badges/shields.svg',
|
||||
keywords: ['GitHub', 'byte', 'code', 'size'],
|
||||
documentation: githubDoc,
|
||||
},
|
||||
{
|
||||
title: 'GitHub repo size in bytes',
|
||||
previewUri: '/github/repo-size/badges/shields.svg',
|
||||
keywords: ['GitHub', 'repo', 'size'],
|
||||
documentation: githubDoc,
|
||||
},
|
||||
{
|
||||
title: 'Libscore',
|
||||
previewUri: '/libscore/s/jQuery.svg',
|
||||
@@ -1615,46 +1663,6 @@ const allBadgeExamples = [
|
||||
previewUri: '/docker/pulls/mashape/kong.svg',
|
||||
keywords: ['docker', 'pulls'],
|
||||
},
|
||||
{
|
||||
title: 'Docker Automated build',
|
||||
previewUri: '/docker/automated/jrottenberg/ffmpeg.svg',
|
||||
keywords: ['docker', 'automated', 'build'],
|
||||
},
|
||||
{
|
||||
title: 'Docker Build Status',
|
||||
previewUri: '/docker/build/jrottenberg/ffmpeg.svg',
|
||||
keywords: ['docker', 'build', 'status'],
|
||||
},
|
||||
{
|
||||
title: 'ImageLayers Size',
|
||||
previewUri: '/imagelayers/image-size/_/ubuntu/latest.svg',
|
||||
keywords: ['imagelayers'],
|
||||
},
|
||||
{
|
||||
title: 'ImageLayers Layers',
|
||||
previewUri: '/imagelayers/layers/_/ubuntu/latest.svg',
|
||||
keywords: ['imagelayers'],
|
||||
},
|
||||
{
|
||||
title: 'MicroBadger Size',
|
||||
previewUri: '/microbadger/image-size/fedora/apache.svg',
|
||||
keywords: ['docker'],
|
||||
},
|
||||
{
|
||||
title: 'MicroBadger Size (tag)',
|
||||
previewUri: '/microbadger/image-size/_/httpd/alpine.svg',
|
||||
keywords: ['docker'],
|
||||
},
|
||||
{
|
||||
title: 'MicroBadger Layers',
|
||||
previewUri: '/microbadger/layers/_/httpd.svg',
|
||||
keywords: ['docker'],
|
||||
},
|
||||
{
|
||||
title: 'MicroBadger Layers (tag)',
|
||||
previewUri: '/microbadger/layers/_/httpd/alpine.svg',
|
||||
keywords: ['docker'],
|
||||
},
|
||||
{
|
||||
title: 'Maintenance',
|
||||
previewUri: '/maintenance/yes/2017.svg',
|
||||
|
||||
@@ -61,7 +61,7 @@ module.exports = class GemRank extends BaseJsonService {
|
||||
}
|
||||
|
||||
static get category() {
|
||||
return 'rating'
|
||||
return 'downloads'
|
||||
}
|
||||
|
||||
static get url() {
|
||||
@@ -75,12 +75,12 @@ module.exports = class GemRank extends BaseJsonService {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: 'Gems',
|
||||
title: 'Gem download rank',
|
||||
previewUrl: 'rt/puppet',
|
||||
keywords: ['ruby'],
|
||||
},
|
||||
{
|
||||
title: 'Gems',
|
||||
title: 'Gem download rank (daily)',
|
||||
previewUrl: 'rd/facter',
|
||||
keywords: ['ruby'],
|
||||
},
|
||||
|
||||
@@ -19,6 +19,7 @@ module.exports = class NodeVersion extends NPMBase {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: 'node',
|
||||
previewUrl: 'passport',
|
||||
keywords: ['npm'],
|
||||
},
|
||||
|
||||
@@ -27,6 +27,7 @@ module.exports = class NpmVersion extends NpmBase {
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: 'npm',
|
||||
previewUrl: 'npm',
|
||||
keywords: ['node'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user