+
+
+
diff --git a/src/components/Device/components/ControlBar/index.vue b/src/components/Device/components/ControlBar/index.vue
index fd250ae..6fa4f62 100644
--- a/src/components/Device/components/ControlBar/index.vue
+++ b/src/components/Device/components/ControlBar/index.vue
@@ -66,22 +66,24 @@
+
+
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 0000000..a92bc14
--- /dev/null
+++ b/src/components/Device/components/MoreDropdown/components/Custom/index.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Device/components/MoreDropdown/components/Record/index.vue b/src/components/Device/components/MoreDropdown/components/Record/index.vue
index 28ef644..7392554 100644
--- a/src/components/Device/components/MoreDropdown/components/Record/index.vue
+++ b/src/components/Device/components/MoreDropdown/components/Record/index.vue
@@ -51,7 +51,7 @@ export default {
await recording
- this.onRecordSuccess(savePath)
+ await this.handleSuccess(savePath)
}
catch (error) {
console.error('record.args', args)
@@ -79,24 +79,10 @@ export default {
return value
},
- async onRecordSuccess(savePath) {
- try {
- await this.$confirm(
- this.$t('device.record.success.message'),
- this.$t('device.record.success.title'),
- {
- confirmButtonText: this.$t('common.confirm'),
- cancelButtonText: this.$t('common.cancel'),
- closeOnClickModal: false,
- type: 'success',
- },
- )
-
- await this.$electron.ipcRenderer.invoke('show-item-in-folder', savePath)
- }
- catch (error) {
- console.warn(error)
- }
+ async handleSuccess(savePath) {
+ return this.$message.success(
+ `${this.$t('device.record.success.title')}: ${savePath}`,
+ )
},
},
}
diff --git a/src/components/Device/components/MoreDropdown/index.vue b/src/components/Device/components/MoreDropdown/index.vue
index 9197deb..d5be13a 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/Device/components/TerminalAction/components/TerminalDialog/index.vue b/src/components/Device/components/TerminalAction/components/TerminalDialog/index.vue
index 1254b3c..52b84f2 100644
--- a/src/components/Device/components/TerminalAction/components/TerminalDialog/index.vue
+++ b/src/components/Device/components/TerminalAction/components/TerminalDialog/index.vue
@@ -4,27 +4,26 @@
width="80%"
:close-on-click-modal="false"
:close-on-press-escape="true"
+ :destroy-on-close="true"
class="overflow-hidden !rounded-md el-dialog-headless dark:border dark:border-gray-700"
- @open="onOpen"
+ @closed="onClosed"
>
-
@@ -37,108 +36,141 @@
-
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 0000000..713d270
--- /dev/null
+++ b/src/components/Preference/components/PreferenceForm/components/InputNumber/index.vue
@@ -0,0 +1,27 @@
+
+
+
+ {{ data.append }}
+
+
+
+
+
+
+
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 1039224..abe3404 100644
--- a/src/components/Preference/components/PathInput/index.vue
+++ b/src/components/Preference/components/PreferenceForm/components/InputPath/index.vue
@@ -1,11 +1,11 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Preference/components/AudioCodecSelect/index.vue b/src/components/Preference/components/PreferenceForm/components/SelectAudioCodec/index.vue
similarity index 94%
rename from src/components/Preference/components/AudioCodecSelect/index.vue
rename to src/components/Preference/components/PreferenceForm/components/SelectAudioCodec/index.vue
index 88d995e..cbea474 100644
--- a/src/components/Preference/components/AudioCodecSelect/index.vue
+++ b/src/components/Preference/components/PreferenceForm/components/SelectAudioCodec/index.vue
@@ -1,10 +1,8 @@
+
+
+
+
+
+
diff --git a/src/components/Preference/components/PreferenceForm/components/index.js b/src/components/Preference/components/PreferenceForm/components/index.js
new file mode 100644
index 0000000..cf7ce2e
--- /dev/null
+++ b/src/components/Preference/components/PreferenceForm/components/index.js
@@ -0,0 +1,30 @@
+import Input from './Input/index.vue'
+import InputNumber from './InputNumber/index.vue'
+import InputPath from './InputPath/index.vue'
+import Select from './Select/index.vue'
+import SelectAudioCodec from './SelectAudioCodec/index.vue'
+import SelectDisplay from './SelectDisplay/index.vue'
+import SelectKeyboardInject from './SelectKeyboardInject/index.vue'
+import SelectLanguage from './SelectLanguage/index.vue'
+import SelectVideoCodec from './SelectVideoCodec/index.vue'
+import Switch from './Switch/index.vue'
+
+export const inputModel = {
+ PathInput: InputPath,
+ AudioCodecSelect: SelectAudioCodec,
+ VideoCodecSelect: SelectVideoCodec,
+ DisplaySelect: SelectDisplay,
+ KeyboardInjectSelect: SelectKeyboardInject,
+ LanguageSelect: SelectLanguage,
+
+ Input,
+ InputNumber,
+ InputPath,
+ Select,
+ SelectAudioCodec,
+ SelectDisplay,
+ SelectKeyboardInject,
+ SelectLanguage,
+ SelectVideoCodec,
+ Switch,
+}
diff --git a/src/components/Preference/components/PreferenceForm/index.vue b/src/components/Preference/components/PreferenceForm/index.vue
new file mode 100644
index 0000000..601e7e6
--- /dev/null
+++ b/src/components/Preference/components/PreferenceForm/index.vue
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+ {{ $t(item.label) }}
+
+
+
+ {{ $t('preferences.reset') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ $t(item_1.label)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Preference/components/ScopeSelect/index.vue b/src/components/Preference/components/ScopeSelect/index.vue
new file mode 100644
index 0000000..5206d0a
--- /dev/null
+++ b/src/components/Preference/components/ScopeSelect/index.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+ {{ $t('preferences.scope.details[0]') }}
+
+
+ {{ $t('preferences.scope.details[1]') }}
+
+
+ {{ $t('preferences.scope.details[2]') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Preference/index.vue b/src/components/Preference/index.vue
index f5b7a8c..9a2d061 100644
--- a/src/components/Preference/index.vue
+++ b/src/components/Preference/index.vue
@@ -4,43 +4,11 @@
class="mr-4 pb-4 flex items-center justify-between flex-none border-b border-gray-200 dark:border-gray-700"
>
-
-
-
-
-
-
-
-
-
- {{ $t('preferences.scope.details[0]') }}
-
-
- {{ $t('preferences.scope.details[1]') }}
-
-
- {{ $t('preferences.scope.details[2]') }}
-
-
-
-
-
-
-
-
+ @device-change="onDeviceChange"
+ />
@@ -52,208 +20,53 @@
{{ $t('preferences.config.edit.name') }}
-
+
{{ $t('preferences.config.reset.name') }}
-