Skip to content

Commit

Permalink
perf: 🚀 Update Preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Nov 1, 2023
1 parent c210140 commit 34800cf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/Preference/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@
:title="$t(item_1.placeholder)"
:placeholder="$t(item_1.placeholder)"
clearable
></el-input>
>
<template v-if="item_1.append" #append>
{{ item_1.append }}
</template>
</el-input>

<el-input
v-else-if="item_1.type === 'Input.number'"
Expand All @@ -130,7 +134,11 @@
:title="$t(item_1.placeholder)"
:placeholder="$t(item_1.placeholder)"
clearable
></el-input>
>
<template v-if="item_1.append" #append>
{{ item_1.append }}
</template>
</el-input>

<el-input
v-else-if="item_1.type === 'Input.path'"
Expand Down
2 changes: 2 additions & 0 deletions src/store/preference/model/audio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ export default {
type: 'Input.number',
value: '',
placeholder: 'preferences.audio.audio-buffer.placeholder',
append: 'ms',
},
audioOutputBuffer: {
label: 'preferences.audio.audio-output-buffer.name',
field: '--audio-output-buffer',
type: 'Input.number',
value: '',
placeholder: 'preferences.audio.audio-output-buffer.placeholder',
append: 'ms',
},
noAudio: {
label: 'preferences.audio.disable.name',
Expand Down
3 changes: 3 additions & 0 deletions src/store/preference/model/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default {
type: 'Input.number',
value: '',
placeholder: 'preferences.video.refresh-rate.placeholder',
append: 'fps',
},
videoCodec: {
label: 'preferences.video.decoder.name',
Expand Down Expand Up @@ -122,13 +123,15 @@ export default {
type: 'Input.number',
value: '',
placeholder: 'preferences.video.video-buffer.placeholder',
append: 'ms',
},
v4l2Buffer: {
label: 'preferences.video.receiver-buffer.name',
field: '--v4l2-buffer',
type: 'Input.number',
value: '',
placeholder: 'preferences.video.receiver-buffer.placeholder',
append: 'ms',
},
noVideo: {
label: 'preferences.video.disable.name',
Expand Down

0 comments on commit 34800cf

Please sign in to comment.