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
e3653f1d
Commit
e3653f1d
authored
Jan 10, 2018
by
zheng liu
Browse files
Options
Browse Files
Download
Plain Diff
Merged in dev (pull request #30)
Dev
parents
5d9011e2
0a63c010
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
35 deletions
+37
-35
.angular-cli.json
.angular-cli.json
+1
-2
asciinema-player
node_modules/asciinema-player
+0
-1
cleftbar.component.css
src/app/ControlPage/cleftbar/cleftbar.component.css
+2
-2
controlpage.component.css
src/app/ControlPage/controlpage.component.css
+2
-2
term.component.ts
src/app/elements/term/term.component.ts
+25
-26
globals.ts
src/app/globals.ts
+6
-1
index.html
src/index.html
+1
-1
No files found.
.angular-cli.json
View file @
e3653f1d
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
"../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"
],
],
...
@@ -33,7 +32,7 @@
...
@@ -33,7 +32,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/
xterm/dist/x
term.js"
,
"../node_modules/
term.js/src/
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"
,
...
...
asciinema-player
@
9e8f949f
Subproject commit 9e8f949f64479cbfc4551dd81a20897de6121da5
src/app/ControlPage/cleftbar/cleftbar.component.css
View file @
e3653f1d
...
@@ -34,7 +34,7 @@ label {
...
@@ -34,7 +34,7 @@ label {
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.filetree
>
li
input
:checked
~
ul
,
.filetree
>
li
ul
.insearch
{
.filetree
>
li
input
:checked
~
ul
,
.filetree
>
li
ul
.insearch
{
height
:
auto
;
height
:
auto
;
}
}
...
@@ -67,7 +67,7 @@ label {
...
@@ -67,7 +67,7 @@ label {
background
:
#2f2a2a
;
background
:
#2f2a2a
;
font-size
:
9pt
;
font-size
:
9pt
;
border-top-width
:
1px
;
border-top-width
:
1px
;
left
:
0
;
left
:
0
px
;
padding
:
1px
20px
0
20px
;
padding
:
1px
20px
0
20px
;
position
:
absolute
;
position
:
absolute
;
}
}
...
...
src/app/ControlPage/controlpage.component.css
View file @
e3653f1d
...
@@ -7,8 +7,8 @@ div, term-leftbar, term-body {
...
@@ -7,8 +7,8 @@ div, term-leftbar, term-body {
div
{
div
{
background-color
:
black
;
background-color
:
black
;
margin
:
0
;
margin
:
0
;
top
:
30px
;
padding-top
:
30px
;
position
:
absolute
;
position
:
initial
;
}
}
app-cleftbar
{
app-cleftbar
{
...
...
src/app/elements/term/term.component.ts
View file @
e3653f1d
import
{
AfterViewInit
,
Component
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
AfterViewInit
,
Component
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
ElementRef
,
Renderer2
}
from
'@angular/core'
;
import
{
ElementRef
}
from
'@angular/core'
;
import
{
term
}
from
'../../globals'
;
import
{
term
}
from
'../../globals'
;
import
{
Terminal
}
from
'../../global
s'
;
import
*
as
jQuery
from
'jquery/dist/jquery.min.j
s'
;
@
Component
({
@
Component
({
selector
:
'app-element-term'
,
selector
:
'app-element-term'
,
...
@@ -12,7 +12,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
...
@@ -12,7 +12,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
@
ViewChild
(
'term'
)
el
:
ElementRef
;
@
ViewChild
(
'term'
)
el
:
ElementRef
;
constructor
(
private
rd
:
Renderer2
)
{
constructor
()
{
}
}
ngOnInit
()
{
ngOnInit
()
{
...
@@ -20,30 +20,29 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
...
@@ -20,30 +20,29 @@ 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
;
term
.
col
=
90
;
console
.
log
(
term
);
term
.
row
=
90
;
// 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
.
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/globals.ts
View file @
e3653f1d
...
@@ -11,7 +11,12 @@ export let term: {
...
@@ -11,7 +11,12 @@ export let term: {
col
:
number
;
col
:
number
;
row
:
number
;
row
:
number
;
}
=
{
}
=
{
term
:
Terminal
({}),
term
:
Terminal
({
cols
:
80
,
rows
:
24
,
useStyle
:
true
,
screenKeys
:
true
,
}),
col
:
80
,
col
:
80
,
row
:
24
,
row
:
24
,
};
};
...
...
src/index.html
View file @
e3653f1d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
Jump
S
erver
</title>
<title>
Jump
s
erver
</title>
<base
href=
"/luna"
>
<base
href=
"/luna"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
...
...
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