Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
b4f28ca7
Unverified
Commit
b4f28ca7
authored
Jan 19, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
58fba0d2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
7 deletions
+47
-7
control.component.css
src/app/ControlPage/control/control.component.css
+1
-1
control.component.html
src/app/ControlPage/control/control.component.html
+7
-0
controlnav.component.css
...p/ControlPage/control/controlnav/controlnav.component.css
+16
-0
guacamole.component.html
src/app/elements/guacamole/guacamole.component.html
+1
-3
guacamole.component.scss
src/app/elements/guacamole/guacamole.component.scss
+6
-0
guacamole.component.ts
src/app/elements/guacamole/guacamole.component.ts
+16
-3
No files found.
src/app/ControlPage/control/control.component.css
View file @
b4f28ca7
app-element-term
,
div
{
div
,
app-element-term
,
app-element-guacamole
{
height
:
100%
;
display
:
none
;
}
...
...
src/app/ControlPage/control/control.component.html
View file @
b4f28ca7
...
...
@@ -10,4 +10,11 @@
[
ngClass
]="{'
active
'
:i=
=NavList.Active}"
*
ngIf=
"m.type=='ssh'"
>
</app-element-term>
<app-element-guacamole
[
host
]="
m
.
host
"
[
userid
]="
m
.
user
.
id
"
[
index
]="
i
"
[
ngClass
]="{'
active
'
:i=
=NavList.Active}"
*
ngIf=
"m.type=='rdp'"
>
</app-element-guacamole>
</div>
src/app/ControlPage/control/controlnav/controlnav.component.css
View file @
b4f28ca7
...
...
@@ -81,3 +81,19 @@
padding
:
5px
20px
4px
15px
;
height
:
18px
;
}
/*
* scrollbar
*/
.tabs
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0.3
);
background-color
:
#F5F5F5
;
}
.tabs
::-webkit-scrollbar
{
height
:
1px
;
}
.tabs
::-webkit-scrollbar-thumb
{
background-color
:
#19aa8d
;
}
src/app/elements/guacamole/guacamole.component.html
View file @
b4f28ca7
<div>
<iframe
src=
"{{target}}"
></iframe>
</div>
<iframe
[
src
]="
trust
(
target
)"
></iframe>
src/app/elements/guacamole/guacamole.component.scss
View file @
b4f28ca7
iframe
{
width
:
100%
;
height
:
100%
;
border
:
none
;
background-color
:
white
;
}
src/app/elements/guacamole/guacamole.component.ts
View file @
b4f28ca7
import
{
Component
,
Input
,
OnInit
}
from
'@angular/core'
;
import
{
DomSanitizer
}
from
'@angular/platform-browser'
;
import
{
NavList
}
from
'../../ControlPage/control/control.component'
;
@
Component
({
selector
:
'app-element-guacamole'
,
...
...
@@ -6,13 +8,24 @@ import {Component, Input, OnInit} from '@angular/core';
styleUrls
:
[
'./guacamole.component.scss'
]
})
export
class
ElementGuacamoleComponent
implements
OnInit
{
@
Input
()
target
:
string
;
@
Input
()
host
:
any
;
@
Input
()
userid
:
any
;
@
Input
()
index
:
number
;
target
:
string
;
constructor
()
{
constructor
(
private
sanitizer
:
DomSanitizer
)
{
}
ngOnInit
()
{
this
.
target
=
'/guacamole/?asset_id='
+
'&system_user_id='
+
''
;
// this.target = '/guacamole/?asset_id=' + '&system_user_id=' + '';
this
.
target
=
'https://www.baidu.com'
;
}
trust
(
url
)
{
return
this
.
sanitizer
.
bypassSecurityTrustResourceUrl
(
url
);
}
Disconnect
()
{
NavList
.
List
[
this
.
index
].
connected
=
false
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment