diff --git a/chatto/src/main/javascript/ts/src/view/UserView.ts b/chatto/src/main/javascript/ts/src/view/UserView.ts index 0aa6f02..6aefff7 100644 --- a/chatto/src/main/javascript/ts/src/view/UserView.ts +++ b/chatto/src/main/javascript/ts/src/view/UserView.ts @@ -91,24 +91,10 @@ export class UserView implements Observer { } // Add the active class to the current/clicked button else if (current.length == 0) { - let elem = document.getElementById("passphrase-initial") as any; - if (elem == null) { - log.error("passphraseInput element reference is null"); - return; - } - // passphrase = elem.value; - // if (passphrase == '' || passphrase == null) { - // // // alert('Please input passphrase') - // // // alertify.error('Please enter a passphrase'); - // log.error('passphrase is empty or null'); - // return; - // } // @ts-ignore: Object is possibly 'null'. document.getElementById("no-user-selected").hidden = true; // @ts-ignore: Object is possibly 'null'. document.getElementById("chat-card").hidden = false; - // @ts-ignore: Object is possibly 'null'. - elem.hidden = true; } // console.log(this.getElementsByClassName('to-user-span')); let elem = el.getElementsByClassName("to-user-span")[0] as HTMLElement; diff --git a/chatto/src/main/resources/static/img/default_avatar.jpg b/chatto/src/main/resources/static/img/default_avatar.jpg new file mode 100644 index 0000000..ef7a0a6 Binary files /dev/null and b/chatto/src/main/resources/static/img/default_avatar.jpg differ diff --git a/chatto/src/main/resources/templates/chat.html b/chatto/src/main/resources/templates/chat.html index fb99db3..14e2ee3 100644 --- a/chatto/src/main/resources/templates/chat.html +++ b/chatto/src/main/resources/templates/chat.html @@ -99,7 +99,6 @@

Please select a user

-
@@ -138,7 +137,6 @@
-
@@ -150,64 +148,6 @@
- - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/chatto/src/main/resources/templates/ts-test.html b/chatto/src/main/resources/templates/ts-test.html deleted file mode 100644 index 8c1ca31..0000000 --- a/chatto/src/main/resources/templates/ts-test.html +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - - - -
- - Chat -
- - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-

Chat with your friends

-
-
- -
-
- - Lorem ipsum dolor sit, amet consectetur adipisicing elit. Laboriosam dolorem nostrum consequatur eos voluptates. Ipsam ullam quos illo qui. Quaerat corrupti nisi numquam rerum quasi nesciunt deserunt fugit commodi consequatur! - -
-
-
-
- -
-
-
-
-
-
-
-
- -
-
- -
  • -
    -
    - - -
    - -
    -
  • -
    - - -
  • -
    -
    - - -
    - -
    -
    Dec 25
    -
    Hello how are you
    -
    -
    -
  • -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    Please select a user

    - -
    -
    -
    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - - \ No newline at end of file