[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;
}
#message {
#xmpp-message {
background: #000;
font-weight: bold;
opacity: 10%;
@ -421,11 +421,11 @@ h3, h4, h5 {
right: 0;
}
#message {
#xmpp-message {
color: #fff;
}
#message:hover {
#xmpp-message:hover {
opacity: unset;
}
@ -538,7 +538,7 @@ h3, h4, h5 {
width: unset;
}
#message {
#xmpp-message {
display: none;
}
@ -551,6 +551,10 @@ h3, h4, h5 {
margin-bottom: 2.5em;
}
#notice {
padding-bottom: 1.5em;
}
#profile #qrcode {
margin-bottom: 1em;
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 %}
<span id="titles">
<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>
</a>
</span>
@ -131,7 +131,7 @@
</div>
</div>
{% if message %}
<div id="message">{{message}}</div>
<div id="xmpp-message">{{message}}</div>
{% endif %}
</div>
</body>

View file

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

View file

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