Modifiche dir, bozza ChatMsg, sposto in branch feature_ChatMsg
parent
4985c9151e
commit
f48095e150
@ -0,0 +1,64 @@
|
||||
{
|
||||
"history": [
|
||||
{
|
||||
"id": 1,
|
||||
"picture": "../assets/cat_skate.png",
|
||||
"name": "test-name1",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": false
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"picture": "../assets/cat_skate.png",
|
||||
"name": "test-name2",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": true
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"picture": "../assets/cat_skate.png",
|
||||
"name": "test-name3",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": false
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"picture": "../assets/cat_skate.png",
|
||||
"name": "test-name4",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": true
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"picture": "../assets/cat_skate.png",
|
||||
"name": "test-name5",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": false
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"picture": "../assets/cat_skate.png",
|
||||
"name": "test-name6",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": true
|
||||
}
|
||||
]
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
<template>
|
||||
<div id="ChatHistory">
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
setup() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@ -0,0 +1,25 @@
|
||||
<script setup>
|
||||
import ChatMsg from "./ChatMsg.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- Modificare la proprieta' css z-index
|
||||
per permettero lo scrolling e una dimensione fissa -->
|
||||
|
||||
<div id="ChatHistory">
|
||||
<ChatMsg v-for="message in $options.demo_messages.history" :key="message.id"
|
||||
:messageText="message.text"
|
||||
:isUser="message.user"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
setup() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import Keyboard from "./Keyboard.vue";
|
||||
import Keyboard from "../keyboard/Keyboard.vue";
|
||||
import ChatHistory from "./ChatHistory.vue";
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue