mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-15 06:30:13 +08:00
fix lint errors
This commit is contained in:
parent
6348e7b8f0
commit
041a3ce2b6
@ -31,7 +31,7 @@ export class SerialSettingsTabComponent {
|
||||
port: '',
|
||||
baudrate: 115200,
|
||||
databits: 8,
|
||||
parity: "none",
|
||||
parity: 'none',
|
||||
rtscts: false,
|
||||
stopbits: 1,
|
||||
xany: false,
|
||||
|
@ -6,7 +6,7 @@ import { first } from 'rxjs/operators'
|
||||
import { BaseTerminalTabComponent } from 'terminus-terminal'
|
||||
import { SerialService } from '../services/serial.service'
|
||||
import { SerialConnection, SerialSession } from '../api'
|
||||
import { Subscription } from 'rxjs';
|
||||
import { Subscription } from 'rxjs'
|
||||
|
||||
/** @hidden */
|
||||
@Component({
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Injectable, NgZone } from '@angular/core'
|
||||
const SerialPort = require('serialport')
|
||||
import SerialPort from 'serialport'
|
||||
import { ToastrService } from 'ngx-toastr'
|
||||
import { AppService, LogService } from 'terminus-core'
|
||||
import { SerialConnection, SerialSession } from '../api'
|
||||
@ -34,11 +34,11 @@ export class SerialService {
|
||||
return session
|
||||
}
|
||||
|
||||
async connectSession (session: SerialSession, logCallback?: (s: any) => void): Promise<void> {
|
||||
async connectSession (session: SerialSession, _?: (s: any) => void): Promise<void> {
|
||||
const serial = new SerialPort(session.connection.port, { autoOpen: false, baudRate: session.connection.baudrate,
|
||||
dataBits: session.connection.databits, stopBits: session.connection.stopbits, parity: session.connection.parity,
|
||||
rtscts: session.connection.rtscts, xon: session.connection.xon, xoff: session.connection.xoff,
|
||||
xany: session.connection.xany })
|
||||
dataBits: session.connection.databits, stopBits: session.connection.stopbits, parity: session.connection.parity,
|
||||
rtscts: session.connection.rtscts, xon: session.connection.xon, xoff: session.connection.xoff,
|
||||
xany: session.connection.xany })
|
||||
session.serial = serial
|
||||
let connected = false
|
||||
await new Promise(async (resolve, reject) => {
|
||||
|
Loading…
Reference in New Issue
Block a user