-
Notifications
You must be signed in to change notification settings - Fork 3
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 #435 from crossroads/master
[Release] Admin v0.17.2
- Loading branch information
Showing
30 changed files
with
261 additions
and
332 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 |
---|---|---|
|
@@ -146,7 +146,7 @@ jobs: | |
www_deploy: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/ruby:2.5.1-node | ||
- image: circleci/ruby:2.5.5 | ||
steps: | ||
- restore-cache: *restore-repo-cache | ||
- restore-cache: *restore-bundler-cache | ||
|
@@ -293,13 +293,26 @@ jobs: | |
|
||
ios_build_and_deploy: | ||
macos: | ||
xcode: "10.1.0" | ||
xcode: "11.0.0" | ||
working_directory: ~/code | ||
shell: /bin/bash --login -eo pipefail | ||
environment: | ||
CIRCLE_ARTIFACTS: /Users/distiller/code/cordova/platforms/ios/build/device | ||
steps: | ||
- checkout | ||
- run: | ||
name: install [email protected] | ||
command: | | ||
set +e | ||
touch $BASH_ENV | ||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash | ||
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV | ||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV | ||
echo nvm install 8.15.0 >> $BASH_ENV | ||
echo nvm alias default 8.15.0 >> $BASH_ENV | ||
- run: | ||
name: verify node version | ||
command: node --version | ||
- restore-cache: *restore-ios-yarn-cache | ||
- run: *yarn | ||
- save-cache: *save-ios-yarn-cache | ||
|
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,27 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Forward release notes | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- live | ||
|
||
jobs: | ||
release-notes: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Generate and email notes | ||
run: npx @goodcity/release-notes --email-to "[email protected],[email protected],[email protected]" --head ${{github.event.pull_request.head.sha}} --base ${{github.event.pull_request.base.sha}} --email-subject "🚀 Admin Release 🚀" | ||
env: | ||
JIRA_USERNAME: ${{secrets.jira_username}} | ||
JIRA_PASSWORD: ${{secrets.jira_password}} | ||
SENDGRID_API_KEY: ${{secrets.sendgrid_api_key}} |
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 +1 @@ | ||
ruby-2.5.3 | ||
ruby-2.5.5 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ import utils from "../utils/utility-methods"; | |
* | ||
*/ | ||
export default Ember.Controller.extend(AsyncMixin, { | ||
queryParams: ["forwardRoute"], | ||
session: Ember.inject.service(), | ||
store: Ember.inject.service(), | ||
messageBox: Ember.inject.service(), | ||
|
@@ -98,16 +99,30 @@ export default Ember.Controller.extend(AsyncMixin, { | |
}), | ||
|
||
favouriteImage: Ember.computed( | ||
"supportsFavouriteImage", | ||
"record.favouriteImageId", | ||
"[email protected]", | ||
"images.[]", | ||
function() { | ||
if (this.get("supportsFavouriteImage")) { | ||
const id = this.get("record.favouriteImageId"); | ||
const im = id && this.get("images").findBy("id", id); | ||
|
||
if (im) { | ||
return im; | ||
} | ||
} | ||
return this.get("images").findBy("favourite"); | ||
} | ||
), | ||
|
||
initPreviewImage: Ember.on( | ||
"init", | ||
Ember.observer("record", "images.[]", function() { | ||
if (this.get("images").includes(this.get("previewImage"))) { | ||
return; | ||
} | ||
|
||
var image = this.get("images.firstObject"); | ||
if (image) { | ||
this.send("setPreview", image); | ||
|
@@ -188,7 +203,11 @@ export default Ember.Controller.extend(AsyncMixin, { | |
|
||
actions: { | ||
done() { | ||
window.history.back(); | ||
if (this.get("forwardRoute")) { | ||
this.replaceRoute(this.get("forwardRoute"), this.get("record")); | ||
} else { | ||
window.history.back(); | ||
} | ||
}, | ||
|
||
setPreview(image) { | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,9 @@ | ||
import AuthorizeRoute from "../authorize"; | ||
|
||
export default AuthorizeRoute.extend({ | ||
controllerName: "image_editor", | ||
|
||
renderTemplate() { | ||
this.render("image_editor"); | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
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.