Move brainblast vue app to ui repository

This commit is contained in:
2024-03-16 21:17:43 +00:00
parent ac2fb16703
commit 4c42f15dc6
34 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<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>