From 4f0acd8839d0dcdb72c486a142fd9ec6757fed74 Mon Sep 17 00:00:00 2001 From: "repo-ranger[bot]" Date: Sun, 25 Jul 2021 14:41:04 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=201e72d?= =?UTF-8?q?5e90590ef191484d3beb8b10a131771f2fb=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- badge-maker_lib_index.js.html | 4 +- badge-maker_lib_xml.js.html | 4 +- core_base-service_base-graphql.js.html | 4 +- core_base-service_base-json.js.html | 4 +- core_base-service_base-svg-scraping.js.html | 4 +- core_base-service_base-xml.js.html | 4 +- core_base-service_base-yaml.js.html | 4 +- core_base-service_base.js.html | 4 +- core_base-service_errors.js.html | 4 +- core_base-service_graphql.js.html | 4 +- core_server_prometheus-metrics.js.html | 4 +- core_server_server.js.html | 4 +- ...-test-runner_create-service-tester.js.html | 4 +- ...ice-test-runner_icedfrisby-shields.js.html | 4 +- ...ice-test-runner_infer-pull-request.js.html | 4 +- core_service-test-runner_runner.js.html | 4 +- ...service-test-runner_service-tester.js.html | 4 +- ...ice-test-runner_services-for-title.js.html | 4 +- core_token-pooling_token-pool.js.html | 4 +- global.html | 558 +---------------- index.html | 4 +- module-badge-maker.html | 4 +- module-badge-maker_lib_xml-XmlElement.html | 4 +- module-badge-maker_lib_xml.html | 4 +- ...le-core_base-service_base-BaseService.html | 4 +- ...rvice_base-graphql-BaseGraphqlService.html | 4 +- module-core_base-service_base-graphql.html | 4 +- ...ase-service_base-json-BaseJsonService.html | 4 +- module-core_base-service_base-json.html | 4 +- ...e-svg-scraping-BaseSvgScrapingService.html | 4 +- ...e-core_base-service_base-svg-scraping.html | 4 +- ..._base-service_base-xml-BaseXmlService.html | 4 +- module-core_base-service_base-xml.html | 4 +- ...ase-service_base-yaml-BaseYamlService.html | 4 +- module-core_base-service_base-yaml.html | 4 +- module-core_base-service_base.html | 4 +- ...e-core_base-service_errors-Deprecated.html | 4 +- ...e-service_errors-ImproperlyConfigured.html | 4 +- ...core_base-service_errors-Inaccessible.html | 4 +- ..._base-service_errors-InvalidParameter.html | 4 +- ...e_base-service_errors-InvalidResponse.html | 4 +- module-core_base-service_errors-NotFound.html | 4 +- ...se-service_errors-ShieldsRuntimeError.html | 4 +- module-core_base-service_errors.html | 4 +- module-core_base-service_graphql.html | 4 +- module-core_server_server-Server.html | 4 +- module-core_server_server.html | 4 +- ...ice-test-runner_create-service-tester.html | 4 +- ...ervice-test-runner_icedfrisby-shields.html | 4 +- ...ervice-test-runner_infer-pull-request.html | 4 +- ...ore_service-test-runner_runner-Runner.html | 4 +- module-core_service-test-runner_runner.html | 4 +- ...t-runner_service-tester-ServiceTester.html | 4 +- ...re_service-test-runner_service-tester.html | 4 +- ...ervice-test-runner_services-for-title.html | 4 +- ...e-core_token-pooling_token-pool-Token.html | 4 +- ...re_token-pooling_token-pool-TokenPool.html | 4 +- module-core_token-pooling_token-pool.html | 4 +- module-services_dynamic_json-path.html | 4 +- ...ervices_steam_steam-base-BaseSteamAPI.html | 4 +- module-services_steam_steam-base.html | 4 +- module.exports.html | 574 ------------------ services_criterion_criterion.service.js.html | 117 ---- services_dynamic_json-path.js.html | 4 +- ...s_github_github-total-star.service.js.html | 295 --------- ..._osslifecycle_osslifecycle.service.js.html | 148 ----- services_packagist_packagist-base.js.html | 4 +- services_steam_steam-base.js.html | 4 +- services_test-validators.js.html | 4 +- ..._weblate-component-license.service.js.html | 107 ---- ...ject-translated-percentage.service.js.html | 119 ---- ...apiary_wikiapiary-installs.service.js.html | 159 ----- tutorial-TUTORIAL.html | 4 +- tutorial-badge-urls.html | 4 +- tutorial-code-walkthrough.html | 4 +- tutorial-deprecating-badges.html | 4 +- tutorial-input-validation.html | 4 +- tutorial-json-format.html | 4 +- tutorial-logos.html | 4 +- tutorial-performance-testing.html | 4 +- tutorial-production-hosting.html | 4 +- tutorial-releases.html | 4 +- tutorial-self-hosting.html | 4 +- tutorial-server-secrets.html | 4 +- tutorial-service-tests.html | 4 +- 85 files changed, 156 insertions(+), 2229 deletions(-) delete mode 100644 module.exports.html delete mode 100644 services_criterion_criterion.service.js.html delete mode 100644 services_github_github-total-star.service.js.html delete mode 100644 services_osslifecycle_osslifecycle.service.js.html delete mode 100644 services_weblate_weblate-component-license.service.js.html delete mode 100644 services_weblate_weblate-project-translated-percentage.service.js.html delete mode 100644 services_wikiapiary_wikiapiary-installs.service.js.html diff --git a/badge-maker_lib_index.js.html b/badge-maker_lib_index.js.html index e12a244ac1..6fd4dc12ea 100644 --- a/badge-maker_lib_index.js.html +++ b/badge-maker_lib_index.js.html @@ -117,13 +117,13 @@ module.exports = {
diff --git a/badge-maker_lib_xml.js.html b/badge-maker_lib_xml.js.html index 140a9b800f..834b54e738 100644 --- a/badge-maker_lib_xml.js.html +++ b/badge-maker_lib_xml.js.html @@ -112,13 +112,13 @@ module.exports = { escapeXml, stripXmlWhitespace, XmlElement }
diff --git a/core_base-service_base-graphql.js.html b/core_base-service_base-graphql.js.html index 99a9906865..ad37bdeb11 100644 --- a/core_base-service_base-graphql.js.html +++ b/core_base-service_base-graphql.js.html @@ -130,13 +130,13 @@ export default BaseGraphqlService
diff --git a/core_base-service_base-json.js.html b/core_base-service_base-json.js.html index c7b1251ccc..3250fa2a2e 100644 --- a/core_base-service_base-json.js.html +++ b/core_base-service_base-json.js.html @@ -91,13 +91,13 @@ export default BaseJsonService
diff --git a/core_base-service_base-svg-scraping.js.html b/core_base-service_base-svg-scraping.js.html index 4e61b80b5e..eeaebc6795 100644 --- a/core_base-service_base-svg-scraping.js.html +++ b/core_base-service_base-svg-scraping.js.html @@ -127,13 +127,13 @@ export default BaseSvgScrapingService
diff --git a/core_base-service_base-xml.js.html b/core_base-service_base-xml.js.html index b69ee5db5e..04d72bf843 100644 --- a/core_base-service_base-xml.js.html +++ b/core_base-service_base-xml.js.html @@ -105,13 +105,13 @@ export default BaseXmlService
diff --git a/core_base-service_base-yaml.js.html b/core_base-service_base-yaml.js.html index ed054cbc96..8281216997 100644 --- a/core_base-service_base-yaml.js.html +++ b/core_base-service_base-yaml.js.html @@ -109,13 +109,13 @@ export default BaseYamlService
diff --git a/core_base-service_base.js.html b/core_base-service_base.js.html index 167a2386e1..c976be94aa 100644 --- a/core_base-service_base.js.html +++ b/core_base-service_base.js.html @@ -606,13 +606,13 @@ export default BaseService
diff --git a/core_base-service_errors.js.html b/core_base-service_errors.js.html index 20a0e0030f..a3f5ac688a 100644 --- a/core_base-service_errors.js.html +++ b/core_base-service_errors.js.html @@ -255,13 +255,13 @@ export {
diff --git a/core_base-service_graphql.js.html b/core_base-service_graphql.js.html index 2e534479d4..8198719b15 100644 --- a/core_base-service_graphql.js.html +++ b/core_base-service_graphql.js.html @@ -87,13 +87,13 @@ export { mergeQueries }
diff --git a/core_server_prometheus-metrics.js.html b/core_server_prometheus-metrics.js.html index 92262d1723..f3c343d852 100644 --- a/core_server_prometheus-metrics.js.html +++ b/core_server_prometheus-metrics.js.html @@ -121,13 +121,13 @@ export default class PrometheusMetrics {
diff --git a/core_server_server.js.html b/core_server_server.js.html index b972d15ae3..5575f4ab99 100644 --- a/core_server_server.js.html +++ b/core_server_server.js.html @@ -587,13 +587,13 @@ export default Server
diff --git a/core_service-test-runner_create-service-tester.js.html b/core_service-test-runner_create-service-tester.js.html index 204a352d14..f2a7c817dd 100644 --- a/core_service-test-runner_create-service-tester.js.html +++ b/core_service-test-runner_create-service-tester.js.html @@ -68,13 +68,13 @@ export default createServiceTester
diff --git a/core_service-test-runner_icedfrisby-shields.js.html b/core_service-test-runner_icedfrisby-shields.js.html index 015f199b63..c96a7f9eea 100644 --- a/core_service-test-runner_icedfrisby-shields.js.html +++ b/core_service-test-runner_icedfrisby-shields.js.html @@ -123,13 +123,13 @@ export default factory
diff --git a/core_service-test-runner_infer-pull-request.js.html b/core_service-test-runner_infer-pull-request.js.html index d95e91230c..13fb593cc4 100644 --- a/core_service-test-runner_infer-pull-request.js.html +++ b/core_service-test-runner_infer-pull-request.js.html @@ -136,13 +136,13 @@ export { parseGithubPullRequestUrl, parseGithubRepoSlug, inferPullRequest }
diff --git a/core_service-test-runner_runner.js.html b/core_service-test-runner_runner.js.html index 3e5d2d48e8..c0210ee7dd 100644 --- a/core_service-test-runner_runner.js.html +++ b/core_service-test-runner_runner.js.html @@ -112,13 +112,13 @@ export default Runner
diff --git a/core_service-test-runner_service-tester.js.html b/core_service-test-runner_service-tester.js.html index 0c32632361..f6a86b0f1d 100644 --- a/core_service-test-runner_service-tester.js.html +++ b/core_service-test-runner_service-tester.js.html @@ -178,13 +178,13 @@ export default ServiceTester
diff --git a/core_service-test-runner_services-for-title.js.html b/core_service-test-runner_services-for-title.js.html index 3c142eed06..4d8bb4ca0a 100644 --- a/core_service-test-runner_services-for-title.js.html +++ b/core_service-test-runner_services-for-title.js.html @@ -69,13 +69,13 @@ export default servicesForTitle
diff --git a/core_token-pooling_token-pool.js.html b/core_token-pooling_token-pool.js.html index ca0448400f..6a7b66224a 100644 --- a/core_token-pooling_token-pool.js.html +++ b/core_token-pooling_token-pool.js.html @@ -392,13 +392,13 @@ export { sanitizeToken, Token, TokenPool }
diff --git a/global.html b/global.html index 2b15c8b9a4..e417f63585 100644 --- a/global.html +++ b/global.html @@ -354,217 +354,6 @@ -

getColor(attrs) → {string}

- - - - - - -
-

Return color for active, maintenance and archived statuses, which were the three -example keywords used in Netflix's open-source meetup. -See https://slideshare.net/aspyker/netflix-open-source-meetup-season-4-episode-1 -Other keywords are possible, but will appear in grey.

-
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
attrs - - -object - - - -

Refer to individual attrs

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
status - - -string - - - -

Specifies the current maintenance status

- -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
-

color

-
- - - -
-
- Type -
-
- -string - - -
-
- - - - - - - - - - - - -

isMetricWithPattern(nestedRegexp) → {function}

@@ -874,349 +663,6 @@ Other keywords are possible, but will appear in grey.

- - - - - -

render(translatedPercent) → {object}

- - - - - - -
-

Takes a percentage and maps it to a message and color.

-

The colors are determined based on how Weblate does it internally. -Weblate on GitHub

-
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
translatedPercent - - -* - - - -

The percentage of translations translated.

- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
-

Format for the badge.

-
- - - -
-
- Type -
-
- -object - - -
-
- - - - - - - - - - - - - -

validateAffiliations(value, helpers) → {string}

- - - - - - -
-

Validates affiliations should contain combination of allowed values in any order.

-
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
value - - -string - - - -

affiliation current value

helpers - - -* - - - -

object to construct custom error

- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
-

valiadtion error or value unchanged

-
- - - -
-
- Type -
-
- -string - - -
-
- - - - - - - - @@ -1232,13 +678,13 @@ Other keywords are possible, but will appear in grey.


diff --git a/index.html b/index.html index 1b86e27fa2..2709271f5a 100644 --- a/index.html +++ b/index.html @@ -217,13 +217,13 @@ under their terms and license.


diff --git a/module-badge-maker.html b/module-badge-maker.html index db7a9f1821..7502835f2f 100644 --- a/module-badge-maker.html +++ b/module-badge-maker.html @@ -381,13 +381,13 @@
diff --git a/module-badge-maker_lib_xml-XmlElement.html b/module-badge-maker_lib_xml-XmlElement.html index 2331a8e0ad..01b83390cb 100644 --- a/module-badge-maker_lib_xml-XmlElement.html +++ b/module-badge-maker_lib_xml-XmlElement.html @@ -468,13 +468,13 @@ element will be rendered as a self-closing element.


diff --git a/module-badge-maker_lib_xml.html b/module-badge-maker_lib_xml.html index 1a533677d9..f92bb34550 100644 --- a/module-badge-maker_lib_xml.html +++ b/module-badge-maker_lib_xml.html @@ -77,13 +77,13 @@
diff --git a/module-core_base-service_base-BaseService.html b/module-core_base-service_base-BaseService.html index a41c1ab577..005a95105a 100644 --- a/module-core_base-service_base-BaseService.html +++ b/module-core_base-service_base-BaseService.html @@ -737,13 +737,13 @@ defined in this.route.pattern or this.route.capture


diff --git a/module-core_base-service_base-graphql-BaseGraphqlService.html b/module-core_base-service_base-graphql-BaseGraphqlService.html index c0970342d8..af00699a17 100644 --- a/module-core_base-service_base-graphql-BaseGraphqlService.html +++ b/module-core_base-service_base-graphql-BaseGraphqlService.html @@ -823,13 +823,13 @@ an InvalidResponse.


diff --git a/module-core_base-service_base-graphql.html b/module-core_base-service_base-graphql.html index cb7eb9928b..6f261707b5 100644 --- a/module-core_base-service_base-graphql.html +++ b/module-core_base-service_base-graphql.html @@ -77,13 +77,13 @@
diff --git a/module-core_base-service_base-json-BaseJsonService.html b/module-core_base-service_base-json-BaseJsonService.html index dcf7386ba0..39a71862ee 100644 --- a/module-core_base-service_base-json-BaseJsonService.html +++ b/module-core_base-service_base-json-BaseJsonService.html @@ -668,13 +668,13 @@ This can be used to extend or override the
diff --git a/module-core_base-service_base-json.html b/module-core_base-service_base-json.html index aeb71e5372..67495c8c07 100644 --- a/module-core_base-service_base-json.html +++ b/module-core_base-service_base-json.html @@ -77,13 +77,13 @@
diff --git a/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html b/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html index ff2df4e1de..f60f9c21b3 100644 --- a/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html +++ b/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html @@ -759,13 +759,13 @@ This can be used to extend or override the
diff --git a/module-core_base-service_base-svg-scraping.html b/module-core_base-service_base-svg-scraping.html index 6c3ec7d746..d0cf19e85a 100644 --- a/module-core_base-service_base-svg-scraping.html +++ b/module-core_base-service_base-svg-scraping.html @@ -77,13 +77,13 @@
diff --git a/module-core_base-service_base-xml-BaseXmlService.html b/module-core_base-service_base-xml-BaseXmlService.html index 9be0306a6a..bbd275dbb2 100644 --- a/module-core_base-service_base-xml-BaseXmlService.html +++ b/module-core_base-service_base-xml-BaseXmlService.html @@ -551,13 +551,13 @@ This can be used to extend or override the
diff --git a/module-core_base-service_base-xml.html b/module-core_base-service_base-xml.html index 2c661d5b9f..c80817b9ae 100644 --- a/module-core_base-service_base-xml.html +++ b/module-core_base-service_base-xml.html @@ -77,13 +77,13 @@
diff --git a/module-core_base-service_base-yaml-BaseYamlService.html b/module-core_base-service_base-yaml-BaseYamlService.html index ed67eddc0b..5396e86bef 100644 --- a/module-core_base-service_base-yaml-BaseYamlService.html +++ b/module-core_base-service_base-yaml-BaseYamlService.html @@ -548,13 +548,13 @@ This can be used to extend or override the
diff --git a/module-core_base-service_base-yaml.html b/module-core_base-service_base-yaml.html index 854938c6e8..c1037f5e25 100644 --- a/module-core_base-service_base-yaml.html +++ b/module-core_base-service_base-yaml.html @@ -77,13 +77,13 @@
diff --git a/module-core_base-service_base.html b/module-core_base-service_base.html index 5d34a7aa5f..3162f1888d 100644 --- a/module-core_base-service_base.html +++ b/module-core_base-service_base.html @@ -1160,13 +1160,13 @@ when the parameter is absent. (Note that in,
diff --git a/module-core_base-service_errors-Deprecated.html b/module-core_base-service_errors-Deprecated.html index 1d4e9e0fd2..e6518dcc22 100644 --- a/module-core_base-service_errors-Deprecated.html +++ b/module-core_base-service_errors-Deprecated.html @@ -205,13 +205,13 @@
diff --git a/module-core_base-service_errors-ImproperlyConfigured.html b/module-core_base-service_errors-ImproperlyConfigured.html index c64af80e98..2a7519404f 100644 --- a/module-core_base-service_errors-ImproperlyConfigured.html +++ b/module-core_base-service_errors-ImproperlyConfigured.html @@ -205,13 +205,13 @@
diff --git a/module-core_base-service_errors-Inaccessible.html b/module-core_base-service_errors-Inaccessible.html index c59708bd7b..6e61d558a4 100644 --- a/module-core_base-service_errors-Inaccessible.html +++ b/module-core_base-service_errors-Inaccessible.html @@ -206,13 +206,13 @@ or to wrap a 5XX response


diff --git a/module-core_base-service_errors-InvalidParameter.html b/module-core_base-service_errors-InvalidParameter.html index d2a1849bf7..ed534bd61b 100644 --- a/module-core_base-service_errors-InvalidParameter.html +++ b/module-core_base-service_errors-InvalidParameter.html @@ -206,13 +206,13 @@ is invalid or unexpected


diff --git a/module-core_base-service_errors-InvalidResponse.html b/module-core_base-service_errors-InvalidResponse.html index 701a0d7139..6e76690c1b 100644 --- a/module-core_base-service_errors-InvalidResponse.html +++ b/module-core_base-service_errors-InvalidResponse.html @@ -205,13 +205,13 @@
diff --git a/module-core_base-service_errors-NotFound.html b/module-core_base-service_errors-NotFound.html index b7a40fe854..da637ffed1 100644 --- a/module-core_base-service_errors-NotFound.html +++ b/module-core_base-service_errors-NotFound.html @@ -205,13 +205,13 @@
diff --git a/module-core_base-service_errors-ShieldsRuntimeError.html b/module-core_base-service_errors-ShieldsRuntimeError.html index 35cce2d4d5..a1a91f1e41 100644 --- a/module-core_base-service_errors-ShieldsRuntimeError.html +++ b/module-core_base-service_errors-ShieldsRuntimeError.html @@ -378,13 +378,13 @@ should override this method.


diff --git a/module-core_base-service_errors.html b/module-core_base-service_errors.html index c88d5ee0f2..64da13b615 100644 --- a/module-core_base-service_errors.html +++ b/module-core_base-service_errors.html @@ -348,13 +348,13 @@ badge when we catch and render the exception (Optional)


diff --git a/module-core_base-service_graphql.html b/module-core_base-service_graphql.html index 993538748e..191804fb46 100644 --- a/module-core_base-service_graphql.html +++ b/module-core_base-service_graphql.html @@ -248,13 +248,13 @@ but can't use that due to incorrect packaging.


diff --git a/module-core_server_server-Server.html b/module-core_server_server-Server.html index c869066268..5c199abe81 100644 --- a/module-core_server_server-Server.html +++ b/module-core_server_server-Server.html @@ -675,13 +675,13 @@ Start listening for requests on this.baseUrl()


diff --git a/module-core_server_server.html b/module-core_server_server.html index 0ef3a7b89e..0908694590 100644 --- a/module-core_server_server.html +++ b/module-core_server_server.html @@ -77,13 +77,13 @@
diff --git a/module-core_service-test-runner_create-service-tester.html b/module-core_service-test-runner_create-service-tester.html index b1718a686a..fbc1d48e0f 100644 --- a/module-core_service-test-runner_create-service-tester.html +++ b/module-core_service-test-runner_create-service-tester.html @@ -188,13 +188,13 @@ service.


diff --git a/module-core_service-test-runner_icedfrisby-shields.html b/module-core_service-test-runner_icedfrisby-shields.html index 91506b20f5..edd2104c16 100644 --- a/module-core_service-test-runner_icedfrisby-shields.html +++ b/module-core_service-test-runner_icedfrisby-shields.html @@ -244,13 +244,13 @@
diff --git a/module-core_service-test-runner_infer-pull-request.html b/module-core_service-test-runner_infer-pull-request.html index 74d2fe9838..41d67b3b86 100644 --- a/module-core_service-test-runner_infer-pull-request.html +++ b/module-core_service-test-runner_infer-pull-request.html @@ -464,13 +464,13 @@ of a pull request from the environment variables.


diff --git a/module-core_service-test-runner_runner-Runner.html b/module-core_service-test-runner_runner-Runner.html index d34854fd09..16d0d47f9f 100644 --- a/module-core_service-test-runner_runner-Runner.html +++ b/module-core_service-test-runner_runner-Runner.html @@ -562,13 +562,13 @@ overridden on instances.


diff --git a/module-core_service-test-runner_runner.html b/module-core_service-test-runner_runner.html index 754346b057..4490bd4dd2 100644 --- a/module-core_service-test-runner_runner.html +++ b/module-core_service-test-runner_runner.html @@ -77,13 +77,13 @@
diff --git a/module-core_service-test-runner_service-tester-ServiceTester.html b/module-core_service-test-runner_service-tester-ServiceTester.html index e8c74ed3ae..d2438dfdaa 100644 --- a/module-core_service-test-runner_service-tester-ServiceTester.html +++ b/module-core_service-test-runner_service-tester-ServiceTester.html @@ -1120,13 +1120,13 @@ the CLI, or directly on the tester.


diff --git a/module-core_service-test-runner_service-tester.html b/module-core_service-test-runner_service-tester.html index 58ce11c0e6..7f18c64ed6 100644 --- a/module-core_service-test-runner_service-tester.html +++ b/module-core_service-test-runner_service-tester.html @@ -77,13 +77,13 @@
diff --git a/module-core_service-test-runner_services-for-title.html b/module-core_service-test-runner_services-for-title.html index 83e86429e2..5b048ee9ef 100644 --- a/module-core_service-test-runner_services-for-title.html +++ b/module-core_service-test-runner_services-for-title.html @@ -236,13 +236,13 @@ as an array of strings.


diff --git a/module-core_token-pooling_token-pool-Token.html b/module-core_token-pooling_token-pool-Token.html index 7106e5f8f5..9fbed86ea1 100644 --- a/module-core_token-pooling_token-pool-Token.html +++ b/module-core_token-pooling_token-pool-Token.html @@ -709,13 +709,13 @@ stable ordering for a valid priority queue.


diff --git a/module-core_token-pooling_token-pool-TokenPool.html b/module-core_token-pooling_token-pool-TokenPool.html index 958f62be86..e3307db8b9 100644 --- a/module-core_token-pooling_token-pool-TokenPool.html +++ b/module-core_token-pooling_token-pool-TokenPool.html @@ -893,13 +893,13 @@ indicate it should not be reused.


diff --git a/module-core_token-pooling_token-pool.html b/module-core_token-pooling_token-pool.html index d00be86890..23e6ea8350 100644 --- a/module-core_token-pooling_token-pool.html +++ b/module-core_token-pooling_token-pool.html @@ -243,13 +243,13 @@
diff --git a/module-services_dynamic_json-path.html b/module-services_dynamic_json-path.html index f88596dfbd..d506a485e8 100644 --- a/module-services_dynamic_json-path.html +++ b/module-services_dynamic_json-path.html @@ -536,13 +536,13 @@ This can be used to extend or override the
diff --git a/module-services_steam_steam-base-BaseSteamAPI.html b/module-services_steam_steam-base-BaseSteamAPI.html index e6f6aaca3c..3be7e8a5f8 100644 --- a/module-services_steam_steam-base-BaseSteamAPI.html +++ b/module-services_steam_steam-base-BaseSteamAPI.html @@ -374,13 +374,13 @@
diff --git a/module-services_steam_steam-base.html b/module-services_steam_steam-base.html index 12aa03f216..ffc696c54f 100644 --- a/module-services_steam_steam-base.html +++ b/module-services_steam_steam-base.html @@ -77,13 +77,13 @@
diff --git a/module.exports.html b/module.exports.html deleted file mode 100644 index 8511db7c5c..0000000000 --- a/module.exports.html +++ /dev/null @@ -1,574 +0,0 @@ - - - - - JSDoc: Class: exports - - - - - - - - - - -
- -

Class: exports

- - - - - - -
- -
- -

exports()

- -

Criterion Badge Service

-

Support and Contact:

-
    -
  • https://github.com/chmoder/api.criterion.dev
  • -
-

API Documentation:

-
    -
  • https://app.swaggerhub.com/apis-docs/chmoder/Criterion.dev
  • -
- - -
- -
-
- - - - -

Constructor

- - - -

new exports()

- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - -
- -
- -

exports()

- -

This badge displays the license of a component on a Weblate instance.

- - -
- -
-
- - - - -

Constructor

- - - -

new exports()

- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - -
- -
- -

exports()

- -

This badge displays the percentage of strings translated on a project on a -Weblate instance.

- - -
- - - -
- - - - - - - -
- -
- -

exports()

- -

This badge displays the total installations of a MediaWiki extensions, skins, -etc via Wikiapiary.

-

MediaWiki Extensions Manual

- - -
- -
-
- - - - -

Constructor

- - - -

new exports()

- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/services_criterion_criterion.service.js.html b/services_criterion_criterion.service.js.html deleted file mode 100644 index 164e5dda79..0000000000 --- a/services_criterion_criterion.service.js.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - JSDoc: Source: services/criterion/criterion.service.js - - - - - - - - - - -
- -

Source: services/criterion/criterion.service.js

- - - - - - -
-
-
import Joi from 'joi'
-import { BaseJsonService } from '../index.js'
-import {
-  IMPROVED_STATUS,
-  NOT_FOUND_STATUS,
-  REGRESSED_STATUS,
-  NO_CHANGE_STATUS,
-} from './constants.js'
-
-const schema = Joi.string()
-  .allow(IMPROVED_STATUS, REGRESSED_STATUS, NO_CHANGE_STATUS)
-  .required()
-
-/**
- * Criterion Badge Service
- *
- * Support and Contact:
- * - https://github.com/chmoder/api.criterion.dev
- *
- * API Documentation:
- * - https://app.swaggerhub.com/apis-docs/chmoder/Criterion.dev
- */
-export default class Criterion extends BaseJsonService {
-  static category = 'analysis'
-  static route = { base: 'criterion', pattern: ':user/:repo' }
-
-  static examples = [
-    {
-      title: 'Criterion',
-      namedParams: {
-        user: 'chmoder',
-        repo: 'data_vault',
-      },
-      staticPreview: this.render({ status: IMPROVED_STATUS }),
-    },
-  ]
-
-  static defaultBadgeData = { label: 'criterion' }
-
-  static render({ status }) {
-    let statusColor = 'lightgrey'
-
-    if (status === IMPROVED_STATUS) {
-      statusColor = 'brightgreen'
-    } else if (status === NO_CHANGE_STATUS) {
-      statusColor = 'green'
-    } else if (statusColor === REGRESSED_STATUS) {
-      statusColor = 'red'
-    }
-
-    return {
-      message: `${status}`,
-      color: statusColor,
-    }
-  }
-
-  async handle({ user, repo }) {
-    const status = await this._requestJson({
-      url: `https://api.criterion.dev/v1/${user}/${repo}/status`,
-      errorMessages: { 404: NOT_FOUND_STATUS },
-      schema,
-    })
-
-    return this.constructor.render({ status })
-  }
-}
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/services_dynamic_json-path.js.html b/services_dynamic_json-path.js.html index 02053fe5f4..0645544112 100644 --- a/services_dynamic_json-path.js.html +++ b/services_dynamic_json-path.js.html @@ -114,13 +114,13 @@ export default superclass =>
diff --git a/services_github_github-total-star.service.js.html b/services_github_github-total-star.service.js.html deleted file mode 100644 index a40dbb13d5..0000000000 --- a/services_github_github-total-star.service.js.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - JSDoc: Source: services/github/github-total-star.service.js - - - - - - - - - - -
- -

Source: services/github/github-total-star.service.js

- - - - - - -
-
-
import Joi from 'joi'
-import gql from 'graphql-tag'
-import { nonNegativeInteger } from '../validators.js'
-import { metric } from '../text-formatters.js'
-import { GithubAuthV4Service } from './github-auth-service.js'
-import {
-  documentation as commonDocumentation,
-  transformErrors,
-} from './github-helpers.js'
-
-const MAX_REPO_LIMIT = 200
-
-const customDocumentation = `This badge takes into account up to <code>${MAX_REPO_LIMIT}</code> of the most starred repositories of given user / org.`
-
-const userDocumentation = `${commonDocumentation}
-<p>
-  <b>Note:</b><br>
-  1. ${customDocumentation}<br>
-  2. <code>affiliations</code> query param accepts three values (must be UPPER case) <code>OWNER</code>, <code>COLLABORATOR</code>, <code>ORGANIZATION_MEMBER</code>.
-  One can pass comma separated combinations of these values (no spaces) e.g. <code>OWNER,COLLABORATOR</code> or <code>OWNER,COLLABORATOR,ORGANIZATION_MEMBER</code>.
-  Default value is <code>OWNER</code>. See the explanation of these values <a href="https://docs.github.com/en/graphql/reference/enums#repositoryaffiliation">here</a>.
-</p>
-`
-const orgDocumentation = `${commonDocumentation}
-<p>
-  <b>Note:</b> ${customDocumentation}
-</p>`
-
-const pageInfoSchema = Joi.object({
-  hasNextPage: Joi.boolean().required(),
-  endCursor: Joi.string().allow(null).required(),
-}).required()
-
-const nodesSchema = Joi.array()
-  .items(
-    Joi.object({
-      stargazers: Joi.object({
-        totalCount: nonNegativeInteger,
-      }).required(),
-    })
-  )
-  .default([])
-
-const repositoriesSchema = Joi.object({
-  pageInfo: pageInfoSchema,
-  nodes: nodesSchema,
-}).required()
-
-const schema = Joi.object({
-  data: Joi.alternatives(
-    Joi.object({
-      user: Joi.object({
-        repositories: repositoriesSchema,
-      }).required(),
-    }).required(),
-    Joi.object({
-      organization: Joi.object({
-        repositories: repositoriesSchema,
-      }).required(),
-    }).required()
-  ).required(),
-}).required()
-
-const query = gql`
-  query fetchStars(
-    $user: String!
-    $nextCursor: String
-    $affiliations: [RepositoryAffiliation]!
-  ) {
-    user(login: $user) {
-      repositories(
-        first: 100
-        after: $nextCursor
-        ownerAffiliations: $affiliations
-        orderBy: { field: STARGAZERS, direction: DESC }
-      ) {
-        pageInfo {
-          hasNextPage
-          endCursor
-        }
-        nodes {
-          stargazers {
-            totalCount
-          }
-        }
-      }
-    }
-
-    organization(login: $user) {
-      repositories(
-        first: 100
-        after: $nextCursor
-        orderBy: { field: STARGAZERS, direction: DESC }
-      ) {
-        pageInfo {
-          hasNextPage
-          endCursor
-        }
-        nodes {
-          stargazers {
-            totalCount
-          }
-        }
-      }
-    }
-  }
-`
-
-const affiliationsAllowedValues = [
-  'OWNER',
-  `COLLABORATOR`,
-  'ORGANIZATION_MEMBER',
-]
-/**
- * Validates affiliations should contain combination of allowed values in any order.
- *
- * @param {string} value affiliation current value
- * @param {*} helpers object to construct custom error
- *
- * @returns {string} valiadtion error or value unchanged
- */
-const validateAffiliations = (value, helpers) => {
-  const values = value.split(',')
-  if (values.some(e => !affiliationsAllowedValues.includes(e))) {
-    return helpers.error('any.invalid')
-  }
-  return value
-}
-
-const queryParamSchema = Joi.object({
-  affiliations: Joi.string().default('OWNER').custom(validateAffiliations),
-}).required()
-
-export default class GithubTotalStarService extends GithubAuthV4Service {
-  static defaultLabel = 'stars'
-  static category = 'social'
-
-  static route = {
-    base: 'github/stars',
-    pattern: ':user',
-    queryParamSchema,
-  }
-
-  static examples = [
-    {
-      title: "GitHub User's stars",
-      namedParams: {
-        user: 'chris48s',
-      },
-      queryParams: { affiliations: 'OWNER,COLLABORATOR' },
-      staticPreview: {
-        label: this.defaultLabel,
-        message: 54,
-        style: 'social',
-      },
-      documentation: userDocumentation,
-    },
-    {
-      title: "GitHub Org's stars",
-      pattern: ':org',
-      namedParams: {
-        org: 'badges',
-      },
-      staticPreview: {
-        label: this.defaultLabel,
-        message: metric(7000),
-        style: 'social',
-      },
-      documentation: orgDocumentation,
-    },
-  ]
-
-  static defaultBadgeData = {
-    label: this.defaultLabel,
-    namedLogo: 'github',
-  }
-
-  static render({ totalStars, user }) {
-    return {
-      message: metric(totalStars),
-      color: 'blue',
-      link: [`https://github.com/${user}`],
-    }
-  }
-
-  async fetch({ user, affiliations, nextCursor }) {
-    const variables = { user, affiliations, nextCursor }
-    return await this._requestGraphql({
-      query,
-      variables,
-      schema,
-      transformJson: json =>
-        json.data.organization || json.data.user ? { data: json.data } : json,
-      transformErrors: e => transformErrors(e, 'user/org'),
-    })
-  }
-
-  transform(repos) {
-    const totalStars = repos
-      .map(element => element.stargazers.totalCount)
-      .reduce((accumulator, currentValue) => accumulator + currentValue, 0)
-    const lastRepo = repos.slice(-1).pop() // undefined when repos is empty
-    const hasStars = lastRepo ? lastRepo.stargazers.totalCount !== 0 : false
-    return {
-      totalStars,
-      hasStars,
-    }
-  }
-
-  async getTotalStars({ user }, { affiliations }) {
-    let grandTotalStars = 0
-    let fetchedReposCount = 0
-    let nextCursor = null
-    let hasNext
-
-    do {
-      const { data } = await this.fetch({
-        user,
-        affiliations: affiliations.split(','),
-        nextCursor,
-      })
-      const {
-        repositories: {
-          pageInfo: { hasNextPage, endCursor },
-          nodes: repos,
-        },
-      } = data.user || data.organization
-      const { totalStars, hasStars } = this.transform(repos)
-      // repos are sorted based on the stars. If last repo has zero star,
-      // no need to fire additional fetch call, as repos on next page will have zero stars only.
-      hasNext = hasNextPage && hasStars
-      nextCursor = endCursor
-      grandTotalStars += totalStars
-      fetchedReposCount += repos.length
-    } while (hasNext && fetchedReposCount < MAX_REPO_LIMIT)
-
-    return grandTotalStars
-  }
-
-  async handle({ user }, queryParams) {
-    const totalStars = await this.getTotalStars({ user }, queryParams)
-    return this.constructor.render({ totalStars, user })
-  }
-}
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/services_osslifecycle_osslifecycle.service.js.html b/services_osslifecycle_osslifecycle.service.js.html deleted file mode 100644 index b3fab9e8e1..0000000000 --- a/services_osslifecycle_osslifecycle.service.js.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - JSDoc: Source: services/osslifecycle/osslifecycle.service.js - - - - - - - - - - -
- -

Source: services/osslifecycle/osslifecycle.service.js

- - - - - - -
-
-
import { BaseService, InvalidResponse } from '../index.js'
-
-const documentation = `
-<p>
-  OSS Lifecycle is an initiative started by Netflix to classify open-source projects into lifecycles
-  and clearly identify which projects are active and which ones are retired. To enable this badge,
-  simply create an OSSMETADATA tagging file at the root of your GitHub repository containing a
-  single line similar to the following: <code>osslifecycle=active</code>. Other suggested values are
-  <code>osslifecycle=maintenance</code> and <code>osslifecycle=archived</code>. A working example
-  can be viewed on the <a href="https://github.com/Netflix/osstracker">OSS Tracker repository</a>.
-</p>
-`
-
-export default class OssTracker extends BaseService {
-  static category = 'other'
-
-  static route = {
-    base: 'osslifecycle',
-    pattern: ':user/:repo/:branch*',
-  }
-
-  static examples = [
-    {
-      title: 'OSS Lifecycle',
-      pattern: ':user/:repo',
-      namedParams: { user: 'Teevity', repo: 'ice' },
-      staticPreview: this.render({ status: 'active' }),
-      keywords: ['Netflix'],
-      documentation,
-    },
-    {
-      title: 'OSS Lifecycle (branch)',
-      pattern: ':user/:repo/:branch',
-      namedParams: {
-        user: 'Netflix',
-        repo: 'osstracker',
-        branch: 'documentation',
-      },
-      staticPreview: this.render({ status: 'active' }),
-      keywords: ['Netflix'],
-      documentation,
-    },
-  ]
-
-  static defaultBadgeData = { label: 'oss lifecycle' }
-
-  /**
-   * Return color for active, maintenance and archived statuses, which were the three
-   * example keywords used in Netflix's open-source meetup.
-   * See https://slideshare.net/aspyker/netflix-open-source-meetup-season-4-episode-1
-   * Other keywords are possible, but will appear in grey.
-   *
-   * @param {object} attrs Refer to individual attrs
-   * @param {string} attrs.status Specifies the current maintenance status
-   * @returns {string} color
-   */
-  static getColor({ status }) {
-    if (status === 'active') {
-      return 'brightgreen'
-    } else if (status === 'maintenance') {
-      return 'yellow'
-    } else if (status === 'archived') {
-      return 'red'
-    }
-    return 'lightgrey'
-  }
-
-  static render({ status }) {
-    const color = this.getColor({ status })
-    return {
-      message: status,
-      color,
-    }
-  }
-
-  async fetch({ user, repo, branch }) {
-    return this._request({
-      url: `https://raw.githubusercontent.com/${user}/${repo}/${branch}/OSSMETADATA`,
-    })
-  }
-
-  async handle({ user, repo, branch }) {
-    const { buffer } = await this.fetch({
-      user,
-      repo,
-      branch: branch || 'HEAD',
-    })
-    try {
-      const status = buffer.match(/osslifecycle=([a-z]+)/im)[1]
-      return this.constructor.render({ status })
-    } catch (e) {
-      throw new InvalidResponse({
-        prettyMessage: 'metadata in unexpected format',
-      })
-    }
-  }
-}
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/services_packagist_packagist-base.js.html b/services_packagist_packagist-base.js.html index 8a733d687a..412be28fc6 100644 --- a/services_packagist_packagist-base.js.html +++ b/services_packagist_packagist-base.js.html @@ -144,13 +144,13 @@ export {
diff --git a/services_steam_steam-base.js.html b/services_steam_steam-base.js.html index 8d37075e91..d1e8c736a9 100644 --- a/services_steam_steam-base.js.html +++ b/services_steam_steam-base.js.html @@ -92,13 +92,13 @@ export default BaseSteamAPI
diff --git a/services_test-validators.js.html b/services_test-validators.js.html index 620a42059e..da0554709f 100644 --- a/services_test-validators.js.html +++ b/services_test-validators.js.html @@ -215,13 +215,13 @@ export {
diff --git a/services_weblate_weblate-component-license.service.js.html b/services_weblate_weblate-component-license.service.js.html deleted file mode 100644 index ad5117c80d..0000000000 --- a/services_weblate_weblate-component-license.service.js.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - JSDoc: Source: services/weblate/weblate-component-license.service.js - - - - - - - - - - -
- -

Source: services/weblate/weblate-component-license.service.js

- - - - - - -
-
-
import Joi from 'joi'
-import { BaseJsonService } from '../index.js'
-import { optionalUrl } from '../validators.js'
-
-const schema = Joi.object({
-  license: Joi.string().required(),
-}).required()
-
-const queryParamSchema = Joi.object({
-  server: optionalUrl,
-}).required()
-
-/**
- * This badge displays the license of a component on a Weblate instance.
- */
-export default class WeblateComponentLicense extends BaseJsonService {
-  static category = 'license'
-  static route = {
-    base: 'weblate/l',
-    pattern: ':project/:component',
-    queryParamSchema,
-  }
-
-  static examples = [
-    {
-      title: 'Weblate component license',
-      namedParams: { project: 'godot-engine', component: 'godot' },
-      queryParams: { server: 'https://hosted.weblate.org' },
-      staticPreview: this.render({ license: 'MIT' }),
-      keywords: ['i18n', 'translation', 'internationalization'],
-    },
-  ]
-
-  static defaultBadgeData = { label: 'license', color: 'informational' }
-
-  static render({ license }) {
-    return { message: `${license}` }
-  }
-
-  async fetch({ project, component, server = 'https://hosted.weblate.org' }) {
-    return this._requestJson({
-      schema,
-      url: `${server}/api/components/${project}/${component}/`,
-      errorMessages: {
-        403: 'access denied by remote server',
-        404: 'component not found',
-        429: 'rate limited by remote server',
-      },
-    })
-  }
-
-  async handle({ project, component }, { server }) {
-    const { license } = await this.fetch({ project, component, server })
-    return this.constructor.render({ license })
-  }
-}
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/services_weblate_weblate-project-translated-percentage.service.js.html b/services_weblate_weblate-project-translated-percentage.service.js.html deleted file mode 100644 index 929707ff3f..0000000000 --- a/services_weblate_weblate-project-translated-percentage.service.js.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - JSDoc: Source: services/weblate/weblate-project-translated-percentage.service.js - - - - - - - - - - -
- -

Source: services/weblate/weblate-project-translated-percentage.service.js

- - - - - - -
-
-
import Joi from 'joi'
-import { BaseJsonService } from '../index.js'
-import { optionalUrl } from '../validators.js'
-import { colorScale } from '../color-formatters.js'
-
-const schema = Joi.object({
-  translated_percent: Joi.number().required(),
-}).required()
-
-const queryParamSchema = Joi.object({
-  server: optionalUrl,
-}).required()
-
-/**
- * This badge displays the percentage of strings translated on a project on a
- * Weblate instance.
- */
-export default class WeblateProjectTranslatedPercentage extends BaseJsonService {
-  static category = 'other'
-  static route = {
-    base: 'weblate/progress',
-    pattern: ':project',
-    queryParamSchema,
-  }
-
-  static examples = [
-    {
-      title: 'Weblate project translated',
-      namedParams: { project: 'godot-engine' },
-      queryParams: { server: 'https://hosted.weblate.org' },
-      staticPreview: this.render({ translatedPercent: 20.5 }),
-      keywords: ['i18n', 'translation', 'internationalization'],
-    },
-  ]
-
-  static defaultBadgeData = { label: 'translated' }
-
-  /**
-   * Takes a percentage and maps it to a message and color.
-   *
-   * The colors are determined based on how Weblate does it internally.
-   * {@link https://github.com/WeblateOrg/weblate/blob/main/weblate/trans/widgets.py Weblate on GitHub}
-   *
-   * @param {*} translatedPercent The percentage of translations translated.
-   * @returns {object} Format for the badge.
-   */
-  static render({ translatedPercent }) {
-    const color = colorScale([75, 90])(translatedPercent)
-    return { message: `${translatedPercent.toFixed(0)}%`, color }
-  }
-
-  async fetch({ project, server = 'https://hosted.weblate.org' }) {
-    return this._requestJson({
-      schema,
-      url: `${server}/api/projects/${project}/statistics/`,
-      errorMessages: {
-        403: 'access denied by remote server',
-        404: 'project not found',
-        429: 'rate limited by remote server',
-      },
-    })
-  }
-
-  async handle({ project }, { server }) {
-    const { translated_percent } = await this.fetch({ project, server })
-    return this.constructor.render({ translatedPercent: translated_percent })
-  }
-}
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/services_wikiapiary_wikiapiary-installs.service.js.html b/services_wikiapiary_wikiapiary-installs.service.js.html deleted file mode 100644 index c06d653c5d..0000000000 --- a/services_wikiapiary_wikiapiary-installs.service.js.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - JSDoc: Source: services/wikiapiary/wikiapiary-installs.service.js - - - - - - - - - - -
- -

Source: services/wikiapiary/wikiapiary-installs.service.js

- - - - - - -
-
-
import Joi from 'joi'
-import { metric } from '../text-formatters.js'
-import { BaseJsonService, NotFound } from '../index.js'
-
-const documentation = `
-  <p>
-    The name of an extension is case-sensitive excluding the first character.
-  </p>
-  <p>
-    For example, in the case of <code>ParserFunctions</code>, the following are
-    valid:
-    <ul>
-      <li><code>ParserFunctions</code></li>
-      <li><code>parserFunctions</code></li>
-    </ul>
-
-    However, the following are invalid:
-    <ul>
-      <li><code>parserfunctions</code></li>
-      <li><code>Parserfunctions</code></li>
-      <li><code>pARSERfUNCTIONS</code></li>
-    </ul>
-  </p>
-`
-
-const schema = Joi.object({
-  query: Joi.object({
-    results: Joi.alternatives([
-      Joi.object()
-        .required()
-        .pattern(/^\w+:.+$/, {
-          printouts: Joi.object({
-            'Has website count': Joi.array()
-              .required()
-              .items(Joi.number().required()),
-          }).required(),
-        }),
-      Joi.array().required(),
-    ]).required(),
-  }).required(),
-}).required()
-
-/**
- * This badge displays the total installations of a MediaWiki extensions, skins,
- * etc via Wikiapiary.
- *
- * {@link https://www.mediawiki.org/wiki/Manual:Extensions MediaWiki Extensions Manual}
- */
-export default class WikiapiaryInstalls extends BaseJsonService {
-  static category = 'downloads'
-  static route = {
-    base: 'wikiapiary',
-    pattern: ':variant(extension|skin|farm|generator|host)/installs/:name',
-  }
-
-  static examples = [
-    {
-      title: 'Wikiapiary installs',
-      namedParams: { variant: 'extension', name: 'ParserFunctions' },
-      staticPreview: this.render({ usage: 11170 }),
-      documentation,
-      keywords: ['mediawiki'],
-    },
-  ]
-
-  static defaultBadgeData = { label: 'installs', color: 'informational' }
-
-  static render({ usage }) {
-    return { message: metric(usage) }
-  }
-
-  static validate({ results }) {
-    if (Array.isArray(results))
-      throw new NotFound({ prettyMessage: 'not found' })
-  }
-
-  async fetch({ variant, name }) {
-    return this._requestJson({
-      schema,
-      url: `https://wikiapiary.com/w/api.php`,
-      options: {
-        qs: {
-          action: 'ask',
-          query: `[[${variant}:${name}]]|?Has_website_count`,
-          format: 'json',
-        },
-      },
-    })
-  }
-
-  async handle({ variant, name }) {
-    const response = await this.fetch({ variant, name })
-    const { results } = response.query
-
-    this.constructor.validate({ results })
-
-    const keyLowerCase = `${variant}:${name.toLowerCase()}`
-    const resultKey = Object.keys(results).find(
-      key => keyLowerCase === key.toLowerCase()
-    )
-
-    if (resultKey === undefined)
-      throw new NotFound({ prettyMessage: 'not found' })
-
-    const [usage] = results[resultKey].printouts['Has website count']
-    return this.constructor.render({ usage })
-  }
-}
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/tutorial-TUTORIAL.html b/tutorial-TUTORIAL.html index 005194648e..b1d7aa249a 100644 --- a/tutorial-TUTORIAL.html +++ b/tutorial-TUTORIAL.html @@ -371,13 +371,13 @@ will review your contribution.
diff --git a/tutorial-badge-urls.html b/tutorial-badge-urls.html index 1faf0ed4ee..3af569e250 100644 --- a/tutorial-badge-urls.html +++ b/tutorial-badge-urls.html @@ -71,13 +71,13 @@ badge is for issues, and the parameters are :user/:repo.
diff --git a/tutorial-code-walkthrough.html b/tutorial-code-walkthrough.html index e23c555856..fdda9fe9e6 100644 --- a/tutorial-code-walkthrough.html +++ b/tutorial-code-walkthrough.html @@ -234,13 +234,13 @@ result over the HTTPS connection.
diff --git a/tutorial-deprecating-badges.html b/tutorial-deprecating-badges.html index d0261d409c..a226a57697 100644 --- a/tutorial-deprecating-badges.html +++ b/tutorial-deprecating-badges.html @@ -134,13 +134,13 @@ t.create('no longer available (previously number of layers)')
diff --git a/tutorial-input-validation.html b/tutorial-input-validation.html index 5c14357422..22244dc859 100644 --- a/tutorial-input-validation.html +++ b/tutorial-input-validation.html @@ -97,13 +97,13 @@
diff --git a/tutorial-json-format.html b/tutorial-json-format.html index 6f2df4810e..f596582d30 100644 --- a/tutorial-json-format.html +++ b/tutorial-json-format.html @@ -54,13 +54,13 @@ if you have any queries regarding the JSON format.


diff --git a/tutorial-logos.html b/tutorial-logos.html index 14e515ef39..a6fc67178e 100644 --- a/tutorial-logos.html +++ b/tutorial-logos.html @@ -90,13 +90,13 @@
diff --git a/tutorial-performance-testing.html b/tutorial-performance-testing.html index 89e262c263..cf62b967c2 100644 --- a/tutorial-performance-testing.html +++ b/tutorial-performance-testing.html @@ -70,13 +70,13 @@ node --prof-process --preprocess -j isolate-00000244AB6ED3B0-11920-v8.log | flam
diff --git a/tutorial-production-hosting.html b/tutorial-production-hosting.html index fbac6de724..345d76b5d5 100644 --- a/tutorial-production-hosting.html +++ b/tutorial-production-hosting.html @@ -237,13 +237,13 @@ the server. It's generously donated by Sent
diff --git a/tutorial-releases.html b/tutorial-releases.html index a33f099ebd..46508f8310 100644 --- a/tutorial-releases.html +++ b/tutorial-releases.html @@ -73,13 +73,13 @@
diff --git a/tutorial-self-hosting.html b/tutorial-self-hosting.html index db9aa4dcb5..c3b57a6840 100644 --- a/tutorial-self-hosting.html +++ b/tutorial-self-hosting.html @@ -175,13 +175,13 @@ Set public.requireCloudflare: true.


diff --git a/tutorial-server-secrets.html b/tutorial-server-secrets.html index f4b59e3ab7..cdc8fde4d2 100644 --- a/tutorial-server-secrets.html +++ b/tutorial-server-secrets.html @@ -231,13 +231,13 @@ and create an API key for the YouTube Data API v3.


diff --git a/tutorial-service-tests.html b/tutorial-service-tests.html index edb54ac165..909b4f9e4f 100644 --- a/tutorial-service-tests.html +++ b/tutorial-service-tests.html @@ -240,13 +240,13 @@ comment there instead.