-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f93cc66
commit c2e92e7
Showing
93 changed files
with
31,979 additions
and
29,375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# exclude everything by default | ||
*.* | ||
|
||
# exclude these files | ||
Dockerfile* | ||
LICENSE | ||
Makefile* | ||
|
||
# exclude these directories | ||
.pytest_cache/ | ||
.tox/ | ||
/docker/ | ||
/docs/ | ||
/private/ | ||
/scripts/ | ||
/site-static/ | ||
/src/ | ||
/storage/ | ||
__pycache__/ | ||
i18n/ | ||
img/ | ||
node_lib/ | ||
|
||
# safe-list files we want to process | ||
!*.js | ||
|
||
# exclude generated JS files | ||
*-all.js | ||
*-min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"arrowParens": "always", | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"proseWrap": "never" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
django.jQuery(document).ready(function ($){ | ||
"use strict"; | ||
django.jQuery(document).ready(function ($) { | ||
'use strict'; | ||
|
||
// Recalculate Hash | ||
$('.recalc').click(function(e) { | ||
var $this = $(this), | ||
csrf = $("input[name='csrfmiddlewaretoken']").val(); | ||
e.preventDefault(); | ||
// Recalculate Hash | ||
$('.recalc').click(function (e) { | ||
var $this = $(this), | ||
csrf = $("input[name='csrfmiddlewaretoken']").val(); | ||
e.preventDefault(); | ||
|
||
$.ajax($this.attr('href'), { | ||
|
||
"headers": {'X-CSRFToken': csrf}, | ||
"dataType": "json", | ||
"method": "POST", | ||
"beforeSend": function () { | ||
$this.html('Recalcing…'); | ||
}, | ||
"success": function() { | ||
$this.text('Done!'); | ||
}, | ||
"error": function() { | ||
$this.text('Error :('); | ||
}, | ||
"complete": function() { | ||
setTimeout(function() { | ||
$this.text('Recalc Hash'); | ||
}, 2000); | ||
} | ||
}); | ||
$.ajax($this.attr('href'), { | ||
headers: { 'X-CSRFToken': csrf }, | ||
dataType: 'json', | ||
method: 'POST', | ||
beforeSend: function () { | ||
$this.html('Recalcing…'); | ||
}, | ||
success: function () { | ||
$this.text('Done!'); | ||
}, | ||
error: function () { | ||
$this.text('Error :('); | ||
}, | ||
complete: function () { | ||
setTimeout(function () { | ||
$this.text('Recalc Hash'); | ||
}, 2000); | ||
}, | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
|
||
/* TODO(jbalogh): save from amo2009. */ | ||
/** | ||
* bandwagon: fire a custom refresh event for bandwagon extension | ||
* @return void | ||
*/ | ||
function bandwagonRefreshEvent() { | ||
if (document.createEvent) { | ||
var bandwagonSubscriptionsRefreshEvent = document.createEvent("Events"); | ||
bandwagonSubscriptionsRefreshEvent.initEvent("bandwagonRefresh", true, false); | ||
document.dispatchEvent(bandwagonSubscriptionsRefreshEvent); | ||
} | ||
if (document.createEvent) { | ||
var bandwagonSubscriptionsRefreshEvent = document.createEvent('Events'); | ||
bandwagonSubscriptionsRefreshEvent.initEvent( | ||
'bandwagonRefresh', | ||
true, | ||
false, | ||
); | ||
document.dispatchEvent(bandwagonSubscriptionsRefreshEvent); | ||
} | ||
} | ||
|
||
/* TODO(jbalogh): save from amo2009. */ | ||
/* Remove "Go" buttons from <form class="go" */ | ||
$(document).ready(function(){ | ||
$('form.go').change(function() { this.submit(); }) | ||
.find('button').hide(); | ||
$(document).ready(function () { | ||
$('form.go') | ||
.change(function () { | ||
this.submit(); | ||
}) | ||
.find('button') | ||
.hide(); | ||
}); | ||
|
||
|
||
// TODO(jbalogh): save from amo2009. | ||
var AMO = {}; |
Oops, something went wrong.