mirror of
https://github.com/paperdash/device-epd.git
synced 2024-11-04 12:00:27 +00:00
#54 some code clean ups
This commit is contained in:
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-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>
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user