46063: clean up

This commit is contained in:
Lotte Hofstede
2018-02-05 12:51:36 +01:00
parent 8ffd08d59f
commit 42b315f8fb
6 changed files with 5 additions and 19 deletions

View File

@@ -40,7 +40,7 @@ export class SearchService implements OnDestroy {
totalPages = 5; totalPages = 5;
mockedHighlights: string[] = new Array( mockedHighlights: string[] = new Array(
'This is a <em>sample abstract</em>.', 'This is a <em>sample abstract</em>.',
'This is a sample abstractabstractabstractabstractabstractabstractabstractabstract. But, to fill up some space, here\'s <em>"Hello"</em> in several different languages : ', 'This is a sample abstract. But, to fill up some space, here\'s <em>"Hello"</em> in several different languages : ',
'This is a Sample HTML webpage including several <em>images</em> and styles (CSS).', 'This is a Sample HTML webpage including several <em>images</em> and styles (CSS).',
'This is <em>really</em> just a sample abstract. But, Ívé thrown ïn a cõuple of spëciâl charactèrs för êxtrå fuñ!', 'This is <em>really</em> just a sample abstract. But, Ívé thrown ïn a cõuple of spëciâl charactèrs för êxtrå fuñ!',
'This abstract is <em>really quite great</em>', 'This abstract is <em>really quite great</em>',

View File

@@ -38,7 +38,7 @@ export function getBase() {
} }
export function getMetaReducers(config: GlobalConfig): Array<MetaReducer<AppState>> { export function getMetaReducers(config: GlobalConfig): Array<MetaReducer<AppState>> {
const metaReducers: Array<MetaReducer<AppState>> = config.production ? appMetaReducers : [...appMetaReducers]; const metaReducers: Array<MetaReducer<AppState>> = config.production ? appMetaReducers : [...appMetaReducers, storeFreeze];
return config.debug ? [...metaReducers, ...debugMetaReducers] : metaReducers; return config.debug ? [...metaReducers, ...debugMetaReducers] : metaReducers;
} }

View File

@@ -12,7 +12,7 @@
(<span *ngIf="object.findMetadata('dc.publisher')" class="item-list-publisher">{{object.findMetadata("dc.publisher")}}, </span><span (<span *ngIf="object.findMetadata('dc.publisher')" class="item-list-publisher">{{object.findMetadata("dc.publisher")}}, </span><span
*ngIf="object.findMetadata('dc.date.issued')" class="item-list-date">{{object.findMetadata("dc.date.issued")}}</span>) *ngIf="object.findMetadata('dc.date.issued')" class="item-list-date">{{object.findMetadata("dc.date.issued")}}</span>)
</span> </span>
<div *ngIf="item.findMetadata('dc.description.abstract')" class="item-list-abstract"> <div *ngIf="object.findMetadata('dc.description.abstract')" class="item-list-abstract">
{{item.findMetadata("dc.description.abstract") | dsTruncate:[200] }} {{object.findMetadata("dc.description.abstract") | dsTruncate:[200] }}
</div> </div>
</div> </div>

View File

@@ -1,12 +1,10 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { TruncatableService } from '../truncatable.service'; import { TruncatableService } from '../truncatable.service';
import { cardExpand } from '../../animations/card-expand';
@Component({ @Component({
selector: 'ds-truncatable-part', selector: 'ds-truncatable-part',
templateUrl: './truncatable-part.component.html', templateUrl: './truncatable-part.component.html',
styleUrls: ['./truncatable-part.component.scss'], styleUrls: ['./truncatable-part.component.scss']
animations: [cardExpand]
}) })
export class TruncatablePartComponent implements OnInit, OnDestroy { export class TruncatablePartComponent implements OnInit, OnDestroy {

View File

@@ -2,8 +2,6 @@ import {
Component, Input Component, Input
} from '@angular/core'; } from '@angular/core';
import { TruncatableService } from './truncatable.service'; import { TruncatableService } from './truncatable.service';
import { Observable } from 'rxjs/Observable';
import { cardExpand } from '../animations/card-expand';
@Component({ @Component({
selector: 'ds-truncatable', selector: 'ds-truncatable',

10
src/app/typings.d.ts vendored
View File

@@ -82,13 +82,3 @@ declare module '*.json' {
} }
declare module 'reflect-metadata'; declare module 'reflect-metadata';
interface IShaveOptions {
classname?: string,
character?: string
}
declare module 'shave' {
export default function shave(selector: string | Node, maxHeight: number, options?: IShaveOptions): void;
}