Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Tabby
提交
baaebb40
T
Tabby
项目概览
后端镜像
/
Tabby
通知
31
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabby
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
baaebb40
编写于
3月 16, 2020
作者:
E
Eugene Pankov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
private service constructors
上级
9e862772
变更
21
隐藏空白更改
内联
并排
Showing
21 changed file
with
21 addition
and
21 deletion
+21
-21
terminus-core/src/components/baseTab.component.ts
terminus-core/src/components/baseTab.component.ts
+1
-1
terminus-core/src/components/startPage.component.ts
terminus-core/src/components/startPage.component.ts
+1
-1
terminus-core/src/components/windowControls.component.ts
terminus-core/src/components/windowControls.component.ts
+1
-1
terminus-core/src/services/app.service.ts
terminus-core/src/services/app.service.ts
+1
-1
terminus-core/src/services/config.service.ts
terminus-core/src/services/config.service.ts
+1
-1
terminus-core/src/services/docking.service.ts
terminus-core/src/services/docking.service.ts
+1
-1
terminus-core/src/services/electron.service.ts
terminus-core/src/services/electron.service.ts
+1
-1
terminus-core/src/services/homeBase.service.ts
terminus-core/src/services/homeBase.service.ts
+1
-1
terminus-core/src/services/log.service.ts
terminus-core/src/services/log.service.ts
+1
-1
terminus-core/src/services/shellIntegration.service.ts
terminus-core/src/services/shellIntegration.service.ts
+1
-1
terminus-core/src/services/tabRecovery.service.ts
terminus-core/src/services/tabRecovery.service.ts
+1
-1
terminus-core/src/services/tabs.service.ts
terminus-core/src/services/tabs.service.ts
+1
-1
terminus-core/src/services/themes.service.ts
terminus-core/src/services/themes.service.ts
+1
-1
terminus-core/src/services/touchbar.service.ts
terminus-core/src/services/touchbar.service.ts
+1
-1
terminus-core/src/services/updater.service.ts
terminus-core/src/services/updater.service.ts
+1
-1
terminus-plugin-manager/src/services/pluginManager.service.ts
...inus-plugin-manager/src/services/pluginManager.service.ts
+1
-1
terminus-terminal/src/index.ts
terminus-terminal/src/index.ts
+1
-1
terminus-terminal/src/services/sessions.service.ts
terminus-terminal/src/services/sessions.service.ts
+1
-1
terminus-terminal/src/services/terminal.service.ts
terminus-terminal/src/services/terminal.service.ts
+1
-1
terminus-terminal/src/services/terminalFrontend.service.ts
terminus-terminal/src/services/terminalFrontend.service.ts
+1
-1
terminus-terminal/src/services/uac.service.ts
terminus-terminal/src/services/uac.service.ts
+1
-1
未找到文件。
terminus-core/src/components/baseTab.component.ts
浏览文件 @
baaebb40
...
...
@@ -63,7 +63,7 @@ export abstract class BaseTabComponent {
get
destroyed$
():
Observable
<
void
>
{
return
this
.
destroyed
}
get
recoveryStateChangedHint$
():
Observable
<
void
>
{
return
this
.
recoveryStateChangedHint
}
constructor
()
{
protected
constructor
()
{
this
.
focused$
.
subscribe
(()
=>
{
this
.
hasFocus
=
true
})
...
...
terminus-core/src/components/startPage.component.ts
浏览文件 @
baaebb40
...
...
@@ -13,7 +13,7 @@ import { ToolbarButton, ToolbarButtonProvider } from '../api'
export
class
StartPageComponent
{
version
:
string
constructor
(
private
constructor
(
private
config
:
ConfigService
,
private
domSanitizer
:
DomSanitizer
,
public
homeBase
:
HomeBaseService
,
...
...
terminus-core/src/components/windowControls.component.ts
浏览文件 @
baaebb40
...
...
@@ -10,7 +10,7 @@ import { AppService } from '../services/app.service'
styles
:
[
require
(
'
./windowControls.component.scss
'
)],
})
export
class
WindowControlsComponent
{
constructor
(
public
hostApp
:
HostAppService
,
public
app
:
AppService
)
{
}
private
constructor
(
public
hostApp
:
HostAppService
,
public
app
:
AppService
)
{
}
async
closeWindow
()
{
this
.
app
.
closeWindow
()
...
...
terminus-core/src/services/app.service.ts
浏览文件 @
baaebb40
...
...
@@ -67,7 +67,7 @@ export class AppService {
get
ready$
():
Observable
<
void
>
{
return
this
.
ready
}
/** @hidden */
constructor
(
private
constructor
(
private
config
:
ConfigService
,
private
hostApp
:
HostAppService
,
private
tabRecovery
:
TabRecoveryService
,
...
...
terminus-core/src/services/config.service.ts
浏览文件 @
baaebb40
...
...
@@ -102,7 +102,7 @@ export class ConfigService {
get
changed$
():
Observable
<
void
>
{
return
this
.
changed
}
/** @hidden */
constructor
(
private
constructor
(
electron
:
ElectronService
,
private
hostApp
:
HostAppService
,
@
Inject
(
ConfigProvider
)
configProviders
:
ConfigProvider
[],
...
...
terminus-core/src/services/docking.service.ts
浏览文件 @
baaebb40
...
...
@@ -6,7 +6,7 @@ import { HostAppService, Bounds } from '../services/hostApp.service'
@
Injectable
({
providedIn
:
'
root
'
})
export
class
DockingService
{
/** @hidden */
constructor
(
private
constructor
(
private
electron
:
ElectronService
,
private
config
:
ConfigService
,
private
hostApp
:
HostAppService
,
...
...
terminus-core/src/services/electron.service.ts
浏览文件 @
baaebb40
...
...
@@ -25,7 +25,7 @@ export class ElectronService {
private
electron
:
any
/** @hidden */
constructor
()
{
private
constructor
()
{
this
.
electron
=
require
(
'
electron
'
)
this
.
remote
=
this
.
electron
.
remote
this
.
app
=
this
.
remote
.
app
...
...
terminus-core/src/services/homeBase.service.ts
浏览文件 @
baaebb40
...
...
@@ -11,7 +11,7 @@ export class HomeBaseService {
mixpanel
:
any
/** @hidden */
constructor
(
private
constructor
(
private
electron
:
ElectronService
,
private
config
:
ConfigService
,
)
{
...
...
terminus-core/src/services/log.service.ts
浏览文件 @
baaebb40
...
...
@@ -65,7 +65,7 @@ export class LogService {
private
log
:
any
/** @hidden */
constructor
(
electron
:
ElectronService
)
{
private
constructor
(
electron
:
ElectronService
)
{
this
.
log
=
initializeWinston
(
electron
)
}
...
...
terminus-core/src/services/shellIntegration.service.ts
浏览文件 @
baaebb40
...
...
@@ -33,7 +33,7 @@ export class ShellIntegrationService {
command
:
'
paste "%V"
'
,
},
]
constructor
(
private
constructor
(
private
electron
:
ElectronService
,
private
hostApp
:
HostAppService
,
)
{
...
...
terminus-core/src/services/tabRecovery.service.ts
浏览文件 @
baaebb40
...
...
@@ -10,7 +10,7 @@ export class TabRecoveryService {
logger
:
Logger
enabled
=
false
constructor
(
private
constructor
(
@
Inject
(
TabRecoveryProvider
)
private
tabRecoveryProviders
:
TabRecoveryProvider
[],
private
config
:
ConfigService
,
log
:
LogService
...
...
terminus-core/src/services/tabs.service.ts
浏览文件 @
baaebb40
...
...
@@ -8,7 +8,7 @@ export type TabComponentType = new (...args: any[]) => BaseTabComponent
@
Injectable
({
providedIn
:
'
root
'
})
export
class
TabsService
{
/** @hidden */
constructor
(
private
constructor
(
private
componentFactoryResolver
:
ComponentFactoryResolver
,
private
injector
:
Injector
,
private
tabRecovery
:
TabRecoveryService
,
...
...
terminus-core/src/services/themes.service.ts
浏览文件 @
baaebb40
...
...
@@ -7,7 +7,7 @@ export class ThemesService {
private
styleElement
:
HTMLElement
|
null
=
null
/** @hidden */
constructor
(
private
constructor
(
private
config
:
ConfigService
,
@
Inject
(
Theme
)
private
themes
:
Theme
[],
)
{
...
...
terminus-core/src/services/touchbar.service.ts
浏览文件 @
baaebb40
...
...
@@ -14,7 +14,7 @@ export class TouchbarService {
private
tabSegments
:
SegmentedControlSegment
[]
=
[]
private
nsImageCache
:
{[
id
:
string
]:
Electron
.
NativeImage
}
=
{}
constructor
(
private
constructor
(
private
app
:
AppService
,
private
hostApp
:
HostAppService
,
@
Inject
(
ToolbarButtonProvider
)
private
toolbarButtonProviders
:
ToolbarButtonProvider
[],
...
...
terminus-core/src/services/updater.service.ts
浏览文件 @
baaebb40
...
...
@@ -21,7 +21,7 @@ export class UpdaterService {
private
updateURL
:
string
private
autoUpdater
:
AppUpdater
constructor
(
private
constructor
(
log
:
LogService
,
private
electron
:
ElectronService
,
private
config
:
ConfigService
,
...
...
terminus-plugin-manager/src/services/pluginManager.service.ts
浏览文件 @
baaebb40
...
...
@@ -34,7 +34,7 @@ export class PluginManagerService {
private
npmReady
:
Promise
<
void
>
private
npm
:
any
constructor
(
private
constructor
(
log
:
LogService
,
)
{
this
.
logger
=
log
.
create
(
'
pluginManager
'
)
...
...
terminus-terminal/src/index.ts
浏览文件 @
baaebb40
...
...
@@ -127,7 +127,7 @@ import { XTermFrontend, XTermWebGLFrontend } from './frontends/xtermFrontend'
],
})
export
default
class
TerminalModule
{
// eslint-disable-line @typescript-eslint/no-extraneous-class
constructor
(
private
constructor
(
app
:
AppService
,
config
:
ConfigService
,
hotkeys
:
HotkeysService
,
...
...
terminus-terminal/src/services/sessions.service.ts
浏览文件 @
baaebb40
...
...
@@ -332,7 +332,7 @@ export class SessionsService {
logger
:
Logger
private
lastID
=
0
constructor
(
private
constructor
(
log
:
LogService
,
)
{
require
(
'
../bufferizedPTY
'
)(
nodePTY
)
// eslint-disable-line @typescript-eslint/no-var-requires
...
...
terminus-terminal/src/services/terminal.service.ts
浏览文件 @
baaebb40
...
...
@@ -19,7 +19,7 @@ export class TerminalService {
get
shells$
():
Observable
<
Shell
[]
>
{
return
this
.
shells
}
/** @hidden */
constructor
(
private
constructor
(
private
app
:
AppService
,
private
config
:
ConfigService
,
private
uac
:
UACService
,
...
...
terminus-terminal/src/services/terminalFrontend.service.ts
浏览文件 @
baaebb40
...
...
@@ -10,7 +10,7 @@ export class TerminalFrontendService {
private
containers
=
new
WeakMap
<
BaseSession
,
Frontend
>
()
/** @hidden */
constructor
(
private
constructor
(
private
config
:
ConfigService
,
private
themes
:
ThemesService
,
private
hotkeys
:
HotkeysService
,
...
...
terminus-terminal/src/services/uac.service.ts
浏览文件 @
baaebb40
...
...
@@ -8,7 +8,7 @@ import { SessionOptions } from '../api/interfaces'
export
class
UACService
{
isAvailable
=
false
constructor
(
private
constructor
(
private
electron
:
ElectronService
,
)
{
this
.
isAvailable
=
isWindowsBuild
(
WIN_BUILD_CONPTY_SUPPORTED
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录