-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic chat display on the route /msg/user1/user2
- Loading branch information
1 parent
d20772e
commit 53aae8a
Showing
8 changed files
with
196 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
+ GET/POST endpoint for registration | ||
+ Chat page design | ||
+ Left header for navigation | ||
- Chat page design (two-sided columns) | ||
- Left header for navigation | ||
- index page on route '/' | ||
- User detail page | ||
- Encryption/decryption of message data | ||
- logout function and proper authentication (maybe sessions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="{{ url_for('static', filename='jquery-3.6.0.js') }}"></script> | ||
<script src="{{ url_for('static', filename='myrequests.js') }}"></script> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='spectre.css') }}"></link> | ||
<title>RSA chatroom - {{ other_user|title }}</title> | ||
</head> | ||
<body> | ||
{% for msg in messages %} | ||
<div class="card columns"> | ||
<div class='card-header'>from: | ||
<span class='chip'> | ||
<a href='#' }}>{{ msg['sender'] }}</a> | ||
</span> | ||
</div> | ||
{% if msg['sender'] is eq this_user %} | ||
<div class='card-body bg-primary float-right col-2'>{{ msg['data'] }}</div> | ||
{% else %} | ||
<div class='card-body bg-secondary float-left col-2'>{{ msg['data'] }}</div> | ||
{% endif %} | ||
<div class='card-footer'> | ||
<span class='chip'> | ||
<a href='#' }}>{{ msg['receiver'] }}</a> | ||
</span> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
<form action="{{ url_for('msg.send_message', sender=this_user_id, recipient=other_user_id) }}" | ||
id='msg-sending' method='POST'> | ||
<input class='form-input' type='textarea' name='message' placeholder='Say something'> | ||
<input class='btn btn-primary' type='submit' value='Send'> | ||
</form> | ||
<body> | ||
</html> |