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
9b6c94b0
Unverified
Commit
9b6c94b0
authored
Jan 10, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
edb9cf10
fb78bff5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
23 deletions
+22
-23
.angular-cli.json
.angular-cli.json
+2
-1
cleftbar.component.css
src/app/ControlPage/cleftbar/cleftbar.component.css
+4
-0
term.component.ts
src/app/elements/term/term.component.ts
+14
-14
json.component.ts
src/app/replay-page/json/json.component.ts
+2
-8
No files found.
.angular-cli.json
View file @
9b6c94b0
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
"../node_modules/layui-layer/dist/theme/default/layer.css"
,
"../node_modules/layui-layer/dist/theme/default/layer.css"
,
"../node_modules/animate.css/animate.min.css"
,
"../node_modules/animate.css/animate.min.css"
,
"assets/inspinia/style.scss"
,
"assets/inspinia/style.scss"
,
"../node_modules/xterm/dist/xterm.css"
,
"sass/style.scss"
,
"sass/style.scss"
,
"styles.css"
"styles.css"
],
],
...
@@ -32,7 +33,7 @@
...
@@ -32,7 +33,7 @@
"../node_modules/jquery-sparkline/jquery.sparkline.js"
,
"../node_modules/jquery-sparkline/jquery.sparkline.js"
,
"../node_modules/tether/dist/js/tether.min.js"
,
"../node_modules/tether/dist/js/tether.min.js"
,
"../node_modules/bootstrap/dist/js/bootstrap.min.js"
,
"../node_modules/bootstrap/dist/js/bootstrap.min.js"
,
"../node_modules/
term.js/src/
term.js"
,
"../node_modules/
xterm/dist/x
term.js"
,
"../node_modules/layui-layer/dist/layer.js"
,
"../node_modules/layui-layer/dist/layer.js"
,
"../node_modules/socket.io-client/dist/socket.io.js"
,
"../node_modules/socket.io-client/dist/socket.io.js"
,
"./assets/js/mstsc.js"
,
"./assets/js/mstsc.js"
,
...
...
src/app/ControlPage/cleftbar/cleftbar.component.css
View file @
9b6c94b0
...
@@ -67,7 +67,11 @@ label {
...
@@ -67,7 +67,11 @@ label {
background
:
#2f2a2a
;
background
:
#2f2a2a
;
font-size
:
9pt
;
font-size
:
9pt
;
border-top-width
:
1px
;
border-top-width
:
1px
;
<<<<<<<
HEAD
left
:
0
;
=======
left
:
0px
;
left
:
0px
;
>>>>>>>
github_dev
padding
:
1px
20px
0
20px
;
padding
:
1px
20px
0
20px
;
position
:
absolute
;
position
:
absolute
;
}
}
...
...
src/app/elements/term/term.component.ts
View file @
9b6c94b0
...
@@ -22,27 +22,27 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
...
@@ -22,27 +22,27 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
ngAfterViewInit
()
{
ngAfterViewInit
()
{
term
.
col
=
Math
.
floor
(
jQuery
(
this
.
el
.
nativeElement
).
width
()
/
jQuery
(
'#liuzheng'
).
width
()
*
8
)
-
3
;
term
.
col
=
Math
.
floor
(
jQuery
(
this
.
el
.
nativeElement
).
width
()
/
jQuery
(
'#liuzheng'
).
width
()
*
8
)
-
3
;
term
.
row
=
Math
.
floor
(
jQuery
(
this
.
el
.
nativeElement
).
height
()
/
jQuery
(
'#liuzheng'
).
height
())
-
5
;
term
.
row
=
Math
.
floor
(
jQuery
(
this
.
el
.
nativeElement
).
height
()
/
jQuery
(
'#liuzheng'
).
height
())
-
5
;
console
.
log
(
term
);
// term.term = Terminal({
// term.term = Terminal({
// cols: term.col,
// cols: term.col,
// rows: term.row,
// rows: term.row,
// useStyle: true,
// useStyle: true,
// screenKeys: true,
// screenKeys: true,
// });
// });
term
.
term
.
resize
(
term
.
col
,
term
.
row
);
term
.
term
.
open
(
this
.
el
.
nativeElement
,
true
);
term
.
term
.
open
(
this
.
el
.
nativeElement
,
true
);
const
that
=
this
;
//
const that = this;
window
.
onresize
=
function
()
{
//
window.onresize = function () {
term
.
col
=
Math
.
floor
(
jQuery
(
that
.
el
.
nativeElement
).
width
()
/
jQuery
(
'#liuzheng'
).
width
()
*
8
)
-
3
;
//
term.col = Math.floor(jQuery(that.el.nativeElement).width() / jQuery('#liuzheng').width() * 8) - 3;
term
.
row
=
Math
.
floor
(
jQuery
(
that
.
el
.
nativeElement
).
height
()
/
jQuery
(
'#liuzheng'
).
height
())
-
5
;
//
term.row = Math.floor(jQuery(that.el.nativeElement).height() / jQuery('#liuzheng').height()) - 5;
//
if
(
term
.
col
<
80
)
{
//
if (term.col < 80) {
term
.
col
=
80
;
//
term.col = 80;
}
//
}
if
(
term
.
row
<
24
)
{
//
if (term.row < 24) {
term
.
row
=
24
;
//
term.row = 24;
}
//
}
term
.
term
.
resize
(
term
.
col
,
term
.
row
);
//
term.term.resize(term.col, term.row);
};
//
};
}
}
}
}
src/app/replay-page/json/json.component.ts
View file @
9b6c94b0
import
{
AfterViewInit
,
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Video
}
from
'../../globals'
;
import
{
Video
}
from
'../../globals'
;
import
{
term
}
from
'../../globals'
;
import
{
term
}
from
'../../globals'
;
import
*
as
jQuery
from
'jquery/dist/jquery.min.js'
;
@
Component
({
@
Component
({
selector
:
'app-json'
,
selector
:
'app-json'
,
templateUrl
:
'./json.component.html'
,
templateUrl
:
'./json.component.html'
,
styleUrls
:
[
'./json.component.css'
]
styleUrls
:
[
'./json.component.css'
]
})
})
export
class
JsonComponent
implements
OnInit
,
AfterViewInit
{
export
class
JsonComponent
implements
OnInit
{
speed
=
1
;
speed
=
1
;
setPercent
=
0
;
setPercent
=
0
;
toggle
=
false
;
toggle
=
false
;
...
@@ -24,13 +22,9 @@ export class JsonComponent implements OnInit, AfterViewInit {
...
@@ -24,13 +22,9 @@ export class JsonComponent implements OnInit, AfterViewInit {
}
}
ngOnInit
()
{
ngOnInit
()
{
}
ngAfterViewInit
()
{
this
.
restart
();
this
.
restart
();
}
}
setSpeed
()
{
setSpeed
()
{
if
(
this
.
speed
===
0
)
{
if
(
this
.
speed
===
0
)
{
this
.
TIMESTEP
=
this
.
TICK
;
this
.
TIMESTEP
=
this
.
TICK
;
...
...
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