((props, ref) => {
[]
);
+ useEffect(() => {
+ if (xtermRef.current) {
+ xtermRef.current.options.theme = theme;
+ }
+ }, [theme]);
+
return (
onChangePage?.(page),
- 100
+ 300
);
const [setPage] = useDebounceCallback((page) => {
ref.current?.setPage(page);
clearPageSelectDebounce();
- }, 300);
+ }, 100);
useEffect(() => {
if (page != null) {
diff --git a/frontend/eas.json b/frontend/eas.json
new file mode 100644
index 0000000..8679de5
--- /dev/null
+++ b/frontend/eas.json
@@ -0,0 +1,24 @@
+{
+ "cli": {
+ "version": ">= 10.2.2"
+ },
+ "build": {
+ "development": {
+ "developmentClient": true,
+ "distribution": "internal"
+ },
+ "preview": {
+ "distribution": "internal",
+ "android": {
+ "buildType": "apk"
+ },
+ "env": {
+ "EXPO_PUBLIC_API_URL": "https://vaulterm-dev.rul.sh"
+ }
+ },
+ "production": {}
+ },
+ "submit": {
+ "production": {}
+ }
+}
\ No newline at end of file
diff --git a/frontend/package.json b/frontend/package.json
index 469f27e..9df1ab5 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -10,7 +10,9 @@
"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --watchAll",
- "lint": "expo lint"
+ "lint": "expo lint",
+ "build:preview": "eas build -p android --profile preview --local",
+ "build:android": "eas build -p android --local"
},
"jest": {
"preset": "jest-expo"