Compare commits
No commits in common. "ef29ef3d824214532031b460ea7970248bcc4dde" and "c10bb714a9aae497ae7251bc11a30db4856b9518" have entirely different histories.
ef29ef3d82
...
c10bb714a9
@ -7,32 +7,26 @@
|
||||
<v-container class="text-center">
|
||||
<v-row justify="center">
|
||||
<v-col cols="12" sm="6" md="5" class="mt-4">
|
||||
<mqtt-button width="240" height="130" class="btn xs12 sm6 md3" topic="/display/control" message="previous">
|
||||
<v-btn width="240" height="130" class="btn card xs12 sm6 md3">
|
||||
<v-icon left size="100">mdi-skip-previous</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" md="5" class="mt-4">
|
||||
<mqtt-button width="240" height="130" class="btn xs12 sm6 md3" topic="/display/control" message="next">
|
||||
<v-btn width="240" height="130" class="btn card xs12 sm6 md3">
|
||||
<v-icon left size="100">mdi-skip-next</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" md="5" class="mb-4">
|
||||
<mqtt-button width="240" height="130" class="btn xs12 sm6 md3" topic="/display/control" message="pause">
|
||||
<v-btn width="240" height="130" class="btn card xs12 sm6 md3">
|
||||
<v-icon left size="100">mdi-pause</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" md="5" class="mb-4">
|
||||
<mqtt-button width="240" height="130" class="btn xs12 sm6 md3 " topic="/display/control" message="play">
|
||||
<v-btn width="240" height="130" class="btn card xs12 sm6 md3">
|
||||
<v-icon left size="100">mdi-play</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
import MqttButton from './MqttButton.vue';
|
||||
|
||||
</script>
|
||||
|
@ -7,37 +7,33 @@
|
||||
<v-container class="text-center">
|
||||
<v-row justify="center">
|
||||
<v-col cols="12" sm="6" md="4" class="mt-4">
|
||||
<mqtt-button class="btn" width="200" height="130" topic="/sound/playsound" message="good-response" rounded>
|
||||
<v-btn class="card" width="200" height="130" @click="" rounded>
|
||||
<v-icon size="100">mdi-check-circle-outline</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" md="4" class="mt-4">
|
||||
<mqtt-button class="btn" width="200" height="130" topic="/sound/playsound" message="bad-response" rounded>
|
||||
<v-btn class="card" width="200" height="130" @click="" rounded>
|
||||
<v-icon size="100">mdi-close-circle-outline</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" md="4" class="mt-4">
|
||||
<mqtt-button class="btn" width="200" height="130" topic="/sound/playsound" message="timer" rounded>
|
||||
<v-btn class="card" width="200" height="130" @click="" rounded>
|
||||
<v-icon size="100">mdi-timer-outline</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row justify="center">
|
||||
<v-col cols="12" sm="6" md="4" class="mb-4">
|
||||
<mqtt-button class="btn" width="220" height="130" topic="/sound/playsound" message="applause" rounded>
|
||||
<v-btn class="card" width="220" height="130" @click="" rounded>
|
||||
<v-icon size="100">mdi-human-handsup</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" md="s" class="mb-4">
|
||||
<mqtt-button class="btn" width="220" height="130" topic="/sound/playsound" message="bell" rounded>
|
||||
<v-btn class="card" width="220" height="130" @click="" rounded>
|
||||
<v-icon size="100">mdi-bell-outline</v-icon>
|
||||
</mqtt-button>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import MqttButton from './MqttButton.vue';
|
||||
</script>
|
||||
|
@ -1,22 +0,0 @@
|
||||
<template>
|
||||
<v-btn @click="_publishMessage" v-bind="$attrs">
|
||||
<slot/>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { publishMessage } from '@/services/mqttService'
|
||||
import { ref, defineProps } from 'vue'
|
||||
|
||||
const props = defineProps({
|
||||
topic: String,
|
||||
message: null
|
||||
})
|
||||
|
||||
const disabled = ref(false)
|
||||
|
||||
const _publishMessage = () => {
|
||||
publishMessage(props.topic, JSON.stringify(props.message))
|
||||
disabled.value = true
|
||||
}
|
||||
</script>
|
@ -35,8 +35,7 @@ import CardSoundboard from '@/components/CardSoundboard.vue';
|
||||
background-color: #2E7D32; /* Changez la couleur en fonction de votre thème */
|
||||
}
|
||||
.btn{
|
||||
border-radius:30px!important;
|
||||
background-color: #2979FF; /* Changez la couleur en fonction de votre thème */
|
||||
border-radius:50px!important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user