/
githubmirror
/
tabby
Обзор
Документация
Войти
/
githubmirror
/
tabby
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tabby-ssh/src/components/sshSettingsTab.component.ts
26 строк
721 B
Eugene Pankov
lint
10 апр 2023, 22:21
Не верифицирован
10 апр 2023, 22:21
3b8ca0d
Код
Авторство
О чём код?
import { Component, HostBinding } from '@angular/core' import { X11Socket } from '../session/x11' import { ConfigService, HostAppService, Platform } from 'tabby-core' /** @hidden */ @Component({ templateUrl: './sshSettingsTab.component.pug', }) export class SSHSettingsTabComponent { Platform = Platform defaultX11Display: string @HostBinding('class.content-box') true constructor ( public config: ConfigService, public hostApp: HostAppService, ) { const spec = X11Socket.resolveDisplaySpec() if ('path' in spec) { this.defaultX11Display = spec.path } else { this.defaultX11Display = `${spec.host}:${spec.port}` } } }