diff options
Diffstat (limited to 'catalog-ui/src/app/ng2/components/ui/designer')
4 files changed, 0 insertions, 76 deletions
diff --git a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.html b/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.html deleted file mode 100644 index 752e49e218..0000000000 --- a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.html +++ /dev/null @@ -1,5 +0,0 @@ -<div class="designer-frame"> - <div class="w-sdc-main-container"> - <iframe class="designer-iframe" [src]="designerUrl | safeUrlSanitizer"></iframe> - </div> -</div> diff --git a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.less b/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.less deleted file mode 100644 index 4b9456b5b1..0000000000 --- a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.less +++ /dev/null @@ -1,8 +0,0 @@ -.designer-frame { - - .designer-iframe { - width: 100%; - height: 100%; - border: none; - } -} diff --git a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts b/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts deleted file mode 100644 index b52696a287..0000000000 --- a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {Component, OnInit, Input} from "@angular/core"; -import { URLSearchParams } from '@angular/http'; -import {Designer} from "app/models"; - -@Component({ - selector: 'designer-frame', - templateUrl: './designer-frame.component.html', - styleUrls:['designer-frame.component.less'] -}) - -export class DesignerFrameComponent implements OnInit { - - @Input() designer: Designer; - @Input() queryParams: Object; - designerUrl: string; - private urlSearchParams: URLSearchParams; - - constructor() { - this.urlSearchParams = new URLSearchParams(); - } - - ngOnInit(): void { - - this.designerUrl = this.designer.designerProtocol + "://" + - this.designer.designerHost + ":" + - this.designer.designerPort + - this.designer.designerPath; - - if (this.queryParams && !_.isEmpty(this.queryParams)) { - _.forOwn(this.queryParams, (value, key) => { - this.urlSearchParams.set(key, value); - }); - - this.designerUrl += '?'; - this.designerUrl += this.urlSearchParams.toString(); - } - } -} diff --git a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.module.ts b/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.module.ts deleted file mode 100644 index 1edf195230..0000000000 --- a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.module.ts +++ /dev/null @@ -1,25 +0,0 @@ -import {NgModule} from "@angular/core"; -import { CommonModule } from '@angular/common'; -import {DesignerFrameComponent} from "./designer-frame.component"; -import {LayoutModule} from "../../layout/layout.module"; -import {GlobalPipesModule} from "../../../pipes/global-pipes.module"; - - -@NgModule({ - declarations: [ - DesignerFrameComponent - ], - imports: [ - CommonModule, - LayoutModule, - GlobalPipesModule - ], - entryComponents: [DesignerFrameComponent], - exports: [ - DesignerFrameComponent - ], - providers: [] -}) -export class DesignerFrameModule { - -} |