[WIP] Add caching functionality.

This commit is contained in:
Schimon Jehudah, Adv. 2024-10-15 15:38:27 +03:00
parent 0b85570631
commit 92b4f5d6d2
7 changed files with 562 additions and 603 deletions

View file

@ -409,7 +409,7 @@ h3, h4, h5 {
text-shadow: 1px 1px #000; text-shadow: 1px 1px #000;
} }
#message { #xmpp-message {
background: #000; background: #000;
font-weight: bold; font-weight: bold;
opacity: 10%; opacity: 10%;
@ -421,11 +421,11 @@ h3, h4, h5 {
right: 0; right: 0;
} }
#message { #xmpp-message {
color: #fff; color: #fff;
} }
#message:hover { #xmpp-message:hover {
opacity: unset; opacity: unset;
} }
@ -538,7 +538,7 @@ h3, h4, h5 {
width: unset; width: unset;
} }
#message { #xmpp-message {
display: none; display: none;
} }
@ -551,6 +551,10 @@ h3, h4, h5 {
margin-bottom: 2.5em; margin-bottom: 2.5em;
} }
#notice {
padding-bottom: 1.5em;
}
#profile #qrcode { #profile #qrcode {
margin-bottom: 1em; margin-bottom: 1em;
outline: solid; outline: solid;

1
details/README Normal file
View file

@ -0,0 +1 @@
This directory caches textual data of Jabber IDs.

1137
fasi.py

File diff suppressed because it is too large Load diff

View file

@ -1 +0,0 @@
This directory caches vcard files.

View file

@ -48,7 +48,7 @@
{% endif %} {% endif %}
<span id="titles"> <span id="titles">
<h1>{% if jid_title %}{{jid_title}}{% else %}Group Chat{% endif %}</h1> <h1>{% if jid_title %}{{jid_title}}{% else %}Group Chat{% endif %}</h1>
<a href="/{{jid_bare}}"> <a href="/j/{{jid_bare}}">
<h2>{% if jid_note %}{{jid_note}}{% else %}{{jid_bare}}{% endif %}</h2> <h2>{% if jid_note %}{{jid_note}}{% else %}{{jid_bare}}{% endif %}</h2>
</a> </a>
</span> </span>
@ -131,7 +131,7 @@
</div> </div>
</div> </div>
{% if message %} {% if message %}
<div id="message">{{message}}</div> <div id="xmpp-message">{{message}}</div>
{% endif %} {% endif %}
</div> </div>
</body> </body>

View file

@ -91,8 +91,8 @@
{% if links %} {% if links %}
<div id="action"> <div id="action">
{% for link in links %} {% for link in links %}
<a href="{{link[1]}}"> <a href="{{link['href']}}" id="{{link['iden']}}">
{{link[0]}} {{link['name']}}
</a> </a>
{% endfor %} {% endfor %}
</div> </div>
@ -144,7 +144,7 @@
</div --> </div -->
</div> </div>
{% if message %} {% if message %}
<div id="message">{{message}}</div> <div id="xmpp-message">{{message}}</div>
{% endif %} {% endif %}
</div> </div>
</body> </body>

View file

@ -48,7 +48,7 @@
{% endif %} {% endif %}
<span id="titles"> <span id="titles">
<h1>{{node_title}}</h1> <h1>{{node_title}}</h1>
<a href="/{{jid_bare}}/{{node_name}}"> <a href="/j/{{jid_bare}}/{{node_name}}">
<h2>{{jid_title}}</h2> <h2>{{jid_title}}</h2>
</a> </a>
{% if node_note %} {% if node_note %}
@ -141,7 +141,7 @@
</div> </div>
</div> </div>
{% if message %} {% if message %}
<div id="message">{{message}}</div> <div id="xmpp-message">{{message}}</div>
{% endif %} {% endif %}
</div> </div>
</body> </body>