Skip to content

Commit

Permalink
Merge branch 'master' into reserve-bounty-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu authored Sep 19, 2019
2 parents 35c5141 + 4731117 commit d5d79d2
Show file tree
Hide file tree
Showing 148 changed files with 796 additions and 295 deletions.
2 changes: 1 addition & 1 deletion app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'app.middleware.drop_accept_langauge',
'app.middleware.bleach_requests',
# 'app.middleware.bleach_requests',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
2 changes: 1 addition & 1 deletion app/app/templates/shared/current_profile.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="text/javascript">
<script>
let currentProfile = {
username: "{{ github_handle }}",
githubToken: "{{ access_token }}",
Expand Down
4 changes: 2 additions & 2 deletions app/app/templates/shared/sentry.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}
{% if raven_js_dsn %}
<script src="https://cdn.ravenjs.com/{{ raven_js_version|default_if_none:'3.26.4' }}/raven.min.js" crossorigin="anonymous" type="text/javascript"></script>
<script type="text/javascript">
<script src="https://cdn.ravenjs.com/{{ raven_js_version|default_if_none:'3.26.4' }}/raven.min.js" crossorigin="anonymous"></script>
<script>
var ravenOptions = {
release: '{{ release }}',
environment: '{{ env }}',
Expand Down
5 changes: 5 additions & 0 deletions app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@
dashboard.views.social_contribution_email,
name='social_contribution_email'
),
url(
r'^api/v0.1/bulk_invite',
dashboard.views.bulk_invite,
name='bulk_invite'
),
url(r'^api/v0.1/bountydocument', dashboard.views.bounty_upload_nda, name='bounty_upload_nda'),
url(r'^api/v0.1/faucet/save/?', faucet.views.save_faucet, name='save_faucet'),
url(r'^api/v0.1/', include(dbrouter.urls)),
Expand Down
12 changes: 11 additions & 1 deletion app/assets/v2/css/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@ h4 {
margin-bottom: -90px;
}

#team .avatar.joe {
width: 255px;
margin-left: -15px;
}

#team .avatar.joe:hover {
width: 265px;
margin-left: -15px;
}

#team .avatar.jobs {
height: 275px;
}
Expand All @@ -127,7 +137,7 @@ h4 {
}

#team .social-links a i {
font-size: 2.25em;
font-size: 1.75em;
transition: all 0.3s;
color: black;
}
Expand Down
Binary file added app/assets/v2/images/emails/email_header10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/emails/email_header9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/team/gitcoinbot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/team/joe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 51 additions & 1 deletion app/assets/v2/js/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,53 @@ Vue.mixin({
}
});
},
sendInviteAll: function(bountyUrl) {
let vm = this;
const apiUrlInvite = '/api/v0.1/bulk_invite/';
const postInvite = fetchData(
apiUrlInvite,
'POST',
{ 'params': vm.params, 'bountyId': bountyUrl},
{'X-CSRFToken': csrftoken}
);

$.when(postInvite).then((response) => {
console.log(response);
if (response.status !== 200) {
_alert(response.msg, 'error');

} else {
vm.$refs['user-modal'].closeModal();
_alert('The invitation has been sent', 'info');
}
});

},
getIssueDetails: function(url) {
let vm = this;
const apiUrldetails = `/actions/api/v0.1/bounties/?github_url=${encodeURIComponent(url)}`;

vm.errorIssueDetails = undefined;

if (url.indexOf('github.com/') < 0) {
vm.issueDetails = null;
vm.errorIssueDetails = 'Please paste a github issue url';
return;
}
vm.issueDetails = undefined;
const getIssue = fetchData(apiUrldetails, 'GET');

$.when(getIssue).then((response) => {
if (response[0]) {
vm.issueDetails = response[0];
vm.errorIssueDetails = undefined;
} else {
vm.issueDetails = null;
vm.errorIssueDetails = 'This issue wasn\'t bountied yet.';
}
});

},
closeModal() {
this.$refs['user-modal'].closeModal();
},
Expand Down Expand Up @@ -187,7 +234,10 @@ if (document.getElementById('gc-users-directory')) {
skills: document.keywords,
selectedSkills: [],
noResults: false,
isLoading: true
isLoading: true,
gitcoinIssueUrl: '',
issueDetails: undefined,
errorIssueDetails: undefined
},
mounted() {
this.fetchUsers();
Expand Down
8 changes: 5 additions & 3 deletions app/assets/v2/js/vue-components.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Vue.component('modal', {
props: [ 'user', 'size' ],
template: `<div class="vue-modal modal fade" id="userModal" tabindex="-1" role="dialog" aria-labelledby="userModalLabel" aria-hidden="true">
props: [ 'user', 'size', 'id', 'issueDetails' ],
template: `<div class="vue-modal modal fade" :id="id" tabindex="-1" role="dialog" aria-labelledby="userModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" :class="size" role="document">
<div class="modal-content">
<div class="modal-header border-0">
Expand Down Expand Up @@ -52,7 +52,9 @@ Vue.component('select2', {
},
watch: {
value: function(value) {
if ([...value].sort().join(',') !== [...$(this.$el).val()].sort().join(',')) {
if (value === undefined) {
$(this.$el).empty().select2({ data: this.options });
} else if ([...value].sort().join(',') !== [...$(this.$el).val()].sort().join(',')) {
$(this.$el).val(value).trigger('change');
}
},
Expand Down
Binary file added app/assets/wallpapers/h1-v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/wallpapers/h1-v2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/wallpapers/h1-v3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/wallpapers/h1-v3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/wallpapers/h1-v4.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h1-v4.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h1-v5.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h1-v5.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h1.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h1.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h10-v2.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h10-v2.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h10.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h10.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h11-v2.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h11-v2.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h11.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h11.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h2-v2.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h2-v2.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h2-v3.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h2-v3.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h2.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h2.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h3-v2.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h3-v2.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h3-v3.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h3-v3.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h3.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h3.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h4.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h4.svg

Large diffs are not rendered by default.

Binary file added app/assets/wallpapers/h5-v2.png
1 change: 1 addition & 0 deletions app/assets/wallpapers/h5-v2.svg
Binary file added app/assets/wallpapers/h5-v3.png
Loading

0 comments on commit d5d79d2

Please sign in to comment.