40 lines
950 B
Vue
40 lines
950 B
Vue
<script setup>
|
|
//import TheWelcome from '../components/TheWelcome.vue'
|
|
import TitleBar from '../components/TitleBar.vue';
|
|
import {
|
|
ref, computed, reactive, watch,
|
|
onMounted, onUnmounted,
|
|
} from "vue";
|
|
import * as backend from '../backend';
|
|
import * as ui from '../ui';
|
|
|
|
let token = ref(null);
|
|
|
|
async function generateToken() {
|
|
token.value = await backend.newToken();
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<main>
|
|
<TitleBar>
|
|
<h1>User Details</h1>
|
|
</TitleBar>
|
|
|
|
<div class="home-content">
|
|
<p>This is the Hub for Horde Agents. You can configure agents, interact and chat with them.</p>
|
|
<button @click="generateToken()">Generate Access Token</button>
|
|
<pre v-if="token != null" @input.stop.prevent="false">{{ token }}</pre>
|
|
</div>
|
|
|
|
<!--TheWelcome /-->
|
|
</main>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.home-content {
|
|
max-width: 900px;
|
|
margin: 2em auto auto;
|
|
padding: 0 5em 0 2em;
|
|
}
|
|
</style> |