Jonas Schäfer
03ca7ac5bb
Unbreak translation text extraction
...
It was broken because of the same jinja2 update (presumably) which
prompted 68f72743c5 .
2022-05-30 20:51:37 +02:00
Jonas Schäfer
68f72743c5
Bump quart to version 0.17
...
This is needed because jinja2 had an update which caused the portal to
not work at all:
```
ImportError: cannot import name 'escape' from 'jinja2'
```
Quart needed updating for that.
This update required a lot of typefixes. Apparently, the "canned"
responses (like redirect) are now plain werkzeug responses, while
quart.Response does not inherit from werkzeug.Response (otherwise, we
could've changed the type annotations to werkzeug.Response everywhere,
but that doesn't work because a quart.Response is not a
werkzeug.Response).
P.S.: This time, I *did* check that avatar uploads don't break (see
b007afc ).
2022-05-30 17:37:54 +02:00
Daniel Holmgaard
8741efb2c4
Translated using Weblate (Danish)
...
Currently translated at 100.0% (321 of 321 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/da/
2022-05-30 14:01:08 +00:00
Daniel Holmgaard
a0e8933b64
Translated using Weblate (Danish)
...
Currently translated at 95.6% (307 of 321 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/da/
2022-05-26 23:01:53 +00:00
Zack Zhou
edb3154127
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 100.0% (321 of 321 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/zh_Hans/
2022-05-20 00:01:45 +00:00
Raka-loah
bbfe8624ef
Add Simplified Chinese support
2022-05-14 17:53:40 +08:00
David Baraniak
8bcf619cef
Translated using Weblate (French)
...
Currently translated at 100.0% (321 of 321 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/fr/
2022-04-11 13:00:44 +00:00
Jonas Schäfer
4bd58c1104
Add autocomplete hints to password forms
...
This allows user agents to do smart things like filling in the current
password only where it makes sense or integrate nicely with a password
manager.
Fixes #94 .
2022-01-22 15:34:27 +01:00
misiek
4f7a4fb5d4
Translated using Weblate (Polish)
...
Currently translated at 100.0% (321 of 321 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/pl/
2022-01-21 15:00:36 +00:00
uira
34a23f8505
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (321 of 321 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/id/
2022-01-18 14:59:01 +00:00
Jonas Schäfer
ebcb083b6a
Translated using Weblate (German)
...
Currently translated at 100.0% (321 of 321 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/de/
2022-01-18 14:59:01 +00:00
Kim Alvefur
2f0b38b149
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (321 of 321 strings)
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/sv/
2022-01-18 09:21:29 +00:00
Weblate
6244ad5c8a
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/
2022-01-17 16:27:36 +00:00
Jonas Schäfer
07fa1f0abd
Fix missing space in string
2022-01-17 17:27:26 +01:00
Weblate
3d22458f9b
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/
2022-01-17 16:26:16 +00:00
Jonas Schäfer
3b768fe220
Extract translations
2022-01-17 17:26:02 +01:00
Matthew Wild
19cf82e894
Merge pull request #111 from snikket-im/fix/byte-scaling
...
Fix corner cases of byte number formatting
2022-01-17 15:47:57 +00:00
Matthew Wild
fe0316708b
Merge pull request #113 from snikket-im/feature/flake8-print
...
Include flake8-print plugin
2022-01-17 15:47:21 +00:00
Jonas Schäfer
81b0a58dc9
Merge pull request #107 from Zash/storagestats
...
Show how much storage space is used by shared files
2022-01-17 16:40:16 +01:00
Jonas Schäfer
958b3365f7
Remove strange greeting copied over from user_home
2022-01-17 16:34:30 +01:00
Matthew Wild
05caf38d37
Use PUT method instead of POST, as expected by API
2022-01-17 16:33:46 +01:00
Matthew Wild
390ecded42
Include PEP data in export/import
2022-01-17 16:33:29 +01:00
Matthew Wild
f6395d4d9c
Complete the implementation of data import
2022-01-17 16:33:00 +01:00
Matthew Wild
32179c72cd
Add account data import UI on registration success page
2022-01-17 16:24:00 +01:00
Matthew Wild
3cb8185b1a
prosodyclient: Add API to import XEP-0227 account data
2022-01-17 16:23:58 +01:00
Matthew Wild
481379d03f
Switch to HTTP 204 to indicate no data to export
...
This is more robust, as it indicates the request was successfully
authenticated and processed, but that there is no data to export. This is
different from the URL not existing (which would also happen if the module was
unavailable, which should be a notable error instead).
2022-01-17 16:23:57 +01:00
Matthew Wild
275b302531
Add UI for exporting user account data
2022-01-17 16:23:56 +01:00
Matthew Wild
e18f727db0
prosodyclient: Add support for exporting a user's account data
2022-01-17 16:23:55 +01:00
Matthew Wild
f7429413cd
Add more icons to the repertoire
2022-01-17 16:23:35 +01:00
Jonas Schäfer
d5a46b69a6
Include flake8-print plugin
...
This alerts us of stray print statements, which should never occur
because this is a non-TUI application.
2022-01-15 17:07:16 +01:00
Jonas Schäfer
51f2ebbd13
Handle the correct exception when formatting extremely high amounts of bytes
...
Found in production. Yes really. Due to some borked LXC integration, my
snikket host reports
```
MemTotal: 9007199254740991 kB
MemFree: 9007199254690591 kB
MemAvailable: 9007199254690591 kB
```
That is more than 1024 TiB, so it tries to go further up in the scale,
which then causes a Guru Meditation because of the uncaught IndexError.
2022-01-10 17:32:11 +01:00
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
52d8047546
Correctly detect presence of storage metric
...
If there have been no uploads yet, the metric will be zero, so the if
condition would fail the test, so it would render as "unknown".
2022-01-10 16:56:31 +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/
2021-12-12 07:00:42 +00:00
Kim Alvefur
4af78f635e
Show how much storage space is used by shared files
...
Requires at least https://hg.prosody.im/prosody-modules/rev/883ad8b0a7c0
2021-11-18 19:50:47 +01: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
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
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