commit e3dd38d1a518dd3a422947f8566a15e3880473c6 Author: originalFactor <2438926613@qq.com> Date: Sat Feb 14 10:01:14 2026 +0800 (rebase) avoid dist and binary 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 + /> + +