Commit graph

951 commits

Author SHA1 Message Date
Kailash Nadh
959541f8ee Rename unsub query to match the core method name. 2022-05-08 14:45:45 +05:30
Kailash Nadh
b94da621d7 Fix broken public link redirect. 2022-05-05 18:05:13 +05:30
Kailash Nadh
5fd4d7b44b Refactor paginated bounce query function to return DB total. 2022-05-03 10:50:33 +05:30
Kailash Nadh
d2ef23d3fa Refactor paginated campaign query function to return DB total. 2022-05-03 10:50:33 +05:30
Kailash Nadh
e303850584 Refactor paginated list query function to return DB total. 2022-05-03 10:50:33 +05:30
Kailash Nadh
aa19771307 Refactor bounces package to remove db/queries dependency.
Instead of passing a DB/SQL statement references, instead pass a
callback that inserts a bounce into the DB via the `core` package.
2022-05-03 10:50:33 +05:30
Kailash Nadh
b5cd9498b1 Refactore all CRUD functions to a new core package.
This is a long pending refactor. All the DB, query, CRUD, and related
logic scattered across HTTP handlers are now moved into a central
`core` package with clean, abstracted methods, decoupling HTTP
handlers from executing direct DB queries and other business logic.

eg: `core.CreateList()`, `core.GetLists()` etc.

- Remove obsolete subscriber methods.
- Move optin hook queries to core.
- Move campaign methods to `core`.
- Move all campaign methods to `core`.
- Move public page functions to `core`.
- Move all template functions to `core`.
- Move media and settings function to `core`.
- Move handler middleware functions to `core`.
- Move all bounce functions to `core`.
- Move all dashboard functions to `core`.
- Fix GetLists() not honouring type
- Fix unwrapped JSON responses.
- Clean up obsolete pre-core util function.
- Replace SQL array null check with cardinality check.
- Fix missing validations in `core` queries.
- Remove superfluous deps on internal `subimporter`.
- Add dashboard functions to `core`.
- Fix broken domain ban check.
- Fix broken subscriber check middleware.
- Remove redundant error handling.
- Remove obsolete functions.
- Remove obsolete structs.
- Remove obsolete queries and DB functions.
- Document the `core` package.
2022-05-03 10:50:29 +05:30
Kailash Nadh
12b845ef97 Fix incorrect HTTP resp code on public page. Fixes #772. 2022-05-03 10:49:25 +05:30
Kailash Nadh
89eca5f14b Changed email subject template from HTML to text. Fixes #785. 2022-05-03 10:41:46 +05:30
Kailash Nadh
75190d9854 Fix broken line in the JP language pack. 2022-05-01 14:49:30 +05:30
Kailash Nadh
a94f238952 Sanitize HTML in Buefy dialogs. 2022-05-01 12:14:01 +05:30
Kailash Nadh
d5b912aed3
Merge pull request #798 from t3hmrman/feat/add-jp-translation
feat(i18n): add japanese translation
2022-05-01 11:39:18 +05:30
vados
6252a166af
feat(i18n): add japanese translation
Signed-off-by: vados <vados@vadosware.io>
2022-05-01 14:16:36 +09:00
Kailash Nadh
20cbeb7f82
Merge pull request #794 from knadh/dependabot/npm_and_yarn/frontend/async-2.6.4
Bump async from 2.6.3 to 2.6.4 in /frontend
2022-04-30 11:19:59 +05:30
dependabot[bot]
8794c92a83
Bump async from 2.6.3 to 2.6.4 in /frontend
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-29 17:20:14 +00:00
Kailash Nadh
c898ec2b21
Merge pull request #790 from nathanaelhoun/patch-1
Updated French translations
2022-04-29 12:19:24 +05:30
Nathanaël Houn
1e8f8aba25
Updated some French translations 2022-04-28 18:57:24 +02:00
Kailash Nadh
06e4b77e29
Merge pull request #788 from etcware/patch-1
Update it.json
2022-04-27 08:34:28 +05:30
Alex
eb7c07b308
Update it.json
I fixed some translations.
2022-04-26 14:58:24 +02:00
Kailash Nadh
7ea523db37
Merge pull request #727 from yatish27/fix_typos_in_comments
Fix typos
2022-04-03 11:39:07 +05:30
Kailash Nadh
8c9fccb8bf
Merge pull request #762 from knadh/dependabot/npm_and_yarn/frontend/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6 in /frontend
2022-04-03 11:38:17 +05:30
Kailash Nadh
73e4c1cf28 Fix POP mail parsing in multipart bounce e-mails.
This was originally authored by @stevesavanna in #707. This commit
contains changes and refactors that could not be pushed to the original PR.

Changes from #707

- Don't ignore bounce mails missing campaign / subscriber UUIDs. The
  original behaviour falls back to looking up subscribers by e-mail.
- Refactor repetetive header.get + regexp conditions per header into
  a simpler lookup map.
- Trim e-mail header values of `\r`.

Closes #707, #763

Co-authored-by: stevesavanna <steven@savannacorp.com>
2022-04-03 11:37:11 +05:30
dependabot[bot]
2b787025a4
Bump minimist from 1.2.5 to 1.2.6 in /frontend
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-27 01:48:03 +00:00
Yatish Mehta
26483334c5 Fix typos 2022-03-20 11:17:29 -07:00
Kailash Nadh
a7145511fd
Merge pull request #726 from knadh/dependabot/npm_and_yarn/frontend/prismjs-1.27.0
Bump prismjs from 1.25.0 to 1.27.0 in /frontend
2022-03-20 11:08:16 +05:30
Kailash Nadh
61e1260144
Merge pull request #728 from knadh/dependabot/npm_and_yarn/frontend/url-parse-1.5.10
Bump url-parse from 1.5.7 to 1.5.10 in /frontend
2022-03-20 11:08:01 +05:30
Kailash Nadh
cd48262f77 Merge branch 'master' of github.com:knadh/listmonk 2022-03-20 11:06:06 +05:30
Kailash Nadh
4e6410ec17 Fix list_ids not being considered in bulk list change on the UI. Fixes #737. 2022-03-20 11:02:43 +05:30
Kailash Nadh
a7af9e3448
Merge pull request #751 from TychoWerner/patch-1
Update nl.json
2022-03-20 10:31:31 +05:30
Tycho Werner
2b0bb77a86
Update nl.json
Translates new strings and corrects some others.
2022-03-19 09:50:27 +01:00
Kailash Nadh
ef643a14a3 Add ability to export select subscriber ids.
- Add `id=[]` query param to `/api/subscribers/export` API.
- Add UI export prompt.
- Add Cypress tests.

Closes #739
2022-03-19 13:44:23 +05:30
Kailash Nadh
8db8ecfccd Upgrade Cypress. 2022-03-19 13:44:06 +05:30
Kailash Nadh
bfce146895 Hide confirmed/unconfirmed from single opt-in lists on the UI. Ref #741 2022-03-19 11:14:02 +05:30
Kailash Nadh
a7ac8ce527
Merge pull request #749 from an0nfunc/feat-tinymce-anchor
Activate anchor plugin (TinyMCE)
2022-03-17 16:47:34 +05:30
Giovanni Harting
3eca66c81b activated anchor plugin for TinyMCE editor 2022-03-17 11:44:45 +01:00
Kailash Nadh
9a0f7623b5
Merge pull request #743 from jonathandhn/master
Update fr.json
2022-03-14 09:33:42 +05:30
Jonathan Dahan
d6318f9090
Update fr.json
Offers a French version enriched with some missing terms.
2022-03-13 22:18:14 +01:00
Kailash Nadh
f9854bc54b Remove redundant status from single opt-in list subscriptions on the UI. Closes #741. 2022-03-10 19:30:28 +05:30
Kailash Nadh
8f45abec27 Remove Heroku buttons (as it has blocked listmonk without explanation). 2022-03-07 18:25:20 +05:30
Kailash Nadh
d02efee094
Merge pull request #735 from an0nfunc/patch-german-translation
German translation mostly for analytics
2022-03-03 10:38:24 +05:30
an0nfunc
6ebfb6f00f
German translation mostly for Analytics 2022-03-02 21:41:27 +01:00
Kailash Nadh
3b0c8b3b15 Fix updated settings/config init routine on settings UI. 2022-03-02 21:31:00 +05:30
Kailash Nadh
b4c716302f Don't show duration on scheduled campaigns that are finished. Closes #701. 2022-03-02 21:22:44 +05:30
Kailash Nadh
8d6e475479 Merge branch 'fix-i18n' 2022-03-02 21:00:07 +05:30
Kailash Nadh
c4f1bed517 Add missing i18n strings to dayjs. Closes #717. 2022-03-02 20:58:12 +05:30
Kailash Nadh
e87c80eee1 Refactor app init routines to load config/i18n before main app mount.
Move config/language loading outside the main Vue() instance mount
as the app dependencies require i18n before they are mounted.

This commit moves config/language loading outside the app routines
to plain API calls, which on success, initialize and mount the main
view App instance.
2022-03-01 22:23:54 +05:30
Kailash Nadh
174a48f252
Merge pull request #730 from ohyesgocool/fixtypos
Fixed Typos
2022-03-01 20:39:07 +05:30
Gokul Menon
04c4552a9c Fixed typos 2022-02-28 14:19:50 +01:00
dependabot[bot]
28a8b9600d
Bump url-parse from 1.5.7 to 1.5.10 in /frontend
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 04:50:31 +00:00
dependabot[bot]
ac8c568d39
Bump prismjs from 1.25.0 to 1.27.0 in /frontend
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.25.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-26 01:59:33 +00:00