Modifiche dir, bozza ChatMsg, sposto in branch feature_ChatMsg

feature_keyboard
reddigriz 2 years ago
parent 4985c9151e
commit f48095e150

@ -4,6 +4,14 @@ Il frontend di Geografia
https://www.figma.com/file/Q5zVqd0YQNPZ8qWW4CjPDR/Geografia?node-id=0%3A1 https://www.figma.com/file/Q5zVqd0YQNPZ8qWW4CjPDR/Geografia?node-id=0%3A1
TODO:
- Completare view su tutti i componenti
- Sezione Write messages
- Stilizzare app
- Strutturare Handler
- Implementare libreria telegram
Ci sono 3 componenti principali dell'app: Ci sono 3 componenti principali dell'app:
- Backend a.k.a interprete (?) - https://git.tropici.net/ifdo/geografia - Backend a.k.a interprete (?) - https://git.tropici.net/ifdo/geografia
- Handler - Handler

@ -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> <script setup>
import Keyboard from "./Keyboard.vue"; import Keyboard from "../keyboard/Keyboard.vue";
import ChatHistory from "./ChatHistory.vue"; import ChatHistory from "./ChatHistory.vue";
</script> </script>
Loading…
Cancel
Save