Skip to content

fix: upgrade jQuery and restore elFinder compatibility - #2021

Open
lettimepassby wants to merge 1 commit into
jumpserver:devfrom
jumpserver-east:pr@dev@fix_upgrade_jQuery_and_restore_elFinder_compatibility
Open

fix: upgrade jQuery and restore elFinder compatibility#2021
lettimepassby wants to merge 1 commit into
jumpserver:devfrom
jumpserver-east:pr@dev@fix_upgrade_jQuery_and_restore_elFinder_compatibility

fix: upgrade jQuery and restore elFinder compatibility

11a6d1d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jul 28, 2026 in 37s

Quality Gate failed

Failed conditions
D Reliability Rating on New Code (required ≥ A)
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 2453 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment of "newCache[ 2 ]" from this expression.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR1S&open=AZ-m3-i-dnI7fSwuHR1S&pullRequest=2021

Check warning on line 8366 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i_dnI7fSwuHR4F&open=AZ-m3-i_dnI7fSwuHR4F&pullRequest=2021

Check warning on line 333 in static/js/jquery-migrate-3.4.0.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.isNaN` over `isNaN`.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-e9dnI7fSwuHRyd&open=AZ-m3-e9dnI7fSwuHRyd&pullRequest=2021

Check failure on line 10059 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i_dnI7fSwuHR4n&open=AZ-m3-i_dnI7fSwuHR4n&pullRequest=2021

Check warning on line 4753 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR2h&open=AZ-m3-i-dnI7fSwuHR2h&pullRequest=2021

Check warning on line 2624 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment of "checkContext" from this expression.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR1f&open=AZ-m3-i-dnI7fSwuHR1f&pullRequest=2021

Check warning on line 3335 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Empty block statement.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR1-&open=AZ-m3-i-dnI7fSwuHR1-&pullRequest=2021

Check warning on line 658 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHRzt&open=AZ-m3-i-dnI7fSwuHRzt&pullRequest=2021

Check failure on line 5244 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Provide a compare function that depends on "String.localeCompare", to reliably sort elements alphabetically.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR2w&open=AZ-m3-i-dnI7fSwuHR2w&pullRequest=2021

Check failure on line 422 in static/js/jquery-migrate-3.4.0.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not assign `this` to `self`.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-e9dnI7fSwuHRyj&open=AZ-m3-e9dnI7fSwuHRyj&pullRequest=2021

Check warning on line 4466 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR2Z&open=AZ-m3-i-dnI7fSwuHR2Z&pullRequest=2021

Check warning on line 2874 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment of "type" from this expression.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR1q&open=AZ-m3-i-dnI7fSwuHR1q&pullRequest=2021

Check warning on line 632 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHRzj&open=AZ-m3-i-dnI7fSwuHRzj&pullRequest=2021

Check warning on line 1564 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR0h&open=AZ-m3-i-dnI7fSwuHR0h&pullRequest=2021

Check warning on line 658 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Group parts of the regex together to make the intended operator precedence explicit.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHRzr&open=AZ-m3-i-dnI7fSwuHRzr&pullRequest=2021

Check warning on line 9039 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i_dnI7fSwuHR4X&open=AZ-m3-i_dnI7fSwuHR4X&pullRequest=2021

Check failure on line 4147 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR2S&open=AZ-m3-i-dnI7fSwuHR2S&pullRequest=2021

Check warning on line 3369 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR1_&open=AZ-m3-i-dnI7fSwuHR1_&pullRequest=2021

Check warning on line 90 in static/js/jquery-migrate-3.4.0.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-e9dnI7fSwuHRyN&open=AZ-m3-e9dnI7fSwuHRyN&pullRequest=2021

Check failure on line 519 in static/js/jquery-migrate-3.4.0.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected var, use let or const instead.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-e9dnI7fSwuHRys&open=AZ-m3-e9dnI7fSwuHRys&pullRequest=2021

Check warning on line 2110 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment of "matches[ i ]" from this expression.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR0_&open=AZ-m3-i-dnI7fSwuHR0_&pullRequest=2021

Check warning on line 8900 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i_dnI7fSwuHR4U&open=AZ-m3-i_dnI7fSwuHR4U&pullRequest=2021

Check warning on line 810 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'If' statement should not be the only statement in 'else' block

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHRz_&open=AZ-m3-i-dnI7fSwuHRz_&pullRequest=2021

Check failure on line 847 in static/js/jquery-migrate-3.4.0.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected var, use let or const instead.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-e9dnI7fSwuHRy6&open=AZ-m3-e9dnI7fSwuHRy6&pullRequest=2021

Check warning on line 5316 in static/js/jquery-3.6.1.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment of "events" from this expression.

See more on https://sonarcloud.io/project/issues?id=jumpserver_koko&issues=AZ-m3-i-dnI7fSwuHR2z&open=AZ-m3-i-dnI7fSwuHR2z&pullRequest=2021