Jonas Schäfer
b4e6ee8943
Fix formatting of zero bytes
...
Previously, that would raise a ValueError (math domain error), because
log(0) is undefined.
2022-01-10 17:31:50 +01:00
Jonas Schäfer
aed9ad1cde
Merge pull request #93 from Zash/debianbullseye
...
Dockerfile: Switch base image to Debian 11
2022-01-10 16:40:28 +01:00
Kim Alvefur
b545c137b1
Dockerfile: Switch base image to Debian 11
2022-01-10 16:27:38 +01:00
Matthew Wild
47642dc384
Merge pull request #108 from snikket-im/feature/multi-stage-dockerfile
...
Dockerfile: Split build into multiple stages
2022-01-10 14:21:57 +00:00
Jonas Schäfer
5d7183a0b8
Reinstate cache deletion in multi-stage build
...
Previously, the multi-stage build increased the image size by about 30
MiB (163MiB -> 191MiB). Dropping the caches reduces the image size down
to 159MiB, leading to a net improvement of 4 MiB.
2022-01-08 13:29:28 +01:00
Matthew Wild
c1cf6ab1e5
Dockerfile: Split build into multiple stages
...
Currently the Dockerfile has a single RUN directive with all the needed
commands in it. This optimizes for image size by not creating too many
"layers" (which are only additive). However it means the result that gets
cached can basically never be reused, because any change to the source code
will need to execute the whole RUN block again.
This commit switches to a docker "multi-stage" build, where we have a build
image that is separate from the final one that gets published. The build
image can be cached locally, and size is no longer a significant concern.
This approach allows the single RUN command to be split up into multiple RUN
commands that only execute when strictly needed (i.e. when their result
is not cached locally).
This drastically improves the build time when rebuilding the image after
a simple code change, because the build image doesn't have to install all
the apt packages, for example. This leads to a nicer developer experience
when using docker locally for development and testing.
2022-01-08 13:17:52 +01:00
Jonas Schäfer
aee53a2e1a
Merge pull request #109 from snikket-im/feature/fix-mypy
...
Fix mypy false positives
2022-01-08 13:14:28 +01:00
Jonas Schäfer
3a81a0140b
Revert "Fix spurious mypy error"
...
This reverts commit 28ff19c19c .
2022-01-08 13:12:30 +01:00
Jonas Schäfer
5b4d4ddd36
Fix some mypy regression
2022-01-08 13:12:30 +01:00
Jonas Schäfer
28ff19c19c
Fix spurious mypy error
...
For whatever reason, it thinks that babel has no __version__ field, but
it in fact does.
2022-01-08 12:52:31 +01:00
uira
8e3837f704
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (303 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/id/
beta.20220113
2021-12-12 07:00:42 +00:00
Matthew Wild
98e7de3166
Merge pull request #104 from snikket-im/feature/enable-restricted-users
...
admin: Show restricted user role in the UI
beta.20211118
beta.20211119
2021-11-09 17:03:08 +00:00
Matthew Wild
61c71b2145
admin: Inline restricted user role name
...
It was a variable only for the benefit of translators while disabled.
2021-11-09 17:00:59 +00:00
Matthew Wild
6b35e9a259
admin: Show restricted user role in the UI
2021-11-09 16:40:50 +00:00
Matthew Wild
58c2112fec
Merge pull request #102 from snikket-im/feature/pin-wtforms
...
Pin wtforms to 2.x
2021-11-09 10:48:18 +00:00
Jonas Schäfer
c856afee82
Pin wtforms to 2.x
...
wtforms 3.0 is incompatible with our code. A separate issue will be
filed to address the incompatibilities, but this should be enough to get
working images out of it.
With 3.x, we're seeing:
```
File "/home/horazont/Projects/python/snikket-web-portal/snikket_web/main.py", line 35, in LoginForm
address = wtforms.TextField(
AttributeError: module 'wtforms' has no attribute 'TextField'
```
and the portal fails to start.
2021-11-08 18:07:34 +01:00
Matthew Wild
c8356a8e9e
Merge pull request #101 from snikket-im/feature/https-qr
...
Force invite QR code to HTTPS
2021-10-15 14:32:57 +01:00
Jonas Schäfer
0eb464f428
Force invite QR code to HTTPS
...
We could also do a thing with ProxyFix, but honestly, this should always
be HTTPS.
2021-10-15 15:21:22 +02:00
misiek
2a6ef3c8f1
Translated using Weblate (Polish)
...
Currently translated at 100.0% (303 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/pl/
2021-09-03 15:00:35 +00:00
Matthew Wild
b5d148458a
Merge pull request #98 from snikket-im/feature/apple
...
🎉 Finally set the URL for the App Store
2021-09-02 14:42:02 +01:00
Jonas Schäfer
261758b07a
🎉 Finally set the URL for the App Store
...
See-Also: https://snikket.org/blog/snikket-ios-public-release/
2021-08-31 17:03:21 +02:00
Jonas Schäfer
ff99c9488a
Merge pull request #96 from Zash/invite_success_link
...
Link to main page after successful registration
2021-08-30 15:47:41 +02:00
Kim Alvefur
fe78631039
Link to main page after successful registration
...
Someone who registers via the web might also be interested in the web
portal.
Thanks to Jonas and Matthew for feedback on draft commit and help with
whatever this template syntax is.
Also no thanks to git for not actually having draft commits as a concept.
Mercurial is so much nicer to work with.
2021-08-29 15:10:02 +02:00
Kim Alvefur
12ddd288bf
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (303 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/sv/
2021-08-01 14:00:44 +00:00
misiek
633fb0d084
Translated using Weblate (Polish)
...
Currently translated at 97.0% (294 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/pl/
2021-08-01 14:00:44 +00:00
uira
f9690063bc
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (303 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/id/
2021-06-21 23:01:04 +00:00
Jonas Schäfer
65ed50acd3
Merge pull request #90 from snikket-im/hotfix/f-droid-button
...
Fix F-Droid installation button
2021-06-21 20:23:02 +02:00
Jonas Schäfer
aa04320d70
Fix F-Droid installation button
...
The button was broken because it was classified as popover, which
means that the JavaScript code will mess with it. In reality,
*that* button was supposed to point at the actual market:// URL.
So we just remove the class and associated data here to fix that.
Fixes #89 .
2021-06-20 14:14:30 +02:00
Link Mauve
818d50a1bb
Translated using Weblate (French)
...
Currently translated at 97.6% (296 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/fr/
2021-06-19 15:01:05 +00:00
Jonas Schäfer
c7ba7985ea
Translated using Weblate (English (United Kingdom))
...
Currently translated at 40.5% (123 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/en_GB/
2021-06-19 15:01:05 +00:00
Jonas Schäfer
223d127364
Translated using Weblate (English)
...
Currently translated at 70.2% (213 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/en/
2021-06-19 15:01:04 +00:00
Jonas Schäfer
3a2c4543c4
Translated using Weblate (German)
...
Currently translated at 100.0% (303 of 303 strings)
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/de/
2021-06-19 15:01:04 +00:00
Weblate
c307f057b9
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/
2021-06-18 14:20:21 +00:00
Jonas Schäfer
243d5ba236
Merge pull request #86 from snikket-im/feature/show-deleted-circle-members
...
admin: Show deleted users in circle members
2021-06-18 16:20:18 +02:00
Jonas Schäfer
3d62efccfc
admin: Show deleted users in circle members
...
This helps with removing those users from circles, to avoid them
popping up in peoples roster again.
Even though removal from a circle also only partially works
(roster entries are for instance not cleared), this helps with
ghost users reappearing all the time.
2021-06-18 16:18:22 +02:00
Jonas Schäfer
9d26e39025
Merge pull request #87 from snikket-im/feature/mypy-ci-fix
...
Install build requirements for mypy CI check
2021-06-18 16:18:12 +02:00
Jonas Schäfer
874f0447ba
Install build requirements for mypy CI check
...
Otherwise, the toml type hints are missing which mypy does not
like.
2021-06-18 16:14:45 +02:00
Jonas Schäfer
0f2127a672
Bring happiness to mypy
2021-06-18 16:11:22 +02:00
Weblate
20d84e7dd1
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/
2021-06-18 14:05:55 +00:00
Jonas Schäfer
a02e66023c
Fix missing extract_translations run
2021-06-18 16:05:38 +02:00
Jonas Schäfer
e7db9cc772
Fix untranslated table header in admin_edit_circle.html
2021-06-17 17:02:26 +02:00
Jonas Schäfer
e91fb45374
Merge pull request #85 from snikket-im/auto-versioning
...
Automatically determine version from build info or git
2021-05-31 17:51:59 +02:00
Matthew Wild
531565d55c
Automatically determine version from build info or git
2021-05-31 11:20:39 +01:00
Kim Alvefur
c6307619f9
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (302 of 302 strings)
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/sv/
2021-05-28 21:00:56 +00:00
Weblate
da2668cbbc
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/
2021-05-27 18:31:31 +00:00
Link Mauve
765e3890b4
Translated using Weblate (French)
...
Currently translated at 97.4% (272 of 279 strings)
Translation: Snikket/Web Portal
Translate-URL: https://i18n.sotecware.net/projects/snikket/web-portal/fr/
2021-05-27 18:31:30 +00:00
Jonas Schäfer
b40a625283
admin: allow disabling display of metrics
...
This is useful in situations where the admins of the Snikket
server (i.e. those who care for the docker containers) are not the
same people as the people who are admins of the Snikket service
(i.e. those who care for the users).
2021-05-27 17:59:40 +02:00
Jonas Schäfer
8a293985ca
Implement system status panel
...
This offers system metrics and a way to send a broadcast
message to all online or registered users.
Requires prosody-modules cade5dac1003.
2021-05-27 17:21:58 +02:00
Jonas Schäfer
13b2a76c3d
Fix mypy errors introduced in b007afc901
2021-05-27 16:33:46 +02:00
Jonas Schäfer
28e01c336d
Do not install quart 0.15
...
As we saw in b007afc901 , we cannot
use that version right now.
2021-05-25 18:56:15 +02:00