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
d1c2c372
Commit
d1c2c372
authored
Sep 25, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改连接koko的参数
parent
2a5e5882
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 @
d1c2c372
...
...
@@ -3,31 +3,11 @@
"target"
:
"http://127.0.0.1:8080"
,
"secure"
:
false
},
"/luna/i18n"
:
{
"target"
:
"http://127.0.0.1:5001"
,
"secure"
:
false
},
"/socket.io/"
:
{
"/koko"
:
{
"target"
:
"http://127.0.0.1:5000"
,
"secure"
:
false
,
"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/"
:
{
"target"
:
"http://127.0.0.1:8080"
,
"secure"
:
false
...
...
src/app/elements/nav/nav.component.ts
View file @
d1c2c372
...
...
@@ -41,7 +41,7 @@ export class ElementNavComponent implements OnInit {
click
(
event
)
{
switch
(
event
)
{
case
'ConnectSFTP'
:
{
window
.
open
(
'/
coc
o/elfinder/sftp/'
);
window
.
open
(
'/
kok
o/elfinder/sftp/'
);
break
;
}
case
'HideLeft'
:
{
...
...
src/app/elements/sftp/sftp.component.ts
View file @
d1c2c372
import
{
Component
,
OnInit
,
Input
,
ElementRef
,
ViewChild
}
from
'@angular/core'
;
import
{
DataStore
}
from
'@app/globals'
;
import
{
DomSanitizer
}
from
'@angular/platform-browser'
;
@
Component
({
...
...
@@ -16,7 +15,7 @@ export class ElementSftpComponent implements OnInit {
}
ngOnInit
()
{
let
_target
=
'/
coc
o/elfinder/sftp/'
;
let
_target
=
'/
kok
o/elfinder/sftp/'
;
if
(
this
.
host
)
{
// _target += 'f5857eee-c114-4564-af8f-96329c400a8a' + '/';
_target
+=
this
.
host
.
id
+
'/'
;
...
...
src/app/globals.ts
View file @
d1c2c372
...
...
@@ -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
port
=
document
.
location
.
port
?
':'
+
document
.
location
.
port
:
''
;
const
hostname
=
document
.
location
.
hostname
;
const
wsURL
=
`
${
scheme
}
://
${
hostname
}${
port
}
/
socket.io
/`
;
const
wsURL
=
`
${
scheme
}
://
${
hostname
}${
port
}
/
koko/ws
/`
;
export
let
TermWS
=
null
;
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