From 36f237811fd1b0b90426e14da42036f528c5e4a4 Mon Sep 17 00:00:00 2001 From: "lgtm-com[bot]" <43144390+lgtm-com[bot]@users.noreply.github.com> Date: Sun, 25 Jun 2023 15:00:22 +0800 Subject: [PATCH 001/131] Add CodeQL workflow for GitHub code scanning (#423) Co-authored-by: LGTM Migrator --- .github/workflows/codeql.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..d2a5f966 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: "41 11 * * 2" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ javascript ] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{ matrix.language }}" From e73e38fc99d531cce7651a567b878520245d9963 Mon Sep 17 00:00:00 2001 From: MuxinFeng Date: Mon, 17 Jul 2023 10:16:32 +0800 Subject: [PATCH 002/131] chore: bump rc-select (#434) --- README.md | 2 +- examples/custom-icons.tsx | 6 +- package.json | 2 +- tests/Select.props.spec.js | 2 +- tests/__snapshots__/Select.spec.tsx.snap | 96 ++---------------------- 5 files changed, 14 insertions(+), 94 deletions(-) diff --git a/README.md b/README.md index 71313b88..f1d5fef0 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ online example: https://tree-select-react-component.vercel.app/ |loadData | load data asynchronously | function(node) | - | |getPopupContainer | container which popup select menu rendered into | function(trigger:Node):Node | function(){return document.body;} | |autoClearSearchValue | auto clear search input value when multiple select is selected/deselected | boolean | true | -| inputIcon | specify the select arrow icon | ReactNode \| (props: TreeProps) => ReactNode | - | +| suffixIcon | specify the select arrow icon | ReactNode \| (props: TreeProps) => ReactNode | - | | clearIcon | specify the clear icon | ReactNode \| (props: TreeProps) => ReactNode | - | | removeIcon | specify the remove icon | ReactNode \| (props: TreeProps) => ReactNode | - | |switcherIcon| specify the switcher icon | ReactNode \| (props: TreeProps) => ReactNode | - | diff --git a/examples/custom-icons.tsx b/examples/custom-icons.tsx index 275cfb31..4f4ebfda 100644 --- a/examples/custom-icons.tsx +++ b/examples/custom-icons.tsx @@ -59,19 +59,19 @@ const switcherIcon = obj => { ); }; -const inputIcon = getSvg(bubblePath); +const suffixIcon = getSvg(bubblePath); const clearIcon = getSvg(clearPath); const removeIcon = getSvg(clearPath); const iconProps = { - inputIcon, + suffixIcon, clearIcon, removeIcon, switcherIcon, }; const iconPropsFunction = { - inputIcon: () => inputIcon, + suffixIcon: () => suffixIcon, clearIcon: () => clearIcon, removeIcon: () => removeIcon, switcherIcon, diff --git a/package.json b/package.json index b2424a38..940ede39 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "dependencies": { "@babel/runtime": "^7.10.1", "classnames": "2.x", - "rc-select": "~14.5.0", + "rc-select": "14.6.0-alpha.0", "rc-tree": "~5.7.0", "rc-util": "^5.16.1" } diff --git a/tests/Select.props.spec.js b/tests/Select.props.spec.js index b1fff014..cb5c38dc 100644 --- a/tests/Select.props.spec.js +++ b/tests/Select.props.spec.js @@ -242,7 +242,7 @@ describe('TreeSelect.props', () => { }); it('showArrow', () => { - const wrapper = mount(createOpenSelect({ showArrow: false })); + const wrapper = mount(createOpenSelect({ suffixIcon: null })); expect(wrapper.find('.rc-tree-select-arrow').length).toBeFalsy(); }); diff --git a/tests/__snapshots__/Select.spec.tsx.snap b/tests/__snapshots__/Select.spec.tsx.snap index 09943591..91ace01a 100644 --- a/tests/__snapshots__/Select.spec.tsx.snap +++ b/tests/__snapshots__/Select.spec.tsx.snap @@ -2,7 +2,7 @@ exports[`TreeSelect.basic render renders TreeNode correctly 1`] = `
-