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
2d6bd826
Commit
2d6bd826
authored
May 15, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 更新luna的一些说明
parent
ea185ffb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
asset-tree.component.ts
src/app/elements/asset-tree/asset-tree.component.ts
+2
-0
ssh-term.component.ts
src/app/elements/ssh-term/ssh-term.component.ts
+2
-2
connect.component.ts
src/app/pages/connect/connect.component.ts
+1
-3
No files found.
src/app/elements/asset-tree/asset-tree.component.ts
View file @
2d6bd826
...
...
@@ -148,6 +148,8 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
}
else
if
(
host
.
system_users_granted
.
length
===
1
)
{
user
=
host
.
system_users_granted
[
0
];
this
.
login
(
host
,
user
);
}
else
{
alert
(
'该主机没有授权登录用户'
);
}
}
...
...
src/app/elements/ssh-term/ssh-term.component.ts
View file @
2d6bd826
...
...
@@ -65,7 +65,7 @@ export class ElementSshTermComponent implements OnInit, AfterViewInit {
});
ws
.
on
(
'disconnect'
,
()
=>
{
that
.
disconnect
();
that
.
close
();
});
ws
.
on
(
'logout'
,
(
data
)
=>
{
...
...
@@ -81,7 +81,7 @@ export class ElementSshTermComponent implements OnInit, AfterViewInit {
});
}
disconnect
()
{
close
()
{
const
view
=
NavList
.
List
[
this
.
index
];
if
(
view
)
{
NavList
.
List
[
this
.
index
].
connected
=
false
;
...
...
src/app/pages/connect/connect.component.ts
View file @
2d6bd826
...
...
@@ -26,14 +26,12 @@ export class PagesConnectComponent implements OnInit {
this
.
system
=
this
.
_appService
.
getQueryString
(
'system'
);
this
.
token
=
this
.
_appService
.
getQueryString
(
'token'
);
jQuery
(
'body'
).
css
(
'background-color'
,
'black'
);
this
.
userid
=
this
.
_localStorage
.
get
(
'user-'
+
this
.
token
);
this
.
authToken
=
this
.
_localStorage
.
get
(
'authToken-'
+
this
.
token
);
this
.
base
=
this
.
_localStorage
.
get
(
'base-'
+
this
.
token
);
jQuery
(
'body'
).
css
(
'background-color'
,
'#1f1b1b'
);
if
(
this
.
system
===
'windows'
)
{
if
(
!
this
.
userid
)
{
this
.
_http
.
get_user_id_from_token
(
this
.
token
)
.
subscribe
(
...
...
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