forked from openwebwork/webwork2
-
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.
Merge branch 'develop' into feature/achievement-notifications
- Loading branch information
Showing
70 changed files
with
2,282 additions
and
2,182 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 |
---|---|---|
|
@@ -71,6 +71,7 @@ RUN apt-get update \ | |
imagemagick \ | ||
iputils-ping \ | ||
jq \ | ||
libarchive-extract-perl \ | ||
libarchive-zip-perl \ | ||
libarray-utils-perl \ | ||
libc6-dev \ | ||
|
@@ -184,7 +185,7 @@ RUN apt-get update \ | |
# ================================================================== | ||
# Phase 4 - Install additional Perl modules from CPAN that are not packaged for Ubuntu or are outdated in Ubuntu. | ||
|
||
RUN cpanm install Statistics::R::IO DBD::MariaDB Mojo::[email protected] Perl::Tidy@20220613 \ | ||
RUN cpanm install Statistics::R::IO DBD::MariaDB Mojo::[email protected] Perl::Tidy@20220613 Archive::Zip::SimpleZip \ | ||
&& rm -fr ./cpanm /root/.cpanm /tmp/* | ||
|
||
# ================================================================== | ||
|
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 |
---|---|---|
|
@@ -33,6 +33,7 @@ RUN apt-get update \ | |
imagemagick \ | ||
iputils-ping \ | ||
jq \ | ||
libarchive-extract-perl \ | ||
libarchive-zip-perl \ | ||
libarray-utils-perl \ | ||
libc6-dev \ | ||
|
@@ -146,7 +147,7 @@ RUN apt-get update \ | |
# ================================================================== | ||
# Phase 3 - Install additional Perl modules from CPAN that are not packaged for Ubuntu or are outdated in Ubuntu. | ||
|
||
RUN cpanm install -n Statistics::R::IO DBD::MariaDB Mojo::[email protected] Perl::Tidy@20220613 \ | ||
RUN cpanm install -n Statistics::R::IO DBD::MariaDB Mojo::[email protected] Perl::Tidy@20220613 Archive::Zip::SimpleZip \ | ||
&& rm -fr ./cpanm /root/.cpanm /tmp/* | ||
|
||
# ================================================================== |
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
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
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
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,11 +1,48 @@ | ||
(() => { | ||
const takeAction = document.getElementById('take_action'); | ||
const currentAction = document.getElementById('current_action'); | ||
|
||
document.querySelectorAll('.action-link').forEach((actionLink) => { | ||
const currentAction = document.getElementById('current_action'); | ||
actionLink.addEventListener('show.bs.tab', () => { | ||
if (takeAction) takeAction.value = actionLink.textContent; | ||
if (currentAction) currentAction.value = actionLink.dataset.action; | ||
}); | ||
}); | ||
|
||
// Submit the form when a sort header is clicked or enter or space is pressed when it has focus. | ||
if (currentAction) { | ||
for (const header of document.querySelectorAll('.sort-header')) { | ||
const submitSortMethod = (e) => { | ||
e.preventDefault(); | ||
|
||
currentAction.value = 'sort'; | ||
|
||
const sortInput = document.createElement('input'); | ||
sortInput.name = 'labelSortMethod'; | ||
sortInput.value = header.dataset.sortField; | ||
sortInput.type = 'hidden'; | ||
currentAction.form.append(sortInput); | ||
|
||
currentAction.form.submit(); | ||
}; | ||
|
||
header.addEventListener('click', submitSortMethod); | ||
header.addEventListener('keydown', (e) => { | ||
if (e.key === ' ' || e.key === 'Enter') submitSortMethod(e); | ||
}); | ||
|
||
const orderToggleButton = header.parentElement.querySelector('button.sort-order'); | ||
orderToggleButton?.addEventListener('click', () => { | ||
currentAction.value = 'sort'; | ||
|
||
const sortOrderInput = document.createElement('input'); | ||
sortOrderInput.name = 'labelSortOrder'; | ||
sortOrderInput.value = orderToggleButton.dataset.sortPriority; | ||
sortOrderInput.type = 'hidden'; | ||
currentAction.form.append(sortOrderInput); | ||
|
||
currentAction.form.submit(); | ||
}); | ||
} | ||
} | ||
})(); |
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
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
This file was deleted.
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
Oops, something went wrong.