]> Repos - mime-chat/commitdiff
add add contact mock messages
authorriqo <hernandeze2@xavier.edu>
Mon, 15 Feb 2021 15:49:01 +0000 (09:49 -0600)
committerriqo <hernandeze2@xavier.edu>
Mon, 15 Feb 2021 15:49:01 +0000 (09:49 -0600)
src/background/run.ts
src/components/messageView/index.vue
src/components/messageView/viewDetails/visualizer.ts
src/views/home.vue
src/views/mockMessages.ts

index d3ab52106f686ed9d07c1e11080a63acf67e1164..1299f0a0aaef40cfd5f5effd00e612238319c073 100644 (file)
@@ -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();
 
 }
index c3d9c99e3dc53b36eef24dd41db95ccfaf8b287c..e210cc2a0533ade66466a90da0adfabb1ba07ecd 100644 (file)
@@ -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.");
         }
index 455381fd6a7041d035e92c1efa8f66148b621605..28ba6e78b9d35287b6f2d044cdc3aebd9904d7a7 100644 (file)
@@ -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);
         }
index b57a56b7908c0a03e0e48563211a1fdcb4fecce9..9a4803149dd7a085468ef2de724fe9898f68d355 100644 (file)
@@ -27,8 +27,8 @@ export default defineComponent({
 
       const emittMessage = () => {
           console.log('testing')
-            counter.value++;
             emitter.emit('animateSend', Messages[counter.value])
+            counter.value++;
           }
           return {
                   emittMessage
index 7cb49088c59167475923955384bf63c818ac749e..ac84a25defa38dee19bde4975660425f04150d69 100644 (file)
@@ -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",