add domotics links

This commit is contained in:
2020-06-18 23:02:15 +02:00
parent d5be73c622
commit 2779789558
2 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
<template>
<div>
<div class="m-2">
<div class="card">
<div class="text-black m-2 p-2 flex flex-col">
<h2>Raspberry Links</h2>
<ul class="mt-2">
<li><a v-for="(link, index) in links" :href="link.link" :key="index" target="_blank" class="block text-lg">{{ link.name }}</a></li>
</ul>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'DomoticHome',
data: function () {
return {
links: [
{ name: 'Météo', link: 'http://192.168.1.32/meteo/meteo'},
{ name: 'MotionEye', link: 'http://192.168.1.32:8765'},
{ name: 'TT-RSS', link: 'https://tt-rss.bricooli.fr'},
{ name: 'Pi-Hole', link: 'http://192.168.1.32/admin/index.php'},
{ name: 'RaspAp', link: 'http://192.168.1.32/raspap'},
{ name: 'Kodi', link: 'http://192.168.1.19:8080/'},
{ name: 'RaspiWeb Adminer', link: 'http://192.168.1.32/adminer.php'},
{ name: 'RaspiGate Adminer', link: 'http://192.168.1.29/adminer.php'},
],
}
},
}
</script>

View File

@@ -4,6 +4,7 @@
<div class="flex flex-wrap -m-2 mt-2">
<OpenWeatherCard class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4" />
<MemoHome class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4" />
<DomoticHome class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4" />
</div>
</div>
</template>
@@ -11,11 +12,12 @@
<script>
import OpenWeatherCard from './Meteo/OpenWeatherCard'
import MemoHome from './Memo/MemoHome'
import DomoticHome from './Domotics/DomoticHome'
export default {
name: 'Home',
components: {
OpenWeatherCard, MemoHome
OpenWeatherCard, MemoHome, DomoticHome
}
}
</script>