Commit graph

1244 commits

Author SHA1 Message Date
Kailash Nadh
152bd37c22 Fix no opt-in mails when existing subscribers subscriber to new opt-in lists. Closes #1257. 2023-03-25 21:06:59 +05:30
Kailash Nadh
5aedc3a4f6 Make media upload file extension validation case insensitive. Closes #1256. 2023-03-25 11:46:23 +05:30
Rohan Shetty
bf72154727
Add Swagger collection for APIs (#1253) 2023-03-25 11:35:15 +05:30
Alfredo Sola
4821dd7c66
Update es.json (#1258) 2023-03-25 11:31:32 +05:30
Kailash Nadh
d87a01fad8 Include CAPTCHA in HTML form generation. 2023-03-25 11:21:06 +05:30
Navan Chauhan
eb1d4a3c2a
add support for arm binaries (#1249) 2023-03-21 18:01:30 +05:30
Vivek R
c668523c57
upgrade frontend dev deps to support node v17+ (#1247)
Used `vue-cli` to upgrade all the dev deps from node v16 or lower. Here
are the steps followed

- `vue upgrade` to upgrade all deps to latest.
- remove `node_modules` directory and `yarn.lock` file.
- `yarn install` to install dependencies again.
2023-03-20 17:57:51 +05:30
Kailash Nadh
553a61b4d2 Update Go build version in GitHub workflow. 2023-03-19 23:17:08 +05:30
Kailash Nadh
1bb9123333 Fix Cypress tests (settings security tab, new default tpls). 2023-03-19 22:58:38 +05:30
Kailash Nadh
3646e6d20a Upgrade Go package deps. 2023-03-19 22:58:38 +05:30
Kailash Nadh
55f7eca2e8
Add support for file attachments in the transactional (tx) API. (#1243)
The original PR accepts files to the `/tx` endpoints as Base64 encoded
strings in the JSON payload. This isn't ideal as the payload size
increase caused by Base64 for larger files can be significant,
in addition to the added clientside API complexity.

This PR adds supports for multipart form posts to `/tx` where the
JSON data (name: `data`) and multiple files can be posted simultaenously
(one or more `file` fields).

--- PR: #1166
* Attachment model for TxMessage
* Don't reassign values, just pass the manager.Messgage
* Read attachment info from API; create attachment Header
* Refactor tx attachments to use multipart form files. Closes #1166.
---

Co-authored-by: MatiSSL <matiss.lidaka@nic.lv>
2023-03-19 15:50:44 +05:30
Samuel Stroschein
4181d8a0c5
Integrate inlang for easy i18n translations (#1189) 2023-03-19 14:03:30 +05:30
Kailash Nadh
6cf82347bf Add support for SVG files to media. Closes #1217.
- Add support for SVG in media uploader.
- Add provision to exclude vector formats from thumbnail creation.
- Increase default thumb size to 120px from 90px.

Co-authored-by: Ronan <ronan.le_meillat@sctg.eu.org>
2023-03-19 13:58:41 +05:30
Kailash Nadh
aaf5080a27 Fix discrepency in SQL query/export queries. Closes #1241. 2023-03-19 12:53:05 +05:30
Margu
35ddf3c899
fixed weekday order to fix #1182 (#1227) 2023-03-06 19:04:04 +05:30
saginsa
5020bae77e
fix #1210 French day name (#1226) 2023-03-04 15:08:32 +05:30
Andrási István
09fe812dd7
Update hu.json (#1219)
I tried my best to fix the translation according to context, cultural analogies and technical jargon. While some of it was right, there were severe mistranslations, sometimes it crucial areas. I'm Hungarian.

Thanks!
2023-02-28 10:26:51 +05:30
Ronan LE MEILLAT
8d1f30c101
correct eslint "no-multiple-empty-lines" (#1179) 2023-02-27 14:46:57 +05:30
Kailash Nadh
d6fd4ab586 Fix 'delete' -> 'clear' language on bounces UI. Closes #1072. 2023-02-26 13:19:00 +05:30
Kailash Nadh
da377d83e6 Parse campaign UUID in SendGrid webhook. Closes #1177. 2023-02-26 13:06:30 +05:30
Kailash Nadh
dda7d44601 Hide private lists from prefs manage page. Closes #1200. 2023-02-26 12:36:46 +05:30
Kailash Nadh
215aae5366 Fix public preference manage page's list style. 2023-02-26 12:36:06 +05:30
dependabot[bot]
7be73d59d6
Bump golang.org/x/sys from 0.0.0-20211205182925-97ca703d548d to 0.1.0 (#1212)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20211205182925-97ca703d548d to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-26 11:28:04 +05:30
Ronan LE MEILLAT
80592f60c6
Translate the subject of the email sent with personnal datas (#1193) 2023-02-20 20:33:44 +05:30
Erik Junsved
2c531eb1d6
(Public strings only) Add Swedish translation (#1194)
* Add swedish translation (public strings only)

* Fix spelling error in public.privacyWipeHelp
2023-02-20 20:03:13 +05:30
Ronan LE MEILLAT
2de72eac56
update french translation (#1190)
* Update hCaptcha french translation

* update french translation
2023-02-16 23:30:56 +05:30
Ronan LE MEILLAT
e77635cdd2
Update hCaptcha french translation (#1178) 2023-02-08 00:04:23 +05:30
kosssi
3513988a07
[i18n] Add translation of the term Powered by (#1168) 2023-02-07 14:43:25 +05:30
saginsa
2ed62cb82e
fix russian translate (#1174) 2023-02-04 20:04:37 +05:30
Marcin Kunert
bfc8a0cb3b
Update pl.json (#1165) 2023-02-01 10:58:09 +05:30
Marcin Kunert
eb9f6876b0
Update pl.json (#1164) 2023-01-31 19:19:18 +05:30
Kailash Nadh
274d86422c Upgrade smtp-pool lib fixing incorrect nested mail commands. 2023-01-30 23:07:53 +05:30
Tycho Werner
4977b746b9
Partial update of NL i18n (#1056)
* Partial update of NL i18n

* Update i18n/nl.json

Co-authored-by: Jesse <jessegielen@hotmail.com>

---------

Co-authored-by: Jesse <jessegielen@hotmail.com>
2023-01-28 14:47:22 +05:30
dependabot[bot]
fd655312ab
Bump decode-uri-component from 0.2.0 to 0.2.2 in /frontend (#1084)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-28 14:00:18 +05:30
Kailash Nadh
b339482d89 Update Polish language.
Co-authored by tymoteusz@jozwiak.top

Closes #1120
2023-01-28 13:59:07 +05:30
Haseeb Ahmad
755344e74b
Add check for SES bounce notif type (#1123) 2023-01-28 13:55:48 +05:30
Kailash Nadh
8985e5c24a
Add hCaptcha.com support to public subscription form. (#1152)
Bots easily bypass the simple `nonce` hack. This commit adds support
for the hcaptcha.com widget.

- New `Security` tab in the admin settings UI.
- Enable/disable CAPTCHA.
- Render CAPTCHA on the public subscription form.

Closes #1116.
2023-01-23 21:50:10 +05:30
Kailash Nadh
62d3782d04 Use send_at date for scheduled campaigns in RSS feed. Closes #1149. 2023-01-21 12:43:30 +05:30
Rohan Verma
72d22d40ef
fix: check public URL before presigned URL generation (#1148)
Fixes #1141
2023-01-16 15:49:21 +05:30
Manuel Villarroel
66c81c8191
Update es.json (#1139)
The use of the word "Subscribir" is updated by "Suscribir", because it is the form recommended by the RAE:
https://dle.rae.es/suscribir?m=form

The use of the word "Des-subscribir" is updated, since its use is wrong. The RAE recommends the use of "Darse de baja":
https://twitter.com/raeinforma/status/748125040722448384?lang=es
2023-01-09 00:32:40 +05:30
Shrilakshmi Shastry
7832248a08
Fix label/input accessibility on subscription form (#1134) 2023-01-06 15:29:26 +05:30
Filip Hanes
076b7c7a0a
Slovak translation (#1128) 2023-01-02 16:04:45 +05:30
Kailash Nadh
3cfbc646e3 Add support for multiple subscribers in a single transactional message call.
This patch adds new array fields on `POST /tx`: `subscriber_emails[]`, `subscriber_ids[]`.
Either of these array fields can be sent with multiple subscribers.

The individual non-array fields `subscriber_id` and `subscriber_email` are deprecated.

Closes #994.
2022-12-25 17:32:01 +05:30
Kailash Nadh
5d4f1ea0ad Add optional params in DB config to accept arbitrary Postgres params. Closes #1016. 2022-12-25 16:28:19 +05:30
Kailash Nadh
1f693b80f7 Add a default public archive template. 2022-12-25 16:07:12 +05:30
Kailash Nadh
96d30d6725
Update issue templates 2022-12-25 14:10:57 +05:30
Kailash Nadh
49f20f33db Fix broken sorting in list query. Closes #1076.
- Replace "%s %s" sprintf substitution in some raw SQL queries with named
  string replace params. Eg: `%order%`.
2022-12-25 14:04:43 +05:30
Kailash Nadh
4dee2e9a1b Fix per_page=all in API calls in the paginator lib.
Closes #1098.
2022-12-25 00:43:58 +05:30
Jorge - vitrubio
396f85d273
updated spanish translation (#1119) 2022-12-24 21:44:38 +05:30
Jorge - vitrubio
ba46769fcf
updated italian translation (#1118) 2022-12-24 21:36:24 +05:30