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
8de463ce
Commit
8de463ce
authored
May 24, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 支持重连机制
parent
e6a09b8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
globals.ts
src/app/globals.ts
+1
-1
guacamole.component.ts
src/app/pages/replay/guacamole/guacamole.component.ts
+0
-4
No files found.
src/app/globals.ts
View file @
8de463ce
...
...
@@ -2,7 +2,7 @@
import
*
as
io
from
'socket.io-client'
;
import
{
Terminal
}
from
'xterm'
;
export
const
TermWS
=
io
.
connect
(
'/ssh'
,
{
'reconnection'
:
false
}
);
export
const
TermWS
=
io
.
connect
(
'/ssh'
);
export
const
sep
=
'/'
;
export
let
Video
:
{
id
:
string
,
...
...
src/app/pages/replay/guacamole/guacamole.component.ts
View file @
8de463ce
...
...
@@ -15,10 +15,6 @@ function formatTime(millis: number) {
const
totalSeconds
=
Math
.
floor
(
millis
/
1000
);
const
seconds
=
totalSeconds
%
60
;
const
minutes
=
Math
.
floor
(
totalSeconds
/
60
);
console
.
log
(
'1'
);
console
.
log
(
'1'
);
console
.
log
(
'1'
);
console
.
log
(
'1'
);
return
zeroPad
(
minutes
,
2
)
+
':'
+
zeroPad
(
seconds
,
2
);
}
...
...
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