Skip to content

Commit

Permalink
feat: 📸 Enhanced recording
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Oct 28, 2024
1 parent 9555f58 commit 7f10161
Show file tree
Hide file tree
Showing 24 changed files with 292 additions and 217 deletions.
91 changes: 74 additions & 17 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,67 @@
{
"eslint.codeAction.showDocumentation": {
"enable": true
},
"eslint.format.enable": true,
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"eslint.format.enable": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"eslint.rules.customizations": [
{
"rule": "style/*",
"severity": "off",
"fixable": true
},
{
"rule": "format/*",
"severity": "off",
"fixable": true
},
{
"rule": "*-indent",
"severity": "off",
"fixable": true
},
{
"rule": "*-spacing",
"severity": "off",
"fixable": true
},
{
"rule": "*-spaces",
"severity": "off",
"fixable": true
},
{
"rule": "*-order",
"severity": "off",
"fixable": true
},
{
"rule": "*-dangle",
"severity": "off",
"fixable": true
},
{
"rule": "*-newline",
"severity": "off",
"fixable": true
},
{
"rule": "*quotes",
"severity": "off",
"fixable": true
},
{
"rule": "*semi",
"severity": "off",
"fixable": true
}
],
"eslint.validate": [
// "jsonc",
"javascript",
"javascriptreact",
"typescript",
Expand All @@ -18,19 +70,25 @@
"html",
"markdown",
"json",
"yaml"
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
],
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"i18n-ally.localesPaths": ["src/locales/index.js", "src/locales/languages"],
"i18n-ally.sourceLanguage": "zh-CN",
"i18n-ally.localesPaths": [
"src/locales/index.js",
"src/locales/languages"
],
"i18n-ally.keystyle": "nested",
"i18n-ally.extract.ignored": [
"Switch",
Expand All @@ -52,5 +110,4 @@
"cSpell.words": [
"bhsn"
],
"common-intellisense.ui": []
}
11 changes: 9 additions & 2 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,18 @@ Windows 及 Linux 端内部集成了 Gnirehtet, 用于提供 PC 到安卓设

- 镜像
- 录制
- OTG
- 摄像
- 录制相机
- 录制音频
- 相机
- 灵活启动
- OTG

### 设备交互栏

- 切换键
- 主屏幕
- 返回键
- 关闭屏幕(实验性)
- 通知栏
- 电源键
- 旋转屏幕
Expand Down Expand Up @@ -312,6 +315,10 @@ Windows 及 Linux 端内部集成了 Gnirehtet, 用于提供 PC 到安卓设
你需要自定义 `scrcpy` 以及 `adb` 的文件路径(确保具有可执行权限),如果用到反向供网则同样需要以同样方法配置 `gnirehtet`

### Could not execute "adb start-server"

这可能是因为安装路径中包含中文或特殊字符导致的,请尝试更改安装路径。

## 获得帮助

> 因为是开源项目 全靠爱发电 所以支持有限 更新节奏不固定
Expand Down
11 changes: 9 additions & 2 deletions README-RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ Gnirehtet встроен в приложения для Windows и Linux, что

- Зеркалирование
- Запись
- OTG
- Запись с камеры
- Запись аудио
- Камера
- Пользовательский
- Гибкий запуск
- OTG

### Панель взаимодействия с устройством

- Переключатель
- Домой
- Назад
- Выключение экрана (экспериментально)
- Уведомление
- Питание
- Поворот
Expand Down Expand Up @@ -311,6 +314,10 @@ Gnirehtet встроен в приложения для Windows и Linux, что
Вам нужно настроить пользовательские пути к файлам для `scrcpy` и `adb` (убедившись, что у них есть разрешения на выполнение). Если вы используете обратный тетеринг, аналогично настройте `gnirehtet`.

### Could not execute "adb start-server"

Это может быть вызвано наличием китайских или специальных символов в пути установки. Попробуйте изменить путь установки.

## Получение помощи

> Поскольку это проект с открытым исходным кодом, полностью поддерживаемый пожертвованиями, поддержка ограничена, и обновления могут не выходить по фиксированному расписанию.
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ Refer to [scrcpy/doc/shortcuts](https://github.com/Genymobile/scrcpy/blob/master

- Mirror
- Recording
- OTG
- Recording Camera
- Recording Audio
- Camera
- Custom
- OTG

### Device Interaction Bar

- Switch
- Home
- Back
- Turn off screen (experimental)
- Notification
- Power
- Rotation
Expand Down Expand Up @@ -311,6 +314,10 @@ Please try `disabling audio forwarding` feature through the `preferences setting
You need to customize the file paths for `scrcpy` and `adb` (ensuring they have executable permissions). If using reverse tethering, configure `gnirehtet` similarly.

### Could not execute "adb start-server"

This might be due to Chinese or special characters in the installation path. Please try changing the installation path.

## Getting Help

> As this is an open source project run entirely by donations, support is limited and updates may not be on a fixed schedule.
Expand Down
1 change: 0 additions & 1 deletion control/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import { i18n } from '$/locales/index.js'
import localeModel from '$/plugins/element-plus/locale.js'
import { useDeviceStore, useThemeStore } from '$/store/index.js'
import { ElMessage } from 'element-plus'
const themeStore = useThemeStore()
const deviceStore = useDeviceStore()
Expand Down
1 change: 0 additions & 1 deletion control/electron/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function initControlWindow(mainWindow) {

const controlWindow = new BrowserWindow({
icon: getLogoPath(),
parent: mainWindow,
width: 700,
minWidth: 700,
height: 28,
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"vue": "3.4.21"
},
"devDependencies": {
"@antfu/eslint-config": "3.3.2",
"@antfu/eslint-config": "3.8.0",
"@devicefarmer/adbkit": "3.2.6",
"@electron-toolkit/preload": "3.0.1",
"@electron-toolkit/utils": "3.0.0",
Expand All @@ -39,15 +39,15 @@
"@vitejs/plugin-vue": "5.0.4",
"@vueuse/core": "10.9.0",
"dayjs": "1.11.11",
"electron": "29.1.1",
"electron-builder": "24.13.3",
"electron": "33.0.2",
"electron-builder": "25.1.8",
"electron-context-menu": "4.0.4",
"electron-find-in-page": "1.0.8",
"electron-log": "5.2.0",
"electron-store": "9.0.0",
"electron-updater": "6.1.8",
"electron-updater": "6.3.9",
"element-plus": "2.8.2",
"eslint": "9.10.0",
"eslint": "9.13.0",
"fix-path": "4.0.0",
"fs-extra": "11.2.0",
"husky": "9.0.11",
Expand All @@ -59,11 +59,11 @@
"rimraf": "^6.0.1",
"simple-git": "^3.27.0",
"unocss": "0.62.3",
"unplugin-auto-import": "0.18.2",
"unplugin-auto-import": "0.18.3",
"unplugin-vue-components": "0.27.4",
"vite": "5.1.5",
"vite-plugin-electron": "0.28.7",
"vite-plugin-electron-renderer": "0.14.5",
"vite-plugin-electron": "0.28.8",
"vite-plugin-electron-renderer": "0.14.6",
"vite-svg-loader": "5.1.0",
"vue-command": "35.2.1",
"vue-i18n": "9.13.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { sleep } from '$/utils'
export default {
inheritAttrs: false,
props: {
row: {
type: Object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
components: {
DeployDialog,
},
inheritAttrs: false,
props: {
row: {
type: Object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { sleep } from '$/utils'
export default {
inheritAttrs: false,
props: {
row: {
type: Object,
Expand Down
Loading

0 comments on commit 7f10161

Please sign in to comment.