From 0536ea0abfe8f947bbc1e34a20ac1d281237feae Mon Sep 17 00:00:00 2001 From: Amir Qayyum khan Date: Mon, 16 Mar 2015 13:21:11 +0500 Subject: [PATCH 01/47] Design changes in sga settings page, added a settings tab and style in css file, added some classes --- edx_sga/static/css/edx_sga.css | 63 +++++++++++++++++++ .../staff_graded_assignment/edit.html | 4 ++ 2 files changed, 67 insertions(+) diff --git a/edx_sga/static/css/edx_sga.css b/edx_sga/static/css/edx_sga.css index de645591..ca290f2b 100644 --- a/edx_sga/static/css/edx_sga.css +++ b/edx_sga/static/css/edx_sga.css @@ -60,3 +60,66 @@ .sga-block .error { color: red; } + +.modal-type-edx_sga .wrapper-comp-settings .list-input.settings-list .field.comp-setting-entry { + padding: 10px; +} + +.modal-type-edx_sga .comp-setting-entry { + padding: 10px; + margin-right: 10px; + overflow: auto; + margin: 0; + font-size: 11px; + float: right; + width: 100%; + height: auto; + resize: none; + box-sizing: border-box; + border-bottom: 1px #e5e5e5; + box-shadow: inset 0 1px 2px 0 rgba(0,0,0,0.1); + font-family:'Open Sans', sans-serif; + color: #4c4c4c; + outline: 0; +} + +.modal-type-edx_sga .setting-label{ + font-weight: bold; + margin-left: 5px; +} + +.modal-type-edx_sga .setting-input{ + margin-left: 15px; + width: 30%; +} + +.modal-type-edx_sga .setting-help{ + margin-top: 10px; + margin-left: 5px; +} + +.modal-type-edx_sga ul.editor-modes.action-list.action-modes { + top: 4px; + position: relative; +} + +.modal-type-edx_sga ul.editor-modes.action-list.action-modes li { + background-color: #646464; + display: block; + padding: 5px 10px; + border-radius: 4px; + color: #FFF; + text-transform: uppercase; + font-size: 15px; + text-shadow: 0px 0px 2px #333; + width: 90px; + text-align: center; + margin-left: auto; + height: auto; +} + +.modal-type-edx_sga ul.editor-modes.action-list.action-modes li a:hover { + background: #777; + color: #FFF; +} + diff --git a/edx_sga/templates/staff_graded_assignment/edit.html b/edx_sga/templates/staff_graded_assignment/edit.html index 57dfc9be..4ef3d34a 100644 --- a/edx_sga/templates/staff_graded_assignment/edit.html +++ b/edx_sga/templates/staff_graded_assignment/edit.html @@ -16,3 +16,7 @@ {% endfor %} + + From c28ba68410fe272f4843225edb885e5320c00fae Mon Sep 17 00:00:00 2001 From: Amir Qayyum khan Date: Wed, 11 Mar 2015 14:22:04 +0500 Subject: [PATCH 02/47] Added weight validations and test cases, split long length test into sub funtions --- edx_sga/sga.py | 16 +++++++++++++++- edx_sga/tests.py | 47 ++++++++++++++++++++++++++++++++++------------- 2 files changed, 49 insertions(+), 14 deletions(-) diff --git a/edx_sga/sga.py b/edx_sga/sga.py index 42cb3edd..53358a13 100644 --- a/edx_sga/sga.py +++ b/edx_sga/sga.py @@ -316,7 +316,6 @@ def none_to_empty(x): @XBlock.json_handler def save_sga(self, data, suffix=''): self.display_name = data.get('display_name', self.display_name) - self.weight = data.get('weight', self.weight) # Validate points before saving points = data.get('points', self.points) @@ -330,6 +329,21 @@ def save_sga(self, data, suffix=''): raise JsonHandlerError(400, 'Points must be a positive integer') self.points = points + # Validate weight before saving + weight = data.get('weight', self.weight) + # Check that weight is a float. + if weight: + try: + weight = float(weight) + except ValueError: + raise JsonHandlerError(400, 'Weight must be a decimal number') + # Check that we are positive + if weight < 0: + raise JsonHandlerError( + 400, 'Weight must be a positive decimal number' + ) + self.weight = weight + @XBlock.handler def upload_assignment(self, request, suffix=''): require(self.upload_allowed()) diff --git a/edx_sga/tests.py b/edx_sga/tests.py index 7a37b425..1c60b07e 100644 --- a/edx_sga/tests.py +++ b/edx_sga/tests.py @@ -245,6 +245,38 @@ def test_studio_view(self, Fragment, render_template): "StaffGradedAssignmentXBlock") def test_save_sga(self): + def weights_positive_float_test(): + orig_weight = 11.0 + + # Test negative weight doesn't work + block.save_sga(mock.Mock(method="POST", body=json.dumps({ + "display_name": "Test Block", + "points": '100', + "weight": -10.0}))) + self.assertEqual(block.weight, orig_weight) + + # Test string weight doesn't work + block.save_sga(mock.Mock(method="POST", body=json.dumps({ + "display_name": "Test Block", + "points": '100', + "weight": "a"}))) + self.assertEqual(block.weight, orig_weight) + + def point_positive_int_test(): + # Test negative doesn't work + block.save_sga(mock.Mock(method="POST", body=json.dumps({ + "display_name": "Test Block", + "points": '-10', + "weight": 11}))) + self.assertEqual(block.points, orig_score) + + # Test float doesn't work + block.save_sga(mock.Mock(method="POST", body=json.dumps({ + "display_name": "Test Block", + "points": '24.5', + "weight": 11}))) + self.assertEqual(block.points, orig_score) + orig_score = 23 block = self.make_one() block.save_sga(mock.Mock(body='{}')) @@ -259,19 +291,8 @@ def test_save_sga(self): self.assertEqual(block.points, orig_score) self.assertEqual(block.weight, 11) - # Test negative doesn't work - block.save_sga(mock.Mock(method="POST", body=json.dumps({ - "display_name": "Test Block", - "points": '-10', - "weight": 11}))) - self.assertEqual(block.points, orig_score) - - # Test float doesn't work - block.save_sga(mock.Mock(method="POST", body=json.dumps({ - "display_name": "Test Block", - "points": '24.5', - "weight": 11}))) - self.assertEqual(block.points, orig_score) + point_positive_int_test() + weights_positive_float_test() def test_upload_download_assignment(self): path = pkg_resources.resource_filename(__package__, 'tests.py') From 00db211c8f6bf13a024303a43077fa1617690571 Mon Sep 17 00:00:00 2001 From: Amir Qayyum khan Date: Wed, 11 Mar 2015 12:04:22 +0500 Subject: [PATCH 03/47] Changed enter grade link style to make it look like button and added some spaces in css attributes --- edx_sga/static/css/edx_sga.css | 37 +++++++++++++++++-- .../staff_graded_assignment/show.html | 4 +- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/edx_sga/static/css/edx_sga.css b/edx_sga/static/css/edx_sga.css index ca290f2b..420a2fbf 100644 --- a/edx_sga/static/css/edx_sga.css +++ b/edx_sga/static/css/edx_sga.css @@ -39,9 +39,10 @@ .sga-block .upload button { position: absolute; - top: 0px; + top: 1px; left: 0px; z-index: 1; + cursor: pointer; } .sga-block .upload .fileupload { @@ -50,11 +51,15 @@ filter:alpha(opacity: 0); opacity: 0; z-index: 2; + width: 200px; + cursor: pointer; } .sga-block td .upload button { padding: 3px; width: 100%; + height: 20px; + cursor: pointer; } .sga-block .error { @@ -119,7 +124,33 @@ } .modal-type-edx_sga ul.editor-modes.action-list.action-modes li a:hover { - background: #777; - color: #FFF; + background: #777; + color: #FFF; +} + +.sga-block a.button { + background-color: #E5E4E3; + border: 1px solid #cec5c5; + border-radius: 2px; + text-decoration: none; + -moz-user-select: none; + box-sizing: border-box; + cursor: pointer; + display: inline-block; + line-height: normal; + text-align: center; + vertical-align: middle; + white-space: nowrap; + top: 0px; + left: 0px; + z-index: 2; + padding: 2px; + width: 200px; + color: #333346; + font-weight: bold; + font-size: 0.8125em; + margin-top: 1px; + height: 20px; + cursor: pointer; } diff --git a/edx_sga/templates/staff_graded_assignment/show.html b/edx_sga/templates/staff_graded_assignment/show.html index ff45d89e..af1fe43b 100644 --- a/edx_sga/templates/staff_graded_assignment/show.html +++ b/edx_sga/templates/staff_graded_assignment/show.html @@ -87,14 +87,14 @@ <% if (assignment.may_grade) { %> - + <% if (assignment.needs_approval) { %> {% trans "Approve grade" %} <% } else { %> {% trans "Enter grade" %} <% } %> - <% } %> + <% } %>
From e3b5cf1416137e8aafc73785bcbe8c5f580bc3e1 Mon Sep 17 00:00:00 2001 From: Amir Qayyum khan Date: Fri, 13 Mar 2015 19:19:54 +0500 Subject: [PATCH 04/47] added display name on sga lms and grade submission dialog --- edx_sga/sga.py | 2 ++ edx_sga/static/css/edx_sga.css | 3 +++ edx_sga/static/js/src/edx_sga.js | 4 ++++ .../templates/staff_graded_assignment/show.html | 5 ++++- edx_sga/tests.py | 16 ++++++++++++++-- 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/edx_sga/sga.py b/edx_sga/sga.py index 53358a13..ca92613f 100644 --- a/edx_sga/sga.py +++ b/edx_sga/sga.py @@ -224,6 +224,7 @@ def student_state(self): graded = None return { + "display_name": self.display_name, "uploaded": uploaded, "annotated": annotated, "graded": graded, @@ -280,6 +281,7 @@ def get_student_data(): return { 'assignments': list(get_student_data()), 'max_score': self.max_score(), + 'display_name': self.display_name } def studio_view(self, context=None): diff --git a/edx_sga/static/css/edx_sga.css b/edx_sga/static/css/edx_sga.css index ca290f2b..cc18c11b 100644 --- a/edx_sga/static/css/edx_sga.css +++ b/edx_sga/static/css/edx_sga.css @@ -123,3 +123,6 @@ color: #FFF; } +.sga-block .display_name { + color: inherit; +} diff --git a/edx_sga/static/js/src/edx_sga.js b/edx_sga/static/js/src/edx_sga.js index 21a29b67..b80bbbe8 100644 --- a/edx_sga/static/js/src/edx_sga.js +++ b/edx_sga/static/js/src/edx_sga.js @@ -91,6 +91,10 @@ function StaffGradedAssignmentXBlock(runtime, element) { function renderStaffGrading(data) { $(".grade-modal").hide(); + if (data.display_name != ""){ + $(".sga-block .display_name").html(data.display_name); + } + // Add download urls to template context data.downloadUrl = staffDownloadUrl; data.annotatedUrl = staffAnnotatedUrl; diff --git a/edx_sga/templates/staff_graded_assignment/show.html b/edx_sga/templates/staff_graded_assignment/show.html index ff45d89e..d97996c1 100644 --- a/edx_sga/templates/staff_graded_assignment/show.html +++ b/edx_sga/templates/staff_graded_assignment/show.html @@ -3,6 +3,9 @@
@@ -180,4 +184,4 @@
{% endif %} -
+ \ No newline at end of file From 6531a7c93470eb6f56aa41a2c84a1cb36338071f Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Thu, 27 Aug 2015 15:46:16 -0400 Subject: [PATCH 14/47] Added basic developer notes. --- DEVELOPMENT.rst | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 DEVELOPMENT.rst diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst new file mode 100644 index 00000000..e69de29b From d1c259213493d8fb3cd156866af8e69e1239ae67 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Thu, 27 Aug 2015 15:49:27 -0400 Subject: [PATCH 15/47] Added content to basic developer quickstart. --- DEVELOPMENT.rst | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index e69de29b..5e62da2d 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -0,0 +1,31 @@ +Developing on edx-sga +============================== + +Setup +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +1. Install devstack [as described here](http://mitodl.github.io/edx-dev-intro-slides/#6), but don't ``paver run_all_servers`` yet. +2. Instead, pip uninstall edx-sga (since it's part of the edx distribution, we have to remove the installed version) +3. ``cd /edx/app/edxapp/themes/`` +4. Fork https://github.com/mitodl/edx-sga.git to your own github account. +5. ``git clone https://github.com/your-name/edx-sga.git`` + +6. ``cd edx-sga/`` +7. ``pip install -e .`` +8. ``paver run_all_servers`` + +You should now see your fork of the most recent master branch of edx-sga running in the LMS. + +Developing +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +1. ``cd /edx/app/edxapp/themes/edx-sga/`` +2. ``git branch feature/your-name/name-of-feature`` +3. write code +4. ``git add .`` +5. ``git commit -m "Description of feature added."`` +6. ``git push origin feature/your-name/name-of-feature`` +7. Rebase your branch against mitodl/master and resolve any conflicts. +8. Open a pull request from your fork/feature branch to mitodl/master + +Also, see: [testing](https://github.com/mitodl/edx-sga#testing). Javascript testing will be added soon. From 7141ce2ec03837282049005edb8f1890156979bf Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Thu, 27 Aug 2015 15:59:01 -0400 Subject: [PATCH 16/47] Add complete details to devstack setup, cribbed from @carsongee's excellent slides. --- DEVELOPMENT.rst | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 5e62da2d..1a4685d3 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -1,18 +1,25 @@ Developing on edx-sga ============================== -Setup +Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -1. Install devstack [as described here](http://mitodl.github.io/edx-dev-intro-slides/#6), but don't ``paver run_all_servers`` yet. -2. Instead, pip uninstall edx-sga (since it's part of the edx distribution, we have to remove the installed version) -3. ``cd /edx/app/edxapp/themes/`` -4. Fork https://github.com/mitodl/edx-sga.git to your own github account. -5. ``git clone https://github.com/your-name/edx-sga.git`` - -6. ``cd edx-sga/`` -7. ``pip install -e .`` -8. ``paver run_all_servers`` +1. _Install vagrant: http://docs.vagrantup.com/v2/installation/ +2. _Install virtualbox: https://www.virtualbox.org/wiki/Downloads +3. ``mkdir devstack`` +4. ``cd devstack`` +5. ``curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile`` +6. ``vagrant plugin install vagrant-vbguest`` +7. ``vagrant up`` +8. ``vagrant ssh`` +9. ``sudo su edxapp`` +10. ``cd /edx/app/edxapp/themes/`` +11. ``pip uninstall edx-sga`` (since it's part of the edx distribution, we have to remove the installed version) +12. Fork https://github.com/mitodl/edx-sga.git to your own github account. +13. ``git clone https://github.com/your-name/edx-sga.git`` +14. ``cd edx-sga/`` +15. ``pip install -e .`` +16. ``paver run_all_servers`` You should now see your fork of the most recent master branch of edx-sga running in the LMS. From 79185ea8e4c567187e7fc53c253e6673d2c223c8 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Thu, 27 Aug 2015 16:01:40 -0400 Subject: [PATCH 17/47] Fix formatting. --- DEVELOPMENT.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 1a4685d3..1229731c 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,8 +4,8 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -1. _Install vagrant: http://docs.vagrantup.com/v2/installation/ -2. _Install virtualbox: https://www.virtualbox.org/wiki/Downloads +1. Install vagrant: http://docs.vagrantup.com/v2/installation/ +2. Install virtualbox: https://www.virtualbox.org/wiki/Downloads 3. ``mkdir devstack`` 4. ``cd devstack`` 5. ``curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile`` @@ -35,4 +35,4 @@ Developing 7. Rebase your branch against mitodl/master and resolve any conflicts. 8. Open a pull request from your fork/feature branch to mitodl/master -Also, see: [testing](https://github.com/mitodl/edx-sga#testing). Javascript testing will be added soon. +Also, see testing: https://github.com/mitodl/edx-sga#testing. Javascript testing will be added soon. From 52b78675c364ecab28a26df22657b3f234e77b29 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Thu, 27 Aug 2015 16:59:04 -0400 Subject: [PATCH 18/47] Fix sequence of steps. --- DEVELOPMENT.rst | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 1229731c..de80d73a 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -11,22 +11,23 @@ Setup (including devstack setup) 5. ``curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile`` 6. ``vagrant plugin install vagrant-vbguest`` 7. ``vagrant up`` -8. ``vagrant ssh`` -9. ``sudo su edxapp`` -10. ``cd /edx/app/edxapp/themes/`` -11. ``pip uninstall edx-sga`` (since it's part of the edx distribution, we have to remove the installed version) -12. Fork https://github.com/mitodl/edx-sga.git to your own github account. -13. ``git clone https://github.com/your-name/edx-sga.git`` -14. ``cd edx-sga/`` -15. ``pip install -e .`` -16. ``paver run_all_servers`` +8. ``cd themes/`` +9. Fork https://github.com/mitodl/edx-sga.git to your own github account. +10. ``git clone https://github.com/your-name/edx-sga.git`` +11. ``vagrant ssh`` +12. ``sudo su edxapp`` +13. ``cd /edx/app/edxapp/themes/`` +14. ``pip uninstall edx-sga`` (since it's part of the edx distribution, we have to remove the installed version) +15. ``cd edx-sga/`` +16. ``pip install -e .`` +17. ``paver run_all_servers`` You should now see your fork of the most recent master branch of edx-sga running in the LMS. Developing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -1. ``cd /edx/app/edxapp/themes/edx-sga/`` +1. ``cd /path/to/devstack/themes/edx-sga`` in your host filesystem 2. ``git branch feature/your-name/name-of-feature`` 3. write code 4. ``git add .`` From bcd9d47f66b5737e94ef55e14273f39bc0404546 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 09:31:26 -0400 Subject: [PATCH 19/47] Add a link to the edx rebase process page. --- DEVELOPMENT.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index de80d73a..b9576ea7 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -33,7 +33,7 @@ Developing 4. ``git add .`` 5. ``git commit -m "Description of feature added."`` 6. ``git push origin feature/your-name/name-of-feature`` -7. Rebase your branch against mitodl/master and resolve any conflicts. +7. Rebase your branch against mitodl/master and resolve any conflicts, following this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request. 8. Open a pull request from your fork/feature branch to mitodl/master Also, see testing: https://github.com/mitodl/edx-sga#testing. Javascript testing will be added soon. From 44b489718a234d62ee51311c6b4abd1e1ed8ba58 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 11:01:57 -0400 Subject: [PATCH 20/47] Added header cell to the assignments table. --- edx_sga/templates/staff_graded_assignment/show.html | 1 + 1 file changed, 1 insertion(+) diff --git a/edx_sga/templates/staff_graded_assignment/show.html b/edx_sga/templates/staff_graded_assignment/show.html index b9e96974..fc8dbc75 100644 --- a/edx_sga/templates/staff_graded_assignment/show.html +++ b/edx_sga/templates/staff_graded_assignment/show.html @@ -58,6 +58,7 @@ Grade Instructor's comments Annotated + Actions From 29b35b354d1eacd8215a0c13eda7b8c2b1c422a9 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 11:09:39 -0400 Subject: [PATCH 21/47] Revert "Added header cell to the assignments table." This reverts commit 44b489718a234d62ee51311c6b4abd1e1ed8ba58. --- edx_sga/templates/staff_graded_assignment/show.html | 1 - 1 file changed, 1 deletion(-) diff --git a/edx_sga/templates/staff_graded_assignment/show.html b/edx_sga/templates/staff_graded_assignment/show.html index fc8dbc75..b9e96974 100644 --- a/edx_sga/templates/staff_graded_assignment/show.html +++ b/edx_sga/templates/staff_graded_assignment/show.html @@ -58,7 +58,6 @@ Grade Instructor's comments Annotated - Actions From f515f9367ad6a8947fda035991f6a8958e5a356e Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 11:12:48 -0400 Subject: [PATCH 22/47] Add actions cell to assignments table header. --- edx_sga/templates/staff_graded_assignment/show.html | 1 + 1 file changed, 1 insertion(+) diff --git a/edx_sga/templates/staff_graded_assignment/show.html b/edx_sga/templates/staff_graded_assignment/show.html index b9e96974..fc8dbc75 100644 --- a/edx_sga/templates/staff_graded_assignment/show.html +++ b/edx_sga/templates/staff_graded_assignment/show.html @@ -58,6 +58,7 @@ Grade Instructor's comments Annotated + Actions From d8179dbe462694cb5623863145853ac0a9f1ef3f Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 12:46:19 -0400 Subject: [PATCH 23/47] Fixed heading underline being too short. --- DEVELOPMENT.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index b9576ea7..8fa58120 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -2,7 +2,7 @@ Developing on edx-sga ============================== Setup (including devstack setup) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Install vagrant: http://docs.vagrantup.com/v2/installation/ 2. Install virtualbox: https://www.virtualbox.org/wiki/Downloads From b0a8071037ccedd989829888fffd71140d439329 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:08:43 -0400 Subject: [PATCH 24/47] Make commands copy/paste-able. --- DEVELOPMENT.rst | 63 +++++++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 8fa58120..d601ebe9 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,36 +4,43 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -1. Install vagrant: http://docs.vagrantup.com/v2/installation/ -2. Install virtualbox: https://www.virtualbox.org/wiki/Downloads -3. ``mkdir devstack`` -4. ``cd devstack`` -5. ``curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile`` -6. ``vagrant plugin install vagrant-vbguest`` -7. ``vagrant up`` -8. ``cd themes/`` -9. Fork https://github.com/mitodl/edx-sga.git to your own github account. -10. ``git clone https://github.com/your-name/edx-sga.git`` -11. ``vagrant ssh`` -12. ``sudo su edxapp`` -13. ``cd /edx/app/edxapp/themes/`` -14. ``pip uninstall edx-sga`` (since it's part of the edx distribution, we have to remove the installed version) -15. ``cd edx-sga/`` -16. ``pip install -e .`` -17. ``paver run_all_servers`` +#. Install vagrant: http://docs.vagrantup.com/v2/installation/ +#. Install virtualbox: https://www.virtualbox.org/wiki/Downloads +#. Set up devstack:: + + mkdir devstack + cd devstack + curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile + vagrant plugin install vagrant-vbguest + vagrant up + cd themes/ + +#. Fork https://github.com/mitodl/edx-sga.git to your own github account. +#. Set up your development environment + + git clone https://github.com/your-name/edx-sga.git + vagrant ssh + sudo su edxapp + cd /edx/app/edxapp/themes/ + pip uninstall edx-sga (since it's part of the edx distribution, we have to remove the installed version) + cd edx-sga/ + pip install -e . + paver run_all_servers You should now see your fork of the most recent master branch of edx-sga running in the LMS. -Developing -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -1. ``cd /path/to/devstack/themes/edx-sga`` in your host filesystem -2. ``git branch feature/your-name/name-of-feature`` -3. write code -4. ``git add .`` -5. ``git commit -m "Description of feature added."`` -6. ``git push origin feature/your-name/name-of-feature`` -7. Rebase your branch against mitodl/master and resolve any conflicts, following this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request. -8. Open a pull request from your fork/feature branch to mitodl/master +Developing:: + + cd /path/to/devstack/themes/edx-sga # (in your host filesystem) + git branch feature/your-name/name-of-feature + +Write Code, then:: + + git add . + git commit -m "Description of feature added." + git push origin feature/your-name/name-of-feature + +#. Rebase your branch against mitodl/master and resolve any conflicts, following this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request. +#. Open a pull request from your fork/feature branch to mitodl/master Also, see testing: https://github.com/mitodl/edx-sga#testing. Javascript testing will be added soon. From d00ae587dfb0a8bf04192cf23797c1914193e8ca Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:09:43 -0400 Subject: [PATCH 25/47] Formatting tweak. --- DEVELOPMENT.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index d601ebe9..e389b307 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -29,7 +29,8 @@ Setup (including devstack setup) You should now see your fork of the most recent master branch of edx-sga running in the LMS. -Developing:: +Developing +~~~~~~~~~~ cd /path/to/devstack/themes/edx-sga # (in your host filesystem) git branch feature/your-name/name-of-feature From 13db9157d95db5ae67c63cff2d53d52dd9ce9a5f Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:10:00 -0400 Subject: [PATCH 26/47] Formatting tweak. --- DEVELOPMENT.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index e389b307..c2781218 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -16,7 +16,7 @@ Setup (including devstack setup) cd themes/ #. Fork https://github.com/mitodl/edx-sga.git to your own github account. -#. Set up your development environment +#. Set up your development environment:: git clone https://github.com/your-name/edx-sga.git vagrant ssh From 665bfc524c1496d7cd6920b46775637d741dffb8 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:11:02 -0400 Subject: [PATCH 27/47] Formatting tweak. --- DEVELOPMENT.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index c2781218..6aac9e22 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -32,10 +32,11 @@ You should now see your fork of the most recent master branch of edx-sga running Developing ~~~~~~~~~~ - cd /path/to/devstack/themes/edx-sga # (in your host filesystem) +#. In your host filesystem:: + cd /path/to/devstack/themes/edx-sga git branch feature/your-name/name-of-feature -Write Code, then:: +#. Write Code, then:: git add . git commit -m "Description of feature added." From f55db1954a31f7bc43135d3a99198878440c63c6 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:11:25 -0400 Subject: [PATCH 28/47] Formatting tweak. --- DEVELOPMENT.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 6aac9e22..fb877444 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -33,6 +33,7 @@ Developing ~~~~~~~~~~ #. In your host filesystem:: + cd /path/to/devstack/themes/edx-sga git branch feature/your-name/name-of-feature From fb997003db7e1cb1020aeeda9c565c7aa60f7546 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:13:21 -0400 Subject: [PATCH 29/47] Formatting tweak. --- DEVELOPMENT.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index fb877444..dc72c16a 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,8 +4,8 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#. Install vagrant: http://docs.vagrantup.com/v2/installation/ -#. Install virtualbox: https://www.virtualbox.org/wiki/Downloads +#. .. _Install vagrant: http://docs.vagrantup.com/v2/installation/ +#. .. _Install virtualbox: https://www.virtualbox.org/wiki/Downloads #. Set up devstack:: mkdir devstack @@ -43,7 +43,7 @@ Developing git commit -m "Description of feature added." git push origin feature/your-name/name-of-feature -#. Rebase your branch against mitodl/master and resolve any conflicts, following this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request. +#. Rebase your branch against mitodl/master and resolve any conflicts, following .. _this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request. #. Open a pull request from your fork/feature branch to mitodl/master -Also, see testing: https://github.com/mitodl/edx-sga#testing. Javascript testing will be added soon. +Also, see .. _testing: https://github.com/mitodl/edx-sga#testing. Javascript testing will be added soon. From 989d56b87737ef4cf3e1fc3fe47b457c586b7c19 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:15:40 -0400 Subject: [PATCH 30/47] Formatting tweak. --- DEVELOPMENT.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index dc72c16a..a703f0cd 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,8 +4,8 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#. .. _Install vagrant: http://docs.vagrantup.com/v2/installation/ -#. .. _Install virtualbox: https://www.virtualbox.org/wiki/Downloads +#. Install vagrant__ +#. Install virtualbox__ #. Set up devstack:: mkdir devstack @@ -43,7 +43,12 @@ Developing git commit -m "Description of feature added." git push origin feature/your-name/name-of-feature -#. Rebase your branch against mitodl/master and resolve any conflicts, following .. _this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request. +#. Rebase your branch against mitodl/master and resolve any conflicts, following this process__. #. Open a pull request from your fork/feature branch to mitodl/master -Also, see .. _testing: https://github.com/mitodl/edx-sga#testing. Javascript testing will be added soon. +Also, see testing__. Javascript testing will be added soon. + +.. _Install vagrant: http://docs.vagrantup.com/v2/installation/ +.. _Install virtualbox: https://www.virtualbox.org/wiki/Downloads +.. _this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request +.. _testing: https://github.com/mitodl/edx-sga#testing \ No newline at end of file From a46823143ce5ed838d39af194ab99e2177a815fe Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:16:21 -0400 Subject: [PATCH 31/47] Formatting tweak. --- DEVELOPMENT.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index a703f0cd..6b225a37 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,8 +4,8 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#. Install vagrant__ -#. Install virtualbox__ +#. Install vagrant_ +#. Install virtualbox_ #. Set up devstack:: mkdir devstack @@ -43,12 +43,12 @@ Developing git commit -m "Description of feature added." git push origin feature/your-name/name-of-feature -#. Rebase your branch against mitodl/master and resolve any conflicts, following this process__. +#. Rebase your branch against mitodl/master and resolve any conflicts, following this process_. #. Open a pull request from your fork/feature branch to mitodl/master -Also, see testing__. Javascript testing will be added soon. +Also, see testing_. Javascript testing will be added soon. .. _Install vagrant: http://docs.vagrantup.com/v2/installation/ .. _Install virtualbox: https://www.virtualbox.org/wiki/Downloads .. _this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request -.. _testing: https://github.com/mitodl/edx-sga#testing \ No newline at end of file +.. _testing: https://github.com/mitodl/edx-sga#testing From 9913fd091dfe5d7b441e4c8e322b41de6096aedb Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:17:06 -0400 Subject: [PATCH 32/47] Formatting tweak. --- DEVELOPMENT.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 6b225a37..1320792b 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,7 +4,7 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#. Install vagrant_ +#. Install vagrant #. Install virtualbox_ #. Set up devstack:: From ca1fa6c40f7793cb5c74a626e52433ee52e219c1 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:17:58 -0400 Subject: [PATCH 33/47] Formatting tweak. --- DEVELOPMENT.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 1320792b..b56a2342 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,8 +4,8 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#. Install vagrant -#. Install virtualbox_ +#. Install vagrant_. +#. Install virtualbox_. #. Set up devstack:: mkdir devstack From fbb02c3ad9e14a7c2d13951d94cb26e802e20502 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:18:52 -0400 Subject: [PATCH 34/47] Formatting tweak. --- DEVELOPMENT.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index b56a2342..799ca068 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,8 +4,8 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#. Install vagrant_. -#. Install virtualbox_. +#. `Install vagrant`__. +#. `Install virtualbox`__. #. Set up devstack:: mkdir devstack From 37dbd4a4d0dd8d7bbffac482905b7285ce983db1 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:21:42 -0400 Subject: [PATCH 35/47] Formatting tweak. --- DEVELOPMENT.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 799ca068..3145e203 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,8 +4,8 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#. `Install vagrant`__. -#. `Install virtualbox`__. +#. `Install vagrant `_. +#. `Install virtualbox `_. #. Set up devstack:: mkdir devstack @@ -48,7 +48,5 @@ Developing Also, see testing_. Javascript testing will be added soon. -.. _Install vagrant: http://docs.vagrantup.com/v2/installation/ -.. _Install virtualbox: https://www.virtualbox.org/wiki/Downloads .. _this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request .. _testing: https://github.com/mitodl/edx-sga#testing From 1f259f33e75ce2d8a3dfbac3a8d8c3b9c828996b Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:22:17 -0400 Subject: [PATCH 36/47] Formatting tweak. --- DEVELOPMENT.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 3145e203..cf437909 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -48,5 +48,5 @@ Developing Also, see testing_. Javascript testing will be added soon. -.. _this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request +.. _process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request .. _testing: https://github.com/mitodl/edx-sga#testing From f782248ec25d91ed1030bf648cb9bf3cff59d9c9 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 13:23:36 -0400 Subject: [PATCH 37/47] Adhere to strict .rst standards for heading underline length. --- DEVELOPMENT.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index cf437909..09413eeb 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -1,5 +1,5 @@ Developing on edx-sga -============================== +===================== Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From c3bb309e0064a2acd1afa654fdbe09be2ec4ddb5 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 14:45:07 -0400 Subject: [PATCH 38/47] Fixes per @pwilkins' suggestions. --- DEVELOPMENT.rst | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 09413eeb..8ac3be0a 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -13,15 +13,15 @@ Setup (including devstack setup) curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile vagrant plugin install vagrant-vbguest vagrant up - cd themes/ #. Fork https://github.com/mitodl/edx-sga.git to your own github account. #. Set up your development environment:: + cd themes/ git clone https://github.com/your-name/edx-sga.git vagrant ssh sudo su edxapp - cd /edx/app/edxapp/themes/ + cd ./themes/ pip uninstall edx-sga (since it's part of the edx distribution, we have to remove the installed version) cd edx-sga/ pip install -e . @@ -34,7 +34,7 @@ Developing #. In your host filesystem:: - cd /path/to/devstack/themes/edx-sga + cd /path/to/devstack/edx-platform/themes/edx-sga git branch feature/your-name/name-of-feature #. Write Code, then:: @@ -43,10 +43,8 @@ Developing git commit -m "Description of feature added." git push origin feature/your-name/name-of-feature -#. Rebase your branch against mitodl/master and resolve any conflicts, following this process_. +#. Rebase your branch against mitodl/master and resolve any conflicts, following this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request. #. Open a pull request from your fork/feature branch to mitodl/master -Also, see testing_. Javascript testing will be added soon. +Also, see testing: https://github.com/mitodl/edx-sga#testing. -.. _process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request -.. _testing: https://github.com/mitodl/edx-sga#testing From a17290106f28841ddf7f1d3567ad3a5b52e25811 Mon Sep 17 00:00:00 2001 From: Jamie Folsom Date: Fri, 28 Aug 2015 14:51:33 -0400 Subject: [PATCH 39/47] Fixes per @pwilkins' suggestions. --- DEVELOPMENT.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst index 8ac3be0a..a0bcad72 100644 --- a/DEVELOPMENT.rst +++ b/DEVELOPMENT.rst @@ -4,8 +4,8 @@ Developing on edx-sga Setup (including devstack setup) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#. `Install vagrant `_. -#. `Install virtualbox `_. +#. Install vagrant: http://docs.vagrantup.com/v2/installation/ +#. Install virtualbox: https://www.virtualbox.org/wiki/Downloads #. Set up devstack:: mkdir devstack From 9894c1a82b413e1c298dc4a933f09daa3e607671 Mon Sep 17 00:00:00 2001 From: George Schneeloch Date: Fri, 28 Aug 2015 16:58:21 -0400 Subject: [PATCH 40/47] Installed bower with URI.js, require.js, underscore, jquery --- .bowerrc | 3 + bower.json | 16 + edx_sga/static/js/bower/URIjs/.bower.json | 26 + edx_sga/static/js/bower/URIjs/LICENSE.txt | 21 + edx_sga/static/js/bower/URIjs/README.md | 539 ++++ edx_sga/static/js/bower/URIjs/bower.json | 16 + edx_sga/static/js/bower/URIjs/contributing.md | 19 + edx_sga/static/js/bower/URIjs/src/IPv6.js | 188 ++ .../js/bower/URIjs/src/SecondLevelDomains.js | 241 ++ .../js/bower/URIjs/src/URI.fragmentQuery.js | 104 + .../js/bower/URIjs/src/URI.fragmentURI.js | 97 + edx_sga/static/js/bower/URIjs/src/URI.js | 2134 ++++++++++++++++ edx_sga/static/js/bower/URIjs/src/URI.min.js | 87 + .../static/js/bower/URIjs/src/URITemplate.js | 499 ++++ .../static/js/bower/URIjs/src/jquery.URI.js | 235 ++ .../js/bower/URIjs/src/jquery.URI.min.js | 7 + edx_sga/static/js/bower/URIjs/src/punycode.js | 508 ++++ edx_sga/static/js/bower/jquery/.bower.json | 38 + .../static/js/bower/jquery/MIT-LICENSE.txt | 21 + edx_sga/static/js/bower/jquery/bower.json | 28 + edx_sga/static/js/bower/jquery/src/ajax.js | 786 ++++++ .../static/js/bower/jquery/src/ajax/jsonp.js | 89 + .../static/js/bower/jquery/src/ajax/load.js | 75 + .../js/bower/jquery/src/ajax/parseJSON.js | 13 + .../js/bower/jquery/src/ajax/parseXML.js | 28 + .../static/js/bower/jquery/src/ajax/script.js | 64 + .../js/bower/jquery/src/ajax/var/nonce.js | 5 + .../js/bower/jquery/src/ajax/var/rquery.js | 3 + .../static/js/bower/jquery/src/ajax/xhr.js | 136 + .../static/js/bower/jquery/src/attributes.js | 11 + .../js/bower/jquery/src/attributes/attr.js | 141 ++ .../js/bower/jquery/src/attributes/classes.js | 158 ++ .../js/bower/jquery/src/attributes/prop.js | 94 + .../js/bower/jquery/src/attributes/support.js | 35 + .../js/bower/jquery/src/attributes/val.js | 161 ++ .../static/js/bower/jquery/src/callbacks.js | 205 ++ edx_sga/static/js/bower/jquery/src/core.js | 502 ++++ .../static/js/bower/jquery/src/core/access.js | 60 + .../static/js/bower/jquery/src/core/init.js | 123 + .../js/bower/jquery/src/core/parseHTML.js | 39 + .../static/js/bower/jquery/src/core/ready.js | 97 + .../bower/jquery/src/core/var/rsingleTag.js | 4 + edx_sga/static/js/bower/jquery/src/css.js | 450 ++++ .../js/bower/jquery/src/css/addGetHookIf.js | 22 + .../static/js/bower/jquery/src/css/curCSS.js | 57 + .../js/bower/jquery/src/css/defaultDisplay.js | 70 + .../jquery/src/css/hiddenVisibleSelectors.js | 15 + .../static/js/bower/jquery/src/css/support.js | 96 + .../static/js/bower/jquery/src/css/swap.js | 28 + .../js/bower/jquery/src/css/var/cssExpand.js | 3 + .../js/bower/jquery/src/css/var/getStyles.js | 12 + .../js/bower/jquery/src/css/var/isHidden.js | 13 + .../js/bower/jquery/src/css/var/rmargin.js | 3 + .../js/bower/jquery/src/css/var/rnumnonpx.js | 5 + edx_sga/static/js/bower/jquery/src/data.js | 178 ++ .../static/js/bower/jquery/src/data/Data.js | 181 ++ .../js/bower/jquery/src/data/accepts.js | 20 + .../js/bower/jquery/src/data/var/data_priv.js | 5 + .../js/bower/jquery/src/data/var/data_user.js | 5 + .../static/js/bower/jquery/src/deferred.js | 149 ++ .../static/js/bower/jquery/src/deprecated.js | 13 + .../static/js/bower/jquery/src/dimensions.js | 50 + edx_sga/static/js/bower/jquery/src/effects.js | 648 +++++ .../js/bower/jquery/src/effects/Tween.js | 114 + .../jquery/src/effects/animatedSelector.js | 13 + edx_sga/static/js/bower/jquery/src/event.js | 868 +++++++ .../static/js/bower/jquery/src/event/ajax.js | 13 + .../static/js/bower/jquery/src/event/alias.js | 39 + .../js/bower/jquery/src/event/support.js | 9 + .../static/js/bower/jquery/src/exports/amd.js | 24 + .../js/bower/jquery/src/exports/global.js | 32 + edx_sga/static/js/bower/jquery/src/intro.js | 44 + edx_sga/static/js/bower/jquery/src/jquery.js | 37 + .../js/bower/jquery/src/manipulation.js | 580 +++++ .../bower/jquery/src/manipulation/_evalUrl.js | 18 + .../bower/jquery/src/manipulation/support.js | 32 + .../src/manipulation/var/rcheckableType.js | 3 + edx_sga/static/js/bower/jquery/src/offset.js | 207 ++ edx_sga/static/js/bower/jquery/src/outro.js | 1 + edx_sga/static/js/bower/jquery/src/queue.js | 142 ++ .../static/js/bower/jquery/src/queue/delay.js | 22 + .../js/bower/jquery/src/selector-native.js | 172 ++ .../js/bower/jquery/src/selector-sizzle.js | 14 + .../static/js/bower/jquery/src/selector.js | 1 + .../static/js/bower/jquery/src/serialize.js | 111 + .../static/js/bower/jquery/src/traversing.js | 199 ++ .../bower/jquery/src/traversing/findFilter.js | 100 + .../src/traversing/var/rneedsContext.js | 6 + edx_sga/static/js/bower/jquery/src/var/arr.js | 3 + .../js/bower/jquery/src/var/class2type.js | 4 + .../static/js/bower/jquery/src/var/concat.js | 5 + .../static/js/bower/jquery/src/var/hasOwn.js | 5 + .../static/js/bower/jquery/src/var/indexOf.js | 5 + .../static/js/bower/jquery/src/var/pnum.js | 3 + .../static/js/bower/jquery/src/var/push.js | 5 + .../js/bower/jquery/src/var/rnotwhite.js | 3 + .../static/js/bower/jquery/src/var/slice.js | 5 + .../js/bower/jquery/src/var/strundefined.js | 3 + .../static/js/bower/jquery/src/var/support.js | 4 + .../js/bower/jquery/src/var/toString.js | 5 + edx_sga/static/js/bower/jquery/src/wrap.js | 79 + edx_sga/static/js/bower/requirejs/.bower.json | 28 + edx_sga/static/js/bower/requirejs/README.md | 4 + edx_sga/static/js/bower/requirejs/bower.json | 18 + edx_sga/static/js/bower/requirejs/require.js | 2103 ++++++++++++++++ edx_sga/static/js/bower/sinon/.bower.json | 15 + edx_sga/static/js/bower/sinon/.editorconfig | 17 + edx_sga/static/js/bower/sinon/.eslintignore | 2 + edx_sga/static/js/bower/sinon/.eslintrc | 189 ++ edx_sga/static/js/bower/sinon/.gitignore | 3 + edx_sga/static/js/bower/sinon/.jscsrc | 15 + edx_sga/static/js/bower/sinon/.travis.yml | 32 + edx_sga/static/js/bower/sinon/AUTHORS | 117 + edx_sga/static/js/bower/sinon/CONTRIBUTING.md | 150 ++ edx_sga/static/js/bower/sinon/Changelog.txt | 512 ++++ edx_sga/static/js/bower/sinon/LICENSE | 27 + edx_sga/static/js/bower/sinon/README.md | 46 + edx_sga/static/js/bower/sinon/RELEASE.md | 38 + edx_sga/static/js/bower/sinon/build | 128 + edx_sga/static/js/bower/sinon/lib/sinon.js | 46 + .../static/js/bower/sinon/lib/sinon/assert.js | 226 ++ .../js/bower/sinon/lib/sinon/behavior.js | 371 +++ .../static/js/bower/sinon/lib/sinon/call.js | 235 ++ .../js/bower/sinon/lib/sinon/collection.js | 173 ++ .../static/js/bower/sinon/lib/sinon/extend.js | 111 + .../static/js/bower/sinon/lib/sinon/format.js | 94 + .../js/bower/sinon/lib/sinon/log_error.js | 74 + .../static/js/bower/sinon/lib/sinon/match.js | 261 ++ .../static/js/bower/sinon/lib/sinon/mock.js | 491 ++++ .../js/bower/sinon/lib/sinon/sandbox.js | 170 ++ .../static/js/bower/sinon/lib/sinon/spy.js | 463 ++++ .../static/js/bower/sinon/lib/sinon/stub.js | 194 ++ .../static/js/bower/sinon/lib/sinon/test.js | 101 + .../js/bower/sinon/lib/sinon/test_case.js | 106 + .../bower/sinon/lib/sinon/times_in_words.js | 49 + .../static/js/bower/sinon/lib/sinon/typeOf.js | 53 + .../js/bower/sinon/lib/sinon/util/core.js | 401 +++ .../js/bower/sinon/lib/sinon/util/event.js | 111 + .../bower/sinon/lib/sinon/util/fake_server.js | 247 ++ .../lib/sinon/util/fake_server_with_clock.js | 101 + .../bower/sinon/lib/sinon/util/fake_timers.js | 73 + .../lib/sinon/util/fake_xdomain_request.js | 223 ++ .../lib/sinon/util/fake_xml_http_request.js | 656 +++++ .../bower/sinon/lib/sinon/util/timers_ie.js | 35 + .../js/bower/sinon/lib/sinon/util/xdr_ie.js | 18 + .../js/bower/sinon/lib/sinon/util/xhr_ie.js | 23 + edx_sga/static/js/bower/sinon/package.json | 53 + edx_sga/static/js/bower/sinon/release.sh | 13 + .../static/js/bower/sinon/scripts/ci-test.sh | 32 + .../js/bower/sinon/scripts/eslint-pre-commit | 12 + .../static/js/bower/sinon/test/assert-test.js | 1526 +++++++++++ .../js/bower/sinon/test/buster-packaged.js | 18 + edx_sga/static/js/bower/sinon/test/buster.js | 47 + .../static/js/bower/sinon/test/call-test.js | 1274 ++++++++++ .../js/bower/sinon/test/collection-test.js | 386 +++ .../static/js/bower/sinon/test/extend-test.js | 59 + .../static/js/bower/sinon/test/format-test.js | 24 + .../js/bower/sinon/test/hello-world-test.js | 14 + .../js/bower/sinon/test/issues/issues-test.js | 106 + .../js/bower/sinon/test/log-error-test.js | 75 + .../static/js/bower/sinon/test/match-test.js | 679 +++++ .../static/js/bower/sinon/test/mock-test.js | 1014 ++++++++ .../js/bower/sinon/test/sandbox-test.js | 457 ++++ .../static/js/bower/sinon/test/sinon-test.js | 702 ++++++ .../static/js/bower/sinon/test/spy-test.js | 2231 +++++++++++++++++ .../static/js/bower/sinon/test/stub-test.js | 1745 +++++++++++++ .../js/bower/sinon/test/test-case-test.js | 256 ++ .../static/js/bower/sinon/test/test-helper.js | 47 + .../static/js/bower/sinon/test/test-test.js | 558 +++++ .../bower/sinon/test/times-in-words-test.js | 43 + .../static/js/bower/sinon/test/typeOf-test.js | 49 + .../js/bower/sinon/test/util/event-test.js | 130 + .../bower/sinon/test/util/fake-server-test.js | 868 +++++++ .../test/util/fake-server-with-clock-test.js | 225 ++ .../bower/sinon/test/util/fake-timers-test.js | 1075 ++++++++ .../test/util/fake-xdomain-request-test.js | 433 ++++ .../test/util/fake-xml-http-request-test.js | 1735 +++++++++++++ .../static/js/bower/underscore/.bower.json | 36 + edx_sga/static/js/bower/underscore/LICENSE | 23 + edx_sga/static/js/bower/underscore/README.md | 22 + edx_sga/static/js/bower/underscore/bower.json | 7 + .../js/bower/underscore/underscore-min.js | 6 + .../js/bower/underscore/underscore-min.map | 1 + .../static/js/bower/underscore/underscore.js | 1548 ++++++++++++ 184 files changed, 38688 insertions(+) create mode 100644 .bowerrc create mode 100644 bower.json create mode 100644 edx_sga/static/js/bower/URIjs/.bower.json create mode 100644 edx_sga/static/js/bower/URIjs/LICENSE.txt create mode 100644 edx_sga/static/js/bower/URIjs/README.md create mode 100644 edx_sga/static/js/bower/URIjs/bower.json create mode 100644 edx_sga/static/js/bower/URIjs/contributing.md create mode 100644 edx_sga/static/js/bower/URIjs/src/IPv6.js create mode 100644 edx_sga/static/js/bower/URIjs/src/SecondLevelDomains.js create mode 100644 edx_sga/static/js/bower/URIjs/src/URI.fragmentQuery.js create mode 100644 edx_sga/static/js/bower/URIjs/src/URI.fragmentURI.js create mode 100644 edx_sga/static/js/bower/URIjs/src/URI.js create mode 100644 edx_sga/static/js/bower/URIjs/src/URI.min.js create mode 100644 edx_sga/static/js/bower/URIjs/src/URITemplate.js create mode 100644 edx_sga/static/js/bower/URIjs/src/jquery.URI.js create mode 100644 edx_sga/static/js/bower/URIjs/src/jquery.URI.min.js create mode 100644 edx_sga/static/js/bower/URIjs/src/punycode.js create mode 100644 edx_sga/static/js/bower/jquery/.bower.json create mode 100644 edx_sga/static/js/bower/jquery/MIT-LICENSE.txt create mode 100644 edx_sga/static/js/bower/jquery/bower.json create mode 100644 edx_sga/static/js/bower/jquery/src/ajax.js create mode 100644 edx_sga/static/js/bower/jquery/src/ajax/jsonp.js create mode 100644 edx_sga/static/js/bower/jquery/src/ajax/load.js create mode 100644 edx_sga/static/js/bower/jquery/src/ajax/parseJSON.js create mode 100644 edx_sga/static/js/bower/jquery/src/ajax/parseXML.js create mode 100644 edx_sga/static/js/bower/jquery/src/ajax/script.js create mode 100644 edx_sga/static/js/bower/jquery/src/ajax/var/nonce.js create mode 100644 edx_sga/static/js/bower/jquery/src/ajax/var/rquery.js create mode 100644 edx_sga/static/js/bower/jquery/src/ajax/xhr.js create mode 100644 edx_sga/static/js/bower/jquery/src/attributes.js create mode 100644 edx_sga/static/js/bower/jquery/src/attributes/attr.js create mode 100644 edx_sga/static/js/bower/jquery/src/attributes/classes.js create mode 100644 edx_sga/static/js/bower/jquery/src/attributes/prop.js create mode 100644 edx_sga/static/js/bower/jquery/src/attributes/support.js create mode 100644 edx_sga/static/js/bower/jquery/src/attributes/val.js create mode 100644 edx_sga/static/js/bower/jquery/src/callbacks.js create mode 100644 edx_sga/static/js/bower/jquery/src/core.js create mode 100644 edx_sga/static/js/bower/jquery/src/core/access.js create mode 100644 edx_sga/static/js/bower/jquery/src/core/init.js create mode 100644 edx_sga/static/js/bower/jquery/src/core/parseHTML.js create mode 100644 edx_sga/static/js/bower/jquery/src/core/ready.js create mode 100644 edx_sga/static/js/bower/jquery/src/core/var/rsingleTag.js create mode 100644 edx_sga/static/js/bower/jquery/src/css.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/addGetHookIf.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/curCSS.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/defaultDisplay.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/hiddenVisibleSelectors.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/support.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/swap.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/var/cssExpand.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/var/getStyles.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/var/isHidden.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/var/rmargin.js create mode 100644 edx_sga/static/js/bower/jquery/src/css/var/rnumnonpx.js create mode 100644 edx_sga/static/js/bower/jquery/src/data.js create mode 100644 edx_sga/static/js/bower/jquery/src/data/Data.js create mode 100644 edx_sga/static/js/bower/jquery/src/data/accepts.js create mode 100644 edx_sga/static/js/bower/jquery/src/data/var/data_priv.js create mode 100644 edx_sga/static/js/bower/jquery/src/data/var/data_user.js create mode 100644 edx_sga/static/js/bower/jquery/src/deferred.js create mode 100644 edx_sga/static/js/bower/jquery/src/deprecated.js create mode 100644 edx_sga/static/js/bower/jquery/src/dimensions.js create mode 100644 edx_sga/static/js/bower/jquery/src/effects.js create mode 100644 edx_sga/static/js/bower/jquery/src/effects/Tween.js create mode 100644 edx_sga/static/js/bower/jquery/src/effects/animatedSelector.js create mode 100644 edx_sga/static/js/bower/jquery/src/event.js create mode 100644 edx_sga/static/js/bower/jquery/src/event/ajax.js create mode 100644 edx_sga/static/js/bower/jquery/src/event/alias.js create mode 100644 edx_sga/static/js/bower/jquery/src/event/support.js create mode 100644 edx_sga/static/js/bower/jquery/src/exports/amd.js create mode 100644 edx_sga/static/js/bower/jquery/src/exports/global.js create mode 100644 edx_sga/static/js/bower/jquery/src/intro.js create mode 100644 edx_sga/static/js/bower/jquery/src/jquery.js create mode 100644 edx_sga/static/js/bower/jquery/src/manipulation.js create mode 100644 edx_sga/static/js/bower/jquery/src/manipulation/_evalUrl.js create mode 100644 edx_sga/static/js/bower/jquery/src/manipulation/support.js create mode 100644 edx_sga/static/js/bower/jquery/src/manipulation/var/rcheckableType.js create mode 100644 edx_sga/static/js/bower/jquery/src/offset.js create mode 100644 edx_sga/static/js/bower/jquery/src/outro.js create mode 100644 edx_sga/static/js/bower/jquery/src/queue.js create mode 100644 edx_sga/static/js/bower/jquery/src/queue/delay.js create mode 100644 edx_sga/static/js/bower/jquery/src/selector-native.js create mode 100644 edx_sga/static/js/bower/jquery/src/selector-sizzle.js create mode 100644 edx_sga/static/js/bower/jquery/src/selector.js create mode 100644 edx_sga/static/js/bower/jquery/src/serialize.js create mode 100644 edx_sga/static/js/bower/jquery/src/traversing.js create mode 100644 edx_sga/static/js/bower/jquery/src/traversing/findFilter.js create mode 100644 edx_sga/static/js/bower/jquery/src/traversing/var/rneedsContext.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/arr.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/class2type.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/concat.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/hasOwn.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/indexOf.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/pnum.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/push.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/rnotwhite.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/slice.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/strundefined.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/support.js create mode 100644 edx_sga/static/js/bower/jquery/src/var/toString.js create mode 100644 edx_sga/static/js/bower/jquery/src/wrap.js create mode 100644 edx_sga/static/js/bower/requirejs/.bower.json create mode 100644 edx_sga/static/js/bower/requirejs/README.md create mode 100644 edx_sga/static/js/bower/requirejs/bower.json create mode 100644 edx_sga/static/js/bower/requirejs/require.js create mode 100644 edx_sga/static/js/bower/sinon/.bower.json create mode 100644 edx_sga/static/js/bower/sinon/.editorconfig create mode 100644 edx_sga/static/js/bower/sinon/.eslintignore create mode 100644 edx_sga/static/js/bower/sinon/.eslintrc create mode 100644 edx_sga/static/js/bower/sinon/.gitignore create mode 100644 edx_sga/static/js/bower/sinon/.jscsrc create mode 100644 edx_sga/static/js/bower/sinon/.travis.yml create mode 100644 edx_sga/static/js/bower/sinon/AUTHORS create mode 100644 edx_sga/static/js/bower/sinon/CONTRIBUTING.md create mode 100644 edx_sga/static/js/bower/sinon/Changelog.txt create mode 100644 edx_sga/static/js/bower/sinon/LICENSE create mode 100644 edx_sga/static/js/bower/sinon/README.md create mode 100644 edx_sga/static/js/bower/sinon/RELEASE.md create mode 100755 edx_sga/static/js/bower/sinon/build create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/assert.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/behavior.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/call.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/collection.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/extend.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/format.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/log_error.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/match.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/mock.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/sandbox.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/spy.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/stub.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/test.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/test_case.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/times_in_words.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/typeOf.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/core.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/event.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/fake_server.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/fake_server_with_clock.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/fake_timers.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/fake_xdomain_request.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/fake_xml_http_request.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/timers_ie.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/xdr_ie.js create mode 100644 edx_sga/static/js/bower/sinon/lib/sinon/util/xhr_ie.js create mode 100644 edx_sga/static/js/bower/sinon/package.json create mode 100755 edx_sga/static/js/bower/sinon/release.sh create mode 100755 edx_sga/static/js/bower/sinon/scripts/ci-test.sh create mode 100755 edx_sga/static/js/bower/sinon/scripts/eslint-pre-commit create mode 100644 edx_sga/static/js/bower/sinon/test/assert-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/buster-packaged.js create mode 100644 edx_sga/static/js/bower/sinon/test/buster.js create mode 100644 edx_sga/static/js/bower/sinon/test/call-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/collection-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/extend-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/format-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/hello-world-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/issues/issues-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/log-error-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/match-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/mock-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/sandbox-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/sinon-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/spy-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/stub-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/test-case-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/test-helper.js create mode 100644 edx_sga/static/js/bower/sinon/test/test-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/times-in-words-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/typeOf-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/util/event-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/util/fake-server-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/util/fake-server-with-clock-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/util/fake-timers-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/util/fake-xdomain-request-test.js create mode 100644 edx_sga/static/js/bower/sinon/test/util/fake-xml-http-request-test.js create mode 100644 edx_sga/static/js/bower/underscore/.bower.json create mode 100644 edx_sga/static/js/bower/underscore/LICENSE create mode 100644 edx_sga/static/js/bower/underscore/README.md create mode 100644 edx_sga/static/js/bower/underscore/bower.json create mode 100644 edx_sga/static/js/bower/underscore/underscore-min.js create mode 100644 edx_sga/static/js/bower/underscore/underscore-min.map create mode 100644 edx_sga/static/js/bower/underscore/underscore.js diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 00000000..66e4382a --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "edx_sga/static/js/bower/" +} diff --git a/bower.json b/bower.json new file mode 100644 index 00000000..1d15f9ff --- /dev/null +++ b/bower.json @@ -0,0 +1,16 @@ +{ + "name": "edx-sga", + "version": "0.0.0", + "homepage": "https://github.com/mitodl/edx-sga", + "authors": [ + "ODL Engineering " + ], + "license": "AGPLv3", + "dependencies": { + "jquery": "~2.1.4", + "URIjs": "~1.16.0", + "requirejs": "~2.1.20", + "underscore": "~1.8.3", + "sinon": "~1.16.1" + } +} diff --git a/edx_sga/static/js/bower/URIjs/.bower.json b/edx_sga/static/js/bower/URIjs/.bower.json new file mode 100644 index 00000000..a9f557e0 --- /dev/null +++ b/edx_sga/static/js/bower/URIjs/.bower.json @@ -0,0 +1,26 @@ +{ + "name": "URIjs", + "version": "1.16.0", + "main": "src/URI.js", + "ignore": [ + ".*", + "*.css", + "/*.js", + "/*.html", + "/*.json", + "utils", + "test", + "prettify" + ], + "license": "MIT", + "homepage": "https://github.com/medialize/URI.js", + "_release": "1.16.0", + "_resolution": { + "type": "version", + "tag": "v1.16.0", + "commit": "5e5fd20f502861ea1ee7e644615fcd0a45d28098" + }, + "_source": "git://github.com/medialize/URI.js.git", + "_target": "~1.16.0", + "_originalSource": "URIjs" +} \ No newline at end of file diff --git a/edx_sga/static/js/bower/URIjs/LICENSE.txt b/edx_sga/static/js/bower/URIjs/LICENSE.txt new file mode 100644 index 00000000..c13824f4 --- /dev/null +++ b/edx_sga/static/js/bower/URIjs/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2011 Rodney Rehm + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/edx_sga/static/js/bower/URIjs/README.md b/edx_sga/static/js/bower/URIjs/README.md new file mode 100644 index 00000000..63b622b3 --- /dev/null +++ b/edx_sga/static/js/bower/URIjs/README.md @@ -0,0 +1,539 @@ +# URI.js # + +* [About](http://medialize.github.io/URI.js/) +* [Understanding URIs](http://medialize.github.io/URI.js/about-uris.html) +* [Documentation](http://medialize.github.io/URI.js/docs.html) +* [jQuery URI Plugin](http://medialize.github.io/URI.js/jquery-uri-plugin.html) +* [Author](http://rodneyrehm.de/en/) + +--- + +I always want to shoot myself in the head when looking at code like the following: + +```javascript +var url = "http://example.org/foo?bar=baz"; +var separator = url.indexOf('?') > -1 ? '&' : '?'; + +url += separator + encodeURIComponent("foo") + "=" + encodeURIComponent("bar"); +``` + +I still can't believe javascript - the f**ing backbone-language of the web - doesn't offer an API for mutating URLs. Browsers (Firefox) don't expose the `Location` object (the structure behind window.location). Yes, one could think of [decomposed IDL attributes](http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#url-decomposition-idl-attributes) as a native URL management library. But it relies on the DOM element <a>, it's slow and doesn't offer any convenience at all. + +How about a nice, clean and simple API for mutating URIs: + +```javascript +var url = new URI("http://example.org/foo?bar=baz"); +url.addQuery("foo", "bar"); +``` + +URI.js is here to help with that. + + +## API Example ## + +```javascript +// mutating URLs +URI("http://example.org/foo.html?hello=world") + .username("rodneyrehm") + // -> http://rodneyrehm@example.org/foo.html?hello=world + .username("") + // -> http://example.org/foo.html?hello=world + .directory("bar") + // -> http://example.org/bar/foo.html?hello=world + .suffix("xml") + // -> http://example.org/bar/foo.xml?hello=world + .query("") + // -> http://example.org/bar/foo.xml + .tld("com") + // -> http://example.com/bar/foo.xml + .query({ foo: "bar", hello: ["world", "mars"] }); + // -> http://example.com/bar/foo.xml?foo=bar&hello=world&hello=mars + +// cleaning things up +URI("?&foo=bar&&foo=bar&foo=baz&") + .normalizeQuery(); + // -> ?foo=bar&foo=baz + +// working with relative paths +URI("/foo/bar/baz.html") + .relativeTo("/foo/bar/world.html"); + // -> ./baz.html + +URI("/foo/bar/baz.html") + .relativeTo("/foo/bar/sub/world.html") + // -> ../baz.html + .absoluteTo("/foo/bar/sub/world.html"); + // -> /foo/bar/baz.html + +// URI Templates +URI.expand("/foo/{dir}/{file}", { + dir: "bar", + file: "world.html" +}); +// -> /foo/bar/world.html +``` + +See the [About Page](http://medialize.github.io/URI.js/) and [API Docs](http://medialize.github.io/URI.js/docs.html) for more stuff. + +## Using URI.js ## + +URI.js (without plugins) has a gzipped weight of about 7KB - if you include all extensions you end up at about 13KB. So unless you *need* second level domain support and use URI templates, we suggest you don't include them in your build. If you don't need a full featured URI mangler, it may be worth looking into the much smaller parser-only alternatives [listed below](#alternatives). + +URI.js is available through [npm](http://npmjs.org/), [bower](http://bower.io/), [Jam](http://jamjs.org/), [spm](http://spmjs.io/) and manually from the [build page](http://medialize.github.io/URI.js/build.html): + +```bash +# using bower +bower install uri.js + +# using Jam +jam install URIjs + +# using npm +npm install URIjs + +# using spm +spm install urijs +``` + +### Browser ### + +I guess you'll manage to use the [build tool](http://medialize.github.io/URI.js/build.html) or follow the [instructions below](#minify) to combine and minify the various files into URI.min.js - and I'm fairly certain you know how to `` that sucker, too. + +### Node.js and NPM ### + +Install with `npm install URIjs` or add `"URIjs"` to the dependencies in your `package.json`. + +```javascript +// load URI.js +var URI = require('URIjs'); +// load an optional module (e.g. URITemplate) +var URITemplate = require('URIjs/src/URITemplate'); + +URI("/foo/bar/baz.html") + .relativeTo("/foo/bar/sub/world.html") + // -> ../baz.html +``` + +### RequireJS ### + +Clone the URI.js repository or use a package manager to get URI.js into your project. + +```javascript +require.config({ + paths: { + URIjs: 'where-you-put-uri.js/src' + } +}); + +require(['URIjs/URI'], function(URI) { + console.log("URI.js and dependencies: ", URI("//amazon.co.uk").is('sld') ? 'loaded' : 'failed'); +}); +require(['URIjs/URITemplate'], function(URITemplate) { + console.log("URITemplate.js and dependencies: ", URITemplate._cache ? 'loaded' : 'failed'); +}); +``` + +## Minify ## + +See the [build tool](http://medialize.github.io/URI.js/build.html) or use [Google Closure Compiler](http://closure-compiler.appspot.com/home): + +``` +// ==ClosureCompiler== +// @compilation_level SIMPLE_OPTIMIZATIONS +// @output_file_name URI.min.js +// @code_url http://medialize.github.io/URI.js/src/IPv6.js +// @code_url http://medialize.github.io/URI.js/src/punycode.js +// @code_url http://medialize.github.io/URI.js/src/SecondLevelDomains.js +// @code_url http://medialize.github.io/URI.js/src/URI.js +// @code_url http://medialize.github.io/URI.js/src/URITemplate.js +// ==/ClosureCompiler== +``` + + +## Resources ## + +Documents specifying how URLs work: + +* [URL - Living Standard](http://url.spec.whatwg.org/) +* [RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax](http://tools.ietf.org/html/rfc3986) +* [RFC 3987 - Internationalized Resource Identifiers (IRI)](http://tools.ietf.org/html/rfc3987) +* [RFC 2732 - Format for Literal IPv6 Addresses in URL's](http://tools.ietf.org/html/rfc2732) +* [RFC 2368 - The `mailto:` URL Scheme](https://www.ietf.org/rfc/rfc2368.txt) +* [RFC 2141 - URN Syntax](https://www.ietf.org/rfc/rfc2141.txt) +* [IANA URN Namespace Registry](http://www.iana.org/assignments/urn-namespaces/urn-namespaces.xhtml) +* [Punycode: A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)](http://tools.ietf.org/html/rfc3492) +* [application/x-www-form-urlencoded](http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type) (Query String Parameters) and [application/x-www-form-urlencoded encoding algorithm](http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#application/x-www-form-urlencoded-encoding-algorithm) +* [What every web developer must know about URL encoding](http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding) + +Informal stuff + +* [Parsing URLs for Fun and Profit](http://tools.ietf.org/html/draft-abarth-url-01) +* [Naming URL components](http://tantek.com/2011/238/b1/many-ways-slice-url-name-pieces) + +How other environments do things + +* [Java URI Class](http://docs.oracle.com/javase/7/docs/api/java/net/URI.html) +* [Java Inet6Address Class](http://docs.oracle.com/javase/1.5.0/docs/api/java/net/Inet6Address.html) +* [Node.js URL API](http://nodejs.org/docs/latest/api/url.html) + +[Discussion on Hacker News](https://news.ycombinator.com/item?id=3398837) + +### Forks / Code-borrow ### + +* [node-dom-urls](https://github.com/passy/node-dom-urls) passy's partial implementation of the W3C URL Spec Draft for Node +* [urlutils](https://github.com/cofounders/urlutils) cofounders' `window.URL` constructor for Node + +### Alternatives ### + +If you don't like URI.js, you may like one of the following libraries. (If yours is not listed, drop me a line…) + +#### Polyfill #### + +* [DOM-URL-Polyfill](https://github.com/arv/DOM-URL-Polyfill/) arv's polyfill of the [DOM URL spec](https://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#interface-urlutils) for browsers +* [inexorabletash](https://github.com/inexorabletash/polyfill/#whatwg-url-api) inexorabletash's [WHATWG URL API](http://url.spec.whatwg.org/) + +#### URL Manipulation #### + +* [The simple URL Mutation "Hack"](http://jsfiddle.net/rodneyrehm/KkGUJ/) ([jsPerf comparison](http://jsperf.com/idl-attributes-vs-uri-js)) +* [URL.js](https://github.com/ericf/urljs) +* [furl (Python)](https://github.com/gruns/furl) +* [mediawiki Uri](https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/mediawiki/mediawiki.Uri.js?view=markup) (needs mw and jQuery) +* [jurlp](https://github.com/tombonner/jurlp) +* [jsUri](http://code.google.com/p/jsuri/) + +#### URL Parsers #### + +* [The simple URL Mutation "Hack"](http://jsfiddle.net/rodneyrehm/KkGUJ/) ([jsPerf comparison](http://jsperf.com/idl-attributes-vs-uri-js)) +* [URI Parser](http://blog.stevenlevithan.com/archives/parseuri) +* [jQuery-URL-Parser](https://github.com/allmarkedup/jQuery-URL-Parser) +* [Google Closure Uri](http://closure-library.googlecode.com/svn/docs/closure_goog_uri_uri.js.html) +* [URI.js by Gary Court](https://github.com/garycourt/uri-js) + +#### URI Template #### + +* [uri-template](https://github.com/rezigned/uri-template.js) (supporting extraction as well) by Rezigne +* [uri-templates](https://github.com/geraintluff/uri-templates) (supporting extraction as well) by Geraint Luff +* [uri-templates](https://github.com/marc-portier/uri-templates) by Marc Portier +* [uri-templates](https://github.com/geraintluff/uri-templates) by Geraint Luff (including reverse operation) +* [URI Template JS](https://github.com/fxa/uritemplate-js) by Franz Antesberger +* [Temple](https://github.com/brettstimmerman/temple) by Brett Stimmerman +* ([jsperf comparison](http://jsperf.com/uri-templates/2)) + +#### Various #### + +* [TLD.js](https://github.com/oncletom/tld.js) - second level domain names +* [Public Suffix](http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1) - second level domain names +* [uri-collection](https://github.com/scivey/uri-collection) - underscore based utility for working with many URIs + +## Authors ## + +* [Rodney Rehm](https://github.com/rodneyrehm) +* [Various Contributors](https://github.com/medialize/URI.js/graphs/contributors) + + +## Contains Code From ## + +* [punycode.js](http://mths.be/punycode) - Mathias Bynens +* [IPv6.js](http://intermapper.com/support/tools/IPV6-Validator.aspx) - Rich Brown - (rewrite of the original) + + +## License ## + +URI.js is published under the [MIT license](http://www.opensource.org/licenses/mit-license). Until version 1.13.2 URI.js was also published under the [GPL v3](http://opensource.org/licenses/GPL-3.0) license - but as this dual-licensing causes more questions than helps anyone, it was dropped with version 1.14.0. + + +## Changelog ## + +### 1.16.0 (July 24th 2015) ### + +* **SECURITY** fixing [`URI.parseHost()`](http://medialize.github.io/URI.js/docs.html#static-parseHost) to rewrite `\` to `/` as Node and Browsers do - [Issue #233](https://github.com/medialize/URI.js/pull/233) +* fixing [`.host()`](http://medialize.github.io/URI.js/docs.html#accessors-host) and [`.authority()`](http://medialize.github.io/URI.js/docs.html#accessors-authority) to raise an error if they contain a path segment (extending [Issue #233](https://github.com/medialize/URI.js/pull/233)) + +### 1.15.2 (July 2nd 2015) ### + +* fixing [`URI.parseQuery()`](http://medialize.github.io/URI.js/docs.html#static-parseQuery) to accept `?foo&foo=bar` - [Issue #220](https://github.com/medialize/URI.js/issues/220) +* fixing [`.segmentCoded()`](http://medialize.github.io/URI.js/docs.html#accessors-segmentCoded) to encode (instead of decode) array input - [Issue #223](https://github.com/medialize/URI.js/issues/223) +* fixing [`.normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to properly resolve `/foo/..` to `/` - [Issue #224](https://github.com/medialize/URI.js/issues/224) +* fixing [`.relativeTo()`](http://medialize.github.io/URI.js/docs.html#relativeto) to resolve `/foo/` and `/foo/bar` to `./` instead of empty string - [Issue #226](https://github.com/medialize/URI.js/issues/226) +* fixing `bower.json`'s `"main": "src/URI.js"` - [Issue #227](https://github.com/medialize/URI.js/issues/227) + +### 1.15.1 (April 5th 2015) ### + +* fixing `URI()` to match behavior of `new URI()` (caused by [#196](https://github.com/medialize/URI.js/issues/196)) - [Issue #205](https://github.com/medialize/URI.js/issues/205) +* fixing [`URI.removeQuery()`](http://medialize.github.io/URI.js/docs.html#search-remove) to accept RegExp for name and value arguments - ([Issue #204](https://github.com/medialize/URI.js/issues/204), [peterwillis](https://github.com/peterwillis)) + +### 1.15.0 (April 1st 2015 - no joke, promise!) ### + +* fixing `URI(undefined)` to throw TypeError - ([Issue #189](https://github.com/medialize/URI.js/issues/189), [Issue #196](https://github.com/medialize/URI.js/issues/196), [eakron](https://github.com/eakron)) - *tiny backward-compatibility-break* +* fixing [`.absoluteTo()`](http://medialize.github.io/URI.js/docs.html#absoluteto) - ([Issue #200](https://github.com/medialize/URI.js/issues/200), [giltayar](https://github.com/giltayar)) +* fixing [`.pathname()`](http://medialize.github.io/URI.js/docs.html#accessors-pathname) to properly en/decode URN paths - ([Issue #201](https://github.com/medialize/URI.js/pull/201), [mlefoster](https://github.com/mlefoster)) +* fixing URI normalization to properly handle URN paths based on [RFC 2141](https://www.ietf.org/rfc/rfc2141.txt) syntax - ([Issue #201](https://github.com/medialize/URI.js/pull/201), [mlefoster](https://github.com/mlefoster)) + * fixing [`.normalize()`](http://medialize.github.io/URI.js/docs.html#normalize) and [`.normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to properly normalize URN paths + * adding `URI.encodeUrnPathSegment()` + * adding `URI.decodeUrnPathSegment()` + * adding `URI.decodeUrnPath()` + * adding `URI.recodeUrnPath()` + +### 1.14.2 (February 25th 2015) ### + +* fixing inclusion of LICENSE in packages - ([Issue #174](https://github.com/medialize/URI.js/issues/174)) +* fixing [`URI.parseHost()`](http://medialize.github.io/URI.js/docs.html#static-parseHost) to not interpret colon in path as IPv6 hostname - ([Issue #190](https://github.com/medialize/URI.js/issues/190)) +* adding meta data for [SPM](http://www.spmjs.io/) package manager - ([Issue #176](https://github.com/medialize/URI.js/issues/176)) +* adding license meta to `bower.json` + +### 1.14.1 (October 1st 2014) ### + +* fixing handling of String instances (not string primitives) - ([Issue #146](https://github.com/medialize/URI.js/issues/146)) +* fixing Firefox [`.watch()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch) interfering with `.parseQuery()` - ([Issue #169](https://github.com/medialize/URI.js/issues/169)) +* fixing [`addQuery()`](http://medialize.github.io/URI.js/docs.html#search-add) to not throw error on null value - ([Issue #171](https://github.com/medialize/URI.js/issues/171)) + +### 1.14.0 (September 8th 2014) ### + +* adding Hungarian second level domains - ([Issue #159](https://github.com/medialize/URI.js/issues/159)) +* adding ``](http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-a-element) + * [`
`](http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-blockquote-element) + * [``](http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#the-link-element) + * [``](http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#the-base-element) + * [`