diff --git a/.vscode/settings.json b/.vscode/settings.json index ffb98356..6c650fc8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -30,7 +30,7 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "i18n-ally.localesPaths": ["src/locales/index.js", "src/locales/languages"], - "i18n-ally.sourceLanguage": "en", + "i18n-ally.sourceLanguage": "zh-CN", "i18n-ally.keystyle": "nested", "i18n-ally.extract.ignored": [ "Switch", diff --git a/README-CN.md b/README-CN.md index 03ff1cbf..c5e4adf5 100644 --- a/README-CN.md +++ b/README-CN.md @@ -84,6 +84,7 @@ Windows 及 Linux 端内部集成了 Gnirehtet, 用于提供 PC 到安卓设 - 录制 - OTG - 摄像 +- 灵活启动 ### 设备交互栏 @@ -204,11 +205,12 @@ Windows 及 Linux 端内部集成了 Gnirehtet, 用于提供 PC 到安卓设 16. 支持使用内置终端执行自定义命令 ✅ 17. 支持设备自动执行镜像 ✅ 18. 支持常用批量功能 ✅ -19. 支持更多批量处理功能 🚧 -20. 支持对设备进行分组 🚧 -21. 添加文件传输助手功能 🚧 -22. 支持通过界面从设备下载选中的文件 🚧 -23. 添加对游戏的增强功能,如游戏键位映射 🚧 +19. 支持灵活启动镜像 ✅ +20. 支持更多批量处理功能 🚧 +21. 支持对设备进行分组 🚧 +22. 添加文件传输助手功能 🚧 +23. 支持通过界面从设备下载选中的文件 🚧 +24. 添加对游戏的增强功能,如游戏键位映射 🚧 ## 常见问题 diff --git a/README.md b/README.md index 17b766cd..a5f83359 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ Refer to [scrcpy/doc/shortcuts](https://github.com/Genymobile/scrcpy/blob/master - Recording - OTG - Camera +- Custom ### Device Interaction Bar @@ -202,11 +203,12 @@ Refer to [scrcpy/doc/shortcuts](https://github.com/Genymobile/scrcpy/blob/master 16. Support to use built-in terminals to execute custom commands ✅ 17. Supports automatic execution of mirror on devices ✅ 18. Support common batch processing function ✅ -19. Support more batch processing functions 🚧 -20. Support the device to group 🚧 -21. Add file transmission assistant function 🚧 -22. Support GUI-based selective file downloads from devices 🚧 -23. Add game enhancement features such as game keyboard mapping 🚧 +19. Support for custom startup mirroring ✅ +20. Support more batch processing functions 🚧 +21. Support the device to group 🚧 +22. Add file transmission assistant function 🚧 +23. Support GUI-based selective file downloads from devices 🚧 +24. Add game enhancement features such as game keyboard mapping 🚧 ## FAQ diff --git a/src/components/Device/components/MoreDropdown/components/Camera/index.vue b/src/components/Device/components/MoreDropdown/components/Camera/index.vue index b2067220..e7cf8867 100644 --- a/src/components/Device/components/MoreDropdown/components/Camera/index.vue +++ b/src/components/Device/components/MoreDropdown/components/Camera/index.vue @@ -45,6 +45,8 @@ export default { }, )}` + console.log('args', args) + try { const mirroring = this.$scrcpy.mirror(row.id, { title: this.$store.device.getLabel(row), diff --git a/src/components/Device/components/MoreDropdown/components/Custom/components/DeployDialog/index.vue b/src/components/Device/components/MoreDropdown/components/Custom/components/DeployDialog/index.vue new file mode 100644 index 00000000..3d707d6f --- /dev/null +++ b/src/components/Device/components/MoreDropdown/components/Custom/components/DeployDialog/index.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/src/components/Device/components/MoreDropdown/components/Custom/index.vue b/src/components/Device/components/MoreDropdown/components/Custom/index.vue new file mode 100644 index 00000000..a92bc141 --- /dev/null +++ b/src/components/Device/components/MoreDropdown/components/Custom/index.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/components/Device/components/MoreDropdown/index.vue b/src/components/Device/components/MoreDropdown/index.vue index 9197debb..d5be13a2 100644 --- a/src/components/Device/components/MoreDropdown/index.vue +++ b/src/components/Device/components/MoreDropdown/index.vue @@ -41,17 +41,20 @@ import Record from './components/Record/index.vue' import Otg from './components/Otg/index.vue' import Camera from './components/Camera/index.vue' +import Custom from './components/Custom/index.vue' export default { components: { Record, Otg, Camera, + Custom, }, props: { ...Record.props, ...Otg.props, ...Camera.props, + ...Custom.props, }, data() { return { @@ -68,6 +71,10 @@ export default { label: 'device.actions.more.camera.name', component: 'Camera', }, + { + label: 'device.actions.more.custom.name', + component: 'Custom', + }, ], } }, diff --git a/src/components/Preference/components/PreferenceForm/components/Input/index.vue b/src/components/Preference/components/PreferenceForm/components/Input/index.vue new file mode 100644 index 00000000..b6858ef8 --- /dev/null +++ b/src/components/Preference/components/PreferenceForm/components/Input/index.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/src/components/Preference/components/PreferenceForm/components/InputNumber/index.vue b/src/components/Preference/components/PreferenceForm/components/InputNumber/index.vue new file mode 100644 index 00000000..713d270c --- /dev/null +++ b/src/components/Preference/components/PreferenceForm/components/InputNumber/index.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/src/components/Preference/components/PathInput/index.vue b/src/components/Preference/components/PreferenceForm/components/InputPath/index.vue similarity index 92% rename from src/components/Preference/components/PathInput/index.vue rename to src/components/Preference/components/PreferenceForm/components/InputPath/index.vue index 10392249..abe34041 100644 --- a/src/components/Preference/components/PathInput/index.vue +++ b/src/components/Preference/components/PreferenceForm/components/InputPath/index.vue @@ -1,11 +1,11 @@