Harvey Tindall
f7d2771263
add email templater with basic if statements
...
at this point I really should've just used text/template, but I guess
this way compatibility is kept with existing custom emails. If statement
works as so:
{if variable}variable was true{endif}
{if !variable}variable was false{endif}
no else yet, just do as above (two if statements).
4 years ago
Harvey Tindall
3273607fc3
translation: add fallback option to langMeta
...
If set to a language code (e.g fr-fr), any missing strings will be
filled in from that language (if possible) rather than from the default
en-us. Currently not used, but could be useful in the future for
variations of the same language.
4 years ago
Harvey Tindall
55e21f8be3
accounts: add user enable/disable & emails
4 years ago
ClankJake
dafb439a7d
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (45 of 45 strings)
Translation: jfa-go/Emails
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/emails/pt_BR/
4 years ago
Richard de Boer
ab94de2f95
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (45 of 45 strings)
Translation: jfa-go/Emails
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/emails/nl/
4 years ago
Harvey Tindall
3dc0df0ac2
fix user expiry when only month field set
4 years ago
Harvey Tindall
d701c5f27d
add months field to invites & expiry
4 years ago
Harvey Tindall
a8f71c83da
store language preference as cookie
4 years ago
Harvey Tindall
7a3e0d60f9
add expiry to welcome email, add dummy emailer for debugging
...
the "yourAccountWillExpire" has also been added to the editor for #81 .
To use the dummy emailer, set [email]/method to "dummy".
4 years ago
Harvey Tindall
2687af31ca
updater: immediately store executable
...
for some reason I kept the response body and downloaded file in memory,
which led to timeouts and failed updates.
4 years ago
Harvey Tindall
d51a6abb02
remove cl.md
4 years ago
Harvey Tindall
374ffbf01f
fix incomplete lang patching, add en-gb stub
...
en-gb is empty, so it's patched with en-us strings. Added so DD/MM/YY
date formatting was possible in the ui.
4 years ago
Harvey Tindall
871bc9f396
use proper date formatting on form for expiry
4 years ago
Harvey Tindall
66b7df7cde
use selected language for time format, add manual selector
...
You can now choose between 12h and 24h time in the top left language
menu. Your preference is stored by the browser for future visits.
4 years ago
Harvey Tindall
bc76770ca4
move 12h/24h time strings to common
4 years ago
Harvey Tindall
7196361cf6
(hopefully) get proper locale from browser
4 years ago
Harvey Tindall
3e73d16cce
merge language changes
4 years ago
Harvey Tindall
3f8414c70a
use unix timestamp for inv created & usedBy
...
usedBy is still stored as a string in invites.json to cope with existing
invites with times stored formatted. knz/strtime requires cgo for
strptime, so it has been replaced with the native itchyny/timefmt-go.
4 years ago
Harvey Tindall
6ec2186bdf
switch accounts tab to unix times
...
should now respect the client's locale.
4 years ago
ClankJake
6dd575b276
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (44 of 44 strings)
Translation: jfa-go/Emails
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/emails/pt_BR/
4 years ago
JoshiJoshiJoshi
1a98946d71
Translated using Weblate (German)
...
Currently translated at 100.0% (100 of 100 strings)
Translation: jfa-go/Setup
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/setup/de/
4 years ago
ClankJake
8922549bdb
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (11 of 11 strings)
Translation: jfa-go/Common Strings
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/common-strings/pt_BR/
4 years ago
Richard de Boer
173b49aeb7
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (11 of 11 strings)
Translation: jfa-go/Common Strings
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/common-strings/nl/
4 years ago
JoshiJoshiJoshi
eee6046465
Translated using Weblate (German)
...
Currently translated at 100.0% (11 of 11 strings)
Translation: jfa-go/Common Strings
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/common-strings/de/
4 years ago
JoshiJoshiJoshi
b76011be4f
translation from Weblate (German)
...
Currently translated at 100.0% (28 of 28 strings)
Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/form/de/
4 years ago
Richard de Boer
3d93d79b0b
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (44 of 44 strings)
Translation: jfa-go/Emails
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/emails/nl/
4 years ago
Harvey Tindall
7dcc9b20a1
clear user cache when user expires
4 years ago
Harvey Tindall
754b956206
remove extra logs
4 years ago
Harvey Tindall
47ac505cac
shutdown your background workers!
...
I believe everything #74 was caused by not shutting down the userDaemon
when we do a pseudo-restart. shutdown of it and the invite daemon are
now deferred so this should fix any problems and reduce log spam.
4 years ago
Harvey Tindall
e6e5231f63
add extra logging
4 years ago
Harvey Tindall
78049d4a33
hyphenate/dehyphenate users.json if necessary
...
doubt this would have caused problems anyway but why not.
4 years ago
Harvey Tindall
8a6cfe0b4d
disallow negative values in ExtendExpiry, fix nil map err
4 years ago
Harvey Tindall
afedc78113
only load users if they don't exist already
...
another guess for #77 .
4 years ago
Harvey Tindall
76b822213e
add more error logging; mutex for app.storage.users
4 years ago
Harvey Tindall
ab3d5f3321
fix logging for expiry extension
...
also delete expiries for users that no longer exist.
4 years ago
Harvey Tindall
e1d42c8a87
Update CONTRIBUTING.md, mb 0.3.3
...
One last missing field added for #76 .
4 years ago
Harvey Tindall
f53c852a4d
bump mb to v0.3.2
...
includes missing struct fields for user Policy, fixes #76 .
4 years ago
Harvey Tindall
aaea889e47
use apt-get in drone.yml
4 years ago
Harvey Tindall
bf98c74ecf
Merge pull request #75 from Toucan-Sam/patch-1
...
Fix docker link in README.md
4 years ago
Toucan-Sam
fcadabd339
Fix docker link in README.md
4 years ago
Harvey Tindall
2a0edeb3c5
bump mediabrowser version, more consistent logs
...
uses descriptive errors added in mb v0.2.0. Also improved
the consistency of logs in api.go/main.go.
4 years ago
Harvey Tindall
30f16e7207
email: use strconv.Itoa instead of sprintf
4 years ago
Harvey Tindall
dbe7e2e659
remove ts-debug
4 years ago
Harvey Tindall
e16f05b130
use build constraints for embed, clean up makefile
...
internal-files/external-files and compile-debug are gone, the
environment variables INTERNAL=on/off and DEBUG=on/off replace them.
4 years ago
Harvey Tindall
07573a515a
merge translation
4 years ago
Harvey Tindall
b3a2de50cf
hide no_username support message on setup
...
fixes #74 .
4 years ago
Marketos Damigos
5388d3d4c0
Translated using Weblate (Greek)
...
Currently translated at 100.0% (11 of 11 strings)
Translation: jfa-go/Common Strings
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/common-strings/el/
4 years ago
Marketos Damigos
c392d48174
Translated using Weblate (Greek)
...
Currently translated at 100.0% (44 of 44 strings)
Translation: jfa-go/Emails
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/emails/el/
4 years ago
Marketos Damigos
967fab3411
Translated using Weblate (Greek)
...
Currently translated at 100.0% (100 of 100 strings)
Translation: jfa-go/Setup
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/setup/el/
4 years ago
Marketos Damigos
d7845b78f6
Translated using Weblate (Greek)
...
Currently translated at 100.0% (43 of 43 strings)
Translation: jfa-go/Emails
Translate-URL: https://weblate.hrfee.dev/projects/jfa-go/emails/el/
4 years ago