-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Grants #2393
[WIP] Grants #2393
Changes from 77 commits
30dbb9a
8e762c5
9fe683c
38d5f52
f7b94f2
6156d98
99436c9
f447f15
813e892
0bb5e58
f8c1107
30bf6ba
9eb479a
e5950ed
48351e8
daf3257
7cb0ff8
452b1fe
4641ea1
004be85
0b2d924
36a326a
6e2a908
84c9b1e
91bced5
746c041
739eba4
6f3d9c9
00c0a89
606295d
7d8669a
06c0e35
07be084
318e8c4
a62d868
c3f2561
48794b9
9f0685d
40bede7
b802437
3d424df
b28d559
49dc6cf
8fba38d
cad76d2
a15f096
74d4b9d
504e280
7dbd296
bfa0f54
c33538b
db5377f
ef07666
5f000a9
7e6aca0
521e3b8
12a2001
85d0ff3
b8f7883
e97df52
3cd85b8
43b5448
c12c17e
fbeae9e
a862053
c3e141e
54d68fd
d15a854
c26f39b
ae13233
21f4fb6
d5b200e
bff9e60
b66e7c0
d3d4379
aace1db
e60720c
6126635
29a13b3
edc159e
d38b895
e2de0e2
a612980
ba93b0b
b20bea4
bad82f1
9c06952
7f15046
158564e
b9b2e13
d442b0f
4a9190e
1d3e3a1
4f007cb
421d0c3
0c0ed34
fb757b4
c83335e
fb6890d
c50442e
ff27031
99bf709
7ef6ace
975842f
7c7e5b2
4ffa21c
8d5fdc3
c5f6da9
8e023bc
3165399
368d3fe
1c79929
f298f12
7dcf230
9b0ca19
f0441f3
0144dc1
17d4f92
1a397a0
8359ac2
aa76f15
4b8e183
b88dd7f
5d5c63d
a3773a2
7e1ad6e
fa8589f
cae11d0
4db1bcc
44553bb
9f4da56
85a96af
00a80a6
6b008b6
74848b8
e7b5dfa
748ab50
34f6742
29eebce
9fed040
55d31e2
cfa4755
bc34beb
d924de6
e53931a
50b8d95
032c25d
223a374
5a8bb90
3c2b771
5fce377
bd0fac5
06c5460
242e048
2e4ea7e
72f84ba
09b4e82
f16fe5f
8980007
00f1797
995b209
c70b6a8
fa79577
efa984b
e96db1a
d9249b3
aceb821
404a522
924c40f
b59a246
63e69b8
c77255d
c6b9841
3043fb9
b293cfb
9b8f557
d74fe45
8645191
6ee503d
4ad4285
70bafa0
47f4119
464feab
f0f2517
03cfc22
79676d5
f8d9bfb
30f5537
bad8c05
bc39821
d68ea0c
338aa16
bbebbe3
8446d35
799713a
c451849
f9ca1a2
e3ae0a9
b756d3b
a6f17c5
aba8e11
30efda5
1963db7
12fbf0c
3270bab
9ba8a7e
1e8b04a
2338563
7dc3333
66918a0
a600a63
9fa662d
c497823
bacc0ea
dcf49a5
f5c3fb8
27764e7
958faf6
64f428a
f0e8946
9b4f7f7
6db4463
c851a35
68affd3
1c5d869
85b5029
7afdd3d
24e698b
1c85b75
1bab5e2
8410d0e
dfd97b2
7ec3641
a30b60a
834f395
b41fd07
4546003
ffa71b0
98489db
6855f95
278d5c8
a406244
6acef6e
59018a2
eb21f08
22fe0d7
43f1360
4952473
abc9c68
b6a3f05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,17 +19,6 @@ cache: | |
- $HOME/.cache/pip | ||
- node_modules | ||
|
||
deploy: | ||
provider: pages | ||
skip-cleanup: true | ||
github-token: $GITHUB_TOKEN | ||
keep-history: true | ||
local-dir: _build/site | ||
fqdn: docs.gitcoin.co | ||
target-branch: gh-pages | ||
on: | ||
branch: master | ||
|
||
jobs: | ||
include: | ||
# Lint and test the repository. | ||
|
@@ -41,6 +30,15 @@ jobs: | |
- cp app/app/travis.env app/app/.env | ||
- pip install pip setuptools --upgrade | ||
- pip install codecov | ||
# Fetch and Install GeoIP database files. | ||
- sudo apt-get update && sudo apt-get install -y libmaxminddb-dev | ||
- wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz | ||
- wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [error] line too long (90 > 80 characters) (line-length) |
||
- gunzip GeoLite2-City.mmdb.gz && gunzip GeoLite2-Country.mmdb.gz | ||
- sudo mkdir -p /opt/GeoIP/ | ||
- sudo mv *.mmdb /opt/GeoIP/ | ||
# Install libvips dependencies. | ||
- sudo apt-get install -y libvips libvips-dev | ||
# Install Node and Python dependencies. | ||
- npm install | ||
- pip install -r requirements/test.txt | ||
|
@@ -54,6 +52,16 @@ jobs: | |
env: | ||
- PYTHONPATH="${TRAVIS_BUILD_DIR}/app/" | ||
- DJANGO_SETTINGS_MODULE="app.settings" | ||
deploy: | ||
provider: pages | ||
skip-cleanup: true | ||
github-token: $GITHUB_TOKEN | ||
keep-history: true | ||
local-dir: _build/site | ||
fqdn: docs.gitcoin.co | ||
target-branch: gh-pages | ||
on: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [warning] truthy value should be true or false (truthy) |
||
branch: master | ||
# Deploy to Docker Hub and initiate a rolling update for web. | ||
- stage: deploy-stage | ||
if: branch = master AND NOT type = pull_request | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,3 @@ GITHUB_API_TOKEN= | |
GITHUB_CLIENT_ID= | ||
GITHUB_CLIENT_SECRET= | ||
GITHUB_APP_NAME= | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script type="text/javascript"> | ||
var currentProfile = { | ||
username: "{{ github_handle }}", | ||
githubToken: "{{ access_token }}", | ||
isStaff: "{{ is_staff }}" != "False", | ||
isModerator: "{{ is_moderator }}" != "False" | ||
}; | ||
</script> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
function signMsgAndCreateSubdomain(message, from) { | ||
var msg = web3.toHex(message) | ||
var params = [msg, from]; | ||
var msg = web3.toHex(message); | ||
var params = [ msg, from ]; | ||
var method = 'personal_sign'; | ||
|
||
web3.currentProvider.sendAsync({ | ||
method, | ||
params, | ||
from, | ||
}, function (err, result) { | ||
if (err) return console.error(err) | ||
if (result.error) return console.error(result.error) | ||
$.post( "", { 'signedMsg' : result.result, 'signer': from }, function( data ) { | ||
alert(data.msg); | ||
location.reload(); | ||
}); | ||
from | ||
}, function(err, result) { | ||
if (err) | ||
return console.error(err); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unexpected console statement. (no-console) |
||
if (result.error) | ||
return console.error(result.error); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unexpected console statement. (no-console) |
||
$.post('', { 'signedMsg': result.result, 'signer': from }, function(data) { | ||
alert(data.msg); | ||
location.reload(); | ||
}); | ||
}); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
window.onload = function () { | ||
$("#register")[0].onclick = function (e) { | ||
if ($("#tos")[0].checked === false) { | ||
return alert('Please check the TOS checkbox.') | ||
window.onload = function() { | ||
$('#register')[0].onclick = function(e) { | ||
if ($('#tos')[0].checked === false) { | ||
return alert('Please check the TOS checkbox.'); | ||
} | ||
if (typeof web3 == 'undefined') { | ||
return alert('Please install metamask in your browser and try again.') | ||
return alert('Please install metamask in your browser and try again.'); | ||
} | ||
// Get the github handle | ||
githubHandle = $("#githubHandle").text() | ||
githubHandle = $('#githubHandle').text(); | ||
// Get the current account and call sign function: | ||
web3.eth.getAccounts(function (err, accounts) { | ||
if (!accounts) return | ||
signMsgAndCreateSubdomain('Github Username : ' + $("#githubHandle").text(), accounts[0]); | ||
web3.eth.getAccounts(function(err, accounts) { | ||
if (!accounts) | ||
return; | ||
signMsgAndCreateSubdomain('Github Username : ' + $('#githubHandle').text(), accounts[0]); | ||
}); | ||
}; | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[error] line too long (87 > 80 characters) (line-length)