This commit is contained in:
EthanShoeDev
2025-09-12 02:14:19 -04:00
parent c07627bbec
commit ee7e4ce8d4
3 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import type SSHClient from '@dylankenneally/react-native-ssh-sftp'; import type SSHClient from '@dylankenneally/react-native-ssh-sftp';
import uuid from 'react-native-uuid'; import * as Crypto from 'expo-crypto';
export type SSHConn = { export type SSHConn = {
client: SSHClient; client: SSHClient;
@@ -10,7 +10,7 @@ export type SSHConn = {
const sshConnections = new Map<string, SSHConn>(); const sshConnections = new Map<string, SSHConn>();
function addSession(params: { client: SSHClient }) { function addSession(params: { client: SSHClient }) {
const sessionId = uuid.v4(); const sessionId = Crypto.randomUUID();
const createdAt = new Date(); const createdAt = new Date();
const sshConn: SSHConn = { const sshConn: SSHConn = {
client: params.client, client: params.client,

View File

@@ -1 +1,2 @@
https://docs.expo.dev/versions/latest/sdk/document-picker/ https://docs.expo.dev/versions/latest/sdk/document-picker/
https://docs.expo.dev/versions/latest/sdk/filesystem/

View File

@@ -31,3 +31,4 @@
- https://github.com/dylankenneally/react-native-ssh-sftp - https://github.com/dylankenneally/react-native-ssh-sftp
- https://xtermjs.org/ - https://xtermjs.org/
- https://docs.expo.dev/versions/latest/sdk/webview/ - https://docs.expo.dev/versions/latest/sdk/webview/
- https://docs.expo.dev/versions/latest/sdk/gl-view/