Skip to content
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

[ENG-4585] Remove Chronos #759

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 0 additions & 136 deletions app/components/chronos-submission-panel/component.js

This file was deleted.

28 changes: 0 additions & 28 deletions app/components/chronos-submission-panel/template.hbs

This file was deleted.

49 changes: 0 additions & 49 deletions app/components/chronos-submission-status-list-row/component.js

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions app/components/chronos-submission-status-list/component.js

This file was deleted.

9 changes: 0 additions & 9 deletions app/components/chronos-submission-status-list/template.hbs

This file was deleted.

28 changes: 0 additions & 28 deletions app/components/chronos-widget/component.js

This file was deleted.

1 change: 0 additions & 1 deletion app/components/chronos-widget/template.hbs

This file was deleted.

5 changes: 0 additions & 5 deletions app/controllers/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ export default Controller.extend(Analytics, {
return `mailto:?subject=${titleEncoded}&body=${hrefEncoded}`;
}),

isChronosProvider: computed('model.provider.id', function() {
const { chronosProviders } = config;
return Array.isArray(chronosProviders) && chronosProviders.includes(this.get('model.provider.id'));
}),

actions: {
toggleLicenseText() {
const licenseState = this.toggleProperty('showLicenseText') ? 'Expand' : 'Contract';
Expand Down
11 changes: 0 additions & 11 deletions app/locales/en/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,17 +353,6 @@ export default {
title: 'Claim Account',
success_message: 'Email will arrive shortly. Please check {{email}}',
},
'chronos-submission-status-list-row': {
drafted: 'Drafted to <i>{{title}}</i>',
submitted: 'Submitted to <i>{{title}}</i>',
accepted: 'Accepted to <i>{{title}}</i>',
rejected: 'Rejected from <i>{{title}}</i>',
published: 'Published in <i>{{title}}</i>',
},
'chronos-submission-panel': {
link_text: 'Submit to an APA-published journal (beta)',
helper_text: 'A new tab will open to complete submission on Chronos.',
},
'error-page': {
email_message: 'If this should not have occurred and the issue persists, please report it to',
go_to: 'Go to {{brand}}',
Expand Down
21 changes: 0 additions & 21 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -435,27 +435,6 @@ $color-bg-color-grey: #333333;
$color-bg-color-light: #EEEEEE;
$color-border-light: #DDDDDD;

/* Chronos Submission Status */
.chronos-status-drafted {
color: $color-alert-text-warning;
}

.chronos-status-submitted {
color: $color-alert-text-warning;
}

.chronos-status-accepted {
color: $color-alert-text-success;
}

.chronos-status-rejected {
color: $color-alert-text-danger;
}

.chronos-status-published {
color: $color-alert-text-success;
}

.preprint-status-pending-pre {
background-color: $color-alert-bg-warning;
border: 1px solid $color-alert-border-warning;
Expand Down
13 changes: 0 additions & 13 deletions app/templates/content/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,6 @@
}}
</div>
</div>

{{#if (and this.isChronosProvider this.features.enableChronos)}}
<div class="p-t-xs">
{{#chronos-widget preprint=model isContributor=userIsContrib isAdmin=isAdmin as | preprint submissions isAllowSubmissions isContributor | }}
{{chronos-submission-status-list submissions=submissions isContributor=isContributor}}
{{#if isAllowSubmissions }}
<div class="p-t-xs">
{{chronos-submission-panel preprint=preprint publisherFilterKeyword="American Psychological Association"}}
</div>
{{/if}}
{{/chronos-widget}}
</div>
{{/if}}
<div class="p-t-xs">
<h4 class="p-v-md f-w-md"><strong>{{t "global.abstract"}}</strong></h4>
<p class="abstract {{if useShortenedDescription 'abstract-truncated'}}">
Expand Down
11 changes: 0 additions & 11 deletions config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,6 @@ module.exports = function(environment) {
},
],
FB_APP_ID: process.env.FB_APP_ID,
chronosProviders: [
],
approvedChronosJournalIds: [
'0147-7307',
'1099-9809',
'1948-1985',
'1984-3054',
'1082-989X',
'2160-4134',
'1196-1961',
],
plauditWidgetUrl: 'https://osf-review.plaudit.pub/embed/endorsements.js',
OSF: {
metricsStartDate: '2019-01-01',
Expand Down
Loading