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
7 years ago
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
58fba0d2
master
dependabot/npm_and_yarn/handlebars-4.5.3
dependabot/npm_and_yarn/sshpk-1.16.1
dev
gengmei
koko
manual
v52
v54
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.10
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.0.0
0.5.1
0.5
0.5-rel
v1.4.7
v1.4.4
v1.0.0
No related merge requests found
Show 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%
;
height
:
100%
;
display
:
none
;
display
:
none
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/app/ControlPage/control/control.component.html
View file @
b4f28ca7
...
@@ -10,4 +10,11 @@
...
@@ -10,4 +10,11 @@
[
ngClass
]="{'
active
'
:i=
=NavList.Active}"
[
ngClass
]="{'
active
'
:i=
=NavList.Active}"
*
ngIf=
"m.type=='ssh'"
>
*
ngIf=
"m.type=='ssh'"
>
</app-element-term>
</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>
</div>
This diff is collapsed.
Click to expand it.
src/app/ControlPage/control/controlnav/controlnav.component.css
View file @
b4f28ca7
...
@@ -81,3 +81,19 @@
...
@@ -81,3 +81,19 @@
padding
:
5px
20px
4px
15px
;
padding
:
5px
20px
4px
15px
;
height
:
18px
;
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
;
}
This diff is collapsed.
Click to expand it.
src/app/elements/guacamole/guacamole.component.html
View file @
b4f28ca7
<div>
<iframe
[
src
]="
trust
(
target
)"
></iframe>
<iframe
src=
"{{target}}"
></iframe>
</div>
This diff is collapsed.
Click to expand it.
src/app/elements/guacamole/guacamole.component.scss
View file @
b4f28ca7
iframe
{
width
:
100%
;
height
:
100%
;
border
:
none
;
background-color
:
white
;
}
This diff is collapsed.
Click to expand it.
src/app/elements/guacamole/guacamole.component.ts
View file @
b4f28ca7
import
{
Component
,
Input
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
Input
,
OnInit
}
from
'@angular/core'
;
import
{
DomSanitizer
}
from
'@angular/platform-browser'
;
import
{
NavList
}
from
'../../ControlPage/control/control.component'
;
@
Component
({
@
Component
({
selector
:
'app-element-guacamole'
,
selector
:
'app-element-guacamole'
,
...
@@ -6,13 +8,24 @@ import {Component, Input, OnInit} from '@angular/core';
...
@@ -6,13 +8,24 @@ import {Component, Input, OnInit} from '@angular/core';
styleUrls
:
[
'./guacamole.component.scss'
]
styleUrls
:
[
'./guacamole.component.scss'
]
})
})
export
class
ElementGuacamoleComponent
implements
OnInit
{
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
()
{
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
;
}
}
}
This diff is collapsed.
Click to expand it.
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