/
githubmirror
/
tabby
Обзор
Документация
Войти
/
githubmirror
/
tabby
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tabby-local/src/components/localProfileSettings.component.ts
27 строк
914 B
Ponder
feat: Implement tabby:// URL scheme handler (#11005)
02 фев 2026, 00:43
Не верифицирован
02 фев 2026, 00:43
b31a486
Код
Авторство
О чём код?
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { Component, Inject, Optional } from '@angular/core' import { LocalProfile, UACService } from '../api' import { FullyDefined, PlatformService, ProfileSettingsComponent } from 'tabby-core' import { LocalProfilesService } from '../profiles' /** @hidden */ @Component({ templateUrl: './localProfileSettings.component.pug', }) export class LocalProfileSettingsComponent implements ProfileSettingsComponent<LocalProfile, LocalProfilesService> { profile: FullyDefined<LocalProfile> constructor ( @Optional() @Inject(UACService) public uac: UACService|undefined, private platform: PlatformService, ) { } async pickWorkingDirectory (): Promise<void> { const cwd = await this.platform.pickDirectory() if (!cwd) { return } this.profile.options.cwd = cwd } }