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