From 43bf24b11cc8dd65e8ed510a2f4d395f85d1f819 Mon Sep 17 00:00:00 2001 From: EthanShoeDev <13422990+EthanShoeDev@users.noreply.github.com> Date: Tue, 2 Sep 2025 01:18:03 -0400 Subject: [PATCH] ssh conn --- .prettierignore | 2 + .vscode/settings.json | 10 +- README.md | 28 +- android/gradle.properties | 3 + app.json | 84 ++-- app/_layout.tsx | 4 +- app/index.tsx | 47 ++- docs/ssh_client.md | 3 + eslint.config.js | 14 +- package.json | 17 +- pnpm-lock.yaml | 785 +++++++++++++++++++++++++++++++++++++- prettier.config.js | 13 + tsconfig.json | 23 +- 13 files changed, 931 insertions(+), 102 deletions(-) create mode 100644 .prettierignore create mode 100644 docs/ssh_client.md create mode 100644 prettier.config.js diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..a7460c9 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +android/ +docs/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index e2798e4..7309382 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ { - "editor.codeActionsOnSave": { - "source.fixAll": "explicit", - "source.organizeImports": "explicit", - "source.sortMembers": "explicit" - } + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + "source.organizeImports": "explicit", + "source.sortMembers": "explicit" + } } diff --git a/README.md b/README.md index 2842794..ee7fb2b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Welcome to your Expo app 👋 -This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app). +This is an [Expo](https://expo.dev) project created with +[`create-expo-app`](https://www.npmjs.com/package/create-expo-app). ## Get started @@ -21,9 +22,11 @@ In the output, you'll find options to open the app in a - [development build](https://docs.expo.dev/develop/development-builds/introduction/) - [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/) - [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/) -- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo +- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app + development with Expo -You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction). +You can start developing by editing the files inside the **app** directory. This +project uses [file-based routing](https://docs.expo.dev/router/introduction). ## Get a fresh project @@ -33,18 +36,25 @@ When you're ready, run: pnpm run reset-project ``` -This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing. +This command will move the starter code to the **app-example** directory and +create a blank **app** directory where you can start developing. ## Learn more -To learn more about developing your project with Expo, look at the following resources: +To learn more about developing your project with Expo, look at the following +resources: -- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides). -- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web. +- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into + advanced topics with our [guides](https://docs.expo.dev/guides). +- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a + step-by-step tutorial where you'll create a project that runs on Android, iOS, + and the web. ## Join the community Join our community of developers creating universal apps. -- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute. -- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions. +- [Expo on GitHub](https://github.com/expo/expo): View our open source platform + and contribute. +- [Discord community](https://chat.expo.dev): Chat with Expo users and ask + questions. diff --git a/android/gradle.properties b/android/gradle.properties index 8e39f82..070c27e 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -63,3 +63,6 @@ expo.useLegacyPackaging=false # Specifies whether the app is configured to use edge-to-edge via the app config or plugin # WARNING: This property has been deprecated and will be removed in Expo SDK 55. Use `edgeToEdgeEnabled` or `react.edgeToEdgeEnabled` to determine whether the project is using edge-to-edge. expo.edgeToEdgeEnabled=true + + +android.packagingOptions.pickFirsts=META-INF/versions/9/OSGI-INF/MANIFEST.MF \ No newline at end of file diff --git a/app.json b/app.json index 2d566b6..ea64441 100644 --- a/app.json +++ b/app.json @@ -1,44 +1,44 @@ { - "expo": { - "name": "fressh", - "slug": "fressh", - "version": "1.0.0", - "orientation": "portrait", - "icon": "./assets/images/icon.png", - "scheme": "fressh", - "userInterfaceStyle": "automatic", - "newArchEnabled": true, - "ios": { - "supportsTablet": true - }, - "android": { - "package": "dev.fressh.app", - "adaptiveIcon": { - "foregroundImage": "./assets/images/adaptive-icon.png", - "backgroundColor": "#ffffff" - }, - "edgeToEdgeEnabled": true, - "predictiveBackGestureEnabled": false - }, - "web": { - "output": "static", - "favicon": "./assets/images/favicon.png" - }, - "plugins": [ - "expo-router", - [ - "expo-splash-screen", - { - "image": "./assets/images/splash-icon.png", - "imageWidth": 200, - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - ] - ], - "experiments": { - "typedRoutes": true, - "reactCompiler": true - } - } + "expo": { + "name": "fressh", + "slug": "fressh", + "version": "1.0.0", + "orientation": "portrait", + "icon": "./assets/images/icon.png", + "scheme": "fressh", + "userInterfaceStyle": "automatic", + "newArchEnabled": true, + "ios": { + "supportsTablet": true + }, + "android": { + "package": "dev.fressh.app", + "adaptiveIcon": { + "foregroundImage": "./assets/images/adaptive-icon.png", + "backgroundColor": "#ffffff" + }, + "edgeToEdgeEnabled": true, + "predictiveBackGestureEnabled": false + }, + "web": { + "output": "static", + "favicon": "./assets/images/favicon.png" + }, + "plugins": [ + "expo-router", + [ + "expo-splash-screen", + { + "image": "./assets/images/splash-icon.png", + "imageWidth": 200, + "resizeMode": "contain", + "backgroundColor": "#ffffff" + } + ] + ], + "experiments": { + "typedRoutes": true, + "reactCompiler": true + } + } } diff --git a/app/_layout.tsx b/app/_layout.tsx index d2a8b0b..c72fb7b 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -1,5 +1,5 @@ -import { Stack } from "expo-router"; +import { Stack } from 'expo-router' export default function RootLayout() { - return ; + return } diff --git a/app/index.tsx b/app/index.tsx index 866b635..c3317bc 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -1,15 +1,38 @@ -import { Text, View } from "react-native"; +import SSHClient, { PtyType } from '@dylankenneally/react-native-ssh-sftp' +import { Button, Text, View } from 'react-native' export default function Index() { - return ( - - Edit app/index.tsx to edit this screen. - - ); + return ( + + Edit app/index.tsx to edit this screen. +