diff --git a/pyproject.toml b/pyproject.toml index 5a147ae..2d5b6d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ dependencies = [ "requests", "asyncssh", "emoji", - "pywebpush", - "aiofiles" + "aiofiles", + "PyJWT" ] diff --git a/src/snek/static/emoji/snek1.gif b/src/snek/static/emoji/snek1.gif new file mode 100644 index 0000000..9d34458 Binary files /dev/null and b/src/snek/static/emoji/snek1.gif differ diff --git a/src/snek/system/template.py b/src/snek/system/template.py index ed153f0..89496a0 100644 --- a/src/snek/system/template.py +++ b/src/snek/system/template.py @@ -7,7 +7,7 @@ from jinja2 import TemplateSyntaxError, nodes from jinja2.ext import Extension from jinja2.nodes import Const - +emoji.EMOJI_DATA[''] = {"en": ":snek1:","status":2,"E":0.6, "alias":[":snek1:"]} def set_link_target_blank(text): soup = BeautifulSoup(text, 'html.parser') diff --git a/src/snek/templates/message.html b/src/snek/templates/message.html index bcff7fb..c271db3 100644 --- a/src/snek/templates/message.html +++ b/src/snek/templates/message.html @@ -1 +1 @@ -{#
{{user_nick[0]}}
{{user_nick}}
#}{% autoescape false %}{% linkify %}{% markdown %}{% autoescape false %}{% emoji %}{{ message }}{%raw %} {% endraw%}{% endemoji %}{%endautoescape%}{% endmarkdown %}{% endlinkify %}{% endautoescape %}{#
{{created_at}}
#} +{#
{{user_nick[0]}}
{{user_nick}}
#}{% autoescape false %}{% emoji %}{% linkify %}{% markdown %}{% autoescape false %}{{ message }}{%raw %} {% endraw%}{%endautoescape%}{% endmarkdown %}{% endlinkify %}{% endemoji %}{% endautoescape %}{#
{{created_at}}
#}