[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2023-12-19 03:09:17 +00:00
parent e3d9e7e24c
commit 169990ed58
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
4 changed files with 8 additions and 13 deletions

View file

@ -182,18 +182,17 @@ onMounted(shuffleCards);
</div> </div>
<hr /> <hr />
<div class="row"> <div class="row">
<h6>We would like to especially thank the following</h6> <h6>We would like to especially thank the following</h6>
</div> </div>
<div class="d-flex flex-nowrap overflow-y-auto w-100" style="height: calc(100vh - 170px);overflow-x: hidden;"> <div
class="d-flex flex-nowrap overflow-y-auto w-100"
style="height: calc(100vh - 170px); overflow-x: hidden"
>
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4 row-cols-lg-6"> <div class="row row-cols-1 row-cols-sm-2 row-cols-md-4 row-cols-lg-6">
<div class="d-inline-block" v-for="card in cards" :key="card.titleName"> <div class="d-inline-block" v-for="card in cards" :key="card.titleName">
<div class="col"> <div class="col">
<div <div class="card border-dark m-2" style="max-width: 15rem">
class="card border-dark m-2"
style="max-width: 15rem"
>
<img :src="card.imgSrc" class="card-img-top grayscale" /> <img :src="card.imgSrc" class="card-img-top grayscale" />
<div class="card-body"> <div class="card-body">
<p class="card-text text-center">{{ card.role }}</p> <p class="card-text text-center">{{ card.role }}</p>

View file

@ -20,7 +20,6 @@ function saveSettings() {
id="theme_selector" id="theme_selector"
@change="saveSettings" @change="saveSettings"
v-model="settings.local.theme" v-model="settings.local.theme"
> >
<option value="default_light">Default (light)</option> <option value="default_light">Default (light)</option>
<option value="default_dark">Default (dark)</option> <option value="default_dark">Default (dark)</option>
@ -79,7 +78,6 @@ function saveSettings() {
id="GraphicsSwitch" id="GraphicsSwitch"
@change="saveSettings" @change="saveSettings"
v-model="settings.local.high_graphics" v-model="settings.local.high_graphics"
/> />
<label class="form-check-label" for="GraphicsSwitch" <label class="form-check-label" for="GraphicsSwitch"
>Higher CPU Usage</label >Higher CPU Usage</label
@ -105,7 +103,6 @@ function saveSettings() {
id="update_channel_selector" id="update_channel_selector"
@change="saveSettings" @change="saveSettings"
v-model="settings.local.update_channel" v-model="settings.local.update_channel"
> >
<option value="latest">Stable</option> <option value="latest">Stable</option>
<option value="beta">Beta</option> <option value="beta">Beta</option>
@ -122,7 +119,6 @@ function saveSettings() {
id="NotificationSwitch" id="NotificationSwitch"
@change="saveSettings" @change="saveSettings"
v-model="settings.local.enable_sys_notification" v-model="settings.local.enable_sys_notification"
/> />
<label class="form-check-label" for="NotificationSwitch" <label class="form-check-label" for="NotificationSwitch"
>Show system pop-ups</label >Show system pop-ups</label

View file

@ -404,7 +404,7 @@ import { serialDeviceOptions } from "../js/deviceFormHelper";
@change="onChange" @change="onChange"
v-model="settings.remote.RADIO.ptt_port" v-model="settings.remote.RADIO.ptt_port"
> >
<option <option
v-for="option in serialDeviceOptions()" v-for="option in serialDeviceOptions()"
v-bind:value="option.port" v-bind:value="option.port"
> >

View file

@ -4,7 +4,7 @@ let audioDevices = await getAudioDevices();
let serialDevices = await getSerialDevices(); let serialDevices = await getSerialDevices();
//Add an ignore option for rig and ptt for transceivers that don't require them //Add an ignore option for rig and ptt for transceivers that don't require them
serialDevices.push({description:"-- ignore --", port:"ignore"}) serialDevices.push({ description: "-- ignore --", port: "ignore" });
//Dummy device data sent if unable to get devices from modem to prevent GUI crash //Dummy device data sent if unable to get devices from modem to prevent GUI crash
const skel = JSON.parse(` const skel = JSON.parse(`
@ -38,7 +38,7 @@ export function audioOutputOptions() {
if (audioDevices === undefined) { if (audioDevices === undefined) {
return skel; return skel;
} }
return audioDevices.out; return audioDevices.out;
} }