Passaggio dei promps, Header
parent
63aa7c73db
commit
db59f38f9d
@ -1,9 +1,31 @@
|
||||
<script setup>
|
||||
//TODO: Fixare passaggio promps a header
|
||||
import ChatList from "@/components/ChatList.vue";
|
||||
import Header from "@/components/Header.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main>
|
||||
<ChatList />
|
||||
<Header
|
||||
:chat-picture="chat-picture"
|
||||
:chat-name="chat-name"
|
||||
:header-chat="header-chat"
|
||||
/>
|
||||
<ChatList @change-header="changeHeader" />
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
chatPicture: { type: String, default: "" },
|
||||
chatName: { type: String, default: "" },
|
||||
headerChat: { type: Boolean, default: false },
|
||||
methods: {
|
||||
changeHeader(e) {
|
||||
this.chatPicture = e[1];
|
||||
this.chatName = e[2];
|
||||
this.headerChat = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 2.5 MiB |
@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
|
Before Width: | Height: | Size: 308 B |
@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<header>
|
||||
<div id="header">
|
||||
<p>Geografia</p>
|
||||
</div>
|
||||
<div v-if="header-chat" id="header-chat">
|
||||
<div class="chat-picture">
|
||||
<figure>
|
||||
<img src="chat-picture" alt="The chat picture" />
|
||||
</figure>
|
||||
</div>
|
||||
<div class="chat-name">
|
||||
<h3>{{ chatName }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
setup() {},
|
||||
props: {
|
||||
ChatPicture: { type: String, default: "" },
|
||||
chatName: { type: String, default: "" },
|
||||
headerChat: { type: Boolean, default: true },
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@ -1,17 +1,5 @@
|
||||
<template>
|
||||
<div class="msg-composition">
|
||||
<KeyboardWord type="subject" />
|
||||
<KeyboardWord type="object" />
|
||||
<KeyboardWord type="verb" />
|
||||
</div>
|
||||
<div class="msg-composition"></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import KeyboardWord from "./KeyboardWord.vue";
|
||||
export default {
|
||||
components: { KeyboardWord },
|
||||
setup() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@ -0,0 +1,19 @@
|
||||
<script setup>
|
||||
import Keyboard from "./Keyboard.vue";
|
||||
import KeyboardWord from "./KeyboardWord.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<KeyboardWord />
|
||||
<Keyboard />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
setup() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
VueRouter inutile fino allo sviluppo dell'handler dei messaggi
|
||||
e solo nel caso si voglia supportare l'uso di url nella versione web
|
||||
*/
|
||||
|
||||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
|
||||
2; // 1. Define route components.
|
||||
const ChatList = { template: "./components/ChatList.vue" };
|
||||
// const ChatView = { template: "./components/ChatView.vue" };
|
||||
// const MessageComposition = { template: "./components/MessageComposition.vue" };
|
||||
|
||||
// 2. Define some routes
|
||||
const routes = [
|
||||
{ path: "/", component: ChatList },
|
||||
// { path: "/chat_view", component: ChatView },
|
||||
// { path: "/chat_view/write", component: MessageComposition },
|
||||
];
|
||||
|
||||
// 3. Create the router instance and pass the `routes` option
|
||||
export const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes,
|
||||
});
|
Loading…
Reference in New Issue