-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f578b6e
commit b4220f2
Showing
11 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="chat-container" [hidden]="isHidden" (click)="toggle()"> | ||
<div class="content"> | ||
<iframe | ||
#iFrame | ||
[src]="iframeURL | safeUrl" | ||
title="chat" | ||
height="100%" | ||
width="100%" | ||
></iframe> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.chat-container { | ||
height: 100vh; | ||
width: 100vw; | ||
overflow: hidden; | ||
.content { | ||
height: 100%; | ||
width: 440px; | ||
float: right; | ||
background-color: #ffffff; | ||
border-radius: 10px 0 0 10px; | ||
box-shadow: 0 0 8px 4px #00000014; | ||
transition: transform .25s cubic-bezier(.7, .3, .1, 1); | ||
iframe { | ||
border: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import {Component, ViewChild, ElementRef} from '@angular/core'; | ||
|
||
|
||
@Component({ | ||
selector: 'elements-chat', | ||
templateUrl: './chat.component.html', | ||
styleUrls: ['./chat.component.scss'], | ||
}) | ||
|
||
export class ElementChatComponent { | ||
@ViewChild('iFrame', {static: false}) iframeRef: ElementRef; | ||
|
||
isHidden = true; | ||
iframeURL: String; | ||
|
||
constructor() { | ||
this.iframeURL = '/ui/#/chat/chatai'; | ||
} | ||
|
||
toggle() { | ||
this.isHidden = !this.isHidden; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.