#54 some code clean ups

This commit is contained in:
Thomas Ballmann 2021-01-09 11:29:58 +01:00
parent 2c11c4e554
commit a4db115853
3 changed files with 5 additions and 82 deletions

View File

@ -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"

View File

@ -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-icon>
<v-list-item-content>
<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-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>
-->
</v-list>
</v-navigation-drawer>

View File

@ -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>