Skip to content

htdocs clean up#1553

Merged
pstaabp merged 3 commits intoopenwebwork:developfrom
drgrice1:htdocs-cleanup
Jan 28, 2022
Merged

htdocs clean up#1553
pstaabp merged 3 commits intoopenwebwork:developfrom
drgrice1:htdocs-cleanup

Conversation

@drgrice1
Copy link
Member

@drgrice1 drgrice1 commented Jan 20, 2022

Remove the unused files in htdocs/js/vendor, htdocs/css, htdocs/images, and all files in htdocs/applets, htdocs/html_templates, and htdocs/codemirror2.

The file htdocs/js/vendor/jquery/modules/jstorage.js was actually used by htdocs/js/apps/LocalStorage/localstorage.js, but that file has been updated to use native javascript, and so no longer uses it.

The files htdocs/css/jquery-ui-timepicker-addon.css and htdocs/js/apps/DatePicker/jquery-ui-timepicker-addon.js have been removed, and that is now installed via npm. This will conflict with another pull request of mine, but it is easy enough to resolve.

Note that several of the other files are used by pg/macros/LiveGraphics3d.pl, but that macro heavily depends on flash and java, and as such will be deleted. The javascript for that macro is also deleted here.

Also remove the unused, unmaintained, and unlinked to files
lib/WeBWorK/ContentGenerator/Instructor/Compare.pm,
lib/WeBWorK/ContentGenerator/Instructor/GetTargetSetProblems.pm,
lib/WeBWorK/ContentGenerator/Instructor/GetLibrarySetProblems.pm,
lib/WeBWorK/ContentGenerator/Instructor/Preflight.pm and
their corresponding paths in lib/WeBWorK/URLPath.pm.

If anyone sees a reason to keep a file that was deleted here, make sure to speak up.

and all files in htdocs/applets, htdocs/html_templates, and
htdocs/codemirror2.

The file htdocs/js/vendor/jquery/modules/jstorage.js was actually used
by htdocs/js/apps/LocalStorage/localstorage.js, but that file has been
updated to use native javascript, and so no longer uses it.

The files htdocs/css/jquery-ui-timepicker-addon.css and
htdocs/js/apps/DatePicker/jquery-ui-timepicker-addon.js have been
removed, and that is now installed via npm.

Note that several of the other files are used by
pg/macros/LiveGraphics3d.pl, but that macro heavily depends on flash and
java, and as such will be deleted.  The javascript for that macro is
also deleted here.

Also remove the unused, unmaintained, and unlinked to files
lib/WeBWorK/ContentGenerator/Instructor/Compare.pm,
lib/WeBWorK/ContentGenerator/Instructor/GetTargetSetProblems.pm,
lib/WeBWorK/ContentGenerator/Instructor/GetLibrarySetProblems.pm,
lib/WeBWorK/ContentGenerator/Instructor/Preflight.pm and
their corresponding paths in lib/WeBWorK/URLPath.pm.
@pstaabp
Copy link
Member

pstaabp commented Jan 21, 2022

An initial pull of this and going through all of the pages seems to not generate any errors--which I think is the big point of this.

Copy link
Member

@drdrew42 drdrew42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

Should this wait until after we merge the flatpicker? or does it matter?

@drgrice1
Copy link
Member Author

That shouldn't matter. I can fix the merge conflict.

@drgrice1
Copy link
Member Author

Either way, one of the pull requests will have a merge conflict anyway.

drgrice1 added a commit to drgrice1/pg that referenced this pull request Jan 27, 2022
show a warning if these methods are called.  So if a problem in the OPL
is used that uses one of these deprecated applet types, intructors will
know not to use the problem.

Also stub out the findAppletCodebase method in PGalias.pm.
None of those "codebases" will work anymore, and soon they will be
deleted (via openwebwork/webwork2#1553) which will cause this method to
fail with errors.  Interestingly some of the Geogebra problems in the
opl that call this method still work, even with this stub.
@pstaabp pstaabp merged commit c4c3f06 into openwebwork:develop Jan 28, 2022
@drgrice1 drgrice1 deleted the htdocs-cleanup branch January 28, 2022 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants