Lint
This commit is contained in:
parent
3395e3a0a9
commit
93781d8c97
|
@ -290,6 +290,12 @@ export default {
|
||||||
helpDialog: false
|
helpDialog: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
pagedUserPresences() {
|
||||||
|
return this.userPresence?.slice(0, this.resultSize) || []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
search(newValue) {
|
search(newValue) {
|
||||||
if (!newValue) this.$router.push({ query: {} })
|
if (!newValue) this.$router.push({ query: {} })
|
||||||
|
@ -346,11 +352,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
pagedUserPresences() {
|
|
||||||
return this.userPresence?.slice(0, this.resultSize) || []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
if (this.$vuetify.breakpoint.mdAndUp) this.resultSize = this.pageSize = 24
|
if (this.$vuetify.breakpoint.mdAndUp) this.resultSize = this.pageSize = 24
|
||||||
},
|
},
|
||||||
|
|
|
@ -207,6 +207,19 @@ export default {
|
||||||
itemsPerPageArray: [15, 30, 60, 120],
|
itemsPerPageArray: [15, 30, 60, 120],
|
||||||
page: 1
|
page: 1
|
||||||
}),
|
}),
|
||||||
|
computed: {
|
||||||
|
computedWifiDevices() {
|
||||||
|
return this.wifiDevices?.map(device => ({
|
||||||
|
...device,
|
||||||
|
hostname: device.hostname || 'Desconhecido',
|
||||||
|
displayName: device.user?.displayName || 'Não autenticado',
|
||||||
|
sAMAccountName: device.user?.sAMAccountName,
|
||||||
|
thumbnailPhoto: device.user?.thumbnailPhoto,
|
||||||
|
ip: device.ip == 'Unknown' ? 'Sem endereço IP' : device.ip,
|
||||||
|
essid: device.essid
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
search(newValue) {
|
search(newValue) {
|
||||||
if (!newValue) this.$router.push({ query: {} })
|
if (!newValue) this.$router.push({ query: {} })
|
||||||
|
@ -259,19 +272,6 @@ export default {
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
computedWifiDevices() {
|
|
||||||
return this.wifiDevices?.map(device => ({
|
|
||||||
...device,
|
|
||||||
hostname: device.hostname || 'Desconhecido',
|
|
||||||
displayName: device.user?.displayName || 'Não autenticado',
|
|
||||||
sAMAccountName: device.user?.sAMAccountName,
|
|
||||||
thumbnailPhoto: device.user?.thumbnailPhoto,
|
|
||||||
ip: device.ip == 'Unknown' ? 'Sem endereço IP' : device.ip,
|
|
||||||
essid: device.essid
|
|
||||||
}))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user