From 733c65beb6021773fe4f0f18d5afc00ae5217f27 Mon Sep 17 00:00:00 2001 From: Vladimir Starkov Date: Sun, 19 Nov 2017 01:58:15 +0100 Subject: [PATCH] [npm] reduce amount of examples --- lib/all-badge-examples.js | 55 +++++++-------------------------------- 1 file changed, 10 insertions(+), 45 deletions(-) diff --git a/lib/all-badge-examples.js b/lib/all-badge-examples.js index a0d63939ab4b4..a6c491b391e14 100644 --- a/lib/all-badge-examples.js +++ b/lib/all-badge-examples.js @@ -641,36 +641,22 @@ const allBadgeExamples = [ ] }, { - title: 'npm (scoped with tag)', - previewUri: '/npm/v/@cycle/core/canary.svg', - keywords: [ - 'node' - ] - }, - { - title: 'custom registry :: npm', - previewUri: '/npm/https/registry.npm.taobao.org/v/npm.svg', + title: 'npm (custom registry)', + previewUri: '/npm/v/npm.svg?registry_uri=https://registry.npm.taobao.org', keywords: [ 'node' ] }, { - title: 'custom registry :: npm (scoped)', - previewUri: '/npm/https/registry.npm.taobao.org/v/@cycle/core.svg', - keywords: [ - 'node' - ] - }, - { - title: 'custom registry :: npm (tag)', - previewUri: '/npm/https/registry.npm.taobao.org/v/npm/next.svg', + title: 'npm (scoped with tag)', + previewUri: '/npm/v/@cycle/core/canary.svg', keywords: [ 'node' ] }, { - title: 'custom registry :: npm (scoped with tag)', - previewUri: '/npm/https/registry.npm.taobao.org/v/@cycle/core/canary.svg', + title: 'npm (scoped with tag, custom registry)', + previewUri: '/npm/v/@cycle/core/canary.svg?registry_uri=https://registry.npm.taobao.org', keywords: [ 'node' ] @@ -704,29 +690,8 @@ const allBadgeExamples = [ ] }, { - title: 'custom registry :: node', - previewUri: '/node/https/registry.npm.taobao.org/v/passport.svg', - keywords: [ - 'node' - ] - }, - { - title: 'custom registry :: node (scoped)', - previewUri: '/node/https/registry.npm.taobao.org/v/@stdlib/stdlib.svg', - keywords: [ - 'node' - ] - }, - { - title: 'custom registry :: node (tag)', - previewUri: '/node/https/registry.npm.taobao.org/v/passport/latest.svg', - keywords: [ - 'node' - ] - }, - { - title: 'custom registry :: node (scoped with tag)', - previewUri: '/node/https/registry.npm.taobao.org/v/@stdlib/stdlib/latest.svg', + title: 'node (scoped with tag, custom registry)', + previewUri: '/node/v/@stdlib/stdlib/latest.svg?registry_uri=https://registry.npm.taobao.org', keywords: [ 'node' ] @@ -1173,8 +1138,8 @@ const allBadgeExamples = [ ] }, { - title: 'custom registry :: npm', - previewUri: '/npm/https/registry.npm.taobao.org/l/express.svg', + title: 'npm (custom registry)', + previewUri: '/npm/l/express.svg?registry_uri=https://registry.npm.taobao.org', keywords: [ 'node' ]