2016-03-21 03:05:51 +08:00
|
|
|
///<reference path="../../../browser.d.ts"/>
|
|
|
|
|
|
|
|
import {Component, Input, OnInit} from 'angular2/core';
|
|
|
|
import {Directory} from "../../../../common/entities/Directory";
|
2016-03-26 23:25:48 +08:00
|
|
|
import {RouterLink} from "angular2/router";
|
2016-03-27 02:24:12 +08:00
|
|
|
import {Utils} from "../../../../common/Utils";
|
2016-04-25 02:56:54 +08:00
|
|
|
import {MATERIAL_BROWSER_PROVIDERS} from "ng2-material/all";
|
|
|
|
import {ViewportHelper} from "ng2-material/all";
|
|
|
|
import {MATERIAL_DIRECTIVES} from "ng2-material/all";
|
2016-03-21 03:05:51 +08:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'gallery-directory',
|
2016-03-26 23:25:48 +08:00
|
|
|
templateUrl: 'app/gallery/directory/directory.gallery.component.html',
|
2016-04-25 02:56:54 +08:00
|
|
|
directives:[RouterLink,MATERIAL_DIRECTIVES],
|
|
|
|
providers:[MATERIAL_BROWSER_PROVIDERS, ViewportHelper]
|
2016-03-21 03:05:51 +08:00
|
|
|
})
|
|
|
|
export class GalleryDirectoryComponent{
|
|
|
|
@Input() directory: Directory;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
|
2016-03-27 02:24:12 +08:00
|
|
|
getDirectoryPath(){
|
|
|
|
return Utils.concatUrls(this.directory.path,this.directory.name);
|
|
|
|
}
|
|
|
|
|
2016-03-21 03:05:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|