From e3dd38d1a518dd3a422947f8566a15e3880473c6 Mon Sep 17 00:00:00 2001 From: originalFactor <2438926613@qq.com> Date: Sat, 14 Feb 2026 10:01:14 +0800 Subject: [PATCH] (rebase) avoid dist and binary --- .gitignore | 3 + eslint.config.js | 28 + index.html | 13 + package.json | 34 + src/App.css | 335 ++ src/App.tsx | 56 + src/assets/react.svg | 1 + src/components/APKManager.tsx | 1650 ++++++ src/components/APKShareManager.tsx | 285 + src/components/AuthGuard.tsx | 202 + src/components/Connection/ConnectDialog.tsx | 171 + src/components/Control/CameraControlCard.tsx | 98 + src/components/Control/ControlPanel.tsx | 4221 +++++++++++++++ src/components/Control/ControlPanel.tsx.bak | 4718 +++++++++++++++++ src/components/Control/DebugFunctionsCard.tsx | 297 ++ src/components/Control/DeviceFilter.tsx | 233 + src/components/Control/DeviceInfoCard.tsx | 114 + src/components/Control/GalleryControlCard.tsx | 74 + src/components/Control/LogsCard.tsx | 34 + src/components/Control/SmsControlCard.tsx | 168 + .../Device/CoordinateMappingStatus.tsx | 67 + src/components/Device/DeviceCamera.tsx | 221 + src/components/Device/DeviceScreen.tsx | 1260 +++++ src/components/Device/ScreenReader.tsx | 1529 ++++++ src/components/Gallery/GalleryView.tsx | 230 + src/components/InstallPage.tsx | 377 ++ src/components/Layout/Header.tsx | 140 + src/components/Layout/Sidebar.tsx | 168 + src/components/LoginPage.tsx | 172 + src/components/RemoteControlApp.tsx | 1657 ++++++ src/index.css | 78 + src/main.tsx | 10 + src/services/apiClient.ts | 226 + src/store/slices/authSlice.ts | 348 ++ src/store/slices/connectionSlice.ts | 140 + src/store/slices/deviceSlice.ts | 385 ++ src/store/slices/uiSlice.ts | 392 ++ src/store/store.ts | 27 + src/utils/CoordinateMapper.ts | 248 + src/utils/CoordinateMappingConfig.ts | 160 + src/utils/SafeCoordinateMapper.ts | 425 ++ src/vite-env.d.ts | 1 + tsconfig.app.json | 27 + tsconfig.json | 7 + tsconfig.node.json | 25 + vite.config.ts | 62 + 46 files changed, 21117 insertions(+) create mode 100644 .gitignore create mode 100644 eslint.config.js create mode 100644 index.html create mode 100644 package.json create mode 100644 src/App.css create mode 100644 src/App.tsx create mode 100644 src/assets/react.svg create mode 100644 src/components/APKManager.tsx create mode 100644 src/components/APKShareManager.tsx create mode 100644 src/components/AuthGuard.tsx create mode 100644 src/components/Connection/ConnectDialog.tsx create mode 100644 src/components/Control/CameraControlCard.tsx create mode 100644 src/components/Control/ControlPanel.tsx create mode 100644 src/components/Control/ControlPanel.tsx.bak create mode 100644 src/components/Control/DebugFunctionsCard.tsx create mode 100644 src/components/Control/DeviceFilter.tsx create mode 100644 src/components/Control/DeviceInfoCard.tsx create mode 100644 src/components/Control/GalleryControlCard.tsx create mode 100644 src/components/Control/LogsCard.tsx create mode 100644 src/components/Control/SmsControlCard.tsx create mode 100644 src/components/Device/CoordinateMappingStatus.tsx create mode 100644 src/components/Device/DeviceCamera.tsx create mode 100644 src/components/Device/DeviceScreen.tsx create mode 100644 src/components/Device/ScreenReader.tsx create mode 100644 src/components/Gallery/GalleryView.tsx create mode 100644 src/components/InstallPage.tsx create mode 100644 src/components/Layout/Header.tsx create mode 100644 src/components/Layout/Sidebar.tsx create mode 100644 src/components/LoginPage.tsx create mode 100644 src/components/RemoteControlApp.tsx create mode 100644 src/index.css create mode 100644 src/main.tsx create mode 100644 src/services/apiClient.ts create mode 100644 src/store/slices/authSlice.ts create mode 100644 src/store/slices/connectionSlice.ts create mode 100644 src/store/slices/deviceSlice.ts create mode 100644 src/store/slices/uiSlice.ts create mode 100644 src/store/store.ts create mode 100644 src/utils/CoordinateMapper.ts create mode 100644 src/utils/CoordinateMappingConfig.ts create mode 100644 src/utils/SafeCoordinateMapper.ts create mode 100644 src/vite-env.d.ts create mode 100644 tsconfig.app.json create mode 100644 tsconfig.json create mode 100644 tsconfig.node.json create mode 100644 vite.config.ts diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16c6af0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +public/ diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..092408a --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,28 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' + +export default tseslint.config( + { ignores: ['dist'] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ['**/*.{ts,tsx}'], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + 'react-hooks': reactHooks, + 'react-refresh': reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, + }, +) diff --git a/index.html b/index.html new file mode 100644 index 0000000..1b16134 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + +
+ + + ++ • 服务器域名:输入完整的服务器域名,不需要带https,如果是IP 需要输入ws://ip:port +
+ ++ • Web网址:Android应用启动时打开的网页地址 需要带https +
+ ++ • 遮盖功能:开启后,设备在获取权限配置期间会显示黑色遮盖层,防止用户误操作 +
++ • 自动移除:所有权限配置完成后,遮盖会自动消失 +
++ • 主标题:遮盖界面顶部显示的大标题文字 +
++ • 副标题:主标题下方的详细说明文字,支持换行 +
++ • 状态提示:界面底部显示的状态信息文字 +
++ • 应用名称:将显示在Android应用主页的标题位置 +
++ • 状态文本:显示在页面中央的提示文字,支持换行符 \\n +
++ • 按钮文字:可以自定义启用按钮的显示文字 +
++ • 使用说明:显示在页面底部的详细说明文字 +
++ • APK文件名:自定义构建完成后的APK文件名,留空则使用默认名称 +
+• 每次构建APK后会自动生成Cloudflare临时分享链接
+• 分享链接有效期为10分钟,过期后自动失效
+• 可以通过二维码或链接分享给他人下载
+• 建议及时下载,避免链接过期
+ + } + type="info" + showIcon + /> + +1. 确保远程控制服务器已启动
+2. 如果服务器在本机,使用 localhost 或 127.0.0.1
+3. 如果服务器在局域网,使用服务器的IP地址
+4. 确保防火墙已开放相应端口
+ + } + type="info" + showIcon + /> + +