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
4dc8a5ef
Commit
4dc8a5ef
authored
Dec 07, 2017
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
ff74f4f3
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
60 additions
and
40 deletions
+60
-40
app.js
app.js
+6
-0
ssh.component.css
src/app/ControlPage/control/ssh/ssh.component.css
+0
-10
ssh.component.html
src/app/ControlPage/control/ssh/ssh.component.html
+0
-1
app-routing.module.ts
src/app/app-routing.module.ts
+4
-2
json.component.html
src/app/replay-page/json/json.component.html
+1
-3
replay-page.component.css
src/app/replay-page/replay-page.component.css
+4
-0
replay-page.component.html
src/app/replay-page/replay-page.component.html
+3
-1
replay-page.component.ts
src/app/replay-page/replay-page.component.ts
+29
-2
termpage.component.css
src/app/termpage/termpage.component.css
+0
-14
termpage.component.html
src/app/termpage/termpage.component.html
+0
-2
termpage.component.ts
src/app/termpage/termpage.component.ts
+0
-5
index.html
src/index.html
+2
-0
styles.css
src/styles.css
+11
-0
No files found.
app.js
View file @
4dc8a5ef
...
...
@@ -170,6 +170,12 @@ server.run = function (options) {
}]
}])
});
apis
.
route
(
'/replay'
)
.
get
(
function
(
req
,
res
)
{
res
.
json
({
"type"
:
"json"
})
});
apis
.
route
(
'/perms/v1/user/my/asset-groups-assets/'
)
.
get
(
function
(
req
,
res
)
{
res
.
json
([
...
...
src/app/ControlPage/control/ssh/ssh.component.css
View file @
4dc8a5ef
...
...
@@ -43,13 +43,3 @@
.hidden
{
display
:
none
;
}
#liuzheng
{
position
:
fixed
;
top
:
0
;
left
:
0
;
z-index
:
-1
;
font-size
:
11px
!important
;
padding-bottom
:
16px
!important
;
font-family
:
'Monaco'
,
iosevka
!important
;
}
src/app/ControlPage/control/ssh/ssh.component.html
View file @
4dc8a5ef
...
...
@@ -3,4 +3,3 @@
[
ngClass
]="{'
disconnected
'
:
!
m
.
connected
,'
hidden
'
:
m
.
hide
||
m
.
type
!='
ssh
'}"
id=
"term-{{i}}"
>
</div>
</div>
<span
id=
"liuzheng"
>
liuzheng
</span>
src/app/app-routing.module.ts
View file @
4dc8a5ef
...
...
@@ -13,13 +13,15 @@ import {IndexPageComponent} from './IndexPage/index-page.component';
import
{
NotFoundComponent
}
from
'./BasicPage/not-found/not-found.component'
;
import
{
LoginComponent
}
from
'./BasicPage/login/login.component'
;
import
{
ControlPageComponent
}
from
'./ControlPage/controlpage.component'
;
import
{
RdppageComponent
}
from
"./rdppage/rdppage.component"
;
import
{
TermpageComponent
}
from
"./termpage/termpage.component"
;
import
{
RdppageComponent
}
from
'./rdppage/rdppage.component'
;
import
{
TermpageComponent
}
from
'./termpage/termpage.component'
;
import
{
ReplayPageComponent
}
from
'./replay-page/replay-page.component'
;
const
appRoutes
:
Routes
=
[
{
path
:
'users/login'
,
component
:
LoginComponent
},
{
path
:
'rdp/:token'
,
component
:
RdppageComponent
},
{
path
:
'term/:token'
,
component
:
TermpageComponent
},
{
path
:
'replay/:token'
,
component
:
ReplayPageComponent
},
{
path
:
''
,
component
:
ControlPageComponent
},
{
path
:
'**'
,
component
:
NotFoundComponent
}
];
...
...
src/app/replay-page/json/json.component.html
View file @
4dc8a5ef
<p>
json works!
</p>
<div
id=
"term"
></div>
src/app/replay-page/replay-page.component.css
View file @
4dc8a5ef
button
{
width
:
40px
;
}
src/app/replay-page/replay-page.component.html
View file @
4dc8a5ef
...
...
@@ -8,7 +8,7 @@
<i
class=
"fa fa-backward"
aria-hidden=
"true"
></i>
</button>
<button
type=
"button"
class=
"btn"
(
click
)="
play
()"
>
<i
class=
"fa"
aria-hidden=
"true"
[
ngClass
]="{'
fa-play
'
:
playing
,'
fa-pause
'
:
!
playing
}"
></i>
<i
class=
"fa"
aria-hidden=
"true"
[
ngClass
]="{'
fa-play
'
:
!
playing
,'
fa-pause
'
:
playing
}"
></i>
</button>
<button
type=
"button"
class=
"btn"
>
<i
class=
"fa fa-forward"
aria-hidden=
"true"
></i>
...
...
@@ -22,3 +22,5 @@
<button
type=
"button"
class=
"btn"
>
<i
class=
"fa fa-compress"
aria-hidden=
"true"
></i>
</button>
<app-mp4
*
ngIf=
"video.type=='mp4'"
></app-mp4>
<app-json
*
ngIf=
"video.type=='json'"
></app-json>
src/app/replay-page/replay-page.component.ts
View file @
4dc8a5ef
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
ActivatedRoute
,
Params
}
from
'@angular/router'
;
import
{
Logger
}
from
'angular2-logger/core'
;
import
{
HttpService
}
from
'../app.service'
;
@
Component
({
selector
:
'app-replay-page'
,
...
...
@@ -6,10 +9,34 @@ import { Component, OnInit } from '@angular/core';
styleUrls
:
[
'./replay-page.component.css'
]
})
export
class
ReplayPageComponent
implements
OnInit
{
playing
:
boolean
;
video
:
any
;
constructor
()
{
}
constructor
(
private
activatedRoute
:
ActivatedRoute
,
private
_http
:
HttpService
,
private
_logger
:
Logger
)
{
}
ngOnInit
()
{
let
token
:
string
;
this
.
activatedRoute
.
params
.
subscribe
((
params
:
Params
)
=>
{
token
=
params
[
'token'
];
});
this
.
_http
.
get
(
'/api/replay?'
+
token
)
.
map
(
res
=>
res
.
json
())
.
subscribe
(
data
=>
{
this
.
video
=
data
;
},
err
=>
{
this
.
_logger
.
error
(
err
);
},
);
}
play
()
{
this
.
playing
=
!
this
.
playing
;
}
}
src/app/termpage/termpage.component.css
View file @
4dc8a5ef
...
...
@@ -21,17 +21,3 @@
#term
.terminal
div
span
{
min-width
:
12px
;
}
#liuzheng
{
position
:
fixed
;
top
:
0
;
left
:
0
;
z-index
:
-1
;
font-size
:
11px
!important
;
padding-bottom
:
16px
!important
;
font-family
:
'Monaco'
,
iosevka
!important
;
}
button
{
width
:
40px
;
}
src/app/termpage/termpage.component.html
View file @
4dc8a5ef
<span
id=
"liuzheng"
>
liuzheng
</span>
<div
id=
"term"
></div>
src/app/termpage/termpage.component.ts
View file @
4dc8a5ef
...
...
@@ -12,7 +12,6 @@ declare let Terminal: any;
styleUrls
:
[
'./termpage.component.css'
]
})
export
class
TermpageComponent
implements
OnInit
{
playing
:
boolean
;
constructor
(
private
activatedRoute
:
ActivatedRoute
)
{
DataStore
.
NavShow
=
false
;
...
...
@@ -56,8 +55,4 @@ export class TermpageComponent implements OnInit {
}
play
()
{
this
.
playing
=
!
this
.
playing
;
}
}
src/index.html
View file @
4dc8a5ef
...
...
@@ -10,5 +10,7 @@
</head>
<body>
<app-root></app-root>
<span
id=
"liuzheng"
>
liuzheng
</span>
</body>
</html>
src/styles.css
View file @
4dc8a5ef
...
...
@@ -20,3 +20,14 @@ body {
app-root
{
height
:
100%
;
}
#liuzheng
{
position
:
fixed
;
top
:
0
;
left
:
0
;
z-index
:
-1
;
font-size
:
11px
!important
;
padding-bottom
:
16px
!important
;
font-family
:
'Monaco'
,
iosevka
!important
;
}
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