diff --git a/app/app/settings.py b/app/app/settings.py index ac42f2b9a2d..ba3680e2afa 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -294,7 +294,7 @@ 'handlers': { 'console': { 'level': 'DEBUG', - 'class': 'logging.StreamHandler', + 'class': 'loggging.StreamHandler', 'formatter': 'verbose', }, 'watchtower': { @@ -336,19 +336,7 @@ LOGGING = {} if SENTRY_DSN: - if LOGGING: - LOGGING['handlers']['sentry'] = { - 'level': 'ERROR', # To capture more than ERROR, change to WARNING, INFO, etc. - 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler', - } - LOGGING['loggers']['root']['handlers'].append('sentry'); - for logger in ['raven', 'sentry.errors']: - LOGGING['loggers'][logger] = { - 'level': 'DEBUG', - 'handlers': ['console'], - 'propagate': False, - } - else: + if ENV == 'prod': LOGGING = { 'version': 1, 'disable_existing_loggers': True, diff --git a/app/assets/v2/css/base.css b/app/assets/v2/css/base.css index e583404f19e..8ab1cae84cb 100644 --- a/app/assets/v2/css/base.css +++ b/app/assets/v2/css/base.css @@ -1426,7 +1426,12 @@ input.is-invalid { width: 100%; } -.results .bounty_status .yellow_box, .green_box, .blue_box, .pink_box, .lblue_box { +.results .bounty_status .box_1, +.box_2, +.box_3, +.box_4, +.box_5, +.box_6 { float: left; width: 1rem; height: 1rem; @@ -1450,29 +1455,34 @@ input.is-invalid { background-color: #eee; } -.yellow_box { - color: #FFCE08; - border: 10px solid #FFCE08; +.box_1 { + color: #011f4b; + border: 10px solid #011f4b; } -.green_box { - color: #F2F6F9; - border: 10px solid #25E899; +.box_2 { + color: #03396c; + border: 10px solid #03396c; } -.blue_box { - color: #3E00FF; - border: 10px solid #3E00FF; +.box_3 { + color: #005b96; + border: 10px solid #005b96; +} + +.box_4 { + color: #6497b1; + border: 10px solid #6497b1; } -.lblue_box { - color: #fbd0e6; - border: 10px solid #fbd0e6; +.box_5 { + color: #b3cde0; + border: 10px solid #b3cde0; } -.pink_box { - color: #F9006C; - border: 10px solid #F9006C; +.box_6 { + color: #d3ddf0; + border: 10px solid #d3ddf0; } .results .icon { diff --git a/app/assets/v2/images/avatar/Wallpaper/abstract.svg b/app/assets/v2/images/avatar/Wallpaper/abstract.svg new file mode 100644 index 00000000000..2744f1fcc31 --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/abstract.svg @@ -0,0 +1,10 @@ + + + + abstract + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/bokeh6.svg b/app/assets/v2/images/avatar/Wallpaper/bokeh6.svg new file mode 100644 index 00000000000..9eb7dc446d3 --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/bokeh6.svg @@ -0,0 +1,10 @@ + + + + bokeh4 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/city.svg b/app/assets/v2/images/avatar/Wallpaper/city.svg new file mode 100644 index 00000000000..f313b299eb2 --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/city.svg @@ -0,0 +1,10 @@ + + + + Untitled 7 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/city2.svg b/app/assets/v2/images/avatar/Wallpaper/city2.svg new file mode 100644 index 00000000000..5320749d070 --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/city2.svg @@ -0,0 +1,10 @@ + + + + Untitled 5 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/code.svg b/app/assets/v2/images/avatar/Wallpaper/code.svg new file mode 100644 index 00000000000..319ebc66f3d --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/code.svg @@ -0,0 +1,10 @@ + + + + code + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/code2.svg b/app/assets/v2/images/avatar/Wallpaper/code2.svg new file mode 100644 index 00000000000..97853636e1b --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/code2.svg @@ -0,0 +1,10 @@ + + + + code2 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/code3.svg b/app/assets/v2/images/avatar/Wallpaper/code3.svg new file mode 100644 index 00000000000..355668221c0 --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/code3.svg @@ -0,0 +1,10 @@ + + + + code3 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/flowers.svg b/app/assets/v2/images/avatar/Wallpaper/flowers.svg new file mode 100644 index 00000000000..4bf5e5342ba --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/flowers.svg @@ -0,0 +1,10 @@ + + + + beautiful-bloom-blooming-414160 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/mountains.svg b/app/assets/v2/images/avatar/Wallpaper/mountains.svg new file mode 100644 index 00000000000..e99da2e8c4f --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/mountains.svg @@ -0,0 +1,10 @@ + + + + adventure-alps-cold-1298533 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/mountains2.svg b/app/assets/v2/images/avatar/Wallpaper/mountains2.svg new file mode 100644 index 00000000000..be7c9bab1aa --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/mountains2.svg @@ -0,0 +1,10 @@ + + + + breathtaking-calm-color-36478 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/trees.svg b/app/assets/v2/images/avatar/Wallpaper/trees.svg new file mode 100644 index 00000000000..02c8d5d9d89 --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/trees.svg @@ -0,0 +1,10 @@ + + + + Untitled 6 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/trees2.svg b/app/assets/v2/images/avatar/Wallpaper/trees2.svg new file mode 100644 index 00000000000..c8509a2b91e --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/trees2.svg @@ -0,0 +1,10 @@ + + + + fern-frond-green-1907054 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/avatar/Wallpaper/trees3.svg b/app/assets/v2/images/avatar/Wallpaper/trees3.svg new file mode 100644 index 00000000000..2bcb2741be9 --- /dev/null +++ b/app/assets/v2/images/avatar/Wallpaper/trees3.svg @@ -0,0 +1,10 @@ + + + + blurred-background-colors-daylight-1424108 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/kudos/ShowMeWhatYouGot.svg b/app/assets/v2/images/kudos/ShowMeWhatYouGot.svg new file mode 100644 index 00000000000..8e5e65cc28f --- /dev/null +++ b/app/assets/v2/images/kudos/ShowMeWhatYouGot.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/assets/v2/images/kudos/ethdenver_2019_final_table.svg b/app/assets/v2/images/kudos/ethdenver_2019_final_table.svg new file mode 100644 index 00000000000..24724e3a9b0 --- /dev/null +++ b/app/assets/v2/images/kudos/ethdenver_2019_final_table.svg @@ -0,0 +1,10 @@ + + + + PokerCardCover + Created with Sketch. + + + + + \ No newline at end of file diff --git a/app/assets/v2/images/kudos/logical_spock.svg b/app/assets/v2/images/kudos/logical_spock.svg new file mode 100644 index 00000000000..640c08c52e7 --- /dev/null +++ b/app/assets/v2/images/kudos/logical_spock.svg @@ -0,0 +1,215 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/assets/v2/images/kudos/nyan.svg b/app/assets/v2/images/kudos/nyan.svg new file mode 100644 index 00000000000..97086e6761f --- /dev/null +++ b/app/assets/v2/images/kudos/nyan.svg @@ -0,0 +1,278 @@ + + + + nyan + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/assets/v2/js/grants/detail.js b/app/assets/v2/js/grants/detail.js index 22af64e5316..03f4fdaf90c 100644 --- a/app/assets/v2/js/grants/detail.js +++ b/app/assets/v2/js/grants/detail.js @@ -21,8 +21,8 @@ $(document).ready(function() { ); }, 1000); - userSearch('#grant-admin'); - userSearch('#grant-members'); + userSearch('#grant-admin', false, undefined, false, false, true); + userSearch('#grant-members', false, undefined, false, false, true); $('.select2-selection__rendered').removeAttr('title'); $('#form--input__description').height($('#form--input__description').prop('scrollHeight')); $('#form--input__title').height($('#form--input__title').prop('scrollHeight')); diff --git a/app/assets/v2/js/grants/fund.js b/app/assets/v2/js/grants/fund.js index aedd3d16066..0afab698061 100644 --- a/app/assets/v2/js/grants/fund.js +++ b/app/assets/v2/js/grants/fund.js @@ -110,8 +110,17 @@ $(document).ready(function() { let url; - deployedToken.methods.approve( - data.contract_address, + var tokenMethod = deployedToken.methods.approve; + var arg1 = data.contract_address; + + // one time payments + if (data.num_periods == 1) { + arg1 = data.admin_address; + tokenMethod = deployedToken.methods.transfer; + } + + tokenMethod( + arg1, web3.utils.toTwosComplement(approvalSTR) ).send({ from: accounts[0], diff --git a/app/assets/v2/js/grants/new.js b/app/assets/v2/js/grants/new.js index a47229bce1c..a133a6f9455 100644 --- a/app/assets/v2/js/grants/new.js +++ b/app/assets/v2/js/grants/new.js @@ -21,11 +21,16 @@ function saveGrant(grantData, isFinal) { headers: {'X-CSRFToken': csrftoken}, success: json => { if (isFinal) { - document.suppress_loading_leave_code = true; - window.location = json.url; + if (json.url) { + document.suppress_loading_leave_code = true; + window.location = json.url; + } else { + console.error('Grant failed to save'); + } } }, error: () => { + console.error('Grant failed to save'); _alert({ message: gettext('Your grant failed to save. Please try again.') }, 'error'); } }); @@ -52,7 +57,7 @@ const init = () => { $('#js-token').append("