Commit fca44ab8 authored by liuzheng712's avatar liuzheng712

feat: update

parent 4dc8a5ef
......@@ -9,6 +9,7 @@
"outDir": "dist",
"assets": [
"static",
"theme/default/",
"favicon.ico"
],
"index": "index.html",
......
......@@ -15,9 +15,7 @@
box-shadow: rgba(0, 0, 0, 0.8) 2px 2px 20px;
white-space: nowrap;
display: inline-block;
width: 100%;
height: 100%;
background-color: black;
}
#term .terminal div span {
......
import { Component, OnInit } from '@angular/core';
import {Component, OnInit} from '@angular/core';
declare let jQuery: any;
declare let Terminal: any;
@Component({
selector: 'app-json',
......@@ -7,9 +10,17 @@ import { Component, OnInit } from '@angular/core';
})
export class JsonComponent implements OnInit {
constructor() { }
constructor() {
}
ngOnInit() {
const term = new Terminal({
cols: '80',
rows: '24',
useStyle: true,
screenKeys: true,
});
term.open(document.getElementById('term'), true);
}
}
......@@ -22,5 +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>
<app-mp4 *ngIf='video.type=="mp4"'></app-mp4>
<app-json *ngIf='video.type=="json"'></app-json>
......@@ -15,6 +15,7 @@ export class ReplayPageComponent implements OnInit {
constructor(private activatedRoute: ActivatedRoute,
private _http: HttpService,
private _logger: Logger) {
this.video = {'type': 'none'};
}
ngOnInit() {
......
......@@ -10,7 +10,7 @@
</head>
<body>
<app-root></app-root>
<span id="liuzheng">liuzheng</span>
<span id="liuzheng" style="display: none">liuzheng</span>
</body>
</html>
......@@ -21,7 +21,6 @@ app-root {
height: 100%;
}
#liuzheng {
position: fixed;
top: 0;
......@@ -31,3 +30,11 @@ app-root {
padding-bottom: 16px !important;
font-family: 'Monaco', iosevka !important;
}
.terminal, .terminal .xterm-viewport {
background-color: inherit;
}
.terminal .xterm-rows {
background-color: black;
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment