Aggiunto json con lista preview chat demo, fixato ChatMsg, impostato flow dati history
parent
c0ca379845
commit
63aa7c73db
@ -1,48 +0,0 @@
|
||||
# geografia_vue
|
||||
|
||||
This template should help get you started developing with Vue 3 in Vite.
|
||||
|
||||
## Recommended IDE Setup
|
||||
|
||||
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
||||
|
||||
## Customize configuration
|
||||
|
||||
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
||||
|
||||
## Project Setup
|
||||
|
||||
```sh
|
||||
npm install
|
||||
```
|
||||
|
||||
### Compile and Hot-Reload for Development
|
||||
|
||||
```sh
|
||||
npm run dev
|
||||
```
|
||||
|
||||
### Compile and Minify for Production
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Run Unit Tests with [Vitest](https://vitest.dev/)
|
||||
|
||||
```sh
|
||||
npm run test:unit
|
||||
```
|
||||
|
||||
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
npm run test:e2e # or `npm run test:e2e:ci` for headless testing
|
||||
```
|
||||
|
||||
### Lint with [ESLint](https://eslint.org/)
|
||||
|
||||
```sh
|
||||
npm run lint
|
||||
```
|
@ -0,0 +1,58 @@
|
||||
{
|
||||
"history": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "test-name1",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": false
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "test-name2",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": true
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "test-name3",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": false
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "test-name4",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": true
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "test-name5",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": false
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "test-name6",
|
||||
"last_message": "🐱⛸️➡️?",
|
||||
"seen": false,
|
||||
"date": "25/08/22",
|
||||
"new_messages": 1,
|
||||
"is_user": true
|
||||
}
|
||||
]
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useCounterStore = defineStore({
|
||||
id: "counter",
|
||||
state: () => ({
|
||||
counter: 0,
|
||||
}),
|
||||
getters: {
|
||||
doubleCount: (state) => state.counter * 2,
|
||||
},
|
||||
actions: {
|
||||
increment() {
|
||||
this.counter++;
|
||||
},
|
||||
},
|
||||
});
|
@ -1,9 +0,0 @@
|
||||
<script setup>
|
||||
import ChatList from "@/components/ChatList.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main>
|
||||
<ChatList />
|
||||
</main>
|
||||
</template>
|
Loading…
Reference in New Issue