mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-25 08:35:29 +00:00
d85e7bf32e
This takes care of several minor annoyances: * centralizes all the text processing functions which have been floating all around the code, and adds proper tests * filters out invisible elements (sometimes used for metadata) * avoids merging separate words on HTML->text transformation * adds caching since doing all this transformations could be processing-intensive for big chunks of HTML. (This might or might not be a good idea. I haven't done performance tests, so this might be premature optimization, and increases memory use. OTOH these functions are often called in situations where an immediate UI response is expected (such as selecting a size from the list) so even small delays would be perceivable. Bug: 63126 Change-Id: I1ef1e3a33efdfea17612df00da6b629bf39e07aa Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/388 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/369 |
||
---|---|---|
.. | ||
img | ||
mmv.mixins.less | ||
mmv.ui.buttons.js | ||
mmv.ui.buttons.less | ||
mmv.ui.canvas.js | ||
mmv.ui.canvas.less | ||
mmv.ui.categories.js | ||
mmv.ui.categories.less | ||
mmv.ui.description.js | ||
mmv.ui.fileUsage.js | ||
mmv.ui.fileUsage.less | ||
mmv.ui.js | ||
mmv.ui.less | ||
mmv.ui.metadataPanel.js | ||
mmv.ui.metadataPanel.less | ||
mmv.ui.permission.js | ||
mmv.ui.permission.less | ||
mmv.ui.reuse.dialog.js | ||
mmv.ui.reuse.dialog.less | ||
mmv.ui.reuse.embed.js | ||
mmv.ui.reuse.embed.less | ||
mmv.ui.reuse.share.js | ||
mmv.ui.reuse.share.less | ||
mmv.ui.reuse.shareembed.less | ||
mmv.ui.reuse.tab.js |