File tree Expand file tree Collapse file tree 4 files changed +6
-68
lines changed Expand file tree Collapse file tree 4 files changed +6
-68
lines changed Original file line number Diff line number Diff line change @@ -34,40 +34,6 @@ def serve_index():
34
34
35
35
@views .get ("/r/<Room:room>/" )
36
36
def view_room (room ):
37
- messageId = 100
38
- response = ''
39
- print ()
40
- try :
41
- # response = message_single(room=room, msg_id=messageId)
42
- response = messages_recent (room = room )
43
- print (' +++ NO ERROR +++ ' )
44
- if response .status_code == 200 :
45
- print (" === EXISTS === " )
46
-
47
- request_data = response .json [0 ]['data' ]
48
- signature = response .json [0 ]['signature' ]
49
- request = response .json [0 ]
50
- epoch_time = request ['posted' ]
51
- decoded_data = decode_base64 (request_data )
52
- print ('protobuf' )
53
- print (request_data )
54
- # content = protobuf.Content()
55
- print (protobuf .Content ().ParseFromString (decoded_data ) )
56
- print ()
57
- print ('MSG BODY:' )
58
- print (type (response .json [0 ]) )
59
- print (request )
60
- print (message_contents (decoded_data ) )
61
- my_time = time .strftime ('%Y-%m-%d %H:%M:%S' , time .localtime (epoch_time ))
62
- print (my_time )
63
- # print(msg )
64
- print ()
65
- else :
66
- print (" !!! NO MESSAGE !!! " )
67
- print ()
68
- except Exception as e :
69
- print ("ERROR MSG: {}" .format (e ))
70
-
71
37
if not room .default_read :
72
38
abort (http .FORBIDDEN )
73
39
Original file line number Diff line number Diff line change 4
4
< title > sogs </ title >
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
6
< link rel ="stylesheet " href ="{{ url_for('static', filename='output.css') }} ">
7
- <!-- <script src="https://cdn.tailwindcss.com"></script> -->
8
-
9
- <!-- <script>
10
- tailwind.config = {
11
- darkMode: 'class',
12
- theme: {
13
- extend: {
14
- colors: {
15
- sessionGreen: '#00e97b',
16
- lightGray: '#585858',
17
- otherGray: '#272726'
18
- }
19
- },
20
- screens : {
21
- 'xs' : '365px',
22
- 'sm' : '640px',
23
- 'md' : '768px',
24
- 'lg' : '1024px',
25
- 'xl' : '1280px',
26
- '2xl' : '1536px'
27
- }
28
- }
29
- }
30
- </script> -->
31
-
32
7
</ head >
33
8
< body class ="dark:bg-otherGray transition duration-500 h-full flex flex-col overflow-hidden ">
34
9
Original file line number Diff line number Diff line change 9
9
< section class ="overflow-y-auto text-black dark:text-white shrink ">
10
10
< div class ="m-5 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 2xl:grid-cols-6 justify-items-center gap-y-2 gap-x-2 ">
11
11
{% for room in rooms %}
12
- {% for i in range(8) %}
13
- < a class ="px-5 flex flex-col justify-center items-center transition duration-500 text-center w-full h-24
14
- border-2 border-sessionGreen bg-gray-300 hover:bg-black hover:text-white md:h-28
15
- dark:border-sessionGreen rounded-full dark:bg-otherGray dark:hover:bg-sessionGreen dark:hover:text-black " href ="/r/{{room.token}} ">
16
- < p class =" text-2xl xs:text-3xl sm:text-4xl "> {{room.token }}</ p >
17
- < p class ="text-sm xs:text-lg sm:text-xl "> {{room.active_users }} Active User{{'s' if room.active_users > 1}}</ p >
18
- </ a >
19
- {% endfor %}
12
+ < a class ="px-5 flex flex-col justify-center items-center transition duration-500 text-center w-full h-24
13
+ border-2 border-sessionGreen bg-gray-300 hover:bg-black hover:text-white md:h-28
14
+ dark:border-sessionGreen rounded-full dark:bg-otherGray dark:hover:bg-sessionGreen dark:hover:text-black " href ="/r/{{room.token}} ">
15
+ < p class =" text-2xl xs:text-3xl sm:text-4xl "> {{room.token }}</ p >
16
+ < p class ="text-sm xs:text-lg sm:text-xl "> {{room.active_users }} Active User{{'s' if room.active_users > 1}}</ p >
17
+ </ a >
20
18
{% endfor %}
21
19
</ div >
22
20
</ section >
Original file line number Diff line number Diff line change 41
41
42
42
43
43
{% block body %}
44
- <!-- <button class="bg-black text-white dark:bg-sessionGreen dark:text-black rounded px-1 py-1 my-2" > <a href="/">< Back</a></button> -->
45
44
46
45
< section class ="overflow-y-auto text-black dark:text-white flex flex-col-reverse items-center ">
47
46
{% if show_recent %}
You can’t perform that action at this time.
0 commit comments