Описание изменений

This commit is contained in:
2025-02-21 17:11:14 +03:00
parent 69104d9db3
commit 2ddd4a9ff0
13 changed files with 1331 additions and 53 deletions

View File

@@ -1,12 +1,32 @@
<template>
<div id="app">
<h1>DApp for Business</h1>
<ContractInteraction />
<ContractInteraction ref="contractInteraction" />
<AIAssistant
:isConnected="isConnected"
:userAddress="userAddress"
/>
<ServerControl />
</div>
</template>
<script setup>
import { ref, watch } from 'vue'
import ContractInteraction from './components/ContractInteraction.vue'
import AIAssistant from './components/AIAssistant.vue'
import ServerControl from './components/ServerControl.vue'
const contractInteraction = ref(null)
const isConnected = ref(false)
const userAddress = ref(null)
watch(() => contractInteraction.value?.isConnected, (newValue) => {
isConnected.value = newValue
})
watch(() => contractInteraction.value?.address, (newValue) => {
userAddress.value = newValue
})
</script>
<style>