Unverified Commit 1a442346 authored by liuzheng712's avatar liuzheng712

feat: merge

parents 69b5fb89 03e0d61b
Subproject commit 9e8f949f64479cbfc4551dd81a20897de6121da5
...@@ -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,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: 0;
=======
left: 0px;
>>>>>>> github_dev
padding: 1px 20px 0 20px; padding: 1px 20px 0 20px;
position: absolute; position: absolute;
} }
......
...@@ -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 {
......
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 '../../globals'; import * as jQuery from 'jquery/dist/jquery.min.js';
@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,16 +20,15 @@ export class ElementTermComponent implements OnInit, AfterViewInit { ...@@ -20,16 +20,15 @@ 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 () {
......
...@@ -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,
}; };
......
...@@ -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>JumpServer</title> <title>Jumpserver</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">
......
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