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
388fb17f
Unverified
Commit
388fb17f
authored
Sep 25, 2019
by
老广
Committed by
GitHub
Sep 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #117 from jumpserver/dev_beta
[Update] 修改连接koko的参数
parents
b5665827
d1c2c372
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
25 deletions
+4
-25
proxy.conf.json
proxy.conf.json
+1
-21
nav.component.ts
src/app/elements/nav/nav.component.ts
+1
-1
sftp.component.ts
src/app/elements/sftp/sftp.component.ts
+1
-2
globals.ts
src/app/globals.ts
+1
-1
No files found.
proxy.conf.json
View file @
388fb17f
...
@@ -3,31 +3,11 @@
...
@@ -3,31 +3,11 @@
"target"
:
"http://127.0.0.1:8080"
,
"target"
:
"http://127.0.0.1:8080"
,
"secure"
:
false
"secure"
:
false
},
},
"/luna/i18n"
:
{
"/koko"
:
{
"target"
:
"http://127.0.0.1:5001"
,
"secure"
:
false
},
"/socket.io/"
:
{
"target"
:
"http://127.0.0.1:5000"
,
"target"
:
"http://127.0.0.1:5000"
,
"secure"
:
false
,
"secure"
:
false
,
"ws"
:
true
"ws"
:
true
},
},
"/coco/"
:
{
"target"
:
"http://127.0.0.1:5000"
,
"secure:"
:
false
,
"ws"
:
true
},
"/static"
:
{
"target"
:
"http://127.0.0.1:5000"
,
"secure:"
:
false
},
"/rdp/socket.io/"
:
{
"target"
:
"http://localhost:9250"
,
"pathRewrite"
:
{
"^/rdp"
:
""
},
"secure"
:
false
},
"/media/"
:
{
"/media/"
:
{
"target"
:
"http://127.0.0.1:8080"
,
"target"
:
"http://127.0.0.1:8080"
,
"secure"
:
false
"secure"
:
false
...
...
src/app/elements/nav/nav.component.ts
View file @
388fb17f
...
@@ -41,7 +41,7 @@ export class ElementNavComponent implements OnInit {
...
@@ -41,7 +41,7 @@ export class ElementNavComponent implements OnInit {
click
(
event
)
{
click
(
event
)
{
switch
(
event
)
{
switch
(
event
)
{
case
'ConnectSFTP'
:
{
case
'ConnectSFTP'
:
{
window
.
open
(
'/
coc
o/elfinder/sftp/'
);
window
.
open
(
'/
kok
o/elfinder/sftp/'
);
break
;
break
;
}
}
case
'HideLeft'
:
{
case
'HideLeft'
:
{
...
...
src/app/elements/sftp/sftp.component.ts
View file @
388fb17f
import
{
Component
,
OnInit
,
Input
,
ElementRef
,
ViewChild
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
Input
,
ElementRef
,
ViewChild
}
from
'@angular/core'
;
import
{
DataStore
}
from
'@app/globals'
;
import
{
DomSanitizer
}
from
'@angular/platform-browser'
;
import
{
DomSanitizer
}
from
'@angular/platform-browser'
;
@
Component
({
@
Component
({
...
@@ -16,7 +15,7 @@ export class ElementSftpComponent implements OnInit {
...
@@ -16,7 +15,7 @@ export class ElementSftpComponent implements OnInit {
}
}
ngOnInit
()
{
ngOnInit
()
{
let
_target
=
'/
coc
o/elfinder/sftp/'
;
let
_target
=
'/
kok
o/elfinder/sftp/'
;
if
(
this
.
host
)
{
if
(
this
.
host
)
{
// _target += 'f5857eee-c114-4564-af8f-96329c400a8a' + '/';
// _target += 'f5857eee-c114-4564-af8f-96329c400a8a' + '/';
_target
+=
this
.
host
.
id
+
'/'
;
_target
+=
this
.
host
.
id
+
'/'
;
...
...
src/app/globals.ts
View file @
388fb17f
...
@@ -8,7 +8,7 @@ import {DataStore as _DataStore, Browser as _Browser, Video as _Video, Monitor a
...
@@ -8,7 +8,7 @@ import {DataStore as _DataStore, Browser as _Browser, Video as _Video, Monitor a
const
scheme
=
document
.
location
.
protocol
===
'https:'
?
'wss'
:
'ws'
;
const
scheme
=
document
.
location
.
protocol
===
'https:'
?
'wss'
:
'ws'
;
const
port
=
document
.
location
.
port
?
':'
+
document
.
location
.
port
:
''
;
const
port
=
document
.
location
.
port
?
':'
+
document
.
location
.
port
:
''
;
const
hostname
=
document
.
location
.
hostname
;
const
hostname
=
document
.
location
.
hostname
;
const
wsURL
=
`
${
scheme
}
://
${
hostname
}${
port
}
/
socket.io
/`
;
const
wsURL
=
`
${
scheme
}
://
${
hostname
}${
port
}
/
koko/ws
/`
;
export
let
TermWS
=
null
;
export
let
TermWS
=
null
;
export
const
emitter
=
new
(
EventEmitter
);
export
const
emitter
=
new
(
EventEmitter
);
...
...
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