-
Notifications
You must be signed in to change notification settings - Fork 40
[IN-54][Ember-OSF] Update ember-osf to work with reviews and preprints #327
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
Merged
alexschiller
merged 55 commits into
CenterForOpenScience:release/next-next-interfaces
from
sheriefvt:feature/EOSF-915
Feb 12, 2018
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
fb5cdda
[Feature] Update for reviews (#2)
aaxelb c237ed7
[Feature] Include reviewable when creating review logs (#3)
aaxelb 429ce0e
Add dateLastTransitioned to preprint model (#5)
aaxelb 55e69ab
[Fix] Only fetch the logged in user once
chrisseto d433892
Allow reviews settings to be nullable
chrisseto 0cc20ec
Fix infinite authentication
chrisseto b844a34
Add support for using query parameters in findRecord
chrisseto a7f14a0
[Fix] Use `getRecords()` instead of `.record` (#8)
laurenbarker 607311e
Tweaks and updates for reviews
chrisseto e416b28
Fix typo
chrisseto 9cc89c5
[Feature][MOD-73] Rename log to action (minimal branch) (#2)
aaxelb 838ad02
[MOD-72][Feature] Add "My Reviews" for users with view_submissions pe…
chrisseto 024aa2b
Add actions property to user model
aaxelb e032fa4
Add `user` property to current-user instead
aaxelb 6ad3b89
Add DOI alias properties to preprint model
aaxelb 25e5913
Fix permissions check in navbar (#6)
laurenbarker c660ea5
Only serialize actually dirty relationships
aaxelb 447e5e4
Wait for currentUser.user to resolve (#8)
laurenbarker 81a9ffa
[Feature][MOD-111] Add preprint" button direct to the current provide…
sheriefvt f1ebddf
Use forked/fixed ember-data-has-many-query
aaxelb 15ebd80
[Improvement] Upgrade deps and clean up code
chrisseto 56680df
Wait for currentUser.user to resolve (#9)
laurenbarker 5eccd08
Update ember-data-has-many-query dependency
aaxelb 6a1a03a
Merge branch 'feature/reviews-minimal' into feature/reviews
aaxelb 6f49fc9
Revert to non-forked ember-data-has-many-query
aaxelb 7fc25bd
Merge branch 'feature/reviews-minimal' into feature/reviews
aaxelb 4964ade
Merge branch 'develop' into feature/reviews-minimal
aaxelb 0d64fad
Merge branch 'feature/reviews-minimal' into feature/reviews
aaxelb 671c2b9
Merge branch 'develop' into feature/reviews-minimal
aaxelb e7e565b
Update CHANGELOG
aaxelb 21d464a
Merge branch 'feature/reviews-minimal' into feature/reviews
aaxelb 204c1ac
Merge branch 'develop' of https://github.com/CenterForOpenScience/emb…
sheriefvt 78e32c4
Update index.js
sheriefvt 1068a8a
update ember-cli-build.js
sheriefvt a32dbde
Merge branch 'develop' of https://github.com/CenterForOpenScience/emb…
sheriefvt 299a494
Update dependencies
sheriefvt bfa2220
Update ember-cli-build
sheriefvt 72c9d25
update searchable count
sheriefvt 6c1fed9
Add preprint-word util
sheriefvt 702b928
Update tests / settings
sheriefvt ed439da
Refactor file-manager tests
sheriefvt f38159b
update wording
sheriefvt 8a1606c
* Update changelog
sheriefvt e924ac9
Update preprint-word util
sheriefvt df6eef2
Merge branch 'develop' of https://github.com/CenterForOpenScience/emb…
sheriefvt b029ec7
Update translations
sheriefvt 115d651
Replace preprint word util with service
sheriefvt 36db7d6
Merge branch 'develop' of https://github.com/CenterForOpenScience/emb…
sheriefvt 9ca5648
fix failing tests
sheriefvt f3d9428
Merge branch 'develop' of https://github.com/CenterForOpenScience/emb…
sheriefvt d251d6e
Reverse changes not related to this PR
sheriefvt 076e586
update code changes
sheriefvt 34b95d6
Add test for waterbutler request
sheriefvt 1ed5072
remove jshintrc
sheriefvt 864f091
Merge branch 'develop' of https://github.com/CenterForOpenScience/emb…
sheriefvt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,17 @@ | ||
| .eosf-file-widget-box { | ||
| border: 2px solid dark-grey; | ||
| border-radius: 5px; | ||
| background-color: #EEE; | ||
| padding: 20px; | ||
|
|
||
| .dropzone-box { | ||
| margin: 5px; | ||
| } | ||
|
|
||
| .login-button, .select-project-button { | ||
| width: 100%; | ||
| height: 150px; | ||
| margin: 5px; | ||
| text-align: center; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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,8 @@ | ||
| @import 'bootstrap/variables'; | ||
|
|
||
|
|
||
| @media (min-width: $screen-md-min) { | ||
| .navbar-right-md { | ||
| float: right; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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,25 +1,23 @@ | ||
| {{!Lucene search help modal}} | ||
| <div id="ember-bootstrap-modal-container"> | ||
| {{#bs-modal open=isOpen body=false header=false footer=false}} | ||
| {{#bs-modal-header}} | ||
| {{#bs-modal open=isOpen as |modal|}} | ||
| {{#modal.header}} | ||
| <h3 class="modal-title">{{t 'eosf.components.searchHelpModal.searchHelp'}}</h3> | ||
| {{/bs-modal-header}} | ||
| {{#bs-modal-body}} | ||
| {{/modal.header}} | ||
| {{#modal.body}} | ||
| <h4> {{t 'eosf.components.searchHelpModal.queries'}} </h4> | ||
| <p> | ||
| {{t 'eosf.components.searchHelpModal.searchUsesThe'}} <a href="http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application+Query+Syntax">Lucene {{t 'eosf.components.searchHelpModal.searchSyntax'}}</a>. | ||
| {{t 'eosf.components.searchHelpModal.helpDescription'}} | ||
| </p> | ||
| <ul> | ||
| <ul class="ex-list"> | ||
| <li><a href={{concat currentPath '?q=repro*'}}>repro*</a></li> | ||
| <li><a href={{concat currentPath '?q=brian+AND+title%3Amany'}}>brian AND title:many</a></li> | ||
| <li><a href={{concat currentPath '?q=tags%3A%28psychology%29'}}>tags:(psychology)</a></li> | ||
| </ul> | ||
| {{/bs-modal-body}} | ||
| {{#bs-modal-footer}} | ||
| <div align="right"> | ||
| <button {{action 'close'}} class="btn btn-default"> {{t 'eosf.components.searchHelpModal.close'}} </button> | ||
| </div> | ||
| {{/bs-modal-footer}} | ||
| {{/modal.body}} | ||
| {{#modal.footer}} | ||
| {{#bs-button onClick=(action modal.close)}}{{t 'eosf.components.searchHelpModal.close'}}{{/bs-button}} | ||
| {{/modal.footer}} | ||
| {{/bs-modal}} | ||
| </div> | ||
| </div> |
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,40 @@ | ||
| import Ember from 'ember'; | ||
|
|
||
| export default Ember.Service.extend({ | ||
| i18n: Ember.inject.service(), | ||
| getPreprintWord() { | ||
| const i18n = this.get('i18n'); | ||
| return { | ||
| default: { | ||
| plural: i18n.t('documentType.default.plural'), | ||
| pluralCapitalized: i18n.t('documentType.default.pluralCapitalized'), | ||
| singular: i18n.t('documentType.default.singular'), | ||
| singularCapitalized: i18n.t('documentType.default.singularCapitalized'), | ||
| }, | ||
| paper: { | ||
| plural: i18n.t('documentType.paper.plural'), | ||
| pluralCapitalized: i18n.t('documentType.paper.pluralCapitalized'), | ||
| singular: i18n.t('documentType.paper.singular'), | ||
| singularCapitalized: i18n.t('documentType.paper.singularCapitalized'), | ||
| }, | ||
| preprint: { | ||
| plural: i18n.t('documentType.preprint.plural'), | ||
| pluralCapitalized: i18n.t('documentType.preprint.pluralCapitalized'), | ||
| singular: i18n.t('documentType.preprint.singular'), | ||
| singularCapitalized: i18n.t('documentType.preprint.singularCapitalized'), | ||
| }, | ||
| none: { | ||
| plural: '', | ||
| pluralCapitalized: '', | ||
| singular: '', | ||
| singularCapitalized: '', | ||
| }, | ||
| thesis: { | ||
| plural: i18n.t('documentType.thesis.plural'), | ||
| pluralCapitalized: i18n.t('documentType.thesis.pluralCapitalized'), | ||
| singular: i18n.t('documentType.thesis.singular'), | ||
| singularCapitalized: i18n.t('documentType.thesis.singularCapitalized'), | ||
| }, | ||
| } | ||
| } | ||
| }); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This service doesn't do/provide anything that
i18ndoesn't already. What's the point of it?