mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-27 10:42:35 +03:00
web demo fixes
This commit is contained in:
parent
5fa056751d
commit
9734830a74
@ -85,6 +85,7 @@ $side-tab-width: 200px;
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
border-bottom: 2px solid transparent;
|
border-bottom: 2px solid transparent;
|
||||||
|
@ -44,8 +44,11 @@ import 'ng2-dnd/bundles/style.css'
|
|||||||
// PerfectScrollbar fix
|
// PerfectScrollbar fix
|
||||||
import { fromEvent } from 'rxjs/internal/observable/fromEvent'
|
import { fromEvent } from 'rxjs/internal/observable/fromEvent'
|
||||||
import { merge } from 'rxjs/internal/observable/merge'
|
import { merge } from 'rxjs/internal/observable/merge'
|
||||||
require('rxjs').fromEvent = fromEvent
|
|
||||||
require('rxjs').merge = merge
|
try {
|
||||||
|
require('rxjs').fromEvent = fromEvent
|
||||||
|
require('rxjs').merge = merge
|
||||||
|
} catch {}
|
||||||
|
|
||||||
const PROVIDERS = [
|
const PROVIDERS = [
|
||||||
{ provide: HotkeyProvider, useClass: AppHotkeyProvider, multi: true },
|
{ provide: HotkeyProvider, useClass: AppHotkeyProvider, multi: true },
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
import { Injectable } from '@angular/core'
|
import { Injectable } from '@angular/core'
|
||||||
import { ElectronService } from './electron.service'
|
import { ElectronService } from './electron.service'
|
||||||
import * as winston from 'winston'
|
import type * as winston from 'winston'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
|
|
||||||
const initializeWinston = (electron: ElectronService) => {
|
const initializeWinston = (electron: ElectronService) => {
|
||||||
const logDirectory = electron.app.getPath('userData')
|
const logDirectory = electron.app.getPath('userData')
|
||||||
|
// eslint-disable-next-line
|
||||||
|
const winston = require('winston')
|
||||||
|
|
||||||
if (!fs.existsSync(logDirectory)) {
|
if (!fs.existsSync(logDirectory)) {
|
||||||
fs.mkdirSync(logDirectory)
|
fs.mkdirSync(logDirectory)
|
||||||
@ -64,7 +66,11 @@ export class LogService {
|
|||||||
|
|
||||||
/** @hidden */
|
/** @hidden */
|
||||||
private constructor (electron: ElectronService) {
|
private constructor (electron: ElectronService) {
|
||||||
this.log = initializeWinston(electron)
|
if (!process.env.XWEB) {
|
||||||
|
this.log = initializeWinston(electron)
|
||||||
|
} else {
|
||||||
|
this.log = console as any
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
create (name: string): Logger {
|
create (name: string): Logger {
|
||||||
|
Loading…
Reference in New Issue
Block a user