#54 some code clean ups

pull/1/head
Thomas Ballmann 3 years ago
parent 2c11c4e554
commit a4db115853

@ -75,16 +75,6 @@
<v-divider />
<v-card-actions>
<!--
<v-btn
:loading="isUpdatingData"
text
@click="updateData"
>
i8n:update weather data
</v-btn>
-->
<v-spacer />
<v-btn
:loading="isUpdatingData"

@ -64,37 +64,14 @@
:to="page.to"
link
>
<v-list-item-content
v-if="0"
class="text-center"
>
<v-list-item-icon>
<v-icon>{{ page.icon }}</v-icon>
<v-list-item-title>{{ page.label }}</v-list-item-title>
</v-list-item-content>
<template v-if="1">
<v-list-item-icon>
<v-icon>{{ page.icon }}</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ page.label }}</v-list-item-title>
</v-list-item-content>
</template>
</v-list-item>
</v-list-item-icon>
<!--
<v-divider />
<v-list-item
link
to="/setup"
>
<v-list-item-content class="text-center">
<v-icon>$support</v-icon>
<v-list-item-title>Assistant</v-list-item-title>
<v-list-item-content>
<v-list-item-title>{{ page.label }}</v-list-item-title>
</v-list-item-content>
</v-list-item>
-->
</v-list>
</v-navigation-drawer>

@ -4,63 +4,19 @@
fluid
>
<weather-card />
- update screen in<br>
- update weather in<br>
- show api infos and short how to
<v-row v-if="0">
<v-col
cols="12"
md="6"
>
<!--
<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"
>
<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'
import weatherCard from '@/components/Weather/Card'
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>

Loading…
Cancel
Save