fix(api): return proper json objects (#3544)
This commit is contained in:
parent
5b36357133
commit
257a102127
19 changed files with 364 additions and 350 deletions
|
|
@ -234,8 +234,8 @@
|
|||
<!-- exit timeout -->
|
||||
<div class="mb-3">
|
||||
<label for="exitTimeout" class="form-label">{{ $t('apps.exit_timeout') }}</label>
|
||||
<input type="text" class="form-control monospace" id="exitTimeout" aria-describedby="exitTimeoutHelp"
|
||||
v-model="editForm['exit-timeout']" />
|
||||
<input type="number" class="form-control monospace" id="exitTimeout" aria-describedby="exitTimeoutHelp"
|
||||
v-model="editForm['exit-timeout']" min="0" placeholder="5" />
|
||||
<div id="exitTimeoutHelp" class="form-text">{{ $t('apps.exit_timeout_desc') }}</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
|
|
|
|||
|
|
@ -343,10 +343,7 @@
|
|||
this.$forceUpdate()
|
||||
},
|
||||
serialize() {
|
||||
let config = JSON.parse(JSON.stringify(this.config));
|
||||
config.global_prep_cmd = JSON.stringify(config.global_prep_cmd);
|
||||
config.dd_mode_remapping = JSON.stringify(config.dd_mode_remapping);
|
||||
return config;
|
||||
return JSON.parse(JSON.stringify(this.config));
|
||||
},
|
||||
save() {
|
||||
this.saved = false;
|
||||
|
|
@ -360,17 +357,8 @@
|
|||
Object.keys(tab.options).forEach(optionKey => {
|
||||
let delete_value = false
|
||||
|
||||
if (["global_prep_cmd", "dd_mode_remapping"].includes(optionKey)) {
|
||||
const config_value = config[optionKey]
|
||||
const default_value = JSON.stringify(tab.options[optionKey])
|
||||
|
||||
if (config_value === default_value) {
|
||||
delete_value = true
|
||||
}
|
||||
}
|
||||
|
||||
// todo: add proper type checking
|
||||
if (String(config[optionKey]) === String(tab.options[optionKey])) {
|
||||
if (JSON.stringify(config[optionKey]) === JSON.stringify(tab.options[optionKey])) {
|
||||
delete_value = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,14 +39,12 @@ const config = ref(props.config)
|
|||
</div>
|
||||
|
||||
<!-- Spatial AQ -->
|
||||
<div class="mb-3">
|
||||
<label for="nvenc_spatial_aq" class="form-label">{{ $t('config.nvenc_spatial_aq') }}</label>
|
||||
<select id="nvenc_spatial_aq" class="form-select" v-model="config.nvenc_spatial_aq">
|
||||
<option value="disabled">{{ $t('config.nvenc_spatial_aq_disabled') }}</option>
|
||||
<option value="enabled">{{ $t('config.nvenc_spatial_aq_enabled') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.nvenc_spatial_aq_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="nvenc_spatial_aq"
|
||||
locale-prefix="config"
|
||||
v-model="config.nvenc_spatial_aq"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
|
||||
<!-- Single-frame VBV/HRD percentage increase -->
|
||||
<div class="mb-3">
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
"env_vars_desc": "All commands get these environment variables by default:",
|
||||
"env_xrandr_example": "Example - Xrandr for Resolution Automation:",
|
||||
"exit_timeout": "Exit Timeout",
|
||||
"exit_timeout_desc": "Number of seconds to wait for all app processes to gracefully exit when requested to quit. If unset, the default is to wait up to 5 seconds. If set to zero or a negative value, the app will be immediately terminated.",
|
||||
"exit_timeout_desc": "Number of seconds to wait for all app processes to gracefully exit when requested to quit. If unset, the default is to wait up to 5 seconds. If set to 0, the app will be immediately terminated.",
|
||||
"find_cover": "Find Cover",
|
||||
"global_prep_desc": "Enable/Disable the execution of Global Prep Commands for this application.",
|
||||
"global_prep_name": "Global Prep Commands",
|
||||
|
|
@ -279,8 +279,6 @@
|
|||
"nvenc_realtime_hags_desc": "Currently NVIDIA drivers may freeze in encoder when HAGS is enabled, realtime priority is used and VRAM utilization is close to maximum. Disabling this option lowers the priority to high, sidestepping the freeze at the cost of reduced capture performance when the GPU is heavily loaded.",
|
||||
"nvenc_spatial_aq": "Spatial AQ",
|
||||
"nvenc_spatial_aq_desc": "Assign higher QP values to flat regions of the video. Recommended to enable when streaming at lower bitrates.",
|
||||
"nvenc_spatial_aq_disabled": "Disabled (faster, default)",
|
||||
"nvenc_spatial_aq_enabled": "Enabled (slower)",
|
||||
"nvenc_twopass": "Two-pass mode",
|
||||
"nvenc_twopass_desc": "Adds preliminary encoding pass. This allows to detect more motion vectors, better distribute bitrate across the frame and more strictly adhere to bitrate limits. Disabling it is not recommended since this can lead to occasional bitrate overshoot and subsequent packet loss.",
|
||||
"nvenc_twopass_disabled": "Disabled (fastest, not recommended)",
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
{
|
||||
"name": "Steam Big Picture",
|
||||
"cmd": "steam://open/bigpicture",
|
||||
"auto-detach": "true",
|
||||
"wait-all": "true",
|
||||
"auto-detach": true,
|
||||
"wait-all": true,
|
||||
"image-path": "steam.png"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue