Skip to content

Commit 2853cd4

Browse files
author
Uditi Mehta
committed
remove unused classes and services
1 parent 1004dc2 commit 2853cd4

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

app/preprints/-components/preprint-card/component.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import { tagName } from '@ember-decorators/component';
22
import Component from '@ember/component';
3-
import { inject as service } from '@ember/service';
43
import config from 'ember-osf-web/config/environment';
5-
import Store from '@ember-data/store';
64

75
import { layout } from 'ember-osf-web/decorators/component';
86
import Preprint from 'ember-osf-web/models/preprint';
9-
import Analytics from 'ember-osf-web/services/analytics';
107
import pathJoin from 'ember-osf-web/utils/path-join';
118
import { Permission } from 'ember-osf-web/models/osf-model';
12-
import Toast from 'ember-toastr/services/toast';
139

14-
import RouterService from '@ember/routing/router-service';
15-
import Intl from 'ember-intl/services/intl';
1610
import template from './template';
1711
import styles from './styles';
1812

@@ -21,11 +15,6 @@ const { OSF: { url: baseURL } } = config;
2115
@layout(template, styles)
2216
@tagName('')
2317
export default class PreprintCard extends Component {
24-
@service analytics!: Analytics;
25-
@service router!: RouterService;
26-
@service store!: Store;
27-
@service toast!: Toast;
28-
@service intl!: Intl;
2918

3019
preprint?: Preprint;
3120
delete?: (preprint: Preprint) => void;

app/preprints/-components/preprint-card/styles.scss

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,14 @@
8282
}
8383
}
8484

85-
.preprint-body {
86-
width: 100%;
87-
}
88-
89-
.ember-content-placeholders-text__line {
90-
height: 1em;
91-
margin-bottom: 5px;
92-
}
93-
9485
dl {
9586
margin-bottom: 10px;
9687

9788
div {
9889
display: flex;
9990

10091
dt {
101-
width: 110px; // Preserved as originally
92+
width: 110px;
10293
margin-right: 5px;
10394
}
10495

@@ -122,28 +113,11 @@ dl {
122113
}
123114
}
124115

125-
.open-badges {
126-
width: 20%;
127-
border-left-width: thin;
128-
border-left-color: $color-bg-gray-light;
129-
border-left-style: solid;
130-
padding-left: 10px;
131-
}
132-
133-
.open-badges.mobile {
134-
width: 10%;
135-
padding-left: 0;
136-
}
137-
138116
.list-group-item-heading {
139117
margin-top: 0;
140118
margin-bottom: 5px;
141119
}
142120

143-
.pull-right {
144-
float: right !important;
145-
}
146-
147121
.update-button {
148122
color: $color-text-blue-dark;
149123
}

0 commit comments

Comments
 (0)