mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: tailscale add host and copy ip, fix outbound fetch hang and plugin ESM warning
This commit is contained in:
1 parent
c21bca8cf0
commit
fbe736bc20
70 files changed
+1117
-1139
No files matched your search
@@ -74,6 +74,15 @@ export interface ShellLayout {
|
||||
}
|
||||
|
||||
/** What a plugin may ask of the shell. */
|
||||
/** Fields a plugin can fill in when it opens the host editor. */
|
||||
export interface HostDraft {
|
||||
name?: string;
|
||||
ip?: string;
|
||||
port?: number;
|
||||
username?: string;
|
||||
authType?: string;
|
||||
}
|
||||
|
||||
export interface ShellApi {
|
||||
openTab: (
|
||||
host: PluginHostRecord | null,
|
||||
@@ -88,6 +97,11 @@ export interface ShellApi {
|
||||
tab: PluginTabRecord,
|
||||
host: PluginHostRecord,
|
||||
) => Promise<void>;
|
||||
/**
|
||||
* Opens the host editor for a new host with these fields filled in. The
|
||||
* user reviews and saves it. Absent in some shells.
|
||||
*/
|
||||
openHostEditor?: (draft?: HostDraft) => void;
|
||||
/** Opens a rail view in the left sidebar. */
|
||||
openRailView: (id: string) => void;
|
||||
/** Closes a rail view wherever it is shown. */
|
||||
|
||||
Reference in new issue
Block a user