From 97ec3901c7fcb3ca6e0c5ed37b13b373214533d2 Mon Sep 17 00:00:00 2001 From: David Liu Date: Fri, 11 Oct 2024 01:17:57 +0000 Subject: [PATCH] Merge 'result' js and css into 'application' (#7265) --- Changelog.md | 2 ++ .../Components/Helpers/tag_modal.jsx | 2 +- .../Modals/collect_submissions_modal.jsx | 2 +- .../create_modify_annotation_panel_modal.jsx | 2 +- .../Modals/download_test_results_modal.jsx | 2 +- .../Components/Modals/extension_modal.jsx | 2 +- .../Components/Modals/filter_modal.jsx | 2 +- .../Modals/graders_distribution_modal.jsx | 2 +- .../Components/Modals/roster_sync_modal.jsx | 2 +- .../Modals/section_distribution_modal.js | 2 +- .../Modals/send_lti_grades_modal.jsx | 2 +- .../Components/Result/feedback_file_panel.jsx | 6 +++- .../Result/submission_file_panel.jsx | 2 +- .../Components/Result/summary_panel.jsx | 2 +- .../Components/submission_file_manager.jsx | 2 +- app/assets/javascripts/modals.js | 2 +- app/assets/stylesheets/common/_markus.scss | 2 +- .../stylesheets/common/_react_tabs.scss | 10 +++++-- app/assets/stylesheets/common/codeviewer.scss | 5 ++-- .../stylesheets/entrypoints/application.scss | 5 ++++ .../stylesheets/entrypoints/result_main.scss | 3 -- app/assets/stylesheets/grader.scss | 30 ------------------- app/javascript/application_webpack.js | 12 ++++++++ app/javascript/result.js | 15 ---------- app/views/assignments/show.html.erb | 2 +- .../student_interface.html.erb | 3 -- .../exam_templates/_event_listeners.js.erb | 2 +- .../exam_templates/assign_errors.html.erb | 10 ------- app/views/groups/assign_scans.html.erb | 7 ----- app/views/groups/index.html.erb | 2 +- app/views/layouts/_about.html.erb | 2 +- app/views/layouts/_head.html.erb | 1 + app/views/layouts/_modal_dialog.html.erb | 2 +- app/views/layouts/_pdfjs_config.html.erb | 3 ++ app/views/layouts/_role_switch.html.erb | 2 +- app/views/layouts/assignment_content.html.erb | 1 + app/views/layouts/content.html.erb | 1 + app/views/layouts/result_content.erb | 1 + app/views/results/edit.html.erb | 11 ++----- app/views/results/view_marks.html.erb | 5 ---- app/views/students/_student_form.html.erb | 2 +- app/views/students/index.html.erb | 2 +- app/views/submissions/file_manager.html.erb | 5 ---- app/views/submissions/repo_browser.html.erb | 5 ---- app/views/tags/index.html.erb | 2 +- webpack.common.js | 1 - 46 files changed, 67 insertions(+), 123 deletions(-) delete mode 100644 app/assets/stylesheets/entrypoints/result_main.scss delete mode 100644 app/javascript/result.js create mode 100644 app/views/layouts/_pdfjs_config.html.erb diff --git a/Changelog.md b/Changelog.md index f6cc5749ea..438c6ab9c0 100644 --- a/Changelog.md +++ b/Changelog.md @@ -27,6 +27,8 @@ - Move model validation error messages to respective localization files (#7229) - Replace time-warp gem with newer, maintained timecop gem (#7234) - Update pre-commit-hooks to v5.0 and add checks `check-illegal-windows-names`, `check-json`, and `check-merge-conflict` (#7259) +- Merge result.js and result_main.css build files into application.js/application.css (#7260) +- Simplify pdf.js configuration (#7260) - Improve descriptions of the Group and Grouping models (#7262) ## [v2.5.2] diff --git a/app/assets/javascripts/Components/Helpers/tag_modal.jsx b/app/assets/javascripts/Components/Helpers/tag_modal.jsx index 829d98f59d..310268eb11 100644 --- a/app/assets/javascripts/Components/Helpers/tag_modal.jsx +++ b/app/assets/javascripts/Components/Helpers/tag_modal.jsx @@ -11,7 +11,7 @@ export default class TagModal extends React.Component { render() { return ( diff --git a/app/assets/javascripts/Components/Modals/create_modify_annotation_panel_modal.jsx b/app/assets/javascripts/Components/Modals/create_modify_annotation_panel_modal.jsx index 6fb5e8b8b6..097a0c442b 100644 --- a/app/assets/javascripts/Components/Modals/create_modify_annotation_panel_modal.jsx +++ b/app/assets/javascripts/Components/Modals/create_modify_annotation_panel_modal.jsx @@ -191,7 +191,7 @@ class CreateModifyAnnotationPanel extends React.Component { return ( diff --git a/app/assets/javascripts/Components/Modals/extension_modal.jsx b/app/assets/javascripts/Components/Modals/extension_modal.jsx index 225600a0cf..e54387fad5 100644 --- a/app/assets/javascripts/Components/Modals/extension_modal.jsx +++ b/app/assets/javascripts/Components/Modals/extension_modal.jsx @@ -127,7 +127,7 @@ class ExtensionModal extends React.Component { render() { return ( diff --git a/app/assets/javascripts/Components/Modals/filter_modal.jsx b/app/assets/javascripts/Components/Modals/filter_modal.jsx index fb06902d22..18b0b7aaa4 100644 --- a/app/assets/javascripts/Components/Modals/filter_modal.jsx +++ b/app/assets/javascripts/Components/Modals/filter_modal.jsx @@ -199,7 +199,7 @@ export class FilterModal extends React.Component { } return ( { this.props.onRequestClose(); diff --git a/app/assets/javascripts/Components/Modals/graders_distribution_modal.jsx b/app/assets/javascripts/Components/Modals/graders_distribution_modal.jsx index 6843a64290..76b5a21b15 100644 --- a/app/assets/javascripts/Components/Modals/graders_distribution_modal.jsx +++ b/app/assets/javascripts/Components/Modals/graders_distribution_modal.jsx @@ -45,7 +45,7 @@ export class GraderDistributionModal extends React.Component { render() { return ( diff --git a/app/assets/javascripts/Components/Modals/roster_sync_modal.jsx b/app/assets/javascripts/Components/Modals/roster_sync_modal.jsx index b59194196f..a8162f9f20 100644 --- a/app/assets/javascripts/Components/Modals/roster_sync_modal.jsx +++ b/app/assets/javascripts/Components/Modals/roster_sync_modal.jsx @@ -47,7 +47,7 @@ class LtiRosterModal extends React.Component { return (
diff --git a/app/assets/javascripts/Components/Modals/section_distribution_modal.js b/app/assets/javascripts/Components/Modals/section_distribution_modal.js index 3ea46e9ec0..ba93dc0396 100644 --- a/app/assets/javascripts/Components/Modals/section_distribution_modal.js +++ b/app/assets/javascripts/Components/Modals/section_distribution_modal.js @@ -53,7 +53,7 @@ export class SectionDistributionModal extends React.Component { render() { return ( diff --git a/app/assets/javascripts/Components/Modals/send_lti_grades_modal.jsx b/app/assets/javascripts/Components/Modals/send_lti_grades_modal.jsx index 4cacc01a68..cff431ef15 100644 --- a/app/assets/javascripts/Components/Modals/send_lti_grades_modal.jsx +++ b/app/assets/javascripts/Components/Modals/send_lti_grades_modal.jsx @@ -49,7 +49,7 @@ class LtiGradeModal extends React.Component { render() { return ( diff --git a/app/assets/javascripts/Components/Result/feedback_file_panel.jsx b/app/assets/javascripts/Components/Result/feedback_file_panel.jsx index 80c10944c9..ed560a6df1 100644 --- a/app/assets/javascripts/Components/Result/feedback_file_panel.jsx +++ b/app/assets/javascripts/Components/Result/feedback_file_panel.jsx @@ -80,7 +80,11 @@ export class FeedbackFilePanel extends React.Component { {feedbackSelector} {download_feedback_file}
-
+
)}
-
+

-