2213 Commits

Author SHA1 Message Date
Harvey Tindall
5fe0e0ab9f timer: add scheduler/timer with day precision
timer.go has a timer struct for scheduling things to happen once every n
days before or after a given time. Pass a string list of day deltas to
parse, a unit to parse these as (only 24/-24 hours really make sense),
then call Check() on the returned struct with your "since" time, and the
time a timer was last fired. If one goes off, store the time so you can
pass it in subsequent calls. To be used in the user daemon for "remind
every N days" functionality. Was initially gonna allow more precision
than days, but ran into problems, most likely from me overcomplicating
it and not wanting to store too much data. some tests also in
timer_test.go.
2025-08-04 16:08:15 +01:00
Harvey Tindall
db1e812190 discord: retry auth/command register, do latter in bulk
re-use the auth retry options from the config for initial d.bot.Open and
for registering commands. The latetr is now done with the BulkOverwrite
    method, since it seems to work now. For #427.
2025-08-03 20:05:22 +01:00
Harvey Tindall
aab8d6ed77 template: report errors/warnings
error field is now logged at all points of use.
2025-08-03 18:39:47 +01:00
Harvey Tindall
5d49a56d94 template: add tests, fix up easy holes
should cope with double-braced blocks now (treating them the same as
single-braced. templateEmail now returns an error, which should not be
seen as catastrophic, but reports likely mistakes.
2025-08-03 17:36:33 +01:00
Harvey Tindall
492d5715fe ts: fix setTimeout return type for new tsc 2025-07-20 13:53:48 +01:00
Harvey Tindall
0595224daa meta: update esbuild 2025-07-20 13:50:53 +01:00
Harvey Tindall
58098a45af meta: update deps
npm and easyproxy's go deps
2025-07-20 13:48:37 +01:00
Harvey Tindall
a0bafadc39 site: modernise makefile
it's a proper one now.
2025-07-20 13:20:42 +01:00
Harvey Tindall
2190f482d1 user-d: dont bother attempting users w no contact 2025-07-20 12:41:27 +01:00
Harvey Tindall
024b692b8c Merge branch 'main' of github.com:hrfee/jfa-go 2025-07-20 12:38:55 +01:00
Harvey Tindall
6a5e97b788 user-d: patch holes in expiry mechanism
I hope so, at least. Saw a few areas where I wasn't sure something
couldn't break so I did some maybe redundant checks. For #419.
2025-07-20 12:37:26 +01:00
Anonymous
b8a1e416d4 Translated using Weblate (English (United Kingdom))
Currently translated at 78.6% (107 of 136 strings)

Translation: jfa-go/Setup
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/setup/en_GB/
2025-07-19 21:20:20 +02:00
Anonymous
3ea8f272f7 Translated using Weblate (Swedish)
Currently translated at 66.9% (91 of 136 strings)

Translation: jfa-go/Setup
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/setup/sv/
2025-07-19 21:20:20 +02:00
Anonymous
7c3f84ba9c Translated using Weblate (Greek)
Currently translated at 63.9% (87 of 136 strings)

Translation: jfa-go/Setup
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/setup/el/
2025-07-19 21:20:20 +02:00
RebootGod
0094ce7d57 translation from Weblate (Indonesian)
Currently translated at 97.0% (66 of 68 strings)

Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/id/
2025-07-19 21:19:47 +02:00
RebootGod
c2b08a326d Translated using Weblate (Indonesian)
Currently translated at 66.4% (83 of 125 strings)

Translation: jfa-go/Setup
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/setup/id/
2025-07-19 21:19:47 +02:00
RebootGod
ba183660a9 translation from Weblate (Indonesian)
Currently translated at 39.7% (109 of 274 strings)

Translation: jfa-go/Admin Page
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/admin/id/
2025-07-19 21:19:47 +02:00
RebootGod
423d8f5063 Translated using Weblate (Indonesian)
Currently translated at 98.0% (50 of 51 strings)

Translation: jfa-go/Common Strings
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/common-strings/id/
2025-07-19 21:19:47 +02:00
RebootGod
3c38a0edbf Translated using Weblate (Indonesian)
Currently translated at 96.4% (54 of 56 strings)

Translation: jfa-go/Emails
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/emails/id/
2025-07-19 21:19:47 +02:00
danieledu007
4df313fa43 translation from Weblate (Spanish)
Currently translated at 67.8% (186 of 274 strings)

Translation: jfa-go/Admin Page
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/admin/es/
2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
35f1c06d34 translation from Weblate (Thai)
Currently translated at 27.3% (75 of 274 strings)

Translation: jfa-go/Admin Page
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/admin/th/
2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
12e745691e Translated using Weblate (Thai)
Currently translated at 100.0% (125 of 125 strings)

Translation: jfa-go/Setup
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/setup/th/
2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
25ed44a5f3 Translated using Weblate (Thai)
Currently translated at 100.0% (56 of 56 strings)

Translation: jfa-go/Emails
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/emails/th/
2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
4ea695d81e Translated using Weblate (Thai)
Currently translated at 100.0% (12 of 12 strings)

Translation: jfa-go/Telegram/Matrix/Discord bots
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/chat-bots/th/
2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
dd91a5cb86 Translated using Weblate (Thai)
Currently translated at 100.0% (10 of 10 strings)

Translation: jfa-go/Password Reset Links
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/password-reset-links/th/
2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
9998aff69a Translated using Weblate (Thai)
Currently translated at 100.0% (51 of 51 strings)

Translation: jfa-go/Common Strings
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/common-strings/th/
2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
5ebcb9d51c translation from Weblate (Thai)
Currently translated at 100.0% (68 of 68 strings)

Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/th/
2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
c60f93dfe8 add translation from Weblate (Thai) 2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
95e77b2e21 Added translation using Weblate (Thai) 2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
5a335a1465 Added translation using Weblate (Thai) 2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
4e7256fb6c Added translation using Weblate (Thai) 2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
dd8119d952 Added translation using Weblate (Thai) 2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
4f8fd7fb5b Added translation using Weblate (Thai) 2025-07-19 21:19:47 +02:00
Cartoon Kritthapath Yaviraj
bd573f34c0 add translation from Weblate (Thai) 2025-07-19 21:19:47 +02:00
nehogyirj
37576f332c translation from Weblate (Hungarian)
Currently translated at 38.6% (106 of 274 strings)

Translation: jfa-go/Admin Page
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/admin/hu/
2025-07-19 21:19:47 +02:00
Muhammad Bayiz
81f137eed1 translation from Weblate (Kurdish (Central))
Currently translated at 36.7% (25 of 68 strings)

Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/ckb/
2025-07-19 21:19:47 +02:00
Sainaif
cae22a9316 Translated using Weblate (Polish)
Currently translated at 53.6% (67 of 125 strings)

Translation: jfa-go/Setup
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/setup/pl/
2025-07-19 21:19:47 +02:00
Sainaif
cbb8de01b7 Added translation using Weblate (Persian) 2025-07-19 21:19:47 +02:00
Blackspirits
a2e263a7d1 Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (12 of 12 strings)

Translation: jfa-go/Telegram/Matrix/Discord bots
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/chat-bots/pt_PT/
2025-07-19 21:19:47 +02:00
Blackspirits
7a51acbfe4 Added translation using Weblate (Portuguese) 2025-07-19 21:19:47 +02:00
Blackspirits
aa04ede019 translation from Weblate (Portuguese (Portugal))
Currently translated at 100.0% (68 of 68 strings)

Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/pt_PT/
2025-07-19 21:19:47 +02:00
Blackspirits
9cca1d97cd add translation from Weblate (Portuguese) 2025-07-19 21:19:47 +02:00
TrollCLGT
e7fcdf0e65 Translated using Weblate (Vietnamese)
Currently translated at 33.3% (17 of 51 strings)

Translation: jfa-go/Common Strings
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/common-strings/vi/
2025-07-19 21:19:47 +02:00
Vittat
d123d6aa9e Translated using Weblate (Spanish)
Currently translated at 100.0% (12 of 12 strings)

Translation: jfa-go/Telegram/Matrix/Discord bots
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/chat-bots/es/
2025-07-19 21:19:47 +02:00
Vittat
42d5785025 translation from Weblate (Spanish)
Currently translated at 97.0% (66 of 68 strings)

Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/es/
2025-07-19 21:19:47 +02:00
Harvey Tindall
bdd14604d5 accounts: double click "select all" to load and select -all-
Clicking once will select all visible records, and show as
indeterminate. Clicking again will load all records, and select them all
once done.
2025-07-18 18:04:23 +01:00
Harvey Tindall
908e9f07c0 Merge pull request #420 from hrfee/dependabot/npm_and_yarn/multi-1083d179d6
build(deps): bump on-headers and morgan
2025-07-18 13:44:27 +01:00
Harvey Tindall
488ba7be38 userpage: use window.pages.MyAccount instead of
window.location.pathname

fixes #418 hopefully.
2025-07-18 13:23:25 +01:00
Harvey Tindall
a0165f6f02 auth: strip port from domain if present
app.UseProxyHost being enabled means app.ExternalDomain sometimes
returns a domain/IP with a port attached. This is now removed, so the
refresh cookie is set correctly.
2025-07-18 12:59:39 +01:00
dependabot[bot]
92f825963a build(deps): bump on-headers and morgan
Bumps [on-headers](https://github.com/jshttp/on-headers) and [morgan](https://github.com/expressjs/morgan). These dependencies needed to be updated together.

Updates `on-headers` from 1.0.2 to 1.1.0
- [Release notes](https://github.com/jshttp/on-headers/releases)
- [Changelog](https://github.com/jshttp/on-headers/blob/master/HISTORY.md)
- [Commits](https://github.com/jshttp/on-headers/compare/v1.0.2...v1.1.0)

Updates `morgan` from 1.10.0 to 1.10.1
- [Release notes](https://github.com/expressjs/morgan/releases)
- [Changelog](https://github.com/expressjs/morgan/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/morgan/compare/1.10.0...1.10.1)

---
updated-dependencies:
- dependency-name: on-headers
  dependency-version: 1.1.0
  dependency-type: indirect
- dependency-name: morgan
  dependency-version: 1.10.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-18 01:31:41 +00:00