From d6a017e07062e63e987606f901cbd690e09d4601 Mon Sep 17 00:00:00 2001 From: AnnAngela Date: Fri, 21 Jul 2023 09:21:04 +0800 Subject: [PATCH] feat: Update echarts library version Updated the echarts library version from 5.4.2 to 5.4.3 in order to fix known issues and improve functionality. This change was made to the queryContributions.js file in the MediaWiki:Gadget-queryContributions.js directory. --- scripts/detectHardcodedOutdatedNPMPackages/index.js | 4 ++-- .../queryContributions/MediaWiki:Gadget-queryContributions.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/detectHardcodedOutdatedNPMPackages/index.js b/scripts/detectHardcodedOutdatedNPMPackages/index.js index 1990f855..661a66d2 100644 --- a/scripts/detectHardcodedOutdatedNPMPackages/index.js +++ b/scripts/detectHardcodedOutdatedNPMPackages/index.js @@ -51,9 +51,9 @@ for (const src of scripts) { console.info("Outdated package:", outdatedPackages); await createIssue( "Found harcoded-outdated NPM packages.", - `The harcoded-outdated NPM packages are found in [\`${src}\`](${src}).`, + `The harcoded-outdated NPM packages are found in [\`../blob/master/${src}\`](${src}).`, labels, - `The harcoded-outdated NPM packages:\n\`\`\`json\n${JSON.stringify(outdatedPackages, null, 4)}\n\``, + `The harcoded-outdated NPM packages:\n\`\`\`json\n${JSON.stringify(outdatedPackages, null, 4)}\n\`\`\``, ); } console.info("Done."); diff --git a/src/gadgets/queryContributions/MediaWiki:Gadget-queryContributions.js b/src/gadgets/queryContributions/MediaWiki:Gadget-queryContributions.js index 35773b10..4ab447ba 100644 --- a/src/gadgets/queryContributions/MediaWiki:Gadget-queryContributions.js +++ b/src/gadgets/queryContributions/MediaWiki:Gadget-queryContributions.js @@ -123,7 +123,7 @@ $(() => (async () => { fieldset.find("#toChartQueryContributions").on("click", async (e) => { $(e.target).remove(); fieldset.append("
加载中……
"); - await libCachedCode.injectCachedCode("https://npm.elemecdn.com/echarts@5.4.2/dist/echarts.min.js", "script"); + await libCachedCode.injectCachedCode("https://npm.elemecdn.com/echarts@5.4.3/dist/echarts.min.js", "script"); const chart = echarts.init(document.getElementById("contributionChart")); chart.setOption({ tooltip: {