tabby-sftp-ui 0.1.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.
@@ -0,0 +1,24 @@
1
+ export type SFTPFile = {
2
+ name: string;
3
+ fullPath: string;
4
+ isDirectory: boolean;
5
+ isSymlink: boolean;
6
+ mode: number;
7
+ size: number;
8
+ modified: Date;
9
+ };
10
+ export type SFTPSessionLike = {
11
+ readdir: (p: string) => Promise<SFTPFile[]>;
12
+ mkdir: (p: string) => Promise<void>;
13
+ rmdir: (p: string) => Promise<void>;
14
+ unlink: (p: string) => Promise<void>;
15
+ rename: (oldPath: string, newPath: string) => Promise<void>;
16
+ upload: (remotePath: string, transfer: import('tabby-core').FileUpload) => Promise<void>;
17
+ download: (remotePath: string, transfer: import('tabby-core').FileDownload) => Promise<void>;
18
+ };
19
+ export type SSHSessionLike = {
20
+ openSFTP: () => Promise<SFTPSessionLike>;
21
+ };
22
+ export declare class SftpConnectionService {
23
+ openFromSSHSession(sshSession: SSHSessionLike): Promise<SFTPSessionLike>;
24
+ }
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "tabby-sftp-ui",
3
+ "version": "0.1.0",
4
+ "description": "SFTP UI for Tabby (Termius-like file manager).",
5
+ "keywords": [
6
+ "tabby-plugin"
7
+ ],
8
+ "main": "dist/index.js",
9
+ "typings": "dist/index.d.ts",
10
+ "scripts": {
11
+ "build": "webpack --progress --color",
12
+ "watch": "webpack --progress --color --watch",
13
+ "prepublishOnly": "npm run build"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "author": "gr0w1ng",
19
+ "license": "MIT",
20
+ "dependencies": {},
21
+ "devDependencies": {
22
+ "@angular/animations": "^9.1.13",
23
+ "@angular/common": "^9.1.13",
24
+ "@angular/core": "^9.1.13",
25
+ "@angular/forms": "^9.1.13",
26
+ "@angular/platform-browser": "^9.1.13",
27
+ "@angular/platform-browser-dynamic": "^9.1.13",
28
+ "@types/node": "^22.13.10",
29
+ "@types/webpack-env": "^1.18.8",
30
+ "apply-loader": "^2.0.0",
31
+ "css-loader": "^7.1.2",
32
+ "rxjs": "^6.6.7",
33
+ "sass": "^1.86.0",
34
+ "sass-loader": "^16.0.5",
35
+ "style-loader": "^4.0.0",
36
+ "tabby-core": "^1.0.163",
37
+ "tabby-settings": "^1.0.163",
38
+ "tabby-terminal": "^1.0.163",
39
+ "ts-loader": "^9.5.2",
40
+ "typescript": "^5.8.2",
41
+ "webpack": "^5.98.0",
42
+ "webpack-cli": "^6.0.1"
43
+ }
44
+ }