-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #473 from LibCrowds/greenkeeper/initial
Update dependencies to enable Greenkeeper 🌴
- Loading branch information
Showing
66 changed files
with
2,765 additions
and
2,368 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 |
---|---|---|
@@ -1,21 +1,24 @@ | ||
sudo: required | ||
|
||
dist: trusty | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- '7' | ||
|
||
- '8' | ||
before_install: | ||
# Remove hte line below once node 9 moves to LTS (and so does this repo) | ||
- npm install -g npm@5 | ||
- npm install -g greenkeeper-lockfile@1 | ||
# Deploy key used to push to the server | ||
- openssl aes-256-cbc -K $encrypted_1cd83addbd20_key -iv $encrypted_1cd83addbd20_iv | ||
-in deploy-key.enc -out deploy-key -d | ||
|
||
install: | ||
- npm install | ||
|
||
before_script: | ||
- greenkeeper-lockfile-upload | ||
script: | ||
- npm run test | ||
|
||
after_success: | ||
- bash bin/deploy.sh | ||
env: | ||
global: | ||
# GH_TOKEN used for greenkeeper-lockfile | ||
secure: iMLVTgpiRtJ0OmJwJmAPEnvPCRTxM9UXxLR1HQHHhhJRLpWWUH89wmiNqpk8qnfwL+IWxkgquuY9RyQYhGINwMfswsBdP8eIVu1iWg0qwGhbdhfiV3CiMm7rxDz02WoqyOcdpm2RHRGo8Hd1YJ2avJn5TBtkqlYDhNO14wBSAmNp55KMrHqC6wAtAR2V/SASiO6zLrm0yrE/K6kkjRjpe8TY6VdTfuK3EnUDA4HjJZqcC0131214IAVcYxLplTJVrb2qBPwHOyqyQxV2S6eWIJthEQ4Qr1aTVpPAbDbLEbJdxbU3VkA0Jiz8acB3f3yN/DmHVHO4585WepJVIw+oWm4rKbfSHCyR2CENMNF/Hkyw4UtyYwsQTHlR5fF2+QyIbsO4f0fAC3poK3AIg1OanwEgaN5TWti2ed/Hy88ODRkxrH+tynhDVSMA00KdgZ82JGFQ/Rp1AdCvJWWx0eWsXg/Xxzbs2M9zIFzeu57a6onXla743tOtdcH0qu7EdOnUfg2dXiied/+xLak1dJlOHu1dhgLcRxs9aBzE0LBWswpO9v9Mi8HA067NvCy0e8bcQHWHJQ0zLHYDqIg9rLnr8lq+d1T+IwgqMx7dHvxlXM1u6o17Li3WdV7//McwzeSIl/UEKKRGICTI/D0vQOQhZhnlw0jMfd6xqyUtRJxNRoE= |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<template> | ||
<div class="small-avatar"> | ||
<img | ||
v-if="src" | ||
:src="src" | ||
size | ||
class="img-fluid rounded-circle" | ||
:onerror="info = null"> | ||
</img> | ||
<div | ||
v-else | ||
class="img-fluid rounded-circle placeholder"> | ||
<icon name="question"></icon> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import localConfig from '@/local.config' | ||
import 'vue-awesome/icons/picture-o' | ||
export default { | ||
data () { | ||
return { | ||
info: this.domainObject.info | ||
} | ||
}, | ||
props: { | ||
domainObject: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
computed: { | ||
src () { | ||
const host = localConfig.pybossa.host | ||
if (!this.info) { | ||
return null | ||
} else if (this.info.avatar_url) { | ||
return host + this.info.avatar_url | ||
} else if (this.info.thumbnail_url) { | ||
return host + this.info.thumbnail_url | ||
} else if (this.info.media_url) { | ||
return host + this.info.media_url | ||
} | ||
return null | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import '~assets/style/settings'; | ||
.small-avatar { | ||
overflow: hidden; | ||
max-width: 3rem; | ||
max-height: 3rem; | ||
min-width: 3rem; | ||
min-height: 3rem; | ||
&>* { | ||
max-width: 3rem; | ||
max-height: 3rem; | ||
min-width: 3rem; | ||
min-height: 3rem; | ||
} | ||
.placeholder { | ||
border: 1px solid $gray-300; | ||
} | ||
} | ||
</style> |
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
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
Oops, something went wrong.