Commit graph

502 commits

Author SHA1 Message Date
Kailash Nadh
dd0c124b0e Stop throwing "exists" error on public forms 2021-01-31 13:38:02 +05:30
Kailash Nadh
62bce6902e Remove "normalization" of non-Latin characters in tags 2021-01-31 13:06:52 +05:30
Kailash Nadh
bb1a5bb877 Fix contenType event not firing on non-Quill editor mode 2021-01-31 12:59:33 +05:30
Kailash Nadh
27d9eab4a2 Merge branch 'plaintext' into i18n 2021-01-30 18:50:06 +05:30
Kailash Nadh
68afd61024 Add support for alternate plaintext body for e-mails.
This commit removes the Go html2text lib that would automatically
convert all HTML messages to plaintext and add them as the alt
text body to outgoing e-mails. This lib also had memory leak
issues with certain kinds of HTML templates.

A new UI field for optionally adding an alt plaintext body to
a campaign is added. On enabling, it converts the HTML message in
the campaign editor into plaintext (using the textversionjs lib).

This introduces breaking changes in the campaigns table schema,
model, and template compilation.
2021-01-30 18:49:47 +05:30
Kailash Nadh
a226e49f74 Fix incorrect language weekday keys 2021-01-30 18:39:25 +05:30
Kailash Nadh
535b505404 Add autofocus on the first field in SMTP/Messenger settings UI 2021-01-30 11:00:06 +05:30
Kailash Nadh
68808d0cf3
Merge pull request #260 from m42e/patch-1
Updated German translation
2021-01-30 10:42:17 +05:30
Matthias Bilger
69a6b89f2e
Updated German translation 2021-01-29 22:47:01 +01:00
Kailash Nadh
00f68a3270
Merge pull request #258 from joicemjoseph/feat/l10n-malayalam
localized newly added strings
2021-01-28 23:33:40 +05:30
Kailash Nadh
7d3cbde8cf Merge branch 'i18n' of github.com:knadh/listmonk into i18n 2021-01-28 23:31:11 +05:30
Kailash Nadh
b420c31d33 Log test message error 2021-01-28 23:30:39 +05:30
Joice
ade6ecd2d9 localized newly added strings 2021-01-28 22:31:08 +05:30
Kailash Nadh
7359e0ae4b
Merge pull request #253 from joicemjoseph/feat/l10n-malayalam
Localized malayalam strings
2021-01-28 21:26:13 +05:30
Joice
cc81369f9f finished Malayalam localization 2021-01-28 21:22:31 +05:30
Kailash Nadh
ccfada95de
Merge pull request #255 from m42e/l18n/german
German i18n
2021-01-28 21:18:19 +05:30
Kailash Nadh
101e92cbfc
Merge pull request #256 from joeirimpan/fix/ticker
fix: Stop tickers
2021-01-28 21:16:08 +05:30
Kailash Nadh
83613dcad0 Typo fixes on u18n/en language 2021-01-28 21:14:24 +05:30
Joe Paul
8867f771d4 fix: Stop tickers 2021-01-27 12:58:17 +05:30
Kailash Nadh
fcc068cd70 Add missing translations and fix broken ones on the UI 2021-01-26 22:01:55 +05:30
Kailash Nadh
4bfdda9b91 Load a default (en) language underneath the selected language.
The default language (en) is loaded first and the selected
language is loaded on top of it so that missing translation keys
in the selected language will have the original English strings
available on the UI.
2021-01-26 21:59:27 +05:30
Kailash Nadh
dc0465b0af Refactor global instances of $api and $utils to be mixins.
... instead of Vue.prototype variables which is the idiomatic
approach. Also, the refactor enables utils to be instantiated
as a class that takes the i18n object for util functions to have
accesss to i18n translation.
2021-01-26 21:57:27 +05:30
Matthias Bilger
5ecc427df2 German translation 2021-01-24 22:15:07 +01:00
Kailash Nadh
afef994e6d Fix incorrect make command 2021-01-24 13:07:42 +05:30
Kailash Nadh
05928d57b1 Fix default campaign template not being setup on first install.
This was a ridiculous miss, where on first time installation, the
well designed default e-mail template was never installed in the
DB! I never spotted this because my local dev setup, and
surprisingly, nobody ever complained that the default campaign
template was a blank slate with no styles.
2021-01-24 12:49:52 +05:30
Kailash Nadh
0add1c4e8b Fix incorrect label on skip-TLS setting on UI 2021-01-24 12:26:44 +05:30
Kailash Nadh
027261793f Add support for rate limiting messages with a sliding window.
Certain SMTP hosts limit the total number of messages that can be
sent within a window, for instance, X / 24 hours. The concurrency
and message rate controls can only limit that to a max of
1 messages / second, without a global cap.

This commit introduces a simple sliding window rate limit feature
that counts the number of messages sent in a specific window, and
upon reaching that limit, waits for the window to reset before
any more messages are pushed out globally across any number of
campaigns.

Context: https://github.com/knadh/listmonk/issues/119
2021-01-24 12:19:26 +05:30
Kailash Nadh
ee4fb7182f Refactor i18n name and fix the L() function in public HTML templates 2021-01-23 19:34:30 +05:30
Kailash Nadh
4cd5e6ebeb Refactor and remove placeholder i18n func 2021-01-23 18:54:33 +05:30
Kailash Nadh
810607e547 Fix incorrect i18n keys in message strings 2021-01-23 18:48:10 +05:30
Kailash Nadh
ec1c4f30ed Add subscriber export feature 2021-01-23 18:23:29 +05:30
Kailash Nadh
6f2f361cac
Merge pull request #252 from mr-karan/master
feat: Add shell script for demo setup
2021-01-22 09:16:07 +05:30
Karan Sharma
869a55c1ef feat: Add shell script for demo setup 2021-01-21 21:53:49 +05:30
Kailash Nadh
3498a727f5 WIP: Add i18n support 2021-01-17 20:59:01 +05:30
Kailash Nadh
dae47fbeaa
Merge pull request #246 from knadh/dependabot/npm_and_yarn/frontend/axios-0.21.1
Bump axios from 0.19.2 to 0.21.1 in /frontend
2021-01-09 11:51:36 +05:30
dependabot[bot]
3975ccc4b7
Bump axios from 0.19.2 to 0.21.1 in /frontend
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-06 06:20:31 +00:00
Kailash Nadh
7dace84108 Merge branch 'master' of github.com:knadh/listmonk 2020-11-29 19:10:59 +05:30
Kailash Nadh
8bc9bbcd09
Merge pull request #228 from knadh/dependabot/npm_and_yarn/frontend/highlight.js-9.18.5
Bump highlight.js from 9.18.1 to 9.18.5 in /frontend
2020-11-25 13:56:32 +05:30
dependabot[bot]
c8fc91e2e0
Bump highlight.js from 9.18.1 to 9.18.5 in /frontend
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.18.1 to 9.18.5.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/9.18.5/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/9.18.1...9.18.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-25 06:07:48 +00:00
Kailash Nadh
62182ab979 Refactor get-lists query for speed 2020-11-21 17:29:24 +05:30
Kailash Nadh
a22b274088 Merge branch 'master' of github.com:knadh/listmonk 2020-11-21 16:12:39 +05:30
Kailash Nadh
ce108c8487 Fix broken 'send campaign' shortcut on the Lists UI 2020-11-21 16:11:59 +05:30
Kailash Nadh
d9ab365ea1
Merge pull request #226 from mr-karan/fix/db-config
Fix/db config
2020-11-17 14:39:46 +05:30
Karan Sharma
ad8f290dad feat: Set default values for DB connection parameters
- Configures `max_open` and `max_idle` in default configs to `25`.
  This changes the previous behaviour of connection pooling where both the
  values were unset (from default config) and causes unbounded connection
  limit and no connection reuse.
- Configures `db.SetConnMaxLifetime` which sets the maximum time the
  connection can be reused in a pool.
- Sets `max_conn_lifetime` in default config as `5 minutes`.

Closes https://github.com/knadh/listmonk/issues/225
2020-11-17 14:34:35 +05:30
Kailash Nadh
c60cc3525f
Remove alpha warning 2020-11-11 18:45:41 +05:30
Kailash Nadh
cde0b4b42a Add a DB setup check on boot 2020-11-10 22:21:25 +05:30
Kailash Nadh
7a9d11d426 Fix escaping {{ TrackLink }} in WYSIWYG editor UI 2020-11-08 19:47:10 +05:30
Kailash Nadh
1e8b533d45 Fix echo's URI routing race condition that caused random 404s. 2020-11-08 18:36:25 +05:30
Kailash Nadh
684c64ced1 Fix SQL ORDER BY compatibility issue in Postgres 12/13.
- Fix for `pq: SELECT DISTINCT ON expressions must match
  initial ORDER BY expressions` in Postgres 13.
2020-11-08 16:02:11 +05:30
Kailash Nadh
1aecd6f2e1 Add serverside sort to tables.
Lists, campaigns, and subscribers tables now support server-side
sorting from the UI. This significantly changes the internal
queries from prepared to string interpolated to support dynamic
sort params.
2020-10-24 20:00:29 +05:30