add add contact mock messages
This commit is contained in:
parent
aa53013cc4
commit
f0a89bd5e4
5 changed files with 24 additions and 20 deletions
|
|
@ -19,10 +19,10 @@ export async function main() {
|
|||
});
|
||||
|
||||
// Instantiate socket session with crimata-platorm.
|
||||
if (!socket) initSession();
|
||||
socket = true;
|
||||
// if (!socket) initSession();
|
||||
// socket = true;
|
||||
|
||||
// Begin audio stream.
|
||||
initRecorder();
|
||||
// initRecorder();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,9 +51,9 @@ export default defineComponent({
|
|||
|
||||
emitter.on("animateSend", async (message) => {
|
||||
try {
|
||||
renderArr.push(message)
|
||||
renderArr.push(message)
|
||||
// await invoke(message);
|
||||
//renderArr.push(data.value);
|
||||
// renderArr.push(data.value);
|
||||
} catch (e) {
|
||||
console.log("No response. Do not render.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,8 +54,12 @@ export default function useMessageView(): {
|
|||
}
|
||||
if (el) {
|
||||
if (shift) {
|
||||
|
||||
shiftOffset -= el.getBBox().height + messagePadding;
|
||||
// if (messageOffset.y < 445) {
|
||||
// shiftOffset -= 15;
|
||||
// } else {
|
||||
// shiftOffset -= el.getBBox().height + messagePadding;
|
||||
// }
|
||||
}
|
||||
animateMessage(el);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ export default defineComponent({
|
|||
|
||||
const emittMessage = () => {
|
||||
console.log('testing')
|
||||
counter.value++;
|
||||
emitter.emit('animateSend', Messages[counter.value])
|
||||
counter.value++;
|
||||
}
|
||||
return {
|
||||
emittMessage
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import { Message } from "@/types/message/index";
|
|||
|
||||
export const Messages: Message[] = [
|
||||
{
|
||||
content: "Welcome",
|
||||
context: "ai",
|
||||
content: "Good morning Dave",
|
||||
context: "launch",
|
||||
subContext: "",
|
||||
modifier: "ai",
|
||||
id: "2",
|
||||
|
|
@ -11,15 +11,15 @@ export const Messages: Message[] = [
|
|||
},
|
||||
{
|
||||
content:
|
||||
"add friend",
|
||||
context: "launch",
|
||||
"add contact",
|
||||
context: "addcontact",
|
||||
subContext: "",
|
||||
modifier: "sf",
|
||||
id: "1",
|
||||
time: ""
|
||||
},
|
||||
{
|
||||
content: "Did you mean to addcontact?",
|
||||
content: "I'm looking for name, crimata_idto addcontact. Feel free toenter only a subset of thisinformation, but then let meknow when you are done",
|
||||
context: "addcontact",
|
||||
subContext: "",
|
||||
modifier: "ai",
|
||||
|
|
@ -27,8 +27,8 @@ export const Messages: Message[] = [
|
|||
time: ""
|
||||
},
|
||||
{
|
||||
content: "yes",
|
||||
context: "fulfill",
|
||||
content: "andrew gundersen",
|
||||
context: "addcontact",
|
||||
subContext: "",
|
||||
modifier: "sf",
|
||||
id: "6",
|
||||
|
|
@ -36,16 +36,16 @@ export const Messages: Message[] = [
|
|||
},
|
||||
|
||||
{
|
||||
content: "Hey Anna, did you get the paper done?",
|
||||
context: "Mesage from Tommy McConville",
|
||||
subContext: "New Conversation",
|
||||
modifier: "ai",
|
||||
content: "gundersena@xavier.edu",
|
||||
context: "addcontact",
|
||||
subContext: "",
|
||||
modifier: "sf",
|
||||
id: "3",
|
||||
time: ""
|
||||
},
|
||||
{
|
||||
content: "Hey do you know Enrique Hernandez?",
|
||||
context: "Message from Crimata",
|
||||
content: "I already have a contact forandrew gundersen. Are you sureyou want this?",
|
||||
context: "addcontact",
|
||||
subContext: "",
|
||||
modifier: "ai",
|
||||
id: "7",
|
||||
|
|
|
|||
Loading…
Reference in a new issue