Compare commits

..

No commits in common. "f802f41bbb572449004a9dd48bd43ea2b9c85c14" and "3242058c4f7ec7e55b19028743b25f38fbd1e948" have entirely different histories.

4 changed files with 2 additions and 34 deletions

View File

@ -33,7 +33,6 @@ import { MenuBackgroundComponent } from './components/menu-background/menu-backg
import { HasPackageDirective} from './components/has-package/has-package.directive';
import { HasClaimDirective} from './components/has-claim/has-claim.directive';
import { UserMenuComponent} from './components/user-menu/user-menu.component';
import { ThumbnailComponent } from './components/thumbnail/thumbnail.component';
import { Alert } from './enumerations/alert.enum';
import { IEventMessage } from './models/event.message';
import { IItem, Item } from './models/item';
@ -72,7 +71,6 @@ export {
TimespanComponent,
TagInputComponent,
UserMenuComponent,
ThumbnailComponent,
HasPackageDirective,
HasClaimDirective,
Alert,
@ -135,8 +133,7 @@ export {
GradientSelectComponent,
AppMenuComponent,
NotificationMenuComponent,
BackButtonComponent,
ThumbnailComponent
BackButtonComponent
],
exports: [
NgbModule,
@ -159,8 +156,7 @@ export {
UserMenuComponent,
GradientComponent,
GradientSelectComponent,
BackButtonComponent,
ThumbnailComponent
BackButtonComponent
]
})
export class AppCommonModule {

View File

@ -1,6 +0,0 @@
<div class="thumbnail">
<img *ngIf="item.thumbnail" class="card-img-top" [src]="getThumbnailUrl(item)" />
<div *ngIf="!item.thumbnail" class="big-icon" [style.background-color]="itemTypeService.getColor(item.itemType)">
<i [ngClass]="itemTypeService.getIcon(item.itemType)"></i>
</div>
</div>

View File

@ -1,22 +0,0 @@
import { Component,Input } from '@angular/core';
import { Store } from '@ngrx/store';
import { IItem } from '../../models/item';
import { commonReducers,ItemTypeService } from '../../../public-api'
@Component({
selector: 'fm-thumbnail',
templateUrl: 'thumbnail.component.html',
styleUrls: ['thumbnail.component.scss']
})
export class ThumbnailComponent {
@Input() public item: IItem;
constructor(public store: Store<commonReducers.State>, public itemTypeService: ItemTypeService) {
}
getThumbnailUrl(item:IItem):string {
return item.url+'/thumbnail?v=' + Date.parse(item.updated);
}
}