From 86eb5eb4e67ddeff0ea2f57225c74f66669ba4ff Mon Sep 17 00:00:00 2001 From: Khairul Hidayat Date: Wed, 6 Nov 2024 06:24:14 +0000 Subject: [PATCH] update working ssh shell --- frontend/app.json | 1 + frontend/app/+html.tsx | 42 - frontend/app/_layout.tsx | 4 +- frontend/app/index.tsx | 6 +- frontend/babel.config.js | 6 - frontend/components/containers/terminal.tsx | 139 + frontend/components/containers/xtermjs.tsx | 130 + frontend/package.json | 56 +- frontend/pnpm-lock.yaml | 3418 +++++++------------ server/go.mod | 7 + server/go.sum | 8 + server/main.go | 157 +- 12 files changed, 1790 insertions(+), 2184 deletions(-) delete mode 100644 frontend/app/+html.tsx delete mode 100644 frontend/babel.config.js create mode 100644 frontend/components/containers/terminal.tsx create mode 100644 frontend/components/containers/xtermjs.tsx create mode 100644 server/go.sum diff --git a/frontend/app.json b/frontend/app.json index d30aa03..5890294 100644 --- a/frontend/app.json +++ b/frontend/app.json @@ -7,6 +7,7 @@ "icon": "./assets/images/icon.png", "scheme": "myapp", "userInterfaceStyle": "automatic", + "newArchEnabled": true, "splash": { "image": "./assets/images/splash.png", "resizeMode": "contain", diff --git a/frontend/app/+html.tsx b/frontend/app/+html.tsx deleted file mode 100644 index 2d6b247..0000000 --- a/frontend/app/+html.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { ScrollViewStyleReset } from "expo-router/html"; -import { type PropsWithChildren } from "react"; - -/** - * This file is web-only and used to configure the root HTML for every web page during static rendering. - * The contents of this function only run in Node.js environments and do not have access to the DOM or browser APIs. - */ -export default function Root({ children }: PropsWithChildren) { - return ( - - - - - - - {/* - Disable body scrolling on web. This makes ScrollView components work closer to how they do on native. - However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line. - */} - - - {/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */} -