get-startapp
This commit is contained in:
@@ -29,7 +29,6 @@ async function getApps() {
|
||||
let appCollection = await getapps()
|
||||
let filters = [(a) => a.appid.includes('.exe'), (a) => a.appid.includes('steam')]
|
||||
console.log(` Total apps ${appCollection.length}`)
|
||||
// return appCollection.filter((app) => app.appid.includes('.exe'))
|
||||
return appCollection.filter((app) => filters.some((fn) => fn(app)))
|
||||
}
|
||||
|
||||
|
||||
@@ -7,12 +7,7 @@
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<select v-model="com_port" class="form-select">
|
||||
<option
|
||||
v-for="(serialport, i) in props.serialports"
|
||||
:key="i"
|
||||
:value="serialport.path"
|
||||
class="form-option"
|
||||
>
|
||||
<option v-for="(serialport, i) in props.serialports" :key="i" :value="serialport.path" class="form-option">
|
||||
{{ serialport.friendlyName }}
|
||||
</option>
|
||||
</select>
|
||||
@@ -44,6 +39,8 @@ function generateAppSelector() {
|
||||
for (let app in props.installedApps) {
|
||||
optionsString += `<option value=${props.installedApps[app].name}> ${props.installedApps[app].name} </option>`
|
||||
}
|
||||
return `<div class="row mt-3"><select class="form-select"> ${optionsString} </select></div>`
|
||||
return `<div class="row mt-3">
|
||||
<select class="form-select"> ${optionsString} </select></div>
|
||||
`
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user