Developer Area/MochiKit in Mahara: Difference between revisions
From Mahara Wiki
< Developer Area
(10 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
Picked up via automated tool: | Picked up via automated tool: | ||
Picked up via automated tool: | Picked up via automated tool: | ||
* account/index.php | * <s>account/index.php</s> | ||
* admin/groups/groupcategories.php | * <s>admin/groups/archives.php</s> | ||
* admin/groups/groups.php | * <s>admin/groups/groupcategories.php</s> | ||
* admin/site/fonts.php | * <s>admin/groups/groups.php</s> | ||
* admin/site/menu.php | * <s>admin/site/fonts.php</s> | ||
* admin/site/views.php | * <s>admin/site/menu.php</s> | ||
* admin/upgrade.php | * <s>admin/site/views.php</s> | ||
* admin/users/addauthority.php | * <s>admin/statistics.php</s> | ||
* <s>admin/upgrade.php</s> | |||
* <s>admin/users/addauthority.php</s> | |||
* <s>admin/users/institutionadmins.php</s> | |||
* admin/users/institutionpages.php | * admin/users/institutionpages.php | ||
* admin/users/institutions.php | * <s>admin/users/institutions.php</s> | ||
* admin/users/institutionusers.php | * <s>admin/users/institutionstaff.php</s> | ||
* admin/users/pendingregistrations.php | * <s>admin/users/institutionusers.php</s> | ||
* admin/users/progressbar.php | * <s>admin/users/pendingregistrations.php</s> | ||
* admin/users/statistics.php | * <s>admin/users/progressbar.php</s> | ||
* admin/users/suspended.php | * <s>admin/users/search.php</s> | ||
* artefact/annotation/lib.php | * <s>admin/users/statistics.php</s> | ||
* artefact/blog/index.php | * <s>admin/users/suspended.php</s> | ||
* artefact/blog/view/index.php | * <s>artefact/annotation/lib.php</s> | ||
* artefact/file/profileicons.php | * <s>artefact/blog/index.php</s> | ||
* artefact/internal/blocktype/textbox/lib.php | * <s>artefact/blog/view/index.php</s> | ||
* artefact/resume/lib.php | * <s>artefact/file/profileicons.php</s> | ||
* auth/lib.php | * <s>artefact/internal/blocktype/textbox/lib.php</s> | ||
* blocktype/creativecommons/lib.php | * <s>artefact/resume/lib.php</s> | ||
* blocktype/wall/lib.php | * <s>auth/lib.php</s> | ||
* group/members.php | * <s>blocktype/creativecommons/lib.php</s> | ||
* group/topics.php | * <s>blocktype/wall/lib.php</s> | ||
* group/view.php | * <s>group/members.php</s> | ||
* index.php | * <s>group/topics.php</s> | ||
* interaction/forum/lib.php | * <s>group/view.php</s> | ||
* lib/form/elements/artefactchooser.php | * <s>index.php</s> | ||
* lib/form/elements/checkboxes.php | * <s>interaction/forum/lib.php</s> | ||
* lib/form/elements/filebrowser.php | * <s>lib/form/elements/artefactchooser.php</s> | ||
* lib/form/renderers/maharatable.php | * <s>lib/form/elements/checkboxes.php</s> | ||
* lib/institution.php | * <s>lib/form/elements/filebrowser.php</s> | ||
* module/multirecipientnotification/inbox.php | * <s>lib/form/renderers/maharatable.php</s> | ||
* module/multirecipientnotification/outbox.php | * <s>lib/institution.php</s> | ||
* tags.php | * <s>module/multirecipientnotification/inbox.php</s> | ||
* user/find.php | * <s>module/multirecipientnotification/outbox.php</s> | ||
* user/myfriends.php | * <s>tags.php</s> | ||
* user/view.php | * <s>user/find.php</s> | ||
* view/access.php | * <s>user/myfriends.php</s> | ||
* view/blocks.php | * <s>user/view.php</s> | ||
* view/choosetemplate.php | * <s>view/access.php</s> | ||
* view/groupviews.php | * <s>view/blocks.php</s> | ||
* view/index.php | * <s>view/choosetemplate.php</s> | ||
* view/institutionviews.php | * <s>view/groupviews.php</s> | ||
* view/sharedviews.php | * <s>view/index.php</s> | ||
* view/view.php | * <s>view/institutionviews.php</s> | ||
* search/elasticsearch/index.php | * <s>view/sharedviews.php</s> | ||
* <s>view/view.php</s> | |||
* <s>search/elasticsearch/index.php</s> | |||
Picked up manually: | Picked up manually: | ||
* admin/extensions/plugins.php | * <s>admin/extensions/plugins.php</s> | ||
* lib/form/elements/color.php | * <s>lib/form/elements/color.php</s> | ||
* lib/form/elements/wysiwyg.php | * <s>lib/form/elements/wysiwyg.php</s> | ||
* lib/pieforms/pieform/elements/date.php | * <s>lib/pieforms/pieform/elements/date.php</s> | ||
* lib/pieforms/pieform/elements/expiry.php | * <s>lib/pieforms/pieform/elements/expiry.php</s> | ||
* lib/pieforms/pieform/elements/select.php | * <s>lib/pieforms/pieform/elements/select.php</s> | ||
* lib/pieforms/pieform/elements/textarea.php | * <s>lib/pieforms/pieform/elements/textarea.php</s> | ||
* selfsearch.php | * <s>selfsearch.php</s> | ||
* <s>theme/raw/templates/form/autocomplete.tpl</s> | |||
* <s>theme/raw/templates/form/emaillist.tpl</s> | |||
* <s>theme/raw/templates/form/files.tpl</s> | |||
* <s>theme/raw/templates/form/multitext.tpl</s> | |||
* <s>theme/raw/templates/form/userlist.tpl</s> | |||
* <s>theme/raw/templates/sideblocks/progressbar.tpl</s> | |||
* <s>theme/raw/templates/view/retractablejs.tpl</s> | |||
* <s>theme/raw/plugintype/artefact/blog/templates/blog.tpl</s> | |||
* <s>theme/raw/plugintype/artefact/blog/templates/view.tpl</s> | |||
* <s>theme/raw/plugintype/artefact/plans/blocktype/plans/templates/content.tpl</s> | |||
* <s>theme/raw/plugintype/artefact/blocktype/groupviews/templates/groupviews.tpl</s> | |||
* <s>theme/raw/plugintype/artefact/myfriends/templates/myfriends.tpl</s> | |||
* <s>theme/raw/plugintype/artefact/mygroups/templates/mygroups.tpl</s> | |||
* <s>theme/raw/plugintype/artefact/myviews/templates/myviews.tpl</s> | |||
* <s>theme/raw/plugintype/artefact/watchlist/templates/watchlist.tpl</s> | |||
== MochiKit in JS files == | == MochiKit in JS files == | ||
Line 76: | Line 96: | ||
* blocktype/creativecommons/js/creativecommons.js | * blocktype/creativecommons/js/creativecommons.js | ||
* blocktype/openbadgedisplayer/js/configform.js | * blocktype/openbadgedisplayer/js/configform.js | ||
* js/adminadduser.js | * <s>js/adminadduser.js</s> | ||
* js/adminexportqueue.js | * <s>js/adminexportqueue.js</s> | ||
* js/adminsiteoptions.js | * <s>js/adminsiteoptions.js</s> | ||
* js/adminsitepages.js | * <s>js/adminsitepages.js</s> | ||
* js/adminuploadcsv.js | * <s>js/adminuploadcsv.js</s> | ||
* js/adminusersearch.js | * <s>js/adminusersearch.js</s> | ||
* js/export.js | * js/export.js | ||
* js/keyboardNavigation.js | * <s>js/keyboardNavigation.js</s> | ||
* js/mahara.js | * js/mahara.js | ||
* js/paginator.js | * <s>js/paginator.js </s> | ||
* js/searchtable.js | * js/searchtable.js | ||
* js/tablerenderer.js | * js/tablerenderer.js |
Latest revision as of 11:12, 28 February 2017
MochiKit needs to be removed from Mahara since it's unmaintained and unnecessary alongside jQuery (https://bugs.launchpad.net/mahara/+bug/1323920). This page lists the places it is still used, both as a basic list and grouped by function to (hopefully) make it easier to refactor nicely.
The list, for the most part, has been automatically generated by this tool, which detects Mochikit function names. It has been manually reviewed for false positives, and other Mochikit patterns that the tool does not detect such as $() have been added manually.
MochiKit in PHP files
Picked up via automated tool: Picked up via automated tool:
account/index.phpadmin/groups/archives.phpadmin/groups/groupcategories.phpadmin/groups/groups.phpadmin/site/fonts.phpadmin/site/menu.phpadmin/site/views.phpadmin/statistics.phpadmin/upgrade.phpadmin/users/addauthority.phpadmin/users/institutionadmins.php- admin/users/institutionpages.php
admin/users/institutions.phpadmin/users/institutionstaff.phpadmin/users/institutionusers.phpadmin/users/pendingregistrations.phpadmin/users/progressbar.phpadmin/users/search.phpadmin/users/statistics.phpadmin/users/suspended.phpartefact/annotation/lib.phpartefact/blog/index.phpartefact/blog/view/index.phpartefact/file/profileicons.phpartefact/internal/blocktype/textbox/lib.phpartefact/resume/lib.phpauth/lib.phpblocktype/creativecommons/lib.phpblocktype/wall/lib.phpgroup/members.phpgroup/topics.phpgroup/view.phpindex.phpinteraction/forum/lib.phplib/form/elements/artefactchooser.phplib/form/elements/checkboxes.phplib/form/elements/filebrowser.phplib/form/renderers/maharatable.phplib/institution.phpmodule/multirecipientnotification/inbox.phpmodule/multirecipientnotification/outbox.phptags.phpuser/find.phpuser/myfriends.phpuser/view.phpview/access.phpview/blocks.phpview/choosetemplate.phpview/groupviews.phpview/index.phpview/institutionviews.phpview/sharedviews.phpview/view.phpsearch/elasticsearch/index.php
Picked up manually:
admin/extensions/plugins.phplib/form/elements/color.phplib/form/elements/wysiwyg.phplib/pieforms/pieform/elements/date.phplib/pieforms/pieform/elements/expiry.phplib/pieforms/pieform/elements/select.phplib/pieforms/pieform/elements/textarea.phpselfsearch.phptheme/raw/templates/form/autocomplete.tpltheme/raw/templates/form/emaillist.tpltheme/raw/templates/form/files.tpltheme/raw/templates/form/multitext.tpltheme/raw/templates/form/userlist.tpltheme/raw/templates/sideblocks/progressbar.tpltheme/raw/templates/view/retractablejs.tpltheme/raw/plugintype/artefact/blog/templates/blog.tpltheme/raw/plugintype/artefact/blog/templates/view.tpltheme/raw/plugintype/artefact/plans/blocktype/plans/templates/content.tpltheme/raw/plugintype/artefact/blocktype/groupviews/templates/groupviews.tpltheme/raw/plugintype/artefact/myfriends/templates/myfriends.tpltheme/raw/plugintype/artefact/mygroups/templates/mygroups.tpltheme/raw/plugintype/artefact/myviews/templates/myviews.tpltheme/raw/plugintype/artefact/watchlist/templates/watchlist.tpl
MochiKit in JS files
Picked up via automated tool:
- artefact/blog/blocktype/taggedposts/js/taggedposts.js
- artefact/file/js/filebrowser.js
- artefact/plans/blocktype/plans/js/plansblock.js
- blocktype/creativecommons/js/creativecommons.js
- blocktype/openbadgedisplayer/js/configform.js
js/adminadduser.jsjs/adminexportqueue.jsjs/adminsiteoptions.jsjs/adminsitepages.jsjs/adminuploadcsv.jsjs/adminusersearch.js- js/export.js
js/keyboardNavigation.js- js/mahara.js
js/paginator.js- js/searchtable.js
- js/tablerenderer.js
- js/viewmenu.js
- js/views.js
- lib/pieforms/static/core/elements/textarea.js
- lib/pieforms/static/core/pieforms.js
Picked up manually:
- artefact/annotation/blocktype/annotation/js/annotation.js
Custom MochiKit modules
- js/Pager.js - only used in /htdocs/js/tablerenderer.js. /htdocs/js/paginator.js is an alternate pagination method.
Grouped into similar components/snippets
- Editable list (admin/groups/groupcategories.php, admin/site/menu.php)
- User search (js/adminexportqueue.js, js/adminusersearch.js)
- Connecting pagination to search box
- admin/groups/groups.php
- admin/users/institutions.php
- group/members.php
- search/elasticsearch/index.php
- user/find.php
- user/myfriends.php
- Reloading the page on select box change (bad for accessibility!)
- admin/users/institutionusers.php
- admin/users/pendingregistrations.php
- admin/users/progressbar.php
- admin/users/statistics.php
- lib/institution.php
- Focus element on load
- admin/site/fonts.php
- admin/site/views.php
- view/groupviews.php
- view/institutionviews.php
- Form element hiding/showing
- admin/users/addauthority.php - SSO and auth login message
- admin/users/institutions.php - institution theme settings
- view/access.php
- Pagination initialization (artefact/blog/index.php, probably others)
- Showing/hiding content of an expander (artefact/resume/lib.php:get_showhide_composite_js)
- Blocktype inlinejs initialization (group/view.php, user/view.php, view/blocks.php, view/view.php)
- Pieforms elements (lib/form/elements/{artefactchooser,checkboxes,filebrowser}.php)
- Show upgrade progress (admin/upgrade.php)
- Changing blog post status (artefact/blog/view/index.php)
- Login form JS (auth/lib.php:get_login_form_js)
- Adding wall posts (blocktype/wall/lib.php)