tabby-quick-scripts-chenlei 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/configProvider.d.ts +34 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4633 -0
- package/dist/index.js.map +1 -0
- package/dist/scriptEditModal.d.ts +23 -0
- package/dist/sftp/local-transfers.d.ts +26 -0
- package/dist/sftp/sftp-manager-tab.component.d.ts +255 -0
- package/dist/sftp/sftp-ui.service.d.ts +13 -0
- package/dist/sftp/sftp.service.d.ts +24 -0
- package/dist/terminalDecorator.d.ts +52 -0
- package/package.json +47 -0
- package/readme.md +79 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 clhome
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ConfigProvider } from 'tabby-core';
|
|
2
|
+
/** 快捷脚本接口定义 */
|
|
3
|
+
export interface QuickScript {
|
|
4
|
+
name: string;
|
|
5
|
+
commands: string[];
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
/** 插件配置默认值 */
|
|
9
|
+
export declare class QuickScriptsConfigProvider extends ConfigProvider {
|
|
10
|
+
defaults: {
|
|
11
|
+
quickScriptsPlugin: {
|
|
12
|
+
/** 全局备份脚本列表 */
|
|
13
|
+
scripts: QuickScript[];
|
|
14
|
+
/** 站点隔离的脚本列表映射 (profileId -> scripts) */
|
|
15
|
+
profileScripts: Record<string, QuickScript[]>;
|
|
16
|
+
/** 命令提示符正则(用于判断上一条命令执行完毕) */
|
|
17
|
+
promptPattern: string;
|
|
18
|
+
/** 超时时间(毫秒),超过此时间强制执行下一条命令 */
|
|
19
|
+
commandTimeout: number;
|
|
20
|
+
/** 发送命令前的最小延时(毫秒) */
|
|
21
|
+
minDelay: number;
|
|
22
|
+
};
|
|
23
|
+
sftpLocalFavorites: {
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
path: string;
|
|
27
|
+
}[];
|
|
28
|
+
sftpRemoteFavorites: Record<string, {
|
|
29
|
+
id: string;
|
|
30
|
+
label: string;
|
|
31
|
+
path: string;
|
|
32
|
+
}[]>;
|
|
33
|
+
};
|
|
34
|
+
}
|
package/dist/i18n.d.ts
ADDED
package/dist/index.d.ts
ADDED