From 1708e13db67ad60f0fc4b6fd9a0510b3be7fdd47 Mon Sep 17 00:00:00 2001 From: Harsh Date: Fri, 24 Mar 2023 02:37:26 +0530 Subject: [PATCH 01/11] added plugin-health-score in search page --- plugins/plugin-site/package.json | 1 + plugins/plugin-site/src/components/Plugin.jsx | 34 +++++++++++++++++-- .../src/components/PluginHealthScore.jsx | 18 ++++++++++ .../src/components/SearchResults.css | 15 ++++++-- 4 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 plugins/plugin-site/src/components/PluginHealthScore.jsx diff --git a/plugins/plugin-site/package.json b/plugins/plugin-site/package.json index 0489eceb6..5cf13a829 100644 --- a/plugins/plugin-site/package.json +++ b/plugins/plugin-site/package.json @@ -69,6 +69,7 @@ "@sentry/browser": "7.7.0", "@sentry/node": "7.7.0", "algoliasearch": "4.15.0", + "antd": "^5.3.2", "chart.js": "3.8.0", "cheerio": "1.0.0-rc.12", "classnames": "2.3.2", diff --git a/plugins/plugin-site/src/components/Plugin.jsx b/plugins/plugin-site/src/components/Plugin.jsx index 3cac1ab70..e2c361f6b 100644 --- a/plugins/plugin-site/src/components/Plugin.jsx +++ b/plugins/plugin-site/src/components/Plugin.jsx @@ -1,13 +1,13 @@ import PropTypes from 'prop-types'; import React from 'react'; - import {navigate} from 'gatsby'; - import {cleanTitle} from '../commons/helper'; import Icon from '../components/Icon'; import PluginLabels from '../components/PluginLabels'; import PluginLastReleased from '../components/PluginLastReleased'; import PluginDevelopers from '../components/PluginDevelopers'; +import PluginHealthScore from '../components/PluginHealthScore'; +import { useStaticQuery, graphql } from "gatsby"; function Developers({developers}) { return ( @@ -25,6 +25,33 @@ function Developers({developers}) { Developers.propTypes = PluginDevelopers.propTypes; function Plugin({plugin: {name, title, stats, labels, excerpt, developers, buildDate, releaseTimestamp}}) { + let progress = 0; + let color = + progress > 80 ? "#87d068" : progress > 60 ? "#e5e512" : "#fe3535"; + + const graphqlData = useStaticQuery(graphql` + query { + allJenkinsPluginHealthScore { + edges { + node { + id + value + } + } + } + } + `); + + let health = graphqlData.allJenkinsPluginHealthScore.edges.find( + (edge) => edge.node.id === name + ); + + if (health) { + progress = health.node.value; + color = + progress > 80 ? "#87d068" : progress > 60 ? "#e5e512" : "#fe3535"; + } + return (
navigate(`/${name}/`)} className="Plugin--PluginContainer">
@@ -49,6 +76,9 @@ function Plugin({plugin: {name, title, stats, labels, excerpt, developers, build
+
+ +
); } diff --git a/plugins/plugin-site/src/components/PluginHealthScore.jsx b/plugins/plugin-site/src/components/PluginHealthScore.jsx new file mode 100644 index 000000000..b45834e0d --- /dev/null +++ b/plugins/plugin-site/src/components/PluginHealthScore.jsx @@ -0,0 +1,18 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { Progress } from 'antd'; + +function PluginHealthScore({healthScore,color}) { + return ( + <> +
Health Score
+ + + ); +} + +PluginHealthScore.propTypes = { + healthScore: PropTypes.number.isRequired +}; + +export default PluginHealthScore; \ No newline at end of file diff --git a/plugins/plugin-site/src/components/SearchResults.css b/plugins/plugin-site/src/components/SearchResults.css index 5e2148b68..69eb39a54 100644 --- a/plugins/plugin-site/src/components/SearchResults.css +++ b/plugins/plugin-site/src/components/SearchResults.css @@ -20,7 +20,7 @@ display: block; flex: 0 0 auto; font-size: 0.85rem; - height: 16.5rem; + height: 18.5rem; margin: 0.25rem; min-height: 6rem; opacity: 0.9; @@ -55,7 +55,7 @@ } } .Plugin--IconContainer { - bottom: 0.25rem; + bottom: 3rem; display: block; grid-area: icon; opacity: 0.75; @@ -147,7 +147,7 @@ word-wrap: break-word; } .Plugin--AuthorsContainer { - bottom: 1rem; + bottom: 3rem; grid-area: authors; max-width: 8rem; overflow: hidden; @@ -160,6 +160,15 @@ margin-right: 0.5rem; } } + +.Plugin--HealthScoreContainer{ + bottom: -0.75rem; + position: absolute; + width: 100%; + & h6{ + margin-bottom: 0px; + } +} .SearchResults--List { & .SearchResults--ItemBox { height: initial; From 3e7c52a9f88441e58786ac816147cdbf762df3f0 Mon Sep 17 00:00:00 2001 From: Harsh Date: Fri, 24 Mar 2023 02:40:16 +0530 Subject: [PATCH 02/11] fetching plugin-health-score --- .../gatsby-node.js | 2 + plugins/gatsby-source-jenkinsplugins/utils.js | 25 + yarn.lock | 906 +++++++++++++++++- 3 files changed, 930 insertions(+), 3 deletions(-) diff --git a/plugins/gatsby-source-jenkinsplugins/gatsby-node.js b/plugins/gatsby-source-jenkinsplugins/gatsby-node.js index e35efd273..c79897dd7 100644 --- a/plugins/gatsby-source-jenkinsplugins/gatsby-node.js +++ b/plugins/gatsby-source-jenkinsplugins/gatsby-node.js @@ -2,6 +2,7 @@ const { fetchSiteInfo, fetchPluginData, fetchPluginVersions, + fetchPluginHealthScore, processCategoryData, fetchLabelData, fetchStats, @@ -21,6 +22,7 @@ exports.sourceNodes = async ( processCategoryData({createNode, createNodeField, createContentDigest, createNodeId, createRemoteFileNode, reporter}), fetchLabelData({createNode, createNodeField, createContentDigest, createNodeId, createRemoteFileNode, reporter}), fetchPluginVersions({createNode, createNodeField, createContentDigest, createNodeId, createRemoteFileNode, reporter, firstReleases}), + fetchPluginHealthScore({createNode, createNodeField, createContentDigest, createNodeId, createRemoteFileNode, reporter}), ]).then(() => fetchPluginData({createNode, createNodeField, createContentDigest, createNodeId, createRemoteFileNode, reporter, firstReleases, stats})); } catch (err) { reporter.panic( diff --git a/plugins/gatsby-source-jenkinsplugins/utils.js b/plugins/gatsby-source-jenkinsplugins/utils.js index 427753792..3e55d23ad 100644 --- a/plugins/gatsby-source-jenkinsplugins/utils.js +++ b/plugins/gatsby-source-jenkinsplugins/utils.js @@ -498,12 +498,37 @@ const fetchPluginVersions = async ({createNode, reporter, firstReleases}) => { sectionActivity.end(); }; +const fetchPluginHealthScore = async ({createNode, reporter}) => { + const sectionActivity = reporter.activityTimer(`fetch plugin health score`); + sectionActivity.start(); + const url = "https://plugin-health.jenkins.io/api/scores"; + const json = await requestGET({url, reporter}); + for (const pluginName of Object.keys(json)) { + const data = json[pluginName]; + createNode({ + ...data, + id: pluginName, + parent: null, + children: [], + internal: { + type: 'JenkinsPluginHealthScore', + contentDigest: crypto + .createHash('md5') + .update(`pluginHealthScore_${pluginName}`) + .digest('hex') + } + }); + } + sectionActivity.end(); +}; + module.exports = { fetchSiteInfo, fetchLabelData, processCategoryData, fetchPluginData, fetchPluginVersions, + fetchPluginHealthScore, fixGitHubUrl, fetchStats, getPluginContent, diff --git a/yarn.lock b/yarn.lock index 56ebde0e6..7ab5fdb1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -286,6 +286,71 @@ __metadata: languageName: node linkType: hard +"@ant-design/colors@npm:^7.0.0": + version: 7.0.0 + resolution: "@ant-design/colors@npm:7.0.0" + dependencies: + "@ctrl/tinycolor": ^3.4.0 + checksum: 419e98d9cb823ff0935024f4278f7b9c5896805dce4c93d667b5a4d76b03f5fa969b32d1998ee761113da43063e2b23a94c330ad6e865f03fbbb2579907e7fdb + languageName: node + linkType: hard + +"@ant-design/cssinjs@npm:^1.5.6": + version: 1.6.2 + resolution: "@ant-design/cssinjs@npm:1.6.2" + dependencies: + "@babel/runtime": ^7.11.1 + "@emotion/hash": ^0.8.0 + "@emotion/unitless": ^0.7.5 + classnames: ^2.3.1 + csstype: ^3.0.10 + rc-util: ^5.27.0 + stylis: ^4.0.13 + peerDependencies: + react: ">=16.0.0" + react-dom: ">=16.0.0" + checksum: 391915b1ca16aeab71e897abfb87dc908efe2915dc3e9948ae38cf8eaeccb2a13378d7959d86ec65ea5f511187f0d33568d4e6cc120b793f59c5f87396c70718 + languageName: node + linkType: hard + +"@ant-design/icons-svg@npm:^4.2.1": + version: 4.2.1 + resolution: "@ant-design/icons-svg@npm:4.2.1" + checksum: c1fa1bbeb0c58209e2c5d49ce001543823ae2d8326e1c7aafb992deac7aaa901a44f9a16151ad919d2628dbe3d783b325ed2b9440436002225801332323296d4 + languageName: node + linkType: hard + +"@ant-design/icons@npm:^5.0.0": + version: 5.0.1 + resolution: "@ant-design/icons@npm:5.0.1" + dependencies: + "@ant-design/colors": ^7.0.0 + "@ant-design/icons-svg": ^4.2.1 + "@babel/runtime": ^7.11.2 + classnames: ^2.2.6 + rc-util: ^5.9.4 + peerDependencies: + react: ">=16.0.0" + react-dom: ">=16.0.0" + checksum: 426371e3a2d5d571a2df18229512ea5951ea71b97f1fa3a3a4dc2feda58498c70da7025c6e3ffcf0ae2dab0fb496d117f8962222f17d95dc58498850d9a21566 + languageName: node + linkType: hard + +"@ant-design/react-slick@npm:~1.0.0": + version: 1.0.0 + resolution: "@ant-design/react-slick@npm:1.0.0" + dependencies: + "@babel/runtime": ^7.10.4 + classnames: ^2.2.5 + json2mq: ^0.2.0 + resize-observer-polyfill: ^1.5.1 + throttle-debounce: ^5.0.0 + peerDependencies: + react: ">=16.9.0" + checksum: ec9fe42bdcbca7091c156b256b723567621540ff0ad188a672123437d452e1949a4e3f63ed9fa19067a211af5110d8cea8cadba85df9fef264f8785514bac06a + languageName: node + linkType: hard + "@ardatan/aggregate-error@npm:0.0.6": version: 0.0.6 resolution: "@ardatan/aggregate-error@npm:0.0.6" @@ -1879,6 +1944,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.10.1, @babel/runtime@npm:^7.10.4, @babel/runtime@npm:^7.11.1, @babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.20.0, @babel/runtime@npm:^7.20.7": + version: 7.21.0 + resolution: "@babel/runtime@npm:7.21.0" + dependencies: + regenerator-runtime: ^0.13.11 + checksum: 7b33e25bfa9e0e1b9e8828bb61b2d32bdd46b41b07ba7cb43319ad08efc6fda8eb89445193e67d6541814627df0ca59122c0ea795e412b99c5183a0540d338ab + languageName: node + linkType: hard + "@babel/template@npm:^7.16.7, @babel/template@npm:^7.18.6, @babel/template@npm:^7.3.3": version: 7.18.6 resolution: "@babel/template@npm:7.18.6" @@ -2079,6 +2153,27 @@ __metadata: languageName: node linkType: hard +"@ctrl/tinycolor@npm:^3.4.0, @ctrl/tinycolor@npm:^3.6.0": + version: 3.6.0 + resolution: "@ctrl/tinycolor@npm:3.6.0" + checksum: 4d1e481b4d7f9bb23d21b5436726034d37c2a1bc751b5169ef29ead0237e96443dbccbcfa887e20c3a65ba1b5e270063bb21b4034eac97561b980cbbd5e92a16 + languageName: node + linkType: hard + +"@emotion/hash@npm:^0.8.0": + version: 0.8.0 + resolution: "@emotion/hash@npm:0.8.0" + checksum: 4b35d88a97e67275c1d990c96d3b0450451d089d1508619488fc0acb882cb1ac91e93246d471346ebd1b5402215941ef4162efe5b51534859b39d8b3a0e3ffaa + languageName: node + linkType: hard + +"@emotion/unitless@npm:^0.7.5": + version: 0.7.5 + resolution: "@emotion/unitless@npm:0.7.5" + checksum: f976e5345b53fae9414a7b2e7a949aa6b52f8bdbcc84458b1ddc0729e77ba1d1dfdff9960e0da60183877873d3a631fa24d9695dd714ed94bcd3ba5196586a6b + languageName: node + linkType: hard + "@endemolshinegroup/cosmiconfig-typescript-loader@npm:3.0.2": version: 3.0.2 resolution: "@endemolshinegroup/cosmiconfig-typescript-loader@npm:3.0.2" @@ -2842,6 +2937,7 @@ __metadata: "@testing-library/react": 12.1.2 "@typescript-eslint/eslint-plugin": 5.54.1 algoliasearch: 4.15.0 + antd: ^5.3.2 axios-retry: 3.4.0 babel-jest: 28.1.3 babel-preset-gatsby: 2.18.1 @@ -4507,6 +4603,90 @@ __metadata: languageName: node linkType: hard +"@rc-component/context@npm:^1.3.0": + version: 1.3.0 + resolution: "@rc-component/context@npm:1.3.0" + dependencies: + "@babel/runtime": ^7.10.1 + rc-util: ^5.27.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 77cdd49a2dfde3b2d82ff8652581eddeceefb53c0f3f31b9ed6b09356291821d4e16e915c07a1e15a38ceb6087fb92e7c2cb8ddb26d304fafd96c8571c9136ce + languageName: node + linkType: hard + +"@rc-component/mini-decimal@npm:^1.0.1": + version: 1.0.1 + resolution: "@rc-component/mini-decimal@npm:1.0.1" + dependencies: + "@babel/runtime": ^7.18.0 + checksum: 2fd3f3d9c404f679461fa52372b71b1131ecad6b2a34d6b5be07b04475ed22428ffc7dac599a28734b349f7b1c5b714cf879e9c005a89430016c6d83899ff1e9 + languageName: node + linkType: hard + +"@rc-component/mutate-observer@npm:^1.0.0": + version: 1.0.0 + resolution: "@rc-component/mutate-observer@npm:1.0.0" + dependencies: + "@babel/runtime": ^7.18.0 + classnames: ^2.3.2 + rc-util: ^5.24.4 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: fd6d9581882cca35582e399bf5585e237748fc8240a2d76549ed003ea17fdf7ca97609cb6c8113c2836e9d3182fceda2c1469620560168eeb66fc95656f495e7 + languageName: node + linkType: hard + +"@rc-component/portal@npm:^1.0.0-6, @rc-component/portal@npm:^1.0.0-8, @rc-component/portal@npm:^1.0.0-9, @rc-component/portal@npm:^1.0.2, @rc-component/portal@npm:^1.1.0": + version: 1.1.0 + resolution: "@rc-component/portal@npm:1.1.0" + dependencies: + "@babel/runtime": ^7.18.0 + classnames: ^2.3.2 + rc-util: ^5.24.4 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 63abd3f003e871d38e15353e4eb53b1a35b2ee3f5cebe45152b5172f4671553e8ad754d071d7f59d03864f2341f0363c696eee20c0e519653d24b848a6ea1a89 + languageName: node + linkType: hard + +"@rc-component/tour@npm:~1.8.0": + version: 1.8.0 + resolution: "@rc-component/tour@npm:1.8.0" + dependencies: + "@babel/runtime": ^7.18.0 + "@rc-component/portal": ^1.0.0-9 + "@rc-component/trigger": ^1.3.6 + classnames: ^2.3.2 + rc-util: ^5.24.4 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 58fa0e23b84e581298c0d4f5e0ac3a30eddb6c101a9d3405a3189a20c787254b7f416ecff0e383ffded554ad93f8f732052623c6eaf59f5270f51bd0c4782058 + languageName: node + linkType: hard + +"@rc-component/trigger@npm:^1.0.4, @rc-component/trigger@npm:^1.3.6, @rc-component/trigger@npm:^1.4.0, @rc-component/trigger@npm:^1.5.0, @rc-component/trigger@npm:^1.5.9": + version: 1.6.1 + resolution: "@rc-component/trigger@npm:1.6.1" + dependencies: + "@babel/runtime": ^7.18.3 + "@rc-component/portal": ^1.1.0 + classnames: ^2.3.2 + rc-align: ^4.0.0 + rc-motion: ^2.0.0 + rc-resize-observer: ^1.3.1 + rc-util: ^5.29.2 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: c37f930f1099fd2e5321443e0a8b74d4e94374bef00cebf5d6499ae1d53c6c16e966a329e22728ee9b596247c8299533c85dc850a91d8004961740305105fea9 + languageName: node + linkType: hard + "@sentry/browser@npm:7.7.0": version: 7.7.0 resolution: "@sentry/browser@npm:7.7.0" @@ -6150,6 +6330,65 @@ __metadata: languageName: node linkType: hard +"antd@npm:^5.3.2": + version: 5.3.2 + resolution: "antd@npm:5.3.2" + dependencies: + "@ant-design/colors": ^7.0.0 + "@ant-design/cssinjs": ^1.5.6 + "@ant-design/icons": ^5.0.0 + "@ant-design/react-slick": ~1.0.0 + "@babel/runtime": ^7.18.3 + "@ctrl/tinycolor": ^3.6.0 + "@rc-component/mutate-observer": ^1.0.0 + "@rc-component/tour": ~1.8.0 + "@rc-component/trigger": ^1.5.9 + classnames: ^2.2.6 + copy-to-clipboard: ^3.2.0 + dayjs: ^1.11.1 + qrcode.react: ^3.1.0 + rc-cascader: ~3.9.0 + rc-checkbox: ~2.3.0 + rc-collapse: ~3.5.2 + rc-dialog: ~9.0.2 + rc-drawer: ~6.1.1 + rc-dropdown: ~4.0.0 + rc-field-form: ~1.28.0 + rc-image: ~5.15.2 + rc-input: ~0.2.1 + rc-input-number: ~7.4.0 + rc-mentions: ~2.1.0 + rc-menu: ~9.8.2 + rc-motion: ^2.6.1 + rc-notification: ~5.0.0 + rc-pagination: ~3.3.0 + rc-picker: ~3.3.1 + rc-progress: ~3.4.1 + rc-rate: ~2.10.0 + rc-resize-observer: ^1.2.0 + rc-segmented: ~2.1.2 + rc-select: ~14.3.0 + rc-slider: ~10.1.0 + rc-steps: ~6.0.0 + rc-switch: ~4.0.0 + rc-table: ~7.31.0 + rc-tabs: ~12.5.6 + rc-textarea: ~1.1.0 + rc-tooltip: ~6.0.0 + rc-tree: ~5.7.0 + rc-tree-select: ~5.7.0 + rc-trigger: ^5.3.4 + rc-upload: ~4.3.0 + rc-util: ^5.27.0 + scroll-into-view-if-needed: ^3.0.3 + throttle-debounce: ^5.0.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 9637d74a5bb2cce2abf8bdb7fb95240a7ca3818d8acd38b98af2b9db7244092c06de9cd7e94a338452a5728e3be97e2df3ae3be68c8ae7ea8b4d27e0c437bd4f + languageName: node + linkType: hard + "any-base@npm:^1.1.0": version: 1.1.0 resolution: "any-base@npm:1.1.0" @@ -6285,6 +6524,13 @@ __metadata: languageName: node linkType: hard +"array-tree-filter@npm:^2.1.0": + version: 2.1.0 + resolution: "array-tree-filter@npm:2.1.0" + checksum: ca65dbeb80777eadadfcd4dbd2658d9eb0be66e426a6b6d64f1a71dff5351f2e6f370e0cbcc418e9e6e01d06b337b128441a71c7143abe4d925d027d5aa0100f + languageName: node + linkType: hard + "array-union@npm:^2.1.0": version: 2.1.0 resolution: "array-union@npm:2.1.0" @@ -6440,6 +6686,13 @@ __metadata: languageName: node linkType: hard +"async-validator@npm:^4.1.0": + version: 4.2.5 + resolution: "async-validator@npm:4.2.5" + checksum: 3e3d891a2e21497c8a646afeb7b1e6ed5f98de5f58ce3600732080f327cb581e65d8d8ff184273f1461dc84105d49f5cf31422a67ce50e787967c306838b6f40 + languageName: node + linkType: hard + "async@npm:1.5.2": version: 1.5.2 resolution: "async@npm:1.5.2" @@ -7544,7 +7797,7 @@ __metadata: languageName: node linkType: hard -"classnames@npm:2.3.2": +"classnames@npm:2.3.2, classnames@npm:2.x, classnames@npm:^2.2.1, classnames@npm:^2.2.5, classnames@npm:^2.2.6, classnames@npm:^2.3.1, classnames@npm:^2.3.2": version: 2.3.2 resolution: "classnames@npm:2.3.2" checksum: 2c62199789618d95545c872787137262e741f9db13328e216b093eea91c85ef2bfb152c1f9e63027204e2559a006a92eb74147d46c800a9f96297ae1d9f96f4e @@ -7883,6 +8136,13 @@ __metadata: languageName: node linkType: hard +"compute-scroll-into-view@npm:^3.0.0": + version: 3.0.0 + resolution: "compute-scroll-into-view@npm:3.0.0" + checksum: 06965595510d3190bfb58705cf74bacc0b6fea8021f56a6477ad134fadcd1971d2083a714c6e3c99f545cc72614d60a9a97d774ea81a37ad302efddc849d372c + languageName: node + linkType: hard + "concat-map@npm:0.0.1": version: 0.0.1 resolution: "concat-map@npm:0.0.1" @@ -7994,7 +8254,7 @@ __metadata: languageName: node linkType: hard -"copy-to-clipboard@npm:3.3.3": +"copy-to-clipboard@npm:3.3.3, copy-to-clipboard@npm:^3.2.0": version: 3.3.3 resolution: "copy-to-clipboard@npm:3.3.3" dependencies: @@ -8473,6 +8733,13 @@ __metadata: languageName: node linkType: hard +"csstype@npm:^3.0.10": + version: 3.1.1 + resolution: "csstype@npm:3.1.1" + checksum: 1f7b4f5fdd955b7444b18ebdddf3f5c699159f13e9cf8ac9027ae4a60ae226aef9bbb14a6e12ca7dba3358b007cee6354b116e720262867c398de6c955ea451d + languageName: node + linkType: hard + "csstype@npm:^3.0.2": version: 3.1.0 resolution: "csstype@npm:3.1.0" @@ -8529,6 +8796,13 @@ __metadata: languageName: node linkType: hard +"dayjs@npm:^1.11.1": + version: 1.11.7 + resolution: "dayjs@npm:1.11.7" + checksum: 5003a7c1dd9ed51385beb658231c3548700b82d3548c0cfbe549d85f2d08e90e972510282b7506941452c58d32136d6362f009c77ca55381a09c704e9f177ebb + languageName: node + linkType: hard + "debug@npm:2, debug@npm:2.6.9, debug@npm:^2.6.0, debug@npm:^2.6.9": version: 2.6.9 resolution: "debug@npm:2.6.9" @@ -8914,6 +9188,13 @@ __metadata: languageName: node linkType: hard +"dom-align@npm:^1.7.0": + version: 1.12.4 + resolution: "dom-align@npm:1.12.4" + checksum: ff5cfdb6e9c9e03e6d67a61b4633f25845f2385f67b1bd84a28aa2cb2c6b58eea53fde347b0d2439f0ba49cd6b80a7463f98569731cb14ec2542ecdeef19d165 + languageName: node + linkType: hard + "dom-converter@npm:^0.2.0": version: 0.2.0 resolution: "dom-converter@npm:0.2.0" @@ -14393,6 +14674,15 @@ __metadata: languageName: node linkType: hard +"json2mq@npm:^0.2.0": + version: 0.2.0 + resolution: "json2mq@npm:0.2.0" + dependencies: + string-convert: ^0.2.0 + checksum: 5672c3abdd31e21a0e2f0c2688b4948103687dab949a1c5a1cba98667e899a96c2c7e3d71763c4f5e7cd7d7c379ea5dd5e1a9b2a2107dd1dfa740719a11aa272 + languageName: node + linkType: hard + "json5@npm:^1.0.1": version: 1.0.2 resolution: "json5@npm:1.0.2" @@ -18997,6 +19287,15 @@ __metadata: languageName: node linkType: hard +"qrcode.react@npm:^3.1.0": + version: 3.1.0 + resolution: "qrcode.react@npm:3.1.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 94a2942ecf83f461d869adb20305ae663c6d1abe93ef2c72442b07d756ce70cf6deb6fd588dc5b382b48c6991cfde1dfd5ac9b814c1461e71d5edb2d945e67fc + languageName: node + linkType: hard + "qs@npm:6.10.3": version: 6.10.3 resolution: "qs@npm:6.10.3" @@ -19106,6 +19405,563 @@ __metadata: languageName: node linkType: hard +"rc-align@npm:^4.0.0": + version: 4.0.15 + resolution: "rc-align@npm:4.0.15" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: 2.x + dom-align: ^1.7.0 + rc-util: ^5.26.0 + resize-observer-polyfill: ^1.5.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: dfb7d3bfaa8d4b9ead4dbd8d84d4033fbd7a3f2232e7797ab1f86545c043cbe3952575fcfa63361045e2d1fa3a07c54545e442d60b08e753f4d581dcd5da186e + languageName: node + linkType: hard + +"rc-cascader@npm:~3.9.0": + version: 3.9.1 + resolution: "rc-cascader@npm:3.9.1" + dependencies: + "@babel/runtime": ^7.12.5 + array-tree-filter: ^2.1.0 + classnames: ^2.3.1 + rc-select: ~14.3.0 + rc-tree: ~5.7.0 + rc-util: ^5.6.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 0b968e1d14b23792996617d48196cd2bfecfee6571ad0153f9d6dc003d1294ae571ed8ec7d82b915b651b405297bb01bb34ed643d4f3962b697ec5d8a2b87b92 + languageName: node + linkType: hard + +"rc-checkbox@npm:~2.3.0": + version: 2.3.2 + resolution: "rc-checkbox@npm:2.3.2" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: ^2.2.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 023e479d2f95ab64e963f8437da4da2f8b0d750c10d601fd3407ef4f1ac0f8fcba1148b305f9a51dee052770f927ff00440bbcce09f6b0b585e38ba2c49a7ac6 + languageName: node + linkType: hard + +"rc-collapse@npm:~3.5.2": + version: 3.5.2 + resolution: "rc-collapse@npm:3.5.2" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: 2.x + rc-motion: ^2.3.4 + rc-util: ^5.27.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 38a47d96c09520f11ab324a390f0be6c8e73bb169f8c636c71f88a8d66a70a1a1a12fbc7c754c2ffc973b0bec90d223dfaf637ef474da0a4c9c63fa05d8cc71d + languageName: node + linkType: hard + +"rc-dialog@npm:~9.0.0, rc-dialog@npm:~9.0.2": + version: 9.0.2 + resolution: "rc-dialog@npm:9.0.2" + dependencies: + "@babel/runtime": ^7.10.1 + "@rc-component/portal": ^1.0.0-8 + classnames: ^2.2.6 + rc-motion: ^2.3.0 + rc-util: ^5.21.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 470953c33123c984d7c18685435f08fb7cc4111fdbd01f032a8b111e1b0c06b2a9edcc26bc6895e1a426529e8c2842d6f79441f6bfceaa9c1c273e6b56f0f16d + languageName: node + linkType: hard + +"rc-drawer@npm:~6.1.1": + version: 6.1.4 + resolution: "rc-drawer@npm:6.1.4" + dependencies: + "@babel/runtime": ^7.10.1 + "@rc-component/portal": ^1.0.0-6 + classnames: ^2.2.6 + rc-motion: ^2.6.1 + rc-util: ^5.21.2 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 402c73c1f366a433c92f65bd8f621fc59ed45fb368ab49ed48efd45ca2e376244c83f70a21fb890512aac79814d863267d0e04738365fc7afe1c5fb3b09c77d7 + languageName: node + linkType: hard + +"rc-dropdown@npm:~4.0.0": + version: 4.0.1 + resolution: "rc-dropdown@npm:4.0.1" + dependencies: + "@babel/runtime": ^7.18.3 + classnames: ^2.2.6 + rc-trigger: ^5.3.1 + rc-util: ^5.17.0 + peerDependencies: + react: ">=16.11.0" + react-dom: ">=16.11.0" + checksum: 12d16fc49dbab3f548ba1674b12cf688f58bcb73932285354a506b2f443aa58dc09cad3e07edb5d8de8e659c91b985022eef0734f233b76261af1b17a61ce619 + languageName: node + linkType: hard + +"rc-field-form@npm:~1.28.0": + version: 1.28.0 + resolution: "rc-field-form@npm:1.28.0" + dependencies: + "@babel/runtime": ^7.18.0 + async-validator: ^4.1.0 + rc-util: ^5.8.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: fe50d1d5169efd5059364004460abcb98afc5b3bac147bbb31851f2a6635a979c4828100f395eaeb36769d99c9407e6780b201e9a578d492f291acae5d715d5d + languageName: node + linkType: hard + +"rc-image@npm:~5.15.2": + version: 5.15.2 + resolution: "rc-image@npm:5.15.2" + dependencies: + "@babel/runtime": ^7.11.2 + "@rc-component/portal": ^1.0.2 + classnames: ^2.2.6 + rc-dialog: ~9.0.0 + rc-motion: ^2.6.2 + rc-util: ^5.0.6 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 8c8e49da5920be2cf984b18562b83c147e17543c21cf7138cbba110c8bf7554841317edb33a2a36a0145a1168dfffcf14a320c0ba80bc8efec4c4dc4dd6a86ae + languageName: node + linkType: hard + +"rc-input-number@npm:~7.4.0": + version: 7.4.2 + resolution: "rc-input-number@npm:7.4.2" + dependencies: + "@babel/runtime": ^7.10.1 + "@rc-component/mini-decimal": ^1.0.1 + classnames: ^2.2.5 + rc-util: ^5.28.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 36a2b03902f96ec56b66588294b61cf48656e9004dad4ee92ae577d3c329400a2b5bf1f9f8830812b3ca860cf2971fdf340dbf587993740db3c97146c6446662 + languageName: node + linkType: hard + +"rc-input@npm:^0.2.1, rc-input@npm:^0.2.2, rc-input@npm:~0.2.1": + version: 0.2.2 + resolution: "rc-input@npm:0.2.2" + dependencies: + "@babel/runtime": ^7.11.1 + classnames: ^2.2.1 + rc-util: ^5.18.1 + peerDependencies: + react: ">=16.0.0" + react-dom: ">=16.0.0" + checksum: a1d26a88146f40df70f759688187433c0a43d32ac33abfe9ee598c9290a2a41a41538deb0fdc87de45438bdfb4fbb9b15c4039b61f937d336379d5b67a61bcc2 + languageName: node + linkType: hard + +"rc-mentions@npm:~2.1.0": + version: 2.1.0 + resolution: "rc-mentions@npm:2.1.0" + dependencies: + "@babel/runtime": ^7.10.1 + "@rc-component/trigger": ^1.5.0 + classnames: ^2.2.6 + rc-input: ^0.2.2 + rc-menu: ~9.8.0 + rc-textarea: ^1.0.0 + rc-util: ^5.22.5 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 5e8b99b0dfa771a77b66bec4a6433c60682d9d52c05df65fc07c5c878613722ae24c6994ad38cff13ad8603c2b5239e40ec60191b7c39ffa3295067646d6c0f7 + languageName: node + linkType: hard + +"rc-menu@npm:~9.8.0, rc-menu@npm:~9.8.2": + version: 9.8.2 + resolution: "rc-menu@npm:9.8.2" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: 2.x + rc-motion: ^2.4.3 + rc-overflow: ^1.2.8 + rc-trigger: ^5.1.2 + rc-util: ^5.27.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: cd8513fe329802e627785133784954e2745afde7cd4507dfcd7cdde933b087f93d9acb478b3e02a5cc30228ef7611002a269c9a64bfa5228b74eba63d3d37a05 + languageName: node + linkType: hard + +"rc-motion@npm:^2.0.0, rc-motion@npm:^2.0.1, rc-motion@npm:^2.3.0, rc-motion@npm:^2.3.4, rc-motion@npm:^2.4.3, rc-motion@npm:^2.4.4, rc-motion@npm:^2.6.0, rc-motion@npm:^2.6.1, rc-motion@npm:^2.6.2": + version: 2.6.3 + resolution: "rc-motion@npm:2.6.3" + dependencies: + "@babel/runtime": ^7.11.1 + classnames: ^2.2.1 + rc-util: ^5.21.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 5148728572d70d827785d5dc72c8e4e387964193e72ae3fc3bb28ce44194e2ee64aaed1cd1697038c09fb9b1acc38c9ea98731818c6821acb2a5af1e03a9cf73 + languageName: node + linkType: hard + +"rc-notification@npm:~5.0.0": + version: 5.0.3 + resolution: "rc-notification@npm:5.0.3" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: 2.x + rc-motion: ^2.6.0 + rc-util: ^5.20.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: f226bd05d2f4ca1beba51fc1b7b6ffdf3cdf76ad1036a52e351f066acd521fb20693fea533a9f3773cfa7e0e403a70286dd96ce0eec65d6171e2669e1fd291ad + languageName: node + linkType: hard + +"rc-overflow@npm:^1.0.0, rc-overflow@npm:^1.2.8": + version: 1.3.0 + resolution: "rc-overflow@npm:1.3.0" + dependencies: + "@babel/runtime": ^7.11.1 + classnames: ^2.2.1 + rc-resize-observer: ^1.0.0 + rc-util: ^5.19.2 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: f8ead9712a9384923727eccd8dfa3e394a987788e2722a97264ed47e1784e62664e7898b250f8f5b467f01aab6438dec145b4108437141ffbb9186f5cf58320f + languageName: node + linkType: hard + +"rc-pagination@npm:~3.3.0": + version: 3.3.1 + resolution: "rc-pagination@npm:3.3.1" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: ^2.2.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 0294cf1a79c054c3eda2f65cdbfdc9322aa2f025200048fe71e85948ff034b3fd7c4fd657ca9980bf5c420e3f7297c4afa79bc337f5056c94f09d89fb4f90bef + languageName: node + linkType: hard + +"rc-picker@npm:~3.3.1": + version: 3.3.4 + resolution: "rc-picker@npm:3.3.4" + dependencies: + "@babel/runtime": ^7.10.1 + "@rc-component/trigger": ^1.5.0 + classnames: ^2.2.1 + rc-util: ^5.27.0 + peerDependencies: + date-fns: ">= 2.x" + dayjs: ">= 1.x" + moment: ">= 2.x" + react: ">=16.9.0" + react-dom: ">=16.9.0" + peerDependenciesMeta: + date-fns: + optional: true + dayjs: + optional: true + moment: + optional: true + checksum: d32aebb049ef83cab0c8494fc99223037054ba60c3d25dbbb6f1e0a5ebf7a4f519fd7e3cfeaffa213cce8e9abaf3f6b52f0d3d6a5fd80b96f688e4641f4f9737 + languageName: node + linkType: hard + +"rc-progress@npm:~3.4.1": + version: 3.4.1 + resolution: "rc-progress@npm:3.4.1" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: ^2.2.6 + rc-util: ^5.16.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: d4dce5231ea29bfa866935a59f05473711f9dfc944f95cc78b0fdcd1508a063983cc58973f54c2b20797f0b0f480c4a2b84aaa2ca185158c14800ec659163880 + languageName: node + linkType: hard + +"rc-rate@npm:~2.10.0": + version: 2.10.0 + resolution: "rc-rate@npm:2.10.0" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: ^2.2.5 + rc-util: ^5.0.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: ccc6e683a5297e71c4779358bc21f3908e08deac9f3a6e40b0ce3e3ad8bd430caecb9647258d6f8ba1fac063058b64d34c78b94815de7f104b727c23da5628b5 + languageName: node + linkType: hard + +"rc-resize-observer@npm:^1.0.0, rc-resize-observer@npm:^1.1.0, rc-resize-observer@npm:^1.2.0, rc-resize-observer@npm:^1.3.1": + version: 1.3.1 + resolution: "rc-resize-observer@npm:1.3.1" + dependencies: + "@babel/runtime": ^7.20.7 + classnames: ^2.2.1 + rc-util: ^5.27.0 + resize-observer-polyfill: ^1.5.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: cc952e5d3071543e990103ea64b20310e3a09c950a473bf89a3a7e6063bd060c6c041f0333085640676d176c7edd58676a3b3d64dfa17461ea6f3a62f79c4d65 + languageName: node + linkType: hard + +"rc-segmented@npm:~2.1.2": + version: 2.1.2 + resolution: "rc-segmented@npm:2.1.2" + dependencies: + "@babel/runtime": ^7.11.1 + classnames: ^2.2.1 + rc-motion: ^2.4.4 + rc-util: ^5.17.0 + peerDependencies: + react: ">=16.0.0" + react-dom: ">=16.0.0" + checksum: 9ebba682e70b480cacea79985b6c3fcd024d564a3105a9d48c6a0481a87002f8382987195014ce00e37d455e84dbd0def05d24e3671a52bd89aeeec43c82a91a + languageName: node + linkType: hard + +"rc-select@npm:~14.3.0": + version: 14.3.0 + resolution: "rc-select@npm:14.3.0" + dependencies: + "@babel/runtime": ^7.10.1 + "@rc-component/trigger": ^1.4.0 + classnames: 2.x + rc-motion: ^2.0.1 + rc-overflow: ^1.0.0 + rc-util: ^5.16.1 + rc-virtual-list: ^3.4.13 + peerDependencies: + react: "*" + react-dom: "*" + checksum: ab7dd030de7c4bbfeefafdd81b47f7c3c5510dc7ae2ab797dd3882a32ec9fcecdfa852a178bbeccffdcaf35414e187456187d7677794fb68ce009b0d53c8c018 + languageName: node + linkType: hard + +"rc-slider@npm:~10.1.0": + version: 10.1.1 + resolution: "rc-slider@npm:10.1.1" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: ^2.2.5 + rc-util: ^5.27.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 8df66142f1be00d31aaa45f3cf266fa30d03b70c74c734502389bbfacdb6741e149cd36dc1d3557d9dbb0194ed2733748366d888651d1120098338086419ba2c + languageName: node + linkType: hard + +"rc-steps@npm:~6.0.0": + version: 6.0.0 + resolution: "rc-steps@npm:6.0.0" + dependencies: + "@babel/runtime": ^7.16.7 + classnames: ^2.2.3 + rc-util: ^5.16.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 22cec1477fdd7c92e480d980c88ba8175e897e4dcd06c6c11fcdb8175ebede19b9367d8d62d1ee21ec5dfd9d8ab7724c3665582a51dde86c36ecdc810550bb1b + languageName: node + linkType: hard + +"rc-switch@npm:~4.0.0": + version: 4.0.0 + resolution: "rc-switch@npm:4.0.0" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: ^2.2.1 + rc-util: ^5.0.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 9a77ccdc76c956876e911173fdaf10f1c7ea3b713632a3919e4dcf4faff1626c0f782772eaf2c74a1ed81f6adadc6df9c5febdd5de872eea62db2d6fff7d6956 + languageName: node + linkType: hard + +"rc-table@npm:~7.31.0": + version: 7.31.1 + resolution: "rc-table@npm:7.31.1" + dependencies: + "@babel/runtime": ^7.10.1 + "@rc-component/context": ^1.3.0 + classnames: ^2.2.5 + rc-resize-observer: ^1.1.0 + rc-util: ^5.27.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 2739a8f7f9602af1a9345960b5041ed50b28a1fa0012516018fee72a45bad45c94d95d3623be54d7ba3d0aca4ae00d64139a9d255786eece572bed08425d42ad + languageName: node + linkType: hard + +"rc-tabs@npm:~12.5.6": + version: 12.5.10 + resolution: "rc-tabs@npm:12.5.10" + dependencies: + "@babel/runtime": ^7.11.2 + classnames: 2.x + rc-dropdown: ~4.0.0 + rc-menu: ~9.8.0 + rc-motion: ^2.6.2 + rc-resize-observer: ^1.0.0 + rc-util: ^5.16.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 0b26b61ce96f525c2d4c74b89561997176b8673c842d28f542cbc056cc26ee16953ea34d9a591b599872717a342ffbdded4e6115d95bcfe1ec594048fe669d31 + languageName: node + linkType: hard + +"rc-textarea@npm:^1.0.0, rc-textarea@npm:~1.1.0": + version: 1.1.0 + resolution: "rc-textarea@npm:1.1.0" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: ^2.2.1 + rc-input: ^0.2.1 + rc-resize-observer: ^1.0.0 + rc-util: ^5.27.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 9cccfd66c9f3506f7b4a98a46b31bd639af218e4a7d88fd1bd0566f883b970b06deb6ca8adc908b97f6714836c73fa2ab36770f874d6b9444ba9dd850c434d2f + languageName: node + linkType: hard + +"rc-tooltip@npm:~6.0.0": + version: 6.0.1 + resolution: "rc-tooltip@npm:6.0.1" + dependencies: + "@babel/runtime": ^7.11.2 + "@rc-component/trigger": ^1.0.4 + classnames: ^2.3.1 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: fe7f617a4f4e0085d8f5eb5e8da5598f0164841c841f62f77966706ae604491246441a469aeb44f1dec7001bb4716ee81d11ec646e8889f4164fcba3a024eea5 + languageName: node + linkType: hard + +"rc-tree-select@npm:~5.7.0": + version: 5.7.0 + resolution: "rc-tree-select@npm:5.7.0" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: 2.x + rc-select: ~14.3.0 + rc-tree: ~5.7.0 + rc-util: ^5.16.1 + peerDependencies: + react: "*" + react-dom: "*" + checksum: 30ea1c6b826b6860e7e1062fe5e64b53f22ac86fa883cccb31b0ed73b2f5cb4fdf0b23188ea51b0c223d0d3819a9aca5cd013be4a4b520b3e8a5af10ab457e70 + languageName: node + linkType: hard + +"rc-tree@npm:~5.7.0": + version: 5.7.3 + resolution: "rc-tree@npm:5.7.3" + dependencies: + "@babel/runtime": ^7.10.1 + classnames: 2.x + rc-motion: ^2.0.1 + rc-util: ^5.16.1 + rc-virtual-list: ^3.4.8 + peerDependencies: + react: "*" + react-dom: "*" + checksum: 201e166248b9dcf4b083729e3a3676d730f98b96d396655f7fdf9a458d447e640bf52f7a033c8e2ca90c6a72bcb591310930c8071ec1698b0069d9f503e44c4f + languageName: node + linkType: hard + +"rc-trigger@npm:^5.1.2, rc-trigger@npm:^5.3.1, rc-trigger@npm:^5.3.4": + version: 5.3.4 + resolution: "rc-trigger@npm:5.3.4" + dependencies: + "@babel/runtime": ^7.18.3 + classnames: ^2.2.6 + rc-align: ^4.0.0 + rc-motion: ^2.0.0 + rc-util: ^5.19.2 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 6ca7694a4cf064040b5e0fd9b4629b0e0a19ebb29c4eb5614ee9eb22b4193e21909171fd95e48be73a94e44f249cb9616d7670b696164620b722d3de6f280017 + languageName: node + linkType: hard + +"rc-upload@npm:~4.3.0": + version: 4.3.4 + resolution: "rc-upload@npm:4.3.4" + dependencies: + "@babel/runtime": ^7.18.3 + classnames: ^2.2.5 + rc-util: ^5.2.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 59ddf31a58ce716d1ace506b1c3e36744895c24c683a17185517dab68dfbb1cf158f57ce14a8f0899e85b2924bfa0d82587771939225ea21a41b907f91779afa + languageName: node + linkType: hard + +"rc-util@npm:^5.0.1, rc-util@npm:^5.0.6, rc-util@npm:^5.15.0, rc-util@npm:^5.16.0, rc-util@npm:^5.16.1, rc-util@npm:^5.17.0, rc-util@npm:^5.18.1, rc-util@npm:^5.19.2, rc-util@npm:^5.2.0, rc-util@npm:^5.20.1, rc-util@npm:^5.21.0, rc-util@npm:^5.21.2, rc-util@npm:^5.22.5, rc-util@npm:^5.24.4, rc-util@npm:^5.26.0, rc-util@npm:^5.27.0, rc-util@npm:^5.27.1, rc-util@npm:^5.28.0, rc-util@npm:^5.29.2, rc-util@npm:^5.6.1, rc-util@npm:^5.8.0, rc-util@npm:^5.9.4": + version: 5.29.2 + resolution: "rc-util@npm:5.29.2" + dependencies: + "@babel/runtime": ^7.18.3 + react-is: ^16.12.0 + peerDependencies: + react: ">=16.9.0" + react-dom: ">=16.9.0" + checksum: 68c6bcf2bd2d34ff0d3b6f8a8007e309c498a9714b19d9b84fdf523bd2f6838ab392326381ed4c9854f632cc5cc74157bfbf487829a7a01c954bca18b603947d + languageName: node + linkType: hard + +"rc-virtual-list@npm:^3.4.13, rc-virtual-list@npm:^3.4.8": + version: 3.4.13 + resolution: "rc-virtual-list@npm:3.4.13" + dependencies: + "@babel/runtime": ^7.20.0 + classnames: ^2.2.6 + rc-resize-observer: ^1.0.0 + rc-util: ^5.15.0 + peerDependencies: + react: "*" + react-dom: "*" + checksum: 590baca20aa209bdc7038c4cdbedef78100e8f8762966b8ae556d0c7154ce8a4f26737a5bd59580ee1ed446c79a8eb627e3fb003e1ee0de38f1bb9a7b3cd7e78 + languageName: node + linkType: hard + "rc@npm:1.2.8, rc@npm:^1.2.7, rc@npm:^1.2.8": version: 1.2.8 resolution: "rc@npm:1.2.8" @@ -19210,7 +20066,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.13.1": +"react-is@npm:^16.12.0, react-is@npm:^16.13.1": version: 16.13.1 resolution: "react-is@npm:16.13.1" checksum: f7a19ac3496de32ca9ae12aa030f00f14a3d45374f1ceca0af707c831b2a6098ef0d6bdae51bd437b0a306d7f01d4677fcc8de7c0d331eb47ad0f46130e53c5f @@ -19483,6 +20339,13 @@ __metadata: languageName: node linkType: hard +"regenerator-runtime@npm:^0.13.11": + version: 0.13.11 + resolution: "regenerator-runtime@npm:0.13.11" + checksum: 27481628d22a1c4e3ff551096a683b424242a216fee44685467307f14d58020af1e19660bf2e26064de946bad7eff28950eae9f8209d55723e2d9351e632bbb4 + languageName: node + linkType: hard + "regenerator-runtime@npm:^0.13.3, regenerator-runtime@npm:^0.13.4, regenerator-runtime@npm:^0.13.7": version: 0.13.9 resolution: "regenerator-runtime@npm:0.13.9" @@ -19798,6 +20661,13 @@ __metadata: languageName: node linkType: hard +"resize-observer-polyfill@npm:^1.5.1": + version: 1.5.1 + resolution: "resize-observer-polyfill@npm:1.5.1" + checksum: 57e7f79489867b00ba43c9c051524a5c8f162a61d5547e99333549afc23e15c44fd43f2f318ea0261ea98c0eb3158cca261e6f48d66e1ed1cd1f340a43977094 + languageName: node + linkType: hard + "resolve-alpn@npm:^1.0.0": version: 1.2.1 resolution: "resolve-alpn@npm:1.2.1" @@ -20108,6 +20978,15 @@ __metadata: languageName: node linkType: hard +"scroll-into-view-if-needed@npm:^3.0.3": + version: 3.0.6 + resolution: "scroll-into-view-if-needed@npm:3.0.6" + dependencies: + compute-scroll-into-view: ^3.0.0 + checksum: fb3a62748f44bc14ee5f6986e6c3fd1a571811ff14e894f5ff1045247cfd9bf94ebd2038319971a8657bdd4c70a165e523ec1a0b90f74ded175a77035ff2d109 + languageName: node + linkType: hard + "semver-diff@npm:^3.1.1": version: 3.1.1 resolution: "semver-diff@npm:3.1.1" @@ -20754,6 +21633,13 @@ __metadata: languageName: node linkType: hard +"string-convert@npm:^0.2.0": + version: 0.2.1 + resolution: "string-convert@npm:0.2.1" + checksum: 1098b1d8e3712c72d0a0b0b7f5c36c98af93e7660b5f0f14019e41bcefe55bfa79214d5e03e74d98a7334a0b9bf2b7f4c6889c8c24801aa2ae2f9ebe1d8a1ef9 + languageName: node + linkType: hard + "string-env-interpolation@npm:1.0.1": version: 1.0.1 resolution: "string-env-interpolation@npm:1.0.1" @@ -21210,6 +22096,13 @@ __metadata: languageName: node linkType: hard +"stylis@npm:^4.0.13": + version: 4.1.3 + resolution: "stylis@npm:4.1.3" + checksum: d04dbffcb9bf2c5ca8d8dc09534203c75df3bf711d33973ea22038a99cc475412a350b661ebd99cbc01daa50d7eedcf0d130d121800eb7318759a197023442a6 + languageName: node + linkType: hard + "subscriptions-transport-ws@npm:^0.9.18": version: 0.9.19 resolution: "subscriptions-transport-ws@npm:0.9.19" @@ -21475,6 +22368,13 @@ __metadata: languageName: node linkType: hard +"throttle-debounce@npm:^5.0.0": + version: 5.0.0 + resolution: "throttle-debounce@npm:5.0.0" + checksum: aa8bf25828b4f8645ce863589de05d6807ea3debc147ce7d89624638ff8a16792d6d0baa0f8a32a260f0b163444d74020c6087b713ae561fde594b97b6e51f28 + languageName: node + linkType: hard + "through@npm:^2.3.6, through@npm:^2.3.8": version: 2.3.8 resolution: "through@npm:2.3.8" From 60cde49e252063080cfc73bee4b6203a7a919add Mon Sep 17 00:00:00 2001 From: Harsh Date: Fri, 24 Mar 2023 05:29:22 +0530 Subject: [PATCH 03/11] [Fixed] lint error --- plugins/gatsby-source-jenkinsplugins/utils.js | 4 ++-- plugins/plugin-site/src/components/Plugin.jsx | 10 +++++----- .../src/components/PluginHealthScore.jsx | 13 +++++++------ 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/plugins/gatsby-source-jenkinsplugins/utils.js b/plugins/gatsby-source-jenkinsplugins/utils.js index 3e55d23ad..10d9bdcf7 100644 --- a/plugins/gatsby-source-jenkinsplugins/utils.js +++ b/plugins/gatsby-source-jenkinsplugins/utils.js @@ -499,9 +499,9 @@ const fetchPluginVersions = async ({createNode, reporter, firstReleases}) => { }; const fetchPluginHealthScore = async ({createNode, reporter}) => { - const sectionActivity = reporter.activityTimer(`fetch plugin health score`); + const sectionActivity = reporter.activityTimer('fetch plugin health score'); sectionActivity.start(); - const url = "https://plugin-health.jenkins.io/api/scores"; + const url = 'https://plugin-health.jenkins.io/api/scores'; const json = await requestGET({url, reporter}); for (const pluginName of Object.keys(json)) { const data = json[pluginName]; diff --git a/plugins/plugin-site/src/components/Plugin.jsx b/plugins/plugin-site/src/components/Plugin.jsx index e2c361f6b..4114a638f 100644 --- a/plugins/plugin-site/src/components/Plugin.jsx +++ b/plugins/plugin-site/src/components/Plugin.jsx @@ -1,13 +1,13 @@ import PropTypes from 'prop-types'; import React from 'react'; -import {navigate} from 'gatsby'; +import {navigate, useStaticQuery, graphql} from 'gatsby'; import {cleanTitle} from '../commons/helper'; import Icon from '../components/Icon'; import PluginLabels from '../components/PluginLabels'; import PluginLastReleased from '../components/PluginLastReleased'; import PluginDevelopers from '../components/PluginDevelopers'; import PluginHealthScore from '../components/PluginHealthScore'; -import { useStaticQuery, graphql } from "gatsby"; + function Developers({developers}) { return ( @@ -27,7 +27,7 @@ Developers.propTypes = PluginDevelopers.propTypes; function Plugin({plugin: {name, title, stats, labels, excerpt, developers, buildDate, releaseTimestamp}}) { let progress = 0; let color = - progress > 80 ? "#87d068" : progress > 60 ? "#e5e512" : "#fe3535"; + progress > 80 ? '#87d068' : progress > 60 ? '#e5e512' : '#fe3535'; const graphqlData = useStaticQuery(graphql` query { @@ -42,14 +42,14 @@ function Plugin({plugin: {name, title, stats, labels, excerpt, developers, build } `); - let health = graphqlData.allJenkinsPluginHealthScore.edges.find( + const health = graphqlData.allJenkinsPluginHealthScore.edges.find( (edge) => edge.node.id === name ); if (health) { progress = health.node.value; color = - progress > 80 ? "#87d068" : progress > 60 ? "#e5e512" : "#fe3535"; + progress > 80 ? '#87d068' : progress > 60 ? '#e5e512' : '#fe3535'; } return ( diff --git a/plugins/plugin-site/src/components/PluginHealthScore.jsx b/plugins/plugin-site/src/components/PluginHealthScore.jsx index b45834e0d..227e07406 100644 --- a/plugins/plugin-site/src/components/PluginHealthScore.jsx +++ b/plugins/plugin-site/src/components/PluginHealthScore.jsx @@ -1,18 +1,19 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { Progress } from 'antd'; +import {Progress} from 'antd'; -function PluginHealthScore({healthScore,color}) { +function PluginHealthScore({healthScore, color}) { return ( <> -
Health Score
- +
Health Score
+ ); } PluginHealthScore.propTypes = { - healthScore: PropTypes.number.isRequired + healthScore: PropTypes.number.isRequired, + color: PropTypes.string.isRequired, }; -export default PluginHealthScore; \ No newline at end of file +export default PluginHealthScore; From b423bbbe3be13243ba58cf7bb6ebeefba05e37e9 Mon Sep 17 00:00:00 2001 From: Harsh Date: Fri, 24 Mar 2023 06:31:44 +0530 Subject: [PATCH 04/11] removed extra dependency and used reactstrap progress bar --- plugins/plugin-site/package.json | 1 - plugins/plugin-site/src/components/Plugin.jsx | 4 +- .../src/components/PluginHealthScore.jsx | 12 +- .../src/components/SearchResults.css | 11 +- yarn.lock | 906 +----------------- 5 files changed, 22 insertions(+), 912 deletions(-) diff --git a/plugins/plugin-site/package.json b/plugins/plugin-site/package.json index 5cf13a829..0489eceb6 100644 --- a/plugins/plugin-site/package.json +++ b/plugins/plugin-site/package.json @@ -69,7 +69,6 @@ "@sentry/browser": "7.7.0", "@sentry/node": "7.7.0", "algoliasearch": "4.15.0", - "antd": "^5.3.2", "chart.js": "3.8.0", "cheerio": "1.0.0-rc.12", "classnames": "2.3.2", diff --git a/plugins/plugin-site/src/components/Plugin.jsx b/plugins/plugin-site/src/components/Plugin.jsx index 4114a638f..e74518cd5 100644 --- a/plugins/plugin-site/src/components/Plugin.jsx +++ b/plugins/plugin-site/src/components/Plugin.jsx @@ -27,7 +27,7 @@ Developers.propTypes = PluginDevelopers.propTypes; function Plugin({plugin: {name, title, stats, labels, excerpt, developers, buildDate, releaseTimestamp}}) { let progress = 0; let color = - progress > 80 ? '#87d068' : progress > 60 ? '#e5e512' : '#fe3535'; + progress > 80 ? 'success' : progress > 60 ? 'warning' : 'danger'; const graphqlData = useStaticQuery(graphql` query { @@ -49,7 +49,7 @@ function Plugin({plugin: {name, title, stats, labels, excerpt, developers, build if (health) { progress = health.node.value; color = - progress > 80 ? '#87d068' : progress > 60 ? '#e5e512' : '#fe3535'; + progress > 80 ? 'success' : progress > 60 ? 'warning' : 'danger'; } return ( diff --git a/plugins/plugin-site/src/components/PluginHealthScore.jsx b/plugins/plugin-site/src/components/PluginHealthScore.jsx index 227e07406..152ad747d 100644 --- a/plugins/plugin-site/src/components/PluginHealthScore.jsx +++ b/plugins/plugin-site/src/components/PluginHealthScore.jsx @@ -1,12 +1,18 @@ import React from 'react'; import PropTypes from 'prop-types'; -import {Progress} from 'antd'; +import {Progress} from 'reactstrap'; function PluginHealthScore({healthScore, color}) { return ( <> -
Health Score
- +
+ Health Score + + {healthScore} + /100 + +
+ ); } diff --git a/plugins/plugin-site/src/components/SearchResults.css b/plugins/plugin-site/src/components/SearchResults.css index 69eb39a54..aa1ba0e68 100644 --- a/plugins/plugin-site/src/components/SearchResults.css +++ b/plugins/plugin-site/src/components/SearchResults.css @@ -162,12 +162,17 @@ } .Plugin--HealthScoreContainer{ - bottom: -0.75rem; + bottom: 0rem; position: absolute; width: 100%; - & h6{ - margin-bottom: 0px; + & div{ + display: flex; + justify-content: space-between; + font-size: 1rem; + font-weight: bold; + row-gap: 0.5rem; } + } .SearchResults--List { & .SearchResults--ItemBox { diff --git a/yarn.lock b/yarn.lock index 7ab5fdb1f..56ebde0e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -286,71 +286,6 @@ __metadata: languageName: node linkType: hard -"@ant-design/colors@npm:^7.0.0": - version: 7.0.0 - resolution: "@ant-design/colors@npm:7.0.0" - dependencies: - "@ctrl/tinycolor": ^3.4.0 - checksum: 419e98d9cb823ff0935024f4278f7b9c5896805dce4c93d667b5a4d76b03f5fa969b32d1998ee761113da43063e2b23a94c330ad6e865f03fbbb2579907e7fdb - languageName: node - linkType: hard - -"@ant-design/cssinjs@npm:^1.5.6": - version: 1.6.2 - resolution: "@ant-design/cssinjs@npm:1.6.2" - dependencies: - "@babel/runtime": ^7.11.1 - "@emotion/hash": ^0.8.0 - "@emotion/unitless": ^0.7.5 - classnames: ^2.3.1 - csstype: ^3.0.10 - rc-util: ^5.27.0 - stylis: ^4.0.13 - peerDependencies: - react: ">=16.0.0" - react-dom: ">=16.0.0" - checksum: 391915b1ca16aeab71e897abfb87dc908efe2915dc3e9948ae38cf8eaeccb2a13378d7959d86ec65ea5f511187f0d33568d4e6cc120b793f59c5f87396c70718 - languageName: node - linkType: hard - -"@ant-design/icons-svg@npm:^4.2.1": - version: 4.2.1 - resolution: "@ant-design/icons-svg@npm:4.2.1" - checksum: c1fa1bbeb0c58209e2c5d49ce001543823ae2d8326e1c7aafb992deac7aaa901a44f9a16151ad919d2628dbe3d783b325ed2b9440436002225801332323296d4 - languageName: node - linkType: hard - -"@ant-design/icons@npm:^5.0.0": - version: 5.0.1 - resolution: "@ant-design/icons@npm:5.0.1" - dependencies: - "@ant-design/colors": ^7.0.0 - "@ant-design/icons-svg": ^4.2.1 - "@babel/runtime": ^7.11.2 - classnames: ^2.2.6 - rc-util: ^5.9.4 - peerDependencies: - react: ">=16.0.0" - react-dom: ">=16.0.0" - checksum: 426371e3a2d5d571a2df18229512ea5951ea71b97f1fa3a3a4dc2feda58498c70da7025c6e3ffcf0ae2dab0fb496d117f8962222f17d95dc58498850d9a21566 - languageName: node - linkType: hard - -"@ant-design/react-slick@npm:~1.0.0": - version: 1.0.0 - resolution: "@ant-design/react-slick@npm:1.0.0" - dependencies: - "@babel/runtime": ^7.10.4 - classnames: ^2.2.5 - json2mq: ^0.2.0 - resize-observer-polyfill: ^1.5.1 - throttle-debounce: ^5.0.0 - peerDependencies: - react: ">=16.9.0" - checksum: ec9fe42bdcbca7091c156b256b723567621540ff0ad188a672123437d452e1949a4e3f63ed9fa19067a211af5110d8cea8cadba85df9fef264f8785514bac06a - languageName: node - linkType: hard - "@ardatan/aggregate-error@npm:0.0.6": version: 0.0.6 resolution: "@ardatan/aggregate-error@npm:0.0.6" @@ -1944,15 +1879,6 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.10.1, @babel/runtime@npm:^7.10.4, @babel/runtime@npm:^7.11.1, @babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.20.0, @babel/runtime@npm:^7.20.7": - version: 7.21.0 - resolution: "@babel/runtime@npm:7.21.0" - dependencies: - regenerator-runtime: ^0.13.11 - checksum: 7b33e25bfa9e0e1b9e8828bb61b2d32bdd46b41b07ba7cb43319ad08efc6fda8eb89445193e67d6541814627df0ca59122c0ea795e412b99c5183a0540d338ab - languageName: node - linkType: hard - "@babel/template@npm:^7.16.7, @babel/template@npm:^7.18.6, @babel/template@npm:^7.3.3": version: 7.18.6 resolution: "@babel/template@npm:7.18.6" @@ -2153,27 +2079,6 @@ __metadata: languageName: node linkType: hard -"@ctrl/tinycolor@npm:^3.4.0, @ctrl/tinycolor@npm:^3.6.0": - version: 3.6.0 - resolution: "@ctrl/tinycolor@npm:3.6.0" - checksum: 4d1e481b4d7f9bb23d21b5436726034d37c2a1bc751b5169ef29ead0237e96443dbccbcfa887e20c3a65ba1b5e270063bb21b4034eac97561b980cbbd5e92a16 - languageName: node - linkType: hard - -"@emotion/hash@npm:^0.8.0": - version: 0.8.0 - resolution: "@emotion/hash@npm:0.8.0" - checksum: 4b35d88a97e67275c1d990c96d3b0450451d089d1508619488fc0acb882cb1ac91e93246d471346ebd1b5402215941ef4162efe5b51534859b39d8b3a0e3ffaa - languageName: node - linkType: hard - -"@emotion/unitless@npm:^0.7.5": - version: 0.7.5 - resolution: "@emotion/unitless@npm:0.7.5" - checksum: f976e5345b53fae9414a7b2e7a949aa6b52f8bdbcc84458b1ddc0729e77ba1d1dfdff9960e0da60183877873d3a631fa24d9695dd714ed94bcd3ba5196586a6b - languageName: node - linkType: hard - "@endemolshinegroup/cosmiconfig-typescript-loader@npm:3.0.2": version: 3.0.2 resolution: "@endemolshinegroup/cosmiconfig-typescript-loader@npm:3.0.2" @@ -2937,7 +2842,6 @@ __metadata: "@testing-library/react": 12.1.2 "@typescript-eslint/eslint-plugin": 5.54.1 algoliasearch: 4.15.0 - antd: ^5.3.2 axios-retry: 3.4.0 babel-jest: 28.1.3 babel-preset-gatsby: 2.18.1 @@ -4603,90 +4507,6 @@ __metadata: languageName: node linkType: hard -"@rc-component/context@npm:^1.3.0": - version: 1.3.0 - resolution: "@rc-component/context@npm:1.3.0" - dependencies: - "@babel/runtime": ^7.10.1 - rc-util: ^5.27.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 77cdd49a2dfde3b2d82ff8652581eddeceefb53c0f3f31b9ed6b09356291821d4e16e915c07a1e15a38ceb6087fb92e7c2cb8ddb26d304fafd96c8571c9136ce - languageName: node - linkType: hard - -"@rc-component/mini-decimal@npm:^1.0.1": - version: 1.0.1 - resolution: "@rc-component/mini-decimal@npm:1.0.1" - dependencies: - "@babel/runtime": ^7.18.0 - checksum: 2fd3f3d9c404f679461fa52372b71b1131ecad6b2a34d6b5be07b04475ed22428ffc7dac599a28734b349f7b1c5b714cf879e9c005a89430016c6d83899ff1e9 - languageName: node - linkType: hard - -"@rc-component/mutate-observer@npm:^1.0.0": - version: 1.0.0 - resolution: "@rc-component/mutate-observer@npm:1.0.0" - dependencies: - "@babel/runtime": ^7.18.0 - classnames: ^2.3.2 - rc-util: ^5.24.4 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: fd6d9581882cca35582e399bf5585e237748fc8240a2d76549ed003ea17fdf7ca97609cb6c8113c2836e9d3182fceda2c1469620560168eeb66fc95656f495e7 - languageName: node - linkType: hard - -"@rc-component/portal@npm:^1.0.0-6, @rc-component/portal@npm:^1.0.0-8, @rc-component/portal@npm:^1.0.0-9, @rc-component/portal@npm:^1.0.2, @rc-component/portal@npm:^1.1.0": - version: 1.1.0 - resolution: "@rc-component/portal@npm:1.1.0" - dependencies: - "@babel/runtime": ^7.18.0 - classnames: ^2.3.2 - rc-util: ^5.24.4 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 63abd3f003e871d38e15353e4eb53b1a35b2ee3f5cebe45152b5172f4671553e8ad754d071d7f59d03864f2341f0363c696eee20c0e519653d24b848a6ea1a89 - languageName: node - linkType: hard - -"@rc-component/tour@npm:~1.8.0": - version: 1.8.0 - resolution: "@rc-component/tour@npm:1.8.0" - dependencies: - "@babel/runtime": ^7.18.0 - "@rc-component/portal": ^1.0.0-9 - "@rc-component/trigger": ^1.3.6 - classnames: ^2.3.2 - rc-util: ^5.24.4 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 58fa0e23b84e581298c0d4f5e0ac3a30eddb6c101a9d3405a3189a20c787254b7f416ecff0e383ffded554ad93f8f732052623c6eaf59f5270f51bd0c4782058 - languageName: node - linkType: hard - -"@rc-component/trigger@npm:^1.0.4, @rc-component/trigger@npm:^1.3.6, @rc-component/trigger@npm:^1.4.0, @rc-component/trigger@npm:^1.5.0, @rc-component/trigger@npm:^1.5.9": - version: 1.6.1 - resolution: "@rc-component/trigger@npm:1.6.1" - dependencies: - "@babel/runtime": ^7.18.3 - "@rc-component/portal": ^1.1.0 - classnames: ^2.3.2 - rc-align: ^4.0.0 - rc-motion: ^2.0.0 - rc-resize-observer: ^1.3.1 - rc-util: ^5.29.2 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: c37f930f1099fd2e5321443e0a8b74d4e94374bef00cebf5d6499ae1d53c6c16e966a329e22728ee9b596247c8299533c85dc850a91d8004961740305105fea9 - languageName: node - linkType: hard - "@sentry/browser@npm:7.7.0": version: 7.7.0 resolution: "@sentry/browser@npm:7.7.0" @@ -6330,65 +6150,6 @@ __metadata: languageName: node linkType: hard -"antd@npm:^5.3.2": - version: 5.3.2 - resolution: "antd@npm:5.3.2" - dependencies: - "@ant-design/colors": ^7.0.0 - "@ant-design/cssinjs": ^1.5.6 - "@ant-design/icons": ^5.0.0 - "@ant-design/react-slick": ~1.0.0 - "@babel/runtime": ^7.18.3 - "@ctrl/tinycolor": ^3.6.0 - "@rc-component/mutate-observer": ^1.0.0 - "@rc-component/tour": ~1.8.0 - "@rc-component/trigger": ^1.5.9 - classnames: ^2.2.6 - copy-to-clipboard: ^3.2.0 - dayjs: ^1.11.1 - qrcode.react: ^3.1.0 - rc-cascader: ~3.9.0 - rc-checkbox: ~2.3.0 - rc-collapse: ~3.5.2 - rc-dialog: ~9.0.2 - rc-drawer: ~6.1.1 - rc-dropdown: ~4.0.0 - rc-field-form: ~1.28.0 - rc-image: ~5.15.2 - rc-input: ~0.2.1 - rc-input-number: ~7.4.0 - rc-mentions: ~2.1.0 - rc-menu: ~9.8.2 - rc-motion: ^2.6.1 - rc-notification: ~5.0.0 - rc-pagination: ~3.3.0 - rc-picker: ~3.3.1 - rc-progress: ~3.4.1 - rc-rate: ~2.10.0 - rc-resize-observer: ^1.2.0 - rc-segmented: ~2.1.2 - rc-select: ~14.3.0 - rc-slider: ~10.1.0 - rc-steps: ~6.0.0 - rc-switch: ~4.0.0 - rc-table: ~7.31.0 - rc-tabs: ~12.5.6 - rc-textarea: ~1.1.0 - rc-tooltip: ~6.0.0 - rc-tree: ~5.7.0 - rc-tree-select: ~5.7.0 - rc-trigger: ^5.3.4 - rc-upload: ~4.3.0 - rc-util: ^5.27.0 - scroll-into-view-if-needed: ^3.0.3 - throttle-debounce: ^5.0.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 9637d74a5bb2cce2abf8bdb7fb95240a7ca3818d8acd38b98af2b9db7244092c06de9cd7e94a338452a5728e3be97e2df3ae3be68c8ae7ea8b4d27e0c437bd4f - languageName: node - linkType: hard - "any-base@npm:^1.1.0": version: 1.1.0 resolution: "any-base@npm:1.1.0" @@ -6524,13 +6285,6 @@ __metadata: languageName: node linkType: hard -"array-tree-filter@npm:^2.1.0": - version: 2.1.0 - resolution: "array-tree-filter@npm:2.1.0" - checksum: ca65dbeb80777eadadfcd4dbd2658d9eb0be66e426a6b6d64f1a71dff5351f2e6f370e0cbcc418e9e6e01d06b337b128441a71c7143abe4d925d027d5aa0100f - languageName: node - linkType: hard - "array-union@npm:^2.1.0": version: 2.1.0 resolution: "array-union@npm:2.1.0" @@ -6686,13 +6440,6 @@ __metadata: languageName: node linkType: hard -"async-validator@npm:^4.1.0": - version: 4.2.5 - resolution: "async-validator@npm:4.2.5" - checksum: 3e3d891a2e21497c8a646afeb7b1e6ed5f98de5f58ce3600732080f327cb581e65d8d8ff184273f1461dc84105d49f5cf31422a67ce50e787967c306838b6f40 - languageName: node - linkType: hard - "async@npm:1.5.2": version: 1.5.2 resolution: "async@npm:1.5.2" @@ -7797,7 +7544,7 @@ __metadata: languageName: node linkType: hard -"classnames@npm:2.3.2, classnames@npm:2.x, classnames@npm:^2.2.1, classnames@npm:^2.2.5, classnames@npm:^2.2.6, classnames@npm:^2.3.1, classnames@npm:^2.3.2": +"classnames@npm:2.3.2": version: 2.3.2 resolution: "classnames@npm:2.3.2" checksum: 2c62199789618d95545c872787137262e741f9db13328e216b093eea91c85ef2bfb152c1f9e63027204e2559a006a92eb74147d46c800a9f96297ae1d9f96f4e @@ -8136,13 +7883,6 @@ __metadata: languageName: node linkType: hard -"compute-scroll-into-view@npm:^3.0.0": - version: 3.0.0 - resolution: "compute-scroll-into-view@npm:3.0.0" - checksum: 06965595510d3190bfb58705cf74bacc0b6fea8021f56a6477ad134fadcd1971d2083a714c6e3c99f545cc72614d60a9a97d774ea81a37ad302efddc849d372c - languageName: node - linkType: hard - "concat-map@npm:0.0.1": version: 0.0.1 resolution: "concat-map@npm:0.0.1" @@ -8254,7 +7994,7 @@ __metadata: languageName: node linkType: hard -"copy-to-clipboard@npm:3.3.3, copy-to-clipboard@npm:^3.2.0": +"copy-to-clipboard@npm:3.3.3": version: 3.3.3 resolution: "copy-to-clipboard@npm:3.3.3" dependencies: @@ -8733,13 +8473,6 @@ __metadata: languageName: node linkType: hard -"csstype@npm:^3.0.10": - version: 3.1.1 - resolution: "csstype@npm:3.1.1" - checksum: 1f7b4f5fdd955b7444b18ebdddf3f5c699159f13e9cf8ac9027ae4a60ae226aef9bbb14a6e12ca7dba3358b007cee6354b116e720262867c398de6c955ea451d - languageName: node - linkType: hard - "csstype@npm:^3.0.2": version: 3.1.0 resolution: "csstype@npm:3.1.0" @@ -8796,13 +8529,6 @@ __metadata: languageName: node linkType: hard -"dayjs@npm:^1.11.1": - version: 1.11.7 - resolution: "dayjs@npm:1.11.7" - checksum: 5003a7c1dd9ed51385beb658231c3548700b82d3548c0cfbe549d85f2d08e90e972510282b7506941452c58d32136d6362f009c77ca55381a09c704e9f177ebb - languageName: node - linkType: hard - "debug@npm:2, debug@npm:2.6.9, debug@npm:^2.6.0, debug@npm:^2.6.9": version: 2.6.9 resolution: "debug@npm:2.6.9" @@ -9188,13 +8914,6 @@ __metadata: languageName: node linkType: hard -"dom-align@npm:^1.7.0": - version: 1.12.4 - resolution: "dom-align@npm:1.12.4" - checksum: ff5cfdb6e9c9e03e6d67a61b4633f25845f2385f67b1bd84a28aa2cb2c6b58eea53fde347b0d2439f0ba49cd6b80a7463f98569731cb14ec2542ecdeef19d165 - languageName: node - linkType: hard - "dom-converter@npm:^0.2.0": version: 0.2.0 resolution: "dom-converter@npm:0.2.0" @@ -14674,15 +14393,6 @@ __metadata: languageName: node linkType: hard -"json2mq@npm:^0.2.0": - version: 0.2.0 - resolution: "json2mq@npm:0.2.0" - dependencies: - string-convert: ^0.2.0 - checksum: 5672c3abdd31e21a0e2f0c2688b4948103687dab949a1c5a1cba98667e899a96c2c7e3d71763c4f5e7cd7d7c379ea5dd5e1a9b2a2107dd1dfa740719a11aa272 - languageName: node - linkType: hard - "json5@npm:^1.0.1": version: 1.0.2 resolution: "json5@npm:1.0.2" @@ -19287,15 +18997,6 @@ __metadata: languageName: node linkType: hard -"qrcode.react@npm:^3.1.0": - version: 3.1.0 - resolution: "qrcode.react@npm:3.1.0" - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 94a2942ecf83f461d869adb20305ae663c6d1abe93ef2c72442b07d756ce70cf6deb6fd588dc5b382b48c6991cfde1dfd5ac9b814c1461e71d5edb2d945e67fc - languageName: node - linkType: hard - "qs@npm:6.10.3": version: 6.10.3 resolution: "qs@npm:6.10.3" @@ -19405,563 +19106,6 @@ __metadata: languageName: node linkType: hard -"rc-align@npm:^4.0.0": - version: 4.0.15 - resolution: "rc-align@npm:4.0.15" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: 2.x - dom-align: ^1.7.0 - rc-util: ^5.26.0 - resize-observer-polyfill: ^1.5.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: dfb7d3bfaa8d4b9ead4dbd8d84d4033fbd7a3f2232e7797ab1f86545c043cbe3952575fcfa63361045e2d1fa3a07c54545e442d60b08e753f4d581dcd5da186e - languageName: node - linkType: hard - -"rc-cascader@npm:~3.9.0": - version: 3.9.1 - resolution: "rc-cascader@npm:3.9.1" - dependencies: - "@babel/runtime": ^7.12.5 - array-tree-filter: ^2.1.0 - classnames: ^2.3.1 - rc-select: ~14.3.0 - rc-tree: ~5.7.0 - rc-util: ^5.6.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 0b968e1d14b23792996617d48196cd2bfecfee6571ad0153f9d6dc003d1294ae571ed8ec7d82b915b651b405297bb01bb34ed643d4f3962b697ec5d8a2b87b92 - languageName: node - linkType: hard - -"rc-checkbox@npm:~2.3.0": - version: 2.3.2 - resolution: "rc-checkbox@npm:2.3.2" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: ^2.2.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 023e479d2f95ab64e963f8437da4da2f8b0d750c10d601fd3407ef4f1ac0f8fcba1148b305f9a51dee052770f927ff00440bbcce09f6b0b585e38ba2c49a7ac6 - languageName: node - linkType: hard - -"rc-collapse@npm:~3.5.2": - version: 3.5.2 - resolution: "rc-collapse@npm:3.5.2" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: 2.x - rc-motion: ^2.3.4 - rc-util: ^5.27.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 38a47d96c09520f11ab324a390f0be6c8e73bb169f8c636c71f88a8d66a70a1a1a12fbc7c754c2ffc973b0bec90d223dfaf637ef474da0a4c9c63fa05d8cc71d - languageName: node - linkType: hard - -"rc-dialog@npm:~9.0.0, rc-dialog@npm:~9.0.2": - version: 9.0.2 - resolution: "rc-dialog@npm:9.0.2" - dependencies: - "@babel/runtime": ^7.10.1 - "@rc-component/portal": ^1.0.0-8 - classnames: ^2.2.6 - rc-motion: ^2.3.0 - rc-util: ^5.21.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 470953c33123c984d7c18685435f08fb7cc4111fdbd01f032a8b111e1b0c06b2a9edcc26bc6895e1a426529e8c2842d6f79441f6bfceaa9c1c273e6b56f0f16d - languageName: node - linkType: hard - -"rc-drawer@npm:~6.1.1": - version: 6.1.4 - resolution: "rc-drawer@npm:6.1.4" - dependencies: - "@babel/runtime": ^7.10.1 - "@rc-component/portal": ^1.0.0-6 - classnames: ^2.2.6 - rc-motion: ^2.6.1 - rc-util: ^5.21.2 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 402c73c1f366a433c92f65bd8f621fc59ed45fb368ab49ed48efd45ca2e376244c83f70a21fb890512aac79814d863267d0e04738365fc7afe1c5fb3b09c77d7 - languageName: node - linkType: hard - -"rc-dropdown@npm:~4.0.0": - version: 4.0.1 - resolution: "rc-dropdown@npm:4.0.1" - dependencies: - "@babel/runtime": ^7.18.3 - classnames: ^2.2.6 - rc-trigger: ^5.3.1 - rc-util: ^5.17.0 - peerDependencies: - react: ">=16.11.0" - react-dom: ">=16.11.0" - checksum: 12d16fc49dbab3f548ba1674b12cf688f58bcb73932285354a506b2f443aa58dc09cad3e07edb5d8de8e659c91b985022eef0734f233b76261af1b17a61ce619 - languageName: node - linkType: hard - -"rc-field-form@npm:~1.28.0": - version: 1.28.0 - resolution: "rc-field-form@npm:1.28.0" - dependencies: - "@babel/runtime": ^7.18.0 - async-validator: ^4.1.0 - rc-util: ^5.8.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: fe50d1d5169efd5059364004460abcb98afc5b3bac147bbb31851f2a6635a979c4828100f395eaeb36769d99c9407e6780b201e9a578d492f291acae5d715d5d - languageName: node - linkType: hard - -"rc-image@npm:~5.15.2": - version: 5.15.2 - resolution: "rc-image@npm:5.15.2" - dependencies: - "@babel/runtime": ^7.11.2 - "@rc-component/portal": ^1.0.2 - classnames: ^2.2.6 - rc-dialog: ~9.0.0 - rc-motion: ^2.6.2 - rc-util: ^5.0.6 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 8c8e49da5920be2cf984b18562b83c147e17543c21cf7138cbba110c8bf7554841317edb33a2a36a0145a1168dfffcf14a320c0ba80bc8efec4c4dc4dd6a86ae - languageName: node - linkType: hard - -"rc-input-number@npm:~7.4.0": - version: 7.4.2 - resolution: "rc-input-number@npm:7.4.2" - dependencies: - "@babel/runtime": ^7.10.1 - "@rc-component/mini-decimal": ^1.0.1 - classnames: ^2.2.5 - rc-util: ^5.28.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 36a2b03902f96ec56b66588294b61cf48656e9004dad4ee92ae577d3c329400a2b5bf1f9f8830812b3ca860cf2971fdf340dbf587993740db3c97146c6446662 - languageName: node - linkType: hard - -"rc-input@npm:^0.2.1, rc-input@npm:^0.2.2, rc-input@npm:~0.2.1": - version: 0.2.2 - resolution: "rc-input@npm:0.2.2" - dependencies: - "@babel/runtime": ^7.11.1 - classnames: ^2.2.1 - rc-util: ^5.18.1 - peerDependencies: - react: ">=16.0.0" - react-dom: ">=16.0.0" - checksum: a1d26a88146f40df70f759688187433c0a43d32ac33abfe9ee598c9290a2a41a41538deb0fdc87de45438bdfb4fbb9b15c4039b61f937d336379d5b67a61bcc2 - languageName: node - linkType: hard - -"rc-mentions@npm:~2.1.0": - version: 2.1.0 - resolution: "rc-mentions@npm:2.1.0" - dependencies: - "@babel/runtime": ^7.10.1 - "@rc-component/trigger": ^1.5.0 - classnames: ^2.2.6 - rc-input: ^0.2.2 - rc-menu: ~9.8.0 - rc-textarea: ^1.0.0 - rc-util: ^5.22.5 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 5e8b99b0dfa771a77b66bec4a6433c60682d9d52c05df65fc07c5c878613722ae24c6994ad38cff13ad8603c2b5239e40ec60191b7c39ffa3295067646d6c0f7 - languageName: node - linkType: hard - -"rc-menu@npm:~9.8.0, rc-menu@npm:~9.8.2": - version: 9.8.2 - resolution: "rc-menu@npm:9.8.2" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: 2.x - rc-motion: ^2.4.3 - rc-overflow: ^1.2.8 - rc-trigger: ^5.1.2 - rc-util: ^5.27.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: cd8513fe329802e627785133784954e2745afde7cd4507dfcd7cdde933b087f93d9acb478b3e02a5cc30228ef7611002a269c9a64bfa5228b74eba63d3d37a05 - languageName: node - linkType: hard - -"rc-motion@npm:^2.0.0, rc-motion@npm:^2.0.1, rc-motion@npm:^2.3.0, rc-motion@npm:^2.3.4, rc-motion@npm:^2.4.3, rc-motion@npm:^2.4.4, rc-motion@npm:^2.6.0, rc-motion@npm:^2.6.1, rc-motion@npm:^2.6.2": - version: 2.6.3 - resolution: "rc-motion@npm:2.6.3" - dependencies: - "@babel/runtime": ^7.11.1 - classnames: ^2.2.1 - rc-util: ^5.21.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 5148728572d70d827785d5dc72c8e4e387964193e72ae3fc3bb28ce44194e2ee64aaed1cd1697038c09fb9b1acc38c9ea98731818c6821acb2a5af1e03a9cf73 - languageName: node - linkType: hard - -"rc-notification@npm:~5.0.0": - version: 5.0.3 - resolution: "rc-notification@npm:5.0.3" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: 2.x - rc-motion: ^2.6.0 - rc-util: ^5.20.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: f226bd05d2f4ca1beba51fc1b7b6ffdf3cdf76ad1036a52e351f066acd521fb20693fea533a9f3773cfa7e0e403a70286dd96ce0eec65d6171e2669e1fd291ad - languageName: node - linkType: hard - -"rc-overflow@npm:^1.0.0, rc-overflow@npm:^1.2.8": - version: 1.3.0 - resolution: "rc-overflow@npm:1.3.0" - dependencies: - "@babel/runtime": ^7.11.1 - classnames: ^2.2.1 - rc-resize-observer: ^1.0.0 - rc-util: ^5.19.2 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: f8ead9712a9384923727eccd8dfa3e394a987788e2722a97264ed47e1784e62664e7898b250f8f5b467f01aab6438dec145b4108437141ffbb9186f5cf58320f - languageName: node - linkType: hard - -"rc-pagination@npm:~3.3.0": - version: 3.3.1 - resolution: "rc-pagination@npm:3.3.1" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: ^2.2.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 0294cf1a79c054c3eda2f65cdbfdc9322aa2f025200048fe71e85948ff034b3fd7c4fd657ca9980bf5c420e3f7297c4afa79bc337f5056c94f09d89fb4f90bef - languageName: node - linkType: hard - -"rc-picker@npm:~3.3.1": - version: 3.3.4 - resolution: "rc-picker@npm:3.3.4" - dependencies: - "@babel/runtime": ^7.10.1 - "@rc-component/trigger": ^1.5.0 - classnames: ^2.2.1 - rc-util: ^5.27.0 - peerDependencies: - date-fns: ">= 2.x" - dayjs: ">= 1.x" - moment: ">= 2.x" - react: ">=16.9.0" - react-dom: ">=16.9.0" - peerDependenciesMeta: - date-fns: - optional: true - dayjs: - optional: true - moment: - optional: true - checksum: d32aebb049ef83cab0c8494fc99223037054ba60c3d25dbbb6f1e0a5ebf7a4f519fd7e3cfeaffa213cce8e9abaf3f6b52f0d3d6a5fd80b96f688e4641f4f9737 - languageName: node - linkType: hard - -"rc-progress@npm:~3.4.1": - version: 3.4.1 - resolution: "rc-progress@npm:3.4.1" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: ^2.2.6 - rc-util: ^5.16.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: d4dce5231ea29bfa866935a59f05473711f9dfc944f95cc78b0fdcd1508a063983cc58973f54c2b20797f0b0f480c4a2b84aaa2ca185158c14800ec659163880 - languageName: node - linkType: hard - -"rc-rate@npm:~2.10.0": - version: 2.10.0 - resolution: "rc-rate@npm:2.10.0" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: ^2.2.5 - rc-util: ^5.0.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: ccc6e683a5297e71c4779358bc21f3908e08deac9f3a6e40b0ce3e3ad8bd430caecb9647258d6f8ba1fac063058b64d34c78b94815de7f104b727c23da5628b5 - languageName: node - linkType: hard - -"rc-resize-observer@npm:^1.0.0, rc-resize-observer@npm:^1.1.0, rc-resize-observer@npm:^1.2.0, rc-resize-observer@npm:^1.3.1": - version: 1.3.1 - resolution: "rc-resize-observer@npm:1.3.1" - dependencies: - "@babel/runtime": ^7.20.7 - classnames: ^2.2.1 - rc-util: ^5.27.0 - resize-observer-polyfill: ^1.5.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: cc952e5d3071543e990103ea64b20310e3a09c950a473bf89a3a7e6063bd060c6c041f0333085640676d176c7edd58676a3b3d64dfa17461ea6f3a62f79c4d65 - languageName: node - linkType: hard - -"rc-segmented@npm:~2.1.2": - version: 2.1.2 - resolution: "rc-segmented@npm:2.1.2" - dependencies: - "@babel/runtime": ^7.11.1 - classnames: ^2.2.1 - rc-motion: ^2.4.4 - rc-util: ^5.17.0 - peerDependencies: - react: ">=16.0.0" - react-dom: ">=16.0.0" - checksum: 9ebba682e70b480cacea79985b6c3fcd024d564a3105a9d48c6a0481a87002f8382987195014ce00e37d455e84dbd0def05d24e3671a52bd89aeeec43c82a91a - languageName: node - linkType: hard - -"rc-select@npm:~14.3.0": - version: 14.3.0 - resolution: "rc-select@npm:14.3.0" - dependencies: - "@babel/runtime": ^7.10.1 - "@rc-component/trigger": ^1.4.0 - classnames: 2.x - rc-motion: ^2.0.1 - rc-overflow: ^1.0.0 - rc-util: ^5.16.1 - rc-virtual-list: ^3.4.13 - peerDependencies: - react: "*" - react-dom: "*" - checksum: ab7dd030de7c4bbfeefafdd81b47f7c3c5510dc7ae2ab797dd3882a32ec9fcecdfa852a178bbeccffdcaf35414e187456187d7677794fb68ce009b0d53c8c018 - languageName: node - linkType: hard - -"rc-slider@npm:~10.1.0": - version: 10.1.1 - resolution: "rc-slider@npm:10.1.1" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: ^2.2.5 - rc-util: ^5.27.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 8df66142f1be00d31aaa45f3cf266fa30d03b70c74c734502389bbfacdb6741e149cd36dc1d3557d9dbb0194ed2733748366d888651d1120098338086419ba2c - languageName: node - linkType: hard - -"rc-steps@npm:~6.0.0": - version: 6.0.0 - resolution: "rc-steps@npm:6.0.0" - dependencies: - "@babel/runtime": ^7.16.7 - classnames: ^2.2.3 - rc-util: ^5.16.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 22cec1477fdd7c92e480d980c88ba8175e897e4dcd06c6c11fcdb8175ebede19b9367d8d62d1ee21ec5dfd9d8ab7724c3665582a51dde86c36ecdc810550bb1b - languageName: node - linkType: hard - -"rc-switch@npm:~4.0.0": - version: 4.0.0 - resolution: "rc-switch@npm:4.0.0" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: ^2.2.1 - rc-util: ^5.0.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 9a77ccdc76c956876e911173fdaf10f1c7ea3b713632a3919e4dcf4faff1626c0f782772eaf2c74a1ed81f6adadc6df9c5febdd5de872eea62db2d6fff7d6956 - languageName: node - linkType: hard - -"rc-table@npm:~7.31.0": - version: 7.31.1 - resolution: "rc-table@npm:7.31.1" - dependencies: - "@babel/runtime": ^7.10.1 - "@rc-component/context": ^1.3.0 - classnames: ^2.2.5 - rc-resize-observer: ^1.1.0 - rc-util: ^5.27.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 2739a8f7f9602af1a9345960b5041ed50b28a1fa0012516018fee72a45bad45c94d95d3623be54d7ba3d0aca4ae00d64139a9d255786eece572bed08425d42ad - languageName: node - linkType: hard - -"rc-tabs@npm:~12.5.6": - version: 12.5.10 - resolution: "rc-tabs@npm:12.5.10" - dependencies: - "@babel/runtime": ^7.11.2 - classnames: 2.x - rc-dropdown: ~4.0.0 - rc-menu: ~9.8.0 - rc-motion: ^2.6.2 - rc-resize-observer: ^1.0.0 - rc-util: ^5.16.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 0b26b61ce96f525c2d4c74b89561997176b8673c842d28f542cbc056cc26ee16953ea34d9a591b599872717a342ffbdded4e6115d95bcfe1ec594048fe669d31 - languageName: node - linkType: hard - -"rc-textarea@npm:^1.0.0, rc-textarea@npm:~1.1.0": - version: 1.1.0 - resolution: "rc-textarea@npm:1.1.0" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: ^2.2.1 - rc-input: ^0.2.1 - rc-resize-observer: ^1.0.0 - rc-util: ^5.27.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 9cccfd66c9f3506f7b4a98a46b31bd639af218e4a7d88fd1bd0566f883b970b06deb6ca8adc908b97f6714836c73fa2ab36770f874d6b9444ba9dd850c434d2f - languageName: node - linkType: hard - -"rc-tooltip@npm:~6.0.0": - version: 6.0.1 - resolution: "rc-tooltip@npm:6.0.1" - dependencies: - "@babel/runtime": ^7.11.2 - "@rc-component/trigger": ^1.0.4 - classnames: ^2.3.1 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: fe7f617a4f4e0085d8f5eb5e8da5598f0164841c841f62f77966706ae604491246441a469aeb44f1dec7001bb4716ee81d11ec646e8889f4164fcba3a024eea5 - languageName: node - linkType: hard - -"rc-tree-select@npm:~5.7.0": - version: 5.7.0 - resolution: "rc-tree-select@npm:5.7.0" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: 2.x - rc-select: ~14.3.0 - rc-tree: ~5.7.0 - rc-util: ^5.16.1 - peerDependencies: - react: "*" - react-dom: "*" - checksum: 30ea1c6b826b6860e7e1062fe5e64b53f22ac86fa883cccb31b0ed73b2f5cb4fdf0b23188ea51b0c223d0d3819a9aca5cd013be4a4b520b3e8a5af10ab457e70 - languageName: node - linkType: hard - -"rc-tree@npm:~5.7.0": - version: 5.7.3 - resolution: "rc-tree@npm:5.7.3" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: 2.x - rc-motion: ^2.0.1 - rc-util: ^5.16.1 - rc-virtual-list: ^3.4.8 - peerDependencies: - react: "*" - react-dom: "*" - checksum: 201e166248b9dcf4b083729e3a3676d730f98b96d396655f7fdf9a458d447e640bf52f7a033c8e2ca90c6a72bcb591310930c8071ec1698b0069d9f503e44c4f - languageName: node - linkType: hard - -"rc-trigger@npm:^5.1.2, rc-trigger@npm:^5.3.1, rc-trigger@npm:^5.3.4": - version: 5.3.4 - resolution: "rc-trigger@npm:5.3.4" - dependencies: - "@babel/runtime": ^7.18.3 - classnames: ^2.2.6 - rc-align: ^4.0.0 - rc-motion: ^2.0.0 - rc-util: ^5.19.2 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 6ca7694a4cf064040b5e0fd9b4629b0e0a19ebb29c4eb5614ee9eb22b4193e21909171fd95e48be73a94e44f249cb9616d7670b696164620b722d3de6f280017 - languageName: node - linkType: hard - -"rc-upload@npm:~4.3.0": - version: 4.3.4 - resolution: "rc-upload@npm:4.3.4" - dependencies: - "@babel/runtime": ^7.18.3 - classnames: ^2.2.5 - rc-util: ^5.2.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 59ddf31a58ce716d1ace506b1c3e36744895c24c683a17185517dab68dfbb1cf158f57ce14a8f0899e85b2924bfa0d82587771939225ea21a41b907f91779afa - languageName: node - linkType: hard - -"rc-util@npm:^5.0.1, rc-util@npm:^5.0.6, rc-util@npm:^5.15.0, rc-util@npm:^5.16.0, rc-util@npm:^5.16.1, rc-util@npm:^5.17.0, rc-util@npm:^5.18.1, rc-util@npm:^5.19.2, rc-util@npm:^5.2.0, rc-util@npm:^5.20.1, rc-util@npm:^5.21.0, rc-util@npm:^5.21.2, rc-util@npm:^5.22.5, rc-util@npm:^5.24.4, rc-util@npm:^5.26.0, rc-util@npm:^5.27.0, rc-util@npm:^5.27.1, rc-util@npm:^5.28.0, rc-util@npm:^5.29.2, rc-util@npm:^5.6.1, rc-util@npm:^5.8.0, rc-util@npm:^5.9.4": - version: 5.29.2 - resolution: "rc-util@npm:5.29.2" - dependencies: - "@babel/runtime": ^7.18.3 - react-is: ^16.12.0 - peerDependencies: - react: ">=16.9.0" - react-dom: ">=16.9.0" - checksum: 68c6bcf2bd2d34ff0d3b6f8a8007e309c498a9714b19d9b84fdf523bd2f6838ab392326381ed4c9854f632cc5cc74157bfbf487829a7a01c954bca18b603947d - languageName: node - linkType: hard - -"rc-virtual-list@npm:^3.4.13, rc-virtual-list@npm:^3.4.8": - version: 3.4.13 - resolution: "rc-virtual-list@npm:3.4.13" - dependencies: - "@babel/runtime": ^7.20.0 - classnames: ^2.2.6 - rc-resize-observer: ^1.0.0 - rc-util: ^5.15.0 - peerDependencies: - react: "*" - react-dom: "*" - checksum: 590baca20aa209bdc7038c4cdbedef78100e8f8762966b8ae556d0c7154ce8a4f26737a5bd59580ee1ed446c79a8eb627e3fb003e1ee0de38f1bb9a7b3cd7e78 - languageName: node - linkType: hard - "rc@npm:1.2.8, rc@npm:^1.2.7, rc@npm:^1.2.8": version: 1.2.8 resolution: "rc@npm:1.2.8" @@ -20066,7 +19210,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.12.0, react-is@npm:^16.13.1": +"react-is@npm:^16.13.1": version: 16.13.1 resolution: "react-is@npm:16.13.1" checksum: f7a19ac3496de32ca9ae12aa030f00f14a3d45374f1ceca0af707c831b2a6098ef0d6bdae51bd437b0a306d7f01d4677fcc8de7c0d331eb47ad0f46130e53c5f @@ -20339,13 +19483,6 @@ __metadata: languageName: node linkType: hard -"regenerator-runtime@npm:^0.13.11": - version: 0.13.11 - resolution: "regenerator-runtime@npm:0.13.11" - checksum: 27481628d22a1c4e3ff551096a683b424242a216fee44685467307f14d58020af1e19660bf2e26064de946bad7eff28950eae9f8209d55723e2d9351e632bbb4 - languageName: node - linkType: hard - "regenerator-runtime@npm:^0.13.3, regenerator-runtime@npm:^0.13.4, regenerator-runtime@npm:^0.13.7": version: 0.13.9 resolution: "regenerator-runtime@npm:0.13.9" @@ -20661,13 +19798,6 @@ __metadata: languageName: node linkType: hard -"resize-observer-polyfill@npm:^1.5.1": - version: 1.5.1 - resolution: "resize-observer-polyfill@npm:1.5.1" - checksum: 57e7f79489867b00ba43c9c051524a5c8f162a61d5547e99333549afc23e15c44fd43f2f318ea0261ea98c0eb3158cca261e6f48d66e1ed1cd1f340a43977094 - languageName: node - linkType: hard - "resolve-alpn@npm:^1.0.0": version: 1.2.1 resolution: "resolve-alpn@npm:1.2.1" @@ -20978,15 +20108,6 @@ __metadata: languageName: node linkType: hard -"scroll-into-view-if-needed@npm:^3.0.3": - version: 3.0.6 - resolution: "scroll-into-view-if-needed@npm:3.0.6" - dependencies: - compute-scroll-into-view: ^3.0.0 - checksum: fb3a62748f44bc14ee5f6986e6c3fd1a571811ff14e894f5ff1045247cfd9bf94ebd2038319971a8657bdd4c70a165e523ec1a0b90f74ded175a77035ff2d109 - languageName: node - linkType: hard - "semver-diff@npm:^3.1.1": version: 3.1.1 resolution: "semver-diff@npm:3.1.1" @@ -21633,13 +20754,6 @@ __metadata: languageName: node linkType: hard -"string-convert@npm:^0.2.0": - version: 0.2.1 - resolution: "string-convert@npm:0.2.1" - checksum: 1098b1d8e3712c72d0a0b0b7f5c36c98af93e7660b5f0f14019e41bcefe55bfa79214d5e03e74d98a7334a0b9bf2b7f4c6889c8c24801aa2ae2f9ebe1d8a1ef9 - languageName: node - linkType: hard - "string-env-interpolation@npm:1.0.1": version: 1.0.1 resolution: "string-env-interpolation@npm:1.0.1" @@ -22096,13 +21210,6 @@ __metadata: languageName: node linkType: hard -"stylis@npm:^4.0.13": - version: 4.1.3 - resolution: "stylis@npm:4.1.3" - checksum: d04dbffcb9bf2c5ca8d8dc09534203c75df3bf711d33973ea22038a99cc475412a350b661ebd99cbc01daa50d7eedcf0d130d121800eb7318759a197023442a6 - languageName: node - linkType: hard - "subscriptions-transport-ws@npm:^0.9.18": version: 0.9.19 resolution: "subscriptions-transport-ws@npm:0.9.19" @@ -22368,13 +21475,6 @@ __metadata: languageName: node linkType: hard -"throttle-debounce@npm:^5.0.0": - version: 5.0.0 - resolution: "throttle-debounce@npm:5.0.0" - checksum: aa8bf25828b4f8645ce863589de05d6807ea3debc147ce7d89624638ff8a16792d6d0baa0f8a32a260f0b163444d74020c6087b713ae561fde594b97b6e51f28 - languageName: node - linkType: hard - "through@npm:^2.3.6, through@npm:^2.3.8": version: 2.3.8 resolution: "through@npm:2.3.8" From f6f06429d27977d694695703ff4888f047c71ca8 Mon Sep 17 00:00:00 2001 From: Harsh Date: Sat, 25 Mar 2023 15:49:11 +0530 Subject: [PATCH 05/11] pulling pluginhealthScore data in search page instead of Plugin component --- plugins/plugin-site/src/components/Plugin.jsx | 33 +++---------------- .../src/components/PluginHealthScore.jsx | 16 +++++---- plugins/plugin-site/src/templates/search.jsx | 17 ++++++++++ 3 files changed, 30 insertions(+), 36 deletions(-) diff --git a/plugins/plugin-site/src/components/Plugin.jsx b/plugins/plugin-site/src/components/Plugin.jsx index e74518cd5..bad1c57bf 100644 --- a/plugins/plugin-site/src/components/Plugin.jsx +++ b/plugins/plugin-site/src/components/Plugin.jsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React from 'react'; -import {navigate, useStaticQuery, graphql} from 'gatsby'; +import {navigate} from 'gatsby'; import {cleanTitle} from '../commons/helper'; import Icon from '../components/Icon'; import PluginLabels from '../components/PluginLabels'; @@ -24,33 +24,7 @@ function Developers({developers}) { Developers.propTypes = PluginDevelopers.propTypes; -function Plugin({plugin: {name, title, stats, labels, excerpt, developers, buildDate, releaseTimestamp}}) { - let progress = 0; - let color = - progress > 80 ? 'success' : progress > 60 ? 'warning' : 'danger'; - - const graphqlData = useStaticQuery(graphql` - query { - allJenkinsPluginHealthScore { - edges { - node { - id - value - } - } - } - } - `); - - const health = graphqlData.allJenkinsPluginHealthScore.edges.find( - (edge) => edge.node.id === name - ); - - if (health) { - progress = health.node.value; - color = - progress > 80 ? 'success' : progress > 60 ? 'warning' : 'danger'; - } +function Plugin({plugin: {name, title, stats, labels, excerpt, developers, buildDate, releaseTimestamp, healthScore}}) { return (
navigate(`/${name}/`)} className="Plugin--PluginContainer"> @@ -77,7 +51,7 @@ function Plugin({plugin: {name, title, stats, labels, excerpt, developers, build
- +
); @@ -93,6 +67,7 @@ Plugin.propTypes = { id: PropTypes.string, name: PropTypes.string })), + healthScore: PropTypes.number, name: PropTypes.string.isRequired, requiredCore: PropTypes.string, sha1: PropTypes.string, diff --git a/plugins/plugin-site/src/components/PluginHealthScore.jsx b/plugins/plugin-site/src/components/PluginHealthScore.jsx index 152ad747d..5d5d7fa26 100644 --- a/plugins/plugin-site/src/components/PluginHealthScore.jsx +++ b/plugins/plugin-site/src/components/PluginHealthScore.jsx @@ -2,24 +2,26 @@ import React from 'react'; import PropTypes from 'prop-types'; import {Progress} from 'reactstrap'; -function PluginHealthScore({healthScore, color}) { +function PluginHealthScore({healthScore}) { + const score = healthScore || 0; + const color = + score > 80 ? 'success' : score > 60 ? 'warning' : 'danger'; return ( <>
Health Score - - {healthScore} +
+ {score} /100 - +
- + ); } PluginHealthScore.propTypes = { - healthScore: PropTypes.number.isRequired, - color: PropTypes.string.isRequired, + healthScore: PropTypes.number, }; export default PluginHealthScore; diff --git a/plugins/plugin-site/src/templates/search.jsx b/plugins/plugin-site/src/templates/search.jsx index afcc1bb65..b3e501bb0 100644 --- a/plugins/plugin-site/src/templates/search.jsx +++ b/plugins/plugin-site/src/templates/search.jsx @@ -91,10 +91,20 @@ function SearchPage({location}) { } } } + pluginHealthScore: allJenkinsPluginHealthScore { + edges { + node { + id + value + } + } + } } `); + const categoriesMap = groupBy(graphqlData.categories.edges.map(edge => edge.node), 'id'); const suspendedPlugins = graphqlData.suspendedPlugins.edges.map(edge => edge.node.id); + const healthScoresMap = groupBy(graphqlData.pluginHealthScore.edges.map(edge => edge.node), 'id'); const { sort, setSort, clearCriteria, @@ -123,6 +133,13 @@ function SearchPage({location}) { doSearch(parsed, setResults, categoriesMap); }, [location]); + if(results) { + results.plugins = results.plugins.map(plugin => { + plugin.healthScore = healthScoresMap[plugin.name]?.value; + return plugin; + }); + } + return ( From b607719dc2734061ebd9de00c301b701f3ac0beb Mon Sep 17 00:00:00 2001 From: Harsh Date: Sat, 8 Apr 2023 02:25:09 +0530 Subject: [PATCH 06/11] added link to healthScore to JenkinsPlugins and updated Algolia query --- .../gatsby-source-jenkinsplugins/gatsby-node.js | 1 + plugins/plugin-site/src/components/Plugin.jsx | 4 +++- .../src/components/PluginHealthScore.jsx | 6 ++++-- plugins/plugin-site/src/templates/search.jsx | 16 ---------------- plugins/plugin-site/src/utils/algolia-queries.js | 10 ++++++++++ 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/plugins/gatsby-source-jenkinsplugins/gatsby-node.js b/plugins/gatsby-source-jenkinsplugins/gatsby-node.js index c79897dd7..dba58862b 100644 --- a/plugins/gatsby-source-jenkinsplugins/gatsby-node.js +++ b/plugins/gatsby-source-jenkinsplugins/gatsby-node.js @@ -38,6 +38,7 @@ exports.createSchemaCustomization = ({actions}) => { type JenkinsPlugin implements Node { wiki: JenkinsPluginWiki @link(from: "name", by: "name") releases: [JenkinsPluginVersion] @link(from: "name", by: "name") + healthScore: JenkinsPluginHealthScore @link(from: "name", by: "id") buildDate: Date @dateformat previousTimestamp: Date @dateformat releaseTimestamp: Date @dateformat diff --git a/plugins/plugin-site/src/components/Plugin.jsx b/plugins/plugin-site/src/components/Plugin.jsx index bad1c57bf..bc6b357ef 100644 --- a/plugins/plugin-site/src/components/Plugin.jsx +++ b/plugins/plugin-site/src/components/Plugin.jsx @@ -67,7 +67,9 @@ Plugin.propTypes = { id: PropTypes.string, name: PropTypes.string })), - healthScore: PropTypes.number, + healthScore: PropTypes.shape({ + value: PropTypes.number, + }), name: PropTypes.string.isRequired, requiredCore: PropTypes.string, sha1: PropTypes.string, diff --git a/plugins/plugin-site/src/components/PluginHealthScore.jsx b/plugins/plugin-site/src/components/PluginHealthScore.jsx index 5d5d7fa26..6ca850bea 100644 --- a/plugins/plugin-site/src/components/PluginHealthScore.jsx +++ b/plugins/plugin-site/src/components/PluginHealthScore.jsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import {Progress} from 'reactstrap'; function PluginHealthScore({healthScore}) { - const score = healthScore || 0; + const score = healthScore.value || 0; const color = score > 80 ? 'success' : score > 60 ? 'warning' : 'danger'; return ( @@ -21,7 +21,9 @@ function PluginHealthScore({healthScore}) { } PluginHealthScore.propTypes = { - healthScore: PropTypes.number, + healthScore: PropTypes.shape({ + value: PropTypes.number, + }), }; export default PluginHealthScore; diff --git a/plugins/plugin-site/src/templates/search.jsx b/plugins/plugin-site/src/templates/search.jsx index b3e501bb0..113394f1b 100644 --- a/plugins/plugin-site/src/templates/search.jsx +++ b/plugins/plugin-site/src/templates/search.jsx @@ -91,20 +91,11 @@ function SearchPage({location}) { } } } - pluginHealthScore: allJenkinsPluginHealthScore { - edges { - node { - id - value - } - } - } } `); const categoriesMap = groupBy(graphqlData.categories.edges.map(edge => edge.node), 'id'); const suspendedPlugins = graphqlData.suspendedPlugins.edges.map(edge => edge.node.id); - const healthScoresMap = groupBy(graphqlData.pluginHealthScore.edges.map(edge => edge.node), 'id'); const { sort, setSort, clearCriteria, @@ -133,13 +124,6 @@ function SearchPage({location}) { doSearch(parsed, setResults, categoriesMap); }, [location]); - if(results) { - results.plugins = results.plugins.map(plugin => { - plugin.healthScore = healthScoresMap[plugin.name]?.value; - return plugin; - }); - } - return ( diff --git a/plugins/plugin-site/src/utils/algolia-queries.js b/plugins/plugin-site/src/utils/algolia-queries.js index 5978a8d1b..d3b4f9545 100644 --- a/plugins/plugin-site/src/utils/algolia-queries.js +++ b/plugins/plugin-site/src/utils/algolia-queries.js @@ -12,6 +12,16 @@ function pluginQueries() { currentInstalls trend } + healthScore { + value + version + details { + key + value + coefficient + } + timestamp + } developers { name id From 3773c2916404328fb1277154a07034819e468efb Mon Sep 17 00:00:00 2001 From: Harsh Date: Sun, 9 Apr 2023 01:54:00 +0530 Subject: [PATCH 07/11] Fixed alignment --- .../plugin-site/src/utils/algolia-queries.js | 72 ++++++++----------- 1 file changed, 31 insertions(+), 41 deletions(-) diff --git a/plugins/plugin-site/src/utils/algolia-queries.js b/plugins/plugin-site/src/utils/algolia-queries.js index d3b4f9545..5bfd6ca7e 100644 --- a/plugins/plugin-site/src/utils/algolia-queries.js +++ b/plugins/plugin-site/src/utils/algolia-queries.js @@ -13,14 +13,14 @@ function pluginQueries() { trend } healthScore { + value + version + details { + key value - version - details { - key - value - coefficient - } - timestamp + coefficient + } + timestamp } developers { name @@ -33,7 +33,7 @@ function pluginQueries() { } } `; - function pageToAlgoliaRecord({node: {id, ...rest}}) { + function pageToAlgoliaRecord({ node: { id, ...rest } }) { return { objectID: id, slug: `/${id.trim()}/`, @@ -42,50 +42,40 @@ function pluginQueries() { } return { query: pageQuery, - transformer: ({data}) => data.pages.edges.map(pageToAlgoliaRecord), - indexName: 'Plugins', + transformer: ({ data }) => data.pages.edges.map(pageToAlgoliaRecord), + indexName: "Plugins", synonyms: [ { - type: 'synonym', - synonyms: ['perforce', 'p4'], - objectID: 'syn-1617250859718-18' - } + type: "synonym", + synonyms: ["perforce", "p4"], + objectID: "syn-1617250859718-18", + }, ], settings: { paginationLimitedTo: 2000, // they recommend 1000, to keep speed up and prevent people from scraping, but both are fine to us - optionalWords: [ - 'jenkins', - 'plugin', - 'plugins' - ], + optionalWords: ["jenkins", "plugin", "plugins"], ranking: [ - 'typo', - 'geo', - 'words', - 'filters', - 'proximity', - 'attribute', - 'exact', - 'custom' - ], - customRanking: [ - 'desc(stats.currentInstalls)' - ], - attributesForFaceting: [ - 'labels' + "typo", + "geo", + "words", + "filters", + "proximity", + "attribute", + "exact", + "custom", ], + customRanking: ["desc(stats.currentInstalls)"], + attributesForFaceting: ["labels"], attributesToIndex: [ - 'name', - 'title', - 'developers.name', - 'developers.id', - 'excerpt' + "name", + "title", + "developers.name", + "developers.id", + "excerpt", ], }, }; } -const queries = [ - pluginQueries(), -]; +const queries = [pluginQueries()]; module.exports = queries; From 1b08c6077dfb2b923f415ffdd89b0e83a8a54873 Mon Sep 17 00:00:00 2001 From: Harsh Date: Sun, 9 Apr 2023 23:24:55 +0530 Subject: [PATCH 08/11] wrote a test for pluginHealthScore --- .../__mocks__/plugin-health-score.json | 22 ++++++++++ .../__snapshots__/utils.test.js.snap | 44 +++++++++++++++++++ .../utils.test.js | 11 ++++- .../plugin-site/src/utils/algolia-queries.js | 44 +++++++++---------- 4 files changed, 98 insertions(+), 23 deletions(-) create mode 100644 plugins/gatsby-source-jenkinsplugins/__mocks__/plugin-health-score.json diff --git a/plugins/gatsby-source-jenkinsplugins/__mocks__/plugin-health-score.json b/plugins/gatsby-source-jenkinsplugins/__mocks__/plugin-health-score.json new file mode 100644 index 000000000..2e3e4e739 --- /dev/null +++ b/plugins/gatsby-source-jenkinsplugins/__mocks__/plugin-health-score.json @@ -0,0 +1,22 @@ +{ + "aws-java-sdk-sns": { + "value": 96, + "version": "1.12.406-370.v8f993c987059", + "details": [ + { + "key": "update-center-plugin-publication", + "value": 1, + "coefficient": 1 + }, + { "key": "security", "value": 1, "coefficient": 1 }, + { + "key": "repository-configuration", + "value": 0.7, + "coefficient": 0.5 + }, + { "key": "adoption", "value": 1, "coefficient": 0.8 }, + { "key": "deprecation", "value": 1, "coefficient": 0.8 } + ], + "timestamp": "2023-03-24T15:15:33.022244Z" + } +} diff --git a/plugins/gatsby-source-jenkinsplugins/__snapshots__/utils.test.js.snap b/plugins/gatsby-source-jenkinsplugins/__snapshots__/utils.test.js.snap index e2c3d7f8a..b74fad135 100644 --- a/plugins/gatsby-source-jenkinsplugins/__snapshots__/utils.test.js.snap +++ b/plugins/gatsby-source-jenkinsplugins/__snapshots__/utils.test.js.snap @@ -224,3 +224,47 @@ Array [ }, ] `; + +exports[`utils get plugin healthScore data 1`] = ` +Array [ + Object { + "children": Array [], + "details": Array [ + Object { + "coefficient": 1, + "key": "update-center-plugin-publication", + "value": 1, + }, + Object { + "coefficient": 1, + "key": "security", + "value": 1, + }, + Object { + "coefficient": 0.5, + "key": "repository-configuration", + "value": 0.7, + }, + Object { + "coefficient": 0.8, + "key": "adoption", + "value": 1, + }, + Object { + "coefficient": 0.8, + "key": "deprecation", + "value": 1, + }, + ], + "id": "aws-java-sdk-sns", + "internal": Object { + "contentDigest": "f789c60332b91b320525aea3639a7c73", + "type": "JenkinsPluginHealthScore", + }, + "parent": null, + "timestamp": "2023-03-24T15:15:33.022244Z", + "value": 96, + "version": "1.12.406-370.v8f993c987059", + }, +] +`; diff --git a/plugins/gatsby-source-jenkinsplugins/utils.test.js b/plugins/gatsby-source-jenkinsplugins/utils.test.js index a9a7836ca..710489ae0 100644 --- a/plugins/gatsby-source-jenkinsplugins/utils.test.js +++ b/plugins/gatsby-source-jenkinsplugins/utils.test.js @@ -94,4 +94,13 @@ describe('utils', () => { await utils.fetchPluginData({createNode, createNodeId, createContentDigest, reporter: _reporter, firstReleases, labelToCategory, stats}); expect(createNode.mock.calls.filter(call => call[0].name === 'ios-device-connector').map(args => args[0])).toMatchSnapshot(); }); -}); + it('get plugin healthScore data', async () => { + nock('https://plugin-health.jenkins.io') + .get('/api/scores') + .reply(200, JSON.parse(await readText('plugin-health-score.json'))); + const createNode = jest.fn().mockResolvedValue(); + + await utils.fetchPluginHealthScore({createNode, reporter: _reporter}); + expect(createNode.mock.calls.filter(call => call[0].id === 'aws-java-sdk-sns').map(args => args[0])).toMatchSnapshot(); + }); +}); \ No newline at end of file diff --git a/plugins/plugin-site/src/utils/algolia-queries.js b/plugins/plugin-site/src/utils/algolia-queries.js index 5bfd6ca7e..82e6fd322 100644 --- a/plugins/plugin-site/src/utils/algolia-queries.js +++ b/plugins/plugin-site/src/utils/algolia-queries.js @@ -33,7 +33,7 @@ function pluginQueries() { } } `; - function pageToAlgoliaRecord({ node: { id, ...rest } }) { + function pageToAlgoliaRecord({node: {id, ...rest}}) { return { objectID: id, slug: `/${id.trim()}/`, @@ -42,36 +42,36 @@ function pluginQueries() { } return { query: pageQuery, - transformer: ({ data }) => data.pages.edges.map(pageToAlgoliaRecord), - indexName: "Plugins", + transformer: ({data}) => data.pages.edges.map(pageToAlgoliaRecord), + indexName: 'Plugins', synonyms: [ { - type: "synonym", - synonyms: ["perforce", "p4"], - objectID: "syn-1617250859718-18", + type: 'synonym', + synonyms: ['perforce', 'p4'], + objectID: 'syn-1617250859718-18', }, ], settings: { paginationLimitedTo: 2000, // they recommend 1000, to keep speed up and prevent people from scraping, but both are fine to us - optionalWords: ["jenkins", "plugin", "plugins"], + optionalWords: ['jenkins', 'plugin', 'plugins'], ranking: [ - "typo", - "geo", - "words", - "filters", - "proximity", - "attribute", - "exact", - "custom", + 'typo', + 'geo', + 'words', + 'filters', + 'proximity', + 'attribute', + 'exact', + 'custom', ], - customRanking: ["desc(stats.currentInstalls)"], - attributesForFaceting: ["labels"], + customRanking: ['desc(stats.currentInstalls)'], + attributesForFaceting: ['labels'], attributesToIndex: [ - "name", - "title", - "developers.name", - "developers.id", - "excerpt", + 'name', + 'title', + 'developers.name', + 'developers.id', + 'excerpt', ], }, }; From 0adf6c28c34b9e6d46f12ac022382fd10cb033f7 Mon Sep 17 00:00:00 2001 From: Harsh Date: Sun, 9 Apr 2023 23:41:12 +0530 Subject: [PATCH 09/11] Fixed lint error --- plugins/gatsby-source-jenkinsplugins/utils.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/gatsby-source-jenkinsplugins/utils.test.js b/plugins/gatsby-source-jenkinsplugins/utils.test.js index 710489ae0..5f8072033 100644 --- a/plugins/gatsby-source-jenkinsplugins/utils.test.js +++ b/plugins/gatsby-source-jenkinsplugins/utils.test.js @@ -96,11 +96,11 @@ describe('utils', () => { }); it('get plugin healthScore data', async () => { nock('https://plugin-health.jenkins.io') - .get('/api/scores') - .reply(200, JSON.parse(await readText('plugin-health-score.json'))); + .get('/api/scores') + .reply(200, JSON.parse(await readText('plugin-health-score.json'))); const createNode = jest.fn().mockResolvedValue(); await utils.fetchPluginHealthScore({createNode, reporter: _reporter}); expect(createNode.mock.calls.filter(call => call[0].id === 'aws-java-sdk-sns').map(args => args[0])).toMatchSnapshot(); }); -}); \ No newline at end of file +}); From 4e43314ea8f82d35c757c0c9569f7f336b12224b Mon Sep 17 00:00:00 2001 From: Harsh Date: Mon, 10 Apr 2023 20:47:32 +0530 Subject: [PATCH 10/11] Changed Algolia query for adding only score to the index --- plugins/plugin-site/src/utils/algolia-queries.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/plugin-site/src/utils/algolia-queries.js b/plugins/plugin-site/src/utils/algolia-queries.js index 82e6fd322..dab0c462e 100644 --- a/plugins/plugin-site/src/utils/algolia-queries.js +++ b/plugins/plugin-site/src/utils/algolia-queries.js @@ -14,13 +14,6 @@ function pluginQueries() { } healthScore { value - version - details { - key - value - coefficient - } - timestamp } developers { name From 525ec7005829a2696cc8bad695a7e37293710616 Mon Sep 17 00:00:00 2001 From: Harsh Date: Mon, 10 Apr 2023 20:58:41 +0530 Subject: [PATCH 11/11] Fixed css for List view --- plugins/plugin-site/src/components/SearchResults.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/plugin-site/src/components/SearchResults.css b/plugins/plugin-site/src/components/SearchResults.css index 805043592..0974a91e6 100644 --- a/plugins/plugin-site/src/components/SearchResults.css +++ b/plugins/plugin-site/src/components/SearchResults.css @@ -201,6 +201,10 @@ height: initial; margin-bottom: 1rem; } + & .Plugin--HealthScoreContainer { + position: initial; + margin-top: 10px; + } } .Pagination--Container { display: flex;