mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-06-26 04:31:37 +02:00
Format file.
This commit is contained in:
parent
593f8afc90
commit
b79561bc9c
@ -6,7 +6,11 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div v-if="image" class="media-left">
|
<div v-if="image" class="media-left">
|
||||||
<figure class="image is-48x48">
|
<figure class="image is-48x48">
|
||||||
<img :src="`http://openweathermap.org/img/wn/` + image + `@2x.png`" :alt="conditions" :title="conditions" />
|
<img
|
||||||
|
:src="`http://openweathermap.org/img/wn/` + image + `@2x.png`"
|
||||||
|
:alt="conditions"
|
||||||
|
:title="conditions"
|
||||||
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="item.icon" class="media-left">
|
<div v-if="item.icon" class="media-left">
|
||||||
@ -47,16 +51,18 @@ export default {
|
|||||||
data: () => ({
|
data: () => ({
|
||||||
api: {
|
api: {
|
||||||
name: "",
|
name: "",
|
||||||
weather: [{
|
weather: [
|
||||||
|
{
|
||||||
main: "",
|
main: "",
|
||||||
description: "",
|
description: "",
|
||||||
icon: ""
|
icon: "",
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
main: {
|
main: {
|
||||||
temp: "",
|
temp: "",
|
||||||
humidity: ""
|
humidity: "",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}),
|
}),
|
||||||
computed: {
|
computed: {
|
||||||
temp: function () {
|
temp: function () {
|
||||||
@ -76,7 +82,7 @@ export default {
|
|||||||
return this.api.weather[0].description;
|
return this.api.weather[0].description;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchStatus();
|
this.fetchStatus();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user