You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
Vue
66 lines
1.3 KiB
Vue
<template>
|
|
<v-container
|
|
class="_grid-list-md _pa-2"
|
|
fluid
|
|
>
|
|
<v-row>
|
|
<v-col
|
|
cols="12"
|
|
md="6"
|
|
>
|
|
<screen-card />
|
|
|
|
<!--
|
|
<v-chip
|
|
outlined
|
|
:title="firmware.rev"
|
|
color="text--disabled"
|
|
>
|
|
{{ (new Date(firmware.created * 1000).toLocaleDateString()) }}
|
|
@
|
|
{{ firmware.rev.substring(0,8) }}
|
|
</v-chip>
|
|
-->
|
|
</v-col>
|
|
<v-col
|
|
cols="12"
|
|
sm="6"
|
|
md="4"
|
|
>
|
|
<weather-card />
|
|
<device-card class="mt-5" />
|
|
</v-col>
|
|
</v-row>
|
|
</v-container>
|
|
</template>
|
|
|
|
<script>
|
|
import screenCard from '@/components/ScreenCard'
|
|
import weatherCard from '@/components/WeatherCard'
|
|
import deviceCard from '@/components/DeviceCard'
|
|
|
|
export default {
|
|
components: {
|
|
screenCard,
|
|
weatherCard,
|
|
deviceCard,
|
|
},
|
|
data: () => ({
|
|
isLoading: false,
|
|
}),
|
|
computed: {
|
|
firmware () {
|
|
return {
|
|
// eslint-disable-next-line no-undef
|
|
created: __BUILD_TIME__ || JSON.stringify(new Date().getTime() / 1000 | 0),
|
|
// eslint-disable-next-line no-undef
|
|
rev: __COMMIT_HASH__ || 'dev-master',
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
</style>
|