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
21a8ce23
Commit
21a8ce23
authored
Dec 17, 2017
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish
parent
96aa7be3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
38 deletions
+34
-38
.angular-cli.json
.angular-cli.json
+1
-1
globals.ts
src/app/globals.ts
+13
-0
json.component.html
src/app/replay-page/json/json.component.html
+1
-0
json.component.ts
src/app/replay-page/json/json.component.ts
+2
-0
replay-page.component.html
src/app/replay-page/replay-page.component.html
+2
-26
replay-page.component.ts
src/app/replay-page/replay-page.component.ts
+4
-9
styles.css
src/styles.css
+11
-2
No files found.
.angular-cli.json
View file @
21a8ce23
...
...
@@ -25,6 +25,7 @@
"../node_modules/xterm/dist/xterm.css"
,
"../node_modules/layui-layer/dist/theme/default/layer.css"
,
"../node_modules/animate.css/animate.min.css"
,
"../node_modules/xterm/src/xterm.css"
,
"assets/inspinia/style.scss"
,
"styles.css"
],
...
...
@@ -35,7 +36,6 @@
"../node_modules/tether/dist/js/tether.min.js"
,
"../node_modules/bootstrap/dist/js/bootstrap.min.js"
,
"../node_modules/term.js/src/term.js"
,
"../node_modules/tty.js/static/tty.js"
,
"../node_modules/layui-layer/dist/layer.js"
,
"../node_modules/socket.io-client/dist/socket.io.js"
,
"./assets/js/mstsc.js"
,
...
...
src/app/globals.ts
0 → 100644
View file @
21a8ce23
'use strict'
;
export
const
sep
=
'/'
;
export
const
version
=
'22.22.2'
;
export
let
Video
:
{
id
:
string
,
src
:
string
,
type
:
string
,
}
=
{
id
:
'sss'
,
src
:
'sss'
,
type
:
'json'
,
};
src/app/replay-page/json/json.component.html
View file @
21a8ce23
<div
id=
"term"
></div>
<!--<asciinema-player></asciinema-player>-->
src/app/replay-page/json/json.component.ts
View file @
21a8ce23
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Video
}
from
'../../globals'
;
declare
let
jQuery
:
any
;
declare
let
Terminal
:
any
;
...
...
@@ -9,6 +10,7 @@ declare let Terminal: any;
styleUrls
:
[
'./json.component.css'
]
})
export
class
JsonComponent
implements
OnInit
{
Video
=
Video
;
constructor
()
{
}
...
...
src/app/replay-page/replay-page.component.html
View file @
21a8ce23
<button
type=
"button"
class=
"btn"
>
<i
class=
"fa fa-stop"
aria-hidden=
"true"
></i>
</button>
<button
type=
"button"
class=
"btn"
>
<i
class=
"fa fa-step-backward"
aria-hidden=
"true"
></i>
</button>
<button
type=
"button"
class=
"btn"
>
<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>
</button>
<button
type=
"button"
class=
"btn"
>
<i
class=
"fa fa-forward"
aria-hidden=
"true"
></i>
</button>
<button
type=
"button"
class=
"btn"
>
<i
class=
"fa fa-step-forward"
aria-hidden=
"true"
></i>
</button>
<button
type=
"button"
class=
"btn"
>
<i
class=
"fa fa-expand"
aria-hidden=
"true"
></i>
</button>
<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>
<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 @
21a8ce23
...
...
@@ -2,6 +2,7 @@ import {Component, OnInit} from '@angular/core';
import
{
ActivatedRoute
,
Params
}
from
'@angular/router'
;
import
{
Logger
}
from
'angular2-logger/core'
;
import
{
HttpService
}
from
'../app.service'
;
import
{
Video
}
from
'../globals'
;
@
Component
({
selector
:
'app-replay-page'
,
...
...
@@ -9,13 +10,12 @@ import {HttpService} from '../app.service';
styleUrls
:
[
'./replay-page.component.css'
]
})
export
class
ReplayPageComponent
implements
OnInit
{
playing
:
boolean
;
video
:
any
;
Video
=
Video
;
constructor
(
private
activatedRoute
:
ActivatedRoute
,
private
_http
:
HttpService
,
private
_logger
:
Logger
)
{
this
.
video
=
{
'type'
:
'none'
};
//
this.video = {'type': 'none'};
}
ngOnInit
()
{
...
...
@@ -27,7 +27,7 @@ export class ReplayPageComponent implements OnInit {
.
map
(
res
=>
res
.
json
())
.
subscribe
(
data
=>
{
this
.
v
ideo
=
data
;
this
.
V
ideo
=
data
;
},
err
=>
{
this
.
_logger
.
error
(
err
);
...
...
@@ -35,9 +35,4 @@ export class ReplayPageComponent implements OnInit {
);
}
play
()
{
this
.
playing
=
!
this
.
playing
;
}
}
src/styles.css
View file @
21a8ce23
...
...
@@ -30,9 +30,18 @@ app-root {
padding-bottom
:
16px
!important
;
font-family
:
'Monaco'
,
iosevka
!important
;
}
.terminal
{
white-space
:
nowrap
;
.terminal
{
font-family
:
'Monaco'
,
iosevka
;
font-size
:
11px
;
white-space
:
nowrap
;
display
:
inline-block
;
}
.terminal
div
{
user-select
:
text
;
}
.terminal
,
.terminal
.xterm-viewport
{
background-color
:
inherit
;
}
...
...
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