From f32c5a60c47bae810d5872f7ac7ef017ea9a1b97 Mon Sep 17 00:00:00 2001 From: "repo-ranger[bot]" Date: Fri, 2 Jul 2021 02:59:22 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20384c5?= =?UTF-8?q?7eb475bfb93a999ef130bcf60aa2ed394cc=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 | 2 +- badge-maker_lib_xml.js.html | 2 +- core_base-service_base-graphql.js.html | 2 +- core_base-service_base-json.js.html | 2 +- core_base-service_base-svg-scraping.js.html | 2 +- core_base-service_base-xml.js.html | 2 +- core_base-service_base-yaml.js.html | 2 +- core_base-service_base.js.html | 2 +- core_base-service_errors.js.html | 2 +- core_base-service_graphql.js.html | 2 +- core_server_prometheus-metrics.js.html | 2 +- core_server_server.js.html | 2 +- ...-test-runner_create-service-tester.js.html | 2 +- ...ice-test-runner_icedfrisby-shields.js.html | 2 +- ...ice-test-runner_infer-pull-request.js.html | 2 +- core_service-test-runner_runner.js.html | 2 +- ...service-test-runner_service-tester.js.html | 2 +- ...ice-test-runner_services-for-title.js.html | 2 +- core_token-pooling_token-pool.js.html | 2 +- global.html | 2 +- index.html | 2 +- module-badge-maker.html | 2 +- module-badge-maker_lib_xml-XmlElement.html | 2 +- module-badge-maker_lib_xml.html | 2 +- ...le-core_base-service_base-BaseService.html | 2 +- ...rvice_base-graphql-BaseGraphqlService.html | 2 +- module-core_base-service_base-graphql.html | 2 +- ...ase-service_base-json-BaseJsonService.html | 2 +- module-core_base-service_base-json.html | 2 +- ...e-svg-scraping-BaseSvgScrapingService.html | 2 +- ...e-core_base-service_base-svg-scraping.html | 2 +- ..._base-service_base-xml-BaseXmlService.html | 2 +- module-core_base-service_base-xml.html | 2 +- ...ase-service_base-yaml-BaseYamlService.html | 2 +- module-core_base-service_base-yaml.html | 2 +- module-core_base-service_base.html | 2 +- ...e-core_base-service_errors-Deprecated.html | 2 +- ...e-service_errors-ImproperlyConfigured.html | 2 +- ...core_base-service_errors-Inaccessible.html | 2 +- ..._base-service_errors-InvalidParameter.html | 2 +- ...e_base-service_errors-InvalidResponse.html | 2 +- module-core_base-service_errors-NotFound.html | 2 +- ...se-service_errors-ShieldsRuntimeError.html | 2 +- module-core_base-service_errors.html | 2 +- module-core_base-service_graphql.html | 2 +- module-core_server_server-Server.html | 2 +- module-core_server_server.html | 2 +- ...ice-test-runner_create-service-tester.html | 2 +- ...ervice-test-runner_icedfrisby-shields.html | 2 +- ...ervice-test-runner_infer-pull-request.html | 2 +- ...ore_service-test-runner_runner-Runner.html | 2 +- module-core_service-test-runner_runner.html | 2 +- ...t-runner_service-tester-ServiceTester.html | 2 +- ...re_service-test-runner_service-tester.html | 2 +- ...ervice-test-runner_services-for-title.html | 2 +- ...e-core_token-pooling_token-pool-Token.html | 2 +- ...re_token-pooling_token-pool-TokenPool.html | 2 +- module-core_token-pooling_token-pool.html | 2 +- module-services_dynamic_json-path.html | 2 +- ...ervices_steam_steam-base-BaseSteamAPI.html | 2 +- module-services_steam_steam-base.html | 2 +- module.exports.html | 1678 ++++++++++++++++- services_criterion_criterion.service.js.html | 2 +- services_dynamic_json-path.js.html | 2 +- ...s_github_github-total-star.service.js.html | 2 +- ..._osslifecycle_osslifecycle.service.js.html | 2 +- services_packagist_packagist-base.js.html | 2 +- services_steam_steam-base.js.html | 2 +- services_test-validators.js.html | 2 +- ..._weblate-component-license.service.js.html | 109 ++ ...ject-translated-percentage.service.js.html | 119 ++ tutorial-TUTORIAL.html | 2 +- tutorial-badge-urls.html | 2 +- tutorial-code-walkthrough.html | 2 +- tutorial-deprecating-badges.html | 2 +- tutorial-input-validation.html | 2 +- tutorial-json-format.html | 2 +- tutorial-logos.html | 2 +- tutorial-performance-testing.html | 2 +- tutorial-production-hosting.html | 2 +- tutorial-releases.html | 2 +- tutorial-self-hosting.html | 2 +- tutorial-server-secrets.html | 2 +- tutorial-service-tests.html | 2 +- 84 files changed, 1986 insertions(+), 82 deletions(-) create mode 100644 services_weblate_weblate-component-license.service.js.html create mode 100644 services_weblate_weblate-project-translated-percentage.service.js.html diff --git a/badge-maker_lib_index.js.html b/badge-maker_lib_index.js.html index 3454f1a670..076fb838a4 100644 --- a/badge-maker_lib_index.js.html +++ b/badge-maker_lib_index.js.html @@ -123,7 +123,7 @@ module.exports = {
diff --git a/badge-maker_lib_xml.js.html b/badge-maker_lib_xml.js.html index 9cfb4a1a79..8c4c8b1b54 100644 --- a/badge-maker_lib_xml.js.html +++ b/badge-maker_lib_xml.js.html @@ -118,7 +118,7 @@ module.exports = { escapeXml, stripXmlWhitespace, XmlElement }
diff --git a/core_base-service_base-graphql.js.html b/core_base-service_base-graphql.js.html index 5a44f33964..ee9477cbc7 100644 --- a/core_base-service_base-graphql.js.html +++ b/core_base-service_base-graphql.js.html @@ -138,7 +138,7 @@ module.exports = BaseGraphqlService
diff --git a/core_base-service_base-json.js.html b/core_base-service_base-json.js.html index e52b510ec0..78942b0f6d 100644 --- a/core_base-service_base-json.js.html +++ b/core_base-service_base-json.js.html @@ -99,7 +99,7 @@ module.exports = BaseJsonService
diff --git a/core_base-service_base-svg-scraping.js.html b/core_base-service_base-svg-scraping.js.html index 58b104e091..dc2756af7a 100644 --- a/core_base-service_base-svg-scraping.js.html +++ b/core_base-service_base-svg-scraping.js.html @@ -135,7 +135,7 @@ module.exports = BaseSvgScrapingService
diff --git a/core_base-service_base-xml.js.html b/core_base-service_base-xml.js.html index 346ec70747..d69e0c2b86 100644 --- a/core_base-service_base-xml.js.html +++ b/core_base-service_base-xml.js.html @@ -113,7 +113,7 @@ module.exports = BaseXmlService
diff --git a/core_base-service_base-yaml.js.html b/core_base-service_base-yaml.js.html index 9be3592af5..b03d182cbe 100644 --- a/core_base-service_base-yaml.js.html +++ b/core_base-service_base-yaml.js.html @@ -117,7 +117,7 @@ module.exports = BaseYamlService
diff --git a/core_base-service_base.js.html b/core_base-service_base.js.html index 7489ea18e3..2c37c8f0a9 100644 --- a/core_base-service_base.js.html +++ b/core_base-service_base.js.html @@ -610,7 +610,7 @@ module.exports = BaseService
diff --git a/core_base-service_errors.js.html b/core_base-service_errors.js.html index daf3d35991..1fb9413b3f 100644 --- a/core_base-service_errors.js.html +++ b/core_base-service_errors.js.html @@ -263,7 +263,7 @@ module.exports = {
diff --git a/core_base-service_graphql.js.html b/core_base-service_graphql.js.html index 3881e6adb5..630c2b4dc3 100644 --- a/core_base-service_graphql.js.html +++ b/core_base-service_graphql.js.html @@ -94,7 +94,7 @@ module.exports = { mergeQueries }
diff --git a/core_server_prometheus-metrics.js.html b/core_server_prometheus-metrics.js.html index 3ec628b519..7436c928a5 100644 --- a/core_server_prometheus-metrics.js.html +++ b/core_server_prometheus-metrics.js.html @@ -129,7 +129,7 @@ module.exports = class PrometheusMetrics {
diff --git a/core_server_server.js.html b/core_server_server.js.html index 132b0c04b7..1a8a97750b 100644 --- a/core_server_server.js.html +++ b/core_server_server.js.html @@ -567,7 +567,7 @@ module.exports = Server
diff --git a/core_service-test-runner_create-service-tester.js.html b/core_service-test-runner_create-service-tester.js.html index cb14b1b570..8e6c28c5ea 100644 --- a/core_service-test-runner_create-service-tester.js.html +++ b/core_service-test-runner_create-service-tester.js.html @@ -75,7 +75,7 @@ module.exports = createServiceTester
diff --git a/core_service-test-runner_icedfrisby-shields.js.html b/core_service-test-runner_icedfrisby-shields.js.html index cc0ad25450..b0289f72a4 100644 --- a/core_service-test-runner_icedfrisby-shields.js.html +++ b/core_service-test-runner_icedfrisby-shields.js.html @@ -130,7 +130,7 @@ module.exports = factory
diff --git a/core_service-test-runner_infer-pull-request.js.html b/core_service-test-runner_infer-pull-request.js.html index e6866ce024..eb0c3da2ba 100644 --- a/core_service-test-runner_infer-pull-request.js.html +++ b/core_service-test-runner_infer-pull-request.js.html @@ -147,7 +147,7 @@ module.exports = {
diff --git a/core_service-test-runner_runner.js.html b/core_service-test-runner_runner.js.html index 23455be045..b68861fffa 100644 --- a/core_service-test-runner_runner.js.html +++ b/core_service-test-runner_runner.js.html @@ -117,7 +117,7 @@ module.exports = Runner
diff --git a/core_service-test-runner_service-tester.js.html b/core_service-test-runner_service-tester.js.html index 42a678bf69..6dfea74f99 100644 --- a/core_service-test-runner_service-tester.js.html +++ b/core_service-test-runner_service-tester.js.html @@ -185,7 +185,7 @@ module.exports = ServiceTester
diff --git a/core_service-test-runner_services-for-title.js.html b/core_service-test-runner_services-for-title.js.html index 19fcaeac60..883120207b 100644 --- a/core_service-test-runner_services-for-title.js.html +++ b/core_service-test-runner_services-for-title.js.html @@ -76,7 +76,7 @@ module.exports = servicesForTitle
diff --git a/core_token-pooling_token-pool.js.html b/core_token-pooling_token-pool.js.html index 47b7594acf..c6cdfd6fc0 100644 --- a/core_token-pooling_token-pool.js.html +++ b/core_token-pooling_token-pool.js.html @@ -403,7 +403,7 @@ module.exports = {
diff --git a/global.html b/global.html index a0ed040ba6..6ee5faa2a6 100644 --- a/global.html +++ b/global.html @@ -616,7 +616,7 @@
diff --git a/index.html b/index.html index 8ee445e929..cfed9a4b0d 100644 --- a/index.html +++ b/index.html @@ -219,7 +219,7 @@ under their terms and license.


diff --git a/module-badge-maker.html b/module-badge-maker.html index e2e8abf14c..3e85190f41 100644 --- a/module-badge-maker.html +++ b/module-badge-maker.html @@ -387,7 +387,7 @@
diff --git a/module-badge-maker_lib_xml-XmlElement.html b/module-badge-maker_lib_xml-XmlElement.html index 63ed32fb2e..46793fffc1 100644 --- a/module-badge-maker_lib_xml-XmlElement.html +++ b/module-badge-maker_lib_xml-XmlElement.html @@ -474,7 +474,7 @@ 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 1d09d8279b..fb5bbc2c60 100644 --- a/module-badge-maker_lib_xml.html +++ b/module-badge-maker_lib_xml.html @@ -83,7 +83,7 @@
diff --git a/module-core_base-service_base-BaseService.html b/module-core_base-service_base-BaseService.html index b7ee6ace04..0e1e37d861 100644 --- a/module-core_base-service_base-BaseService.html +++ b/module-core_base-service_base-BaseService.html @@ -743,7 +743,7 @@ 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 e80c7b20c4..7580d9e998 100644 --- a/module-core_base-service_base-graphql-BaseGraphqlService.html +++ b/module-core_base-service_base-graphql-BaseGraphqlService.html @@ -829,7 +829,7 @@ an InvalidResponse.


diff --git a/module-core_base-service_base-graphql.html b/module-core_base-service_base-graphql.html index 6b884780f9..a517b072ef 100644 --- a/module-core_base-service_base-graphql.html +++ b/module-core_base-service_base-graphql.html @@ -83,7 +83,7 @@
diff --git a/module-core_base-service_base-json-BaseJsonService.html b/module-core_base-service_base-json-BaseJsonService.html index ddae6c37f5..64111f7e21 100644 --- a/module-core_base-service_base-json-BaseJsonService.html +++ b/module-core_base-service_base-json-BaseJsonService.html @@ -674,7 +674,7 @@ 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 e1ae899584..25f6e8dd14 100644 --- a/module-core_base-service_base-json.html +++ b/module-core_base-service_base-json.html @@ -83,7 +83,7 @@
diff --git a/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html b/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html index 83f96169f2..c32404675d 100644 --- a/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html +++ b/module-core_base-service_base-svg-scraping-BaseSvgScrapingService.html @@ -765,7 +765,7 @@ 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 20178c31c3..e73b4d2d10 100644 --- a/module-core_base-service_base-svg-scraping.html +++ b/module-core_base-service_base-svg-scraping.html @@ -83,7 +83,7 @@
diff --git a/module-core_base-service_base-xml-BaseXmlService.html b/module-core_base-service_base-xml-BaseXmlService.html index cce5b411ab..7232af66e4 100644 --- a/module-core_base-service_base-xml-BaseXmlService.html +++ b/module-core_base-service_base-xml-BaseXmlService.html @@ -557,7 +557,7 @@ 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 d1dd1e8830..46913eb24a 100644 --- a/module-core_base-service_base-xml.html +++ b/module-core_base-service_base-xml.html @@ -83,7 +83,7 @@
diff --git a/module-core_base-service_base-yaml-BaseYamlService.html b/module-core_base-service_base-yaml-BaseYamlService.html index 750182ebfd..a3d2a13545 100644 --- a/module-core_base-service_base-yaml-BaseYamlService.html +++ b/module-core_base-service_base-yaml-BaseYamlService.html @@ -554,7 +554,7 @@ 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 e5087762c3..0fd49052b0 100644 --- a/module-core_base-service_base-yaml.html +++ b/module-core_base-service_base-yaml.html @@ -83,7 +83,7 @@
diff --git a/module-core_base-service_base.html b/module-core_base-service_base.html index 999c633ae3..c85cd228be 100644 --- a/module-core_base-service_base.html +++ b/module-core_base-service_base.html @@ -1166,7 +1166,7 @@ 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 24f5f5c1fb..f261bcb4aa 100644 --- a/module-core_base-service_errors-Deprecated.html +++ b/module-core_base-service_errors-Deprecated.html @@ -211,7 +211,7 @@
diff --git a/module-core_base-service_errors-ImproperlyConfigured.html b/module-core_base-service_errors-ImproperlyConfigured.html index 3cc2b9cc58..481882a0d0 100644 --- a/module-core_base-service_errors-ImproperlyConfigured.html +++ b/module-core_base-service_errors-ImproperlyConfigured.html @@ -211,7 +211,7 @@
diff --git a/module-core_base-service_errors-Inaccessible.html b/module-core_base-service_errors-Inaccessible.html index 9ba5415a2f..2f05e1c991 100644 --- a/module-core_base-service_errors-Inaccessible.html +++ b/module-core_base-service_errors-Inaccessible.html @@ -212,7 +212,7 @@ 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 69d6307a6c..0ebd8845cc 100644 --- a/module-core_base-service_errors-InvalidParameter.html +++ b/module-core_base-service_errors-InvalidParameter.html @@ -212,7 +212,7 @@ is invalid or unexpected


diff --git a/module-core_base-service_errors-InvalidResponse.html b/module-core_base-service_errors-InvalidResponse.html index 3b0b69391e..21617e2e33 100644 --- a/module-core_base-service_errors-InvalidResponse.html +++ b/module-core_base-service_errors-InvalidResponse.html @@ -211,7 +211,7 @@
diff --git a/module-core_base-service_errors-NotFound.html b/module-core_base-service_errors-NotFound.html index b3c2bba777..3cbb54d0a2 100644 --- a/module-core_base-service_errors-NotFound.html +++ b/module-core_base-service_errors-NotFound.html @@ -211,7 +211,7 @@
diff --git a/module-core_base-service_errors-ShieldsRuntimeError.html b/module-core_base-service_errors-ShieldsRuntimeError.html index 60b229c19d..ae7ade9a85 100644 --- a/module-core_base-service_errors-ShieldsRuntimeError.html +++ b/module-core_base-service_errors-ShieldsRuntimeError.html @@ -384,7 +384,7 @@ should override this method.


diff --git a/module-core_base-service_errors.html b/module-core_base-service_errors.html index d4bede834f..6d8aad1707 100644 --- a/module-core_base-service_errors.html +++ b/module-core_base-service_errors.html @@ -354,7 +354,7 @@ 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 5b9bedbe12..f13e1ccdaf 100644 --- a/module-core_base-service_graphql.html +++ b/module-core_base-service_graphql.html @@ -254,7 +254,7 @@ 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 01f66f8671..532e8b0fc9 100644 --- a/module-core_server_server-Server.html +++ b/module-core_server_server-Server.html @@ -681,7 +681,7 @@ Start listening for requests on this.baseUrl()


diff --git a/module-core_server_server.html b/module-core_server_server.html index 500cc424fc..3fc16de160 100644 --- a/module-core_server_server.html +++ b/module-core_server_server.html @@ -83,7 +83,7 @@
diff --git a/module-core_service-test-runner_create-service-tester.html b/module-core_service-test-runner_create-service-tester.html index 5cdda2586b..b217c25fb1 100644 --- a/module-core_service-test-runner_create-service-tester.html +++ b/module-core_service-test-runner_create-service-tester.html @@ -194,7 +194,7 @@ service.


diff --git a/module-core_service-test-runner_icedfrisby-shields.html b/module-core_service-test-runner_icedfrisby-shields.html index 34ed3c4b56..448409d56f 100644 --- a/module-core_service-test-runner_icedfrisby-shields.html +++ b/module-core_service-test-runner_icedfrisby-shields.html @@ -250,7 +250,7 @@
diff --git a/module-core_service-test-runner_infer-pull-request.html b/module-core_service-test-runner_infer-pull-request.html index 6aa1273e6c..76173fec09 100644 --- a/module-core_service-test-runner_infer-pull-request.html +++ b/module-core_service-test-runner_infer-pull-request.html @@ -470,7 +470,7 @@ 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 4cfcf7f4af..67da386eb8 100644 --- a/module-core_service-test-runner_runner-Runner.html +++ b/module-core_service-test-runner_runner-Runner.html @@ -568,7 +568,7 @@ overridden on instances.


diff --git a/module-core_service-test-runner_runner.html b/module-core_service-test-runner_runner.html index a2d471d11b..6b18b64539 100644 --- a/module-core_service-test-runner_runner.html +++ b/module-core_service-test-runner_runner.html @@ -83,7 +83,7 @@
diff --git a/module-core_service-test-runner_service-tester-ServiceTester.html b/module-core_service-test-runner_service-tester-ServiceTester.html index b41eb30e76..7016eef5c7 100644 --- a/module-core_service-test-runner_service-tester-ServiceTester.html +++ b/module-core_service-test-runner_service-tester-ServiceTester.html @@ -1126,7 +1126,7 @@ 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 3d0afb035e..88b3bc93f1 100644 --- a/module-core_service-test-runner_service-tester.html +++ b/module-core_service-test-runner_service-tester.html @@ -83,7 +83,7 @@
diff --git a/module-core_service-test-runner_services-for-title.html b/module-core_service-test-runner_services-for-title.html index 11640ffaf9..af120cd19a 100644 --- a/module-core_service-test-runner_services-for-title.html +++ b/module-core_service-test-runner_services-for-title.html @@ -242,7 +242,7 @@ 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 a2394d3f8e..9c1cbdb54c 100644 --- a/module-core_token-pooling_token-pool-Token.html +++ b/module-core_token-pooling_token-pool-Token.html @@ -715,7 +715,7 @@ 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 ea802333f7..28c7fbe69c 100644 --- a/module-core_token-pooling_token-pool-TokenPool.html +++ b/module-core_token-pooling_token-pool-TokenPool.html @@ -899,7 +899,7 @@ 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 dab954e54f..3eaf6ad6a2 100644 --- a/module-core_token-pooling_token-pool.html +++ b/module-core_token-pooling_token-pool.html @@ -249,7 +249,7 @@
diff --git a/module-services_dynamic_json-path.html b/module-services_dynamic_json-path.html index 6887495336..3de830ce6d 100644 --- a/module-services_dynamic_json-path.html +++ b/module-services_dynamic_json-path.html @@ -542,7 +542,7 @@ 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 2c13966c6a..2a37cff92c 100644 --- a/module-services_steam_steam-base-BaseSteamAPI.html +++ b/module-services_steam_steam-base-BaseSteamAPI.html @@ -380,7 +380,7 @@
diff --git a/module-services_steam_steam-base.html b/module-services_steam_steam-base.html index 65da975302..b831441a3a 100644 --- a/module-services_steam_steam-base.html +++ b/module-services_steam_steam-base.html @@ -83,7 +83,7 @@
diff --git a/module.exports.html b/module.exports.html index ed3665d820..a60a17d5b1 100644 --- a/module.exports.html +++ b/module.exports.html @@ -613,6 +613,1682 @@ 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 + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +

exports()

+ +

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

+ + +
+ +
+
+ + + + +

Constructor

+ + + +

new exports()

+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

createNumRequestCounter(attrs) → {object}

+ + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
attrs + + +object + + + +

Refer to individual attrs

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
category + + +string + + + +

e.g: 'build'

serviceFamily + + +string + + + +

e.g: 'npm'

name + + +string + + + +

e.g: 'NpmVersion'

+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

{ inc() {} }.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + + + + +

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 + + +
+
+ + + + + + + + + + + + + +

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 + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + + + + +
+ +
+ +

exports()

+ +

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

+ + +
+ +
+
+ + + + +

Constructor

+ + + +

new exports()

+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

createNumRequestCounter(attrs) → {object}

+ + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
attrs + + +object + + + +

Refer to individual attrs

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
category + + +string + + + +

e.g: 'build'

serviceFamily + + +string + + + +

e.g: 'npm'

name + + +string + + + +

e.g: 'NpmVersion'

+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

{ inc() {} }.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + + + + +

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 + + +
+
+ + + + + + + + + + + + + +

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 + + +
+
+ + + + + + + + @@ -634,7 +2310,7 @@ Other keywords are possible, but will appear in grey.


- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/services_criterion_criterion.service.js.html b/services_criterion_criterion.service.js.html index ab47837905..fab9933514 100644 --- a/services_criterion_criterion.service.js.html +++ b/services_criterion_criterion.service.js.html @@ -110,7 +110,7 @@ module.exports = class Criterion extends BaseJsonService {
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/services_dynamic_json-path.js.html b/services_dynamic_json-path.js.html index 574332f81a..cc8aaec698 100644 --- a/services_dynamic_json-path.js.html +++ b/services_dynamic_json-path.js.html @@ -122,7 +122,7 @@ module.exports = superclass =>
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/services_github_github-total-star.service.js.html b/services_github_github-total-star.service.js.html index 4b73265924..1b25234e49 100644 --- a/services_github_github-total-star.service.js.html +++ b/services_github_github-total-star.service.js.html @@ -288,7 +288,7 @@ module.exports = class GithubTotalStarService extends GithubAuthV4Service {
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/services_osslifecycle_osslifecycle.service.js.html b/services_osslifecycle_osslifecycle.service.js.html index 404da2cb88..8141fdb6da 100644 --- a/services_osslifecycle_osslifecycle.service.js.html +++ b/services_osslifecycle_osslifecycle.service.js.html @@ -141,7 +141,7 @@ module.exports = class OssTracker extends BaseService {
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/services_packagist_packagist-base.js.html b/services_packagist_packagist-base.js.html index 11d94351aa..56bf82fec7 100644 --- a/services_packagist_packagist-base.js.html +++ b/services_packagist_packagist-base.js.html @@ -152,7 +152,7 @@ module.exports = {
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/services_steam_steam-base.js.html b/services_steam_steam-base.js.html index d4246cf882..79840026de 100644 --- a/services_steam_steam-base.js.html +++ b/services_steam_steam-base.js.html @@ -99,7 +99,7 @@ module.exports = BaseSteamAPI
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/services_test-validators.js.html b/services_test-validators.js.html index 7f59f32f81..522a6e0a99 100644 --- a/services_test-validators.js.html +++ b/services_test-validators.js.html @@ -223,7 +223,7 @@ module.exports = {
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/services_weblate_weblate-component-license.service.js.html b/services_weblate_weblate-component-license.service.js.html new file mode 100644 index 0000000000..9d4c8cafcf --- /dev/null +++ b/services_weblate_weblate-component-license.service.js.html @@ -0,0 +1,109 @@ + + + + + JSDoc: Source: services/weblate/weblate-component-license.service.js + + + + + + + + + + +
+ +

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

+ + + + + + +
+
+
'use strict'
+
+const Joi = require('joi')
+const { BaseJsonService } = require('..')
+const { optionalUrl } = require('../validators')
+
+const schema = Joi.object({
+  license: Joi.string().required(),
+}).required()
+
+const queryParamSchema = Joi.object({
+  server: optionalUrl.required(),
+}).required()
+
+/**
+ * This badge displays the license of a component on a Weblate instance.
+ */
+module.exports = class WeblateComponentLicense extends BaseJsonService {
+  static category = 'license'
+  static route = {
+    base: 'weblate/license',
+    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 }) {
+    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 })
+  }
+}
+
+
+
+ + + + +
+ + + +
+ +
+ Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time) +
+ + + + + diff --git a/services_weblate_weblate-project-translated-percentage.service.js.html b/services_weblate_weblate-project-translated-percentage.service.js.html new file mode 100644 index 0000000000..6d2dcebe6d --- /dev/null +++ b/services_weblate_weblate-project-translated-percentage.service.js.html @@ -0,0 +1,119 @@ + + + + + JSDoc: Source: services/weblate/weblate-project-translated-percentage.service.js + + + + + + + + + + +
+ +

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

+ + + + + + +
+
+
'use strict'
+
+const Joi = require('joi')
+const { BaseJsonService } = require('..')
+const { optionalUrl } = require('../validators')
+const { colorScale } = require('../color-formatters')
+
+const schema = Joi.object({
+  translated_percent: Joi.number().required(),
+}).required()
+
+const queryParamSchema = Joi.object({
+  server: optionalUrl.required(),
+}).required()
+
+/**
+ * This badge displays the percentage of strings translated on a project on a
+ * Weblate instance.
+ */
+module.exports = class WeblateProjectTranslatedPercentage extends (
+  BaseJsonService
+) {
+  static category = 'other'
+  static route = { base: 'weblate', 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 }) {
+    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 })
+  }
+}
+
+
+
+ + + + +
+ + + +
+ +
+ Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time) +
+ + + + + diff --git a/tutorial-TUTORIAL.html b/tutorial-TUTORIAL.html index 3f71006ac1..395092e3cd 100644 --- a/tutorial-TUTORIAL.html +++ b/tutorial-TUTORIAL.html @@ -386,7 +386,7 @@ will review your contribution.
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-badge-urls.html b/tutorial-badge-urls.html index 93855cdbd1..026b57472a 100644 --- a/tutorial-badge-urls.html +++ b/tutorial-badge-urls.html @@ -77,7 +77,7 @@ badge is for issues, and the parameters are :user/:repo.
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-code-walkthrough.html b/tutorial-code-walkthrough.html index 85aafdcdd2..dc9db801d1 100644 --- a/tutorial-code-walkthrough.html +++ b/tutorial-code-walkthrough.html @@ -240,7 +240,7 @@ result over the HTTPS connection.
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-deprecating-badges.html b/tutorial-deprecating-badges.html index c7e3023015..b33fe320e6 100644 --- a/tutorial-deprecating-badges.html +++ b/tutorial-deprecating-badges.html @@ -116,7 +116,7 @@ t.create('no longer available (previously number of layers)')
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-input-validation.html b/tutorial-input-validation.html index df4ff4d83b..755923681c 100644 --- a/tutorial-input-validation.html +++ b/tutorial-input-validation.html @@ -103,7 +103,7 @@
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-json-format.html b/tutorial-json-format.html index 9a40c8f05c..7e219518bc 100644 --- a/tutorial-json-format.html +++ b/tutorial-json-format.html @@ -60,7 +60,7 @@ if you have any queries regarding the JSON format.


- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-logos.html b/tutorial-logos.html index 386165d308..10c16b4bbd 100644 --- a/tutorial-logos.html +++ b/tutorial-logos.html @@ -96,7 +96,7 @@
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-performance-testing.html b/tutorial-performance-testing.html index 58492fe1f4..710f12a669 100644 --- a/tutorial-performance-testing.html +++ b/tutorial-performance-testing.html @@ -76,7 +76,7 @@ node --prof-process --preprocess -j isolate-00000244AB6ED3B0-11920-v8.log | flam
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-production-hosting.html b/tutorial-production-hosting.html index 7649bb2a12..5911915e02 100644 --- a/tutorial-production-hosting.html +++ b/tutorial-production-hosting.html @@ -243,7 +243,7 @@ the server. It's generously donated by Sent
diff --git a/tutorial-releases.html b/tutorial-releases.html index ecd2569c3f..ed466e9d91 100644 --- a/tutorial-releases.html +++ b/tutorial-releases.html @@ -79,7 +79,7 @@
- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-self-hosting.html b/tutorial-self-hosting.html index 345dc5b1d4..33b2a39175 100644 --- a/tutorial-self-hosting.html +++ b/tutorial-self-hosting.html @@ -181,7 +181,7 @@ Set public.requireCloudflare: true.


- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-server-secrets.html b/tutorial-server-secrets.html index 3db45f954f..685cd6ec84 100644 --- a/tutorial-server-secrets.html +++ b/tutorial-server-secrets.html @@ -237,7 +237,7 @@ and create an API key for the YouTube Data API v3.


- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)
diff --git a/tutorial-service-tests.html b/tutorial-service-tests.html index 3da8f90e07..394f7334aa 100644 --- a/tutorial-service-tests.html +++ b/tutorial-service-tests.html @@ -246,7 +246,7 @@ comment there instead.


- Documentation generated by JSDoc 3.6.7 on Thu Jul 01 2021 19:52:09 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.7 on Fri Jul 02 2021 02:59:09 GMT+0000 (Coordinated Universal Time)