-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supporting upgrades to Yarn release 4.3.1 (#809)
* Supporting upgrades to Yarn release 4.3.1 * Ensuring that authentication failures are handled for the mediafluxVersion JavaScript functionality
- Loading branch information
1 parent
236a496
commit bb7e52b
Showing
7 changed files
with
1,173 additions
and
1,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
ruby 3.3.0 | ||
nodejs 18.14.0 | ||
yarn 1.22.19 | ||
java openjdk-19.0.2 |
626 changes: 313 additions & 313 deletions
626
.yarn/releases/yarn-4.2.2.cjs → .yarn/releases/yarn-4.3.1.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.2.2.cjs | ||
yarnPath: .yarn/releases/yarn-4.3.1.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
// eslint-disable-next-line import/prefer-default-export | ||
export function displayMediafluxVersion(url) { | ||
export function displayMediafluxVersion(url, authenticated) { | ||
const placeholderInPage = $('#mediaflux_version').length === 1; | ||
if (placeholderInPage === true) { | ||
if (placeholderInPage === true && authenticated) { | ||
$.ajax({ | ||
type: 'GET', | ||
url, | ||
success(data) { | ||
$('#mediaflux_version').text(`| Mediaflux: ${data.version}`); | ||
}, | ||
error(_jqXHR, _textStatus, errorThrown) { | ||
console.error(errorThrown); | ||
}, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.