Commit Graph

50 Commits

Author SHA1 Message Date
Syed Ali Abbas Zaidi
d7053a6783 fix: eslint autofixable issues (#32181)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue

* fix: all autofixable eslint issues

* fix: all react related fixable issues

* fix: autofixable eslint issues

* chore: remove all template literals

* fix: remaining autofixable issues

* fix: failing js test
2023-05-18 11:03:59 +05:00
Syed Ali Abbas Zaidi
5549db4d80 fix: migrate remaining eslint-config-edx (#31760)
* fix: migrate remaining eslint-config-edx

* refactor: updated eslint rules according to eslint-config-edx-es5

* refactor: add custom rules to suppress unnecessary eslint issues

* refactor: add custom rules to internal eslint configs

* fix: fix all indentation issues

* chore: update lock file
2023-03-02 16:16:50 +05:00
Ali-D-Akbar
a63848bfd5 PROD-2219 2020-12-18 20:48:05 +05:00
Eric Fischer
5bc6b31e29 eslint --fix 2017-12-08 14:38:41 -05:00
Brian Jacobel
163ff84699 Run eslint autofixer on /common 2016-08-08 15:59:18 -04:00
Omar Al-Ithawi
7cf1353f01 Fixup: draggable capa icons disappear in RTL layout 2015-12-28 09:41:30 +02:00
Jolyon Bloomfield
c9fe2b9756 Fixing drag and drop labels 2015-08-16 20:16:40 -04:00
Dave St.Germain
232df30b3e support aria-grabbed and aria-dropeffect 2014-05-22 09:51:50 -04:00
Dave St.Germain
f4391b5eb9 fixing drag and drop 2014-05-22 09:51:50 -04:00
Valera Rozuvan
1542a74d2b Removed logme module. Using console.log() instead.
Removing "logme" from comments.

BLD-608
2013-12-20 16:25:44 +02:00
David Baumgold
e53680bb92 make drag_and_drop component work with requirejs and changed static url 2013-10-09 10:26:22 -04:00
Valera Rozuvan
c54ad38fef Better positioning of elements draggables with labels in slider. 2013-03-14 19:42:55 +02:00
Vasyl Nakvasiuk
0d83fefecf merge feature/alex/drag_and_drop-mitx into feature/alex/poll-merged 2013-03-05 18:20:38 +02:00
Valera Rozuvan
47d1173394 Refactoring and cleaning of code. 2013-01-21 15:56:39 +02:00
Valera Rozuvan
3cc4a663ff Refactoring and cleaning of code. 2013-01-21 15:56:38 +02:00
Valera Rozuvan
5457f35f81 Drag and Drop: Further testing of new feature "can reuse". 2013-01-21 15:56:38 +02:00
Valera Rozuvan
0f7b89facc Bug fixes for new functionality: Draggable "is reusable". 2013-01-21 15:56:38 +02:00
Valera Rozuvan
5001680356 Implemented isReusable feature. Not fully tested. 2013-01-21 15:56:38 +02:00
Valera Rozuvan
98977cabdb Refactoring of Drag and Drop complete. Draggable properties isUsable, isOriginal included, but functionality connected with them is not complete. Found and fixed bug with z-index ordering. 2013-01-21 15:56:37 +02:00
Valera Rozuvan
f15887383e Refactoring. 2013-01-21 15:56:37 +02:00
Valera Rozuvan
8b3a8a30ab Refactoring. 2013-01-21 15:56:37 +02:00
Valera Rozuvan
79f5e98dfc Drag and Drop: refactoring + preparing for reuse of draggables. 2013-01-21 15:56:36 +02:00
Valera Rozuvan
ead346ee5f Refactoring. New feature: adding multiple draggables from one. 2013-01-21 15:56:36 +02:00
Valera Rozuvan
22014f7f58 New feature: Clicking on number for multiple icons on target will cycle all icons on target. Fixed bug with z-order ordering. 2013-01-21 15:56:35 +02:00
Valera Rozuvan
6d7cfe08df Slight UI modification. 2013-01-21 15:56:35 +02:00
Valera Rozuvan
15ffc1f64f New feature: added ability to define custom label background color. Upated demo to use this feature. Needs to be turned on Python side. 2013-01-21 15:56:35 +02:00
Valera Rozuvan
f92c0bdceb New feature: when the draggable is out of the slider container, if it has a label, the label will get a background. This way it is much easier to discern the label against the base image. 2013-01-21 15:56:34 +02:00
Valera Rozuvan
b7b25369e0 Added mouse event handlers to container of draggable. Now it is easier to initiate a dragging operation. 2013-01-21 15:56:34 +02:00
Valera Rozuvan
d531746236 Removed reliance on imageDir config setting. Now we expect the correct path to tbe set in XML. 2013-01-21 15:56:33 +02:00
Valera Rozuvan
9817253850 Fixed problem with smaller and larger base images. Refactoring. Cleaning of code. 2013-01-21 15:56:32 +02:00
Valera Rozuvan
f283df9022 Cleaning up code. 2013-01-21 15:56:31 +02:00
Valera Rozuvan
586a47a2ad Rewrote functionality to include labels as separate from the container. Fixed bugs. Refactoring. 2013-01-21 15:56:30 +02:00
Valera Rozuvan
1cc23e3a4d Bugfixing. 2013-01-21 15:56:29 +02:00
Valera Rozuvan
2e08ece7ff Fixed drag behavior. Now drag of icon itself rather than container element. This allows for finer selection (no overlap of transparent areas), and positioning of icon precisely onto a target. This breaks labels - TODO fix. 2013-01-21 15:56:29 +02:00
Valera Rozuvan
f1f3b2ea8b Slight UI design change. Draggables are now positioned in the center of their container DIV. 2013-01-21 15:56:27 +02:00
Valera Rozuvan
108b0fc384 Refactoring and code documentation. 2013-01-21 15:55:47 +02:00
Valera Rozuvan
58483319a3 Refactoring. 2013-01-21 15:55:47 +02:00
Valera Rozuvan
9ef0c563ef Slight changes in UI styling. 2013-01-21 15:55:47 +02:00
Valera Rozuvan
3bbe0759ea Added support for reading answer from input element (as set by server). 2013-01-21 15:55:47 +02:00
Valera Rozuvan
86d133664a Fixing bugs. Now resize of window does not mess up targets. Dragging is much smoother on touch pad. Removed border from draggable when it is not in slider. The whole applet fits into min-width of main part of page. 2013-01-21 15:55:46 +02:00
Valera Rozuvan
f9169613fc Making JS work with the new XML format. 2013-01-21 15:55:46 +02:00
Valera Rozuvan
c5d4f54aa2 Slight changes to UI design. Part 2. 2013-01-21 15:55:45 +02:00
Valera Rozuvan
545b1bea24 Slight changes to UI design. 2013-01-21 15:55:45 +02:00
Valera Rozuvan
3048853749 Added ability to communicate with server via input element. Work in progress. Part 8. 2013-01-21 15:55:45 +02:00
Valera Rozuvan
c34fbbe19f Added support for individual targets. Work in progress. Part 7. 2013-01-21 15:55:45 +02:00
Valera Rozuvan
06f1c54fa7 Fix. Now the z index stack is consistent. 2013-01-21 15:55:44 +02:00
Valera Rozuvan
b1a73a5293 Client side drag and drop. Work in progress. Part 5. 2013-01-21 15:55:44 +02:00
Valera Rozuvan
4594986b38 Client side drag and drop. Work in progress. Part 4. 2013-01-21 15:54:56 +02:00
Valera Rozuvan
06fd823881 Client side drag and drop. Work in progress. Part 3. 2013-01-21 15:54:56 +02:00
Valera Rozuvan
8d69049746 Client-side Drag and Drop: work in progress. Part 1. 2013-01-21 15:53:44 +02:00