Commit graph

834 commits

Author SHA1 Message Date
Kailash Nadh
f266f55981 Tidy go.mod 2022-01-04 22:34:51 +05:30
Kailash Nadh
e1d3dd4a65 Merge branch 'master' of github.com:knadh/listmonk 2022-01-04 22:33:58 +05:30
Kailash Nadh
d8ed40422e Make tls_enabled key migratin idempotent. 2022-01-04 22:30:43 +05:30
Kailash Nadh
583dab4bc6 Add support for per-campaign custom headers.
- Add new `headers[]` column to the campain table.
- Add new headers box to the campaign UI that takes a JSON array of
  custom headers like the headers on the SMTP settings UI.
- Headers are added to e-mails and messenger postback webhooks.
- Add cypress tests.

Closes #514.
2022-01-04 22:27:40 +05:30
Kailash Nadh
9e9ea0ef15 Refactor automatic camel casing of API response fields.
- Remove `humps` lib dependency with a new util function.
- Replace hacky way of excluding certain fields in responses with
  a proper key filtering mechanism.
2022-01-04 22:17:05 +05:30
Kailash Nadh
d42c676503
Merge pull request #646 from ldidry/add-autoheadingid-option-to-markdown-parser
Add AutoHeadingID option to Markdown parser
2022-01-04 19:02:34 +05:30
Luc Didry
73e6668d20
Add AutoHeadingID option to Markdown parser 2022-01-04 09:36:14 +01:00
Kailash Nadh
dd061f56d4 Add support for direct SSL/TLS (non-STARTTLS) SMTP connections.
- Add support for TLS in `smtppool` (v0.4.0) and upgrade the lib.
- Change `tls_enabled: bool` in the settings table to string
  `tls_type: STARTTLS|TLS|none` and on the settings UI.
- Add DB migrations and schema changes to apply the field change.

Closes #504.
2022-01-03 19:28:36 +05:30
Kailash Nadh
e46a5cdf78
Merge pull request #640 from rhnvrm/feat-s3-put
feat: switch from s3 POST to s3 put
2021-12-29 17:24:21 +05:30
Rohan
c003aec9c9 feat: switch from s3 POST to s3 put
This commit switches simples3 from issuing a POST to a PUT.

Ref #617
2021-12-29 15:13:23 +05:30
Kailash Nadh
d523d0a114
Merge pull request #639 from mr-karan/tz
feat: Add timezone config in app container
2021-12-29 11:53:48 +05:30
Karan Sharma
e4d8286535 feat: Add timezone config in app container
Adds `tzdata` in the `Dockerfile` of the app so that
user can pass a `TZ` env variable to the container to configure
their timezone information.
2021-12-29 11:42:04 +05:30
Kailash Nadh
b48a15cfa3 Fix incorrect 'nice date' formatting. Closes #635. 2021-12-27 18:55:13 +05:30
Kailash Nadh
e982e6bb25 Don't warn on format change when campaign content is empty. Closes #634. 2021-12-27 18:41:25 +05:30
Kailash Nadh
c1c2b67503 Add a link to more language packs to the language settings UI. 2021-12-18 21:50:17 +05:30
Kailash Nadh
fabe06e339 Add support for custom CSS/JS in settings for admin and public pages.
This feature was originally authored by @sweetppro in PR #438.
However, since the PR ended up in an unclean state with
multiple master merges (instead of rebase) from the upstream, there are
several commits that are out of order and can can no longer be be
squashed for a clean feature merge.

This commit aggregates the changes from the original PR and applies the
following fixes on top of it.

- Add custom admin JS box to appearance UI.
- Refactor i18n language strings.
- Add handlers and migrations for the new `appearance.admin.custom_js`
  field.
- Fix migration version to `v2.1.0`
- Load custom appearance CSS/JS bytes into global constants during boot
  instead of making a DB call on every request.
- Fix and canonicalize URIs from `/api/custom*` to `/public/*.css`
  and `/admin/*.css`. Add proxy paths to yarn proxy config.
- Remove redundant HTTP handlers for different custom appearance files
  and refactor into a single handler `serveCustomApperance()`
- Fix content-type and UTF8 encoding headers for different file types.
- Fix incorrect registration of public facing custom CSS/JS handlers
  in the authenticated admin URI group.
- Fix merge conflicts in `Settings.vue`.
- Minor HTML and style fixes.
- Remove the `AppearanceEditor` component and use the existing
  `HTMLEditor` component instead.
- Add `language` prop to the `HTMLEditor` component.

Co-authored-by: SweetPPro <sweetppro@users.noreply.github.com>
2021-12-18 15:38:42 +05:30
Kailash Nadh
920645f90e Fix typo in Makefile. 2021-12-18 13:14:14 +05:30
Kailash Nadh
13edf426a6
Merge pull request #625 from mr-karan/master
fix(install-prod.sh): Make `tr` work with macOS
2021-12-15 16:20:33 +05:30
Karan Sharma
c9189a12d1
fix(install-prod.sh): Make tr work with macOS
Fixes https://github.com/knadh/listmonk/issues/624

Source https://unix.stackexchange.com/questions/230673/how-to-generate-a-random-string#comment393964_230684
2021-12-15 14:44:00 +05:30
Kailash Nadh
ca128df49a Add support for searching lists + search UI. Closes #618. 2021-12-09 21:34:38 +05:30
Kailash Nadh
e9709e54ee Upgrade labstack/echo webserver to major version v4.
- echo is now on v4 with major changes including a few breaking changes
- bind() behaviour is now strict. JSON / form etc. unmarshalling of
  request data need appropriate `json`, `form` tags. Missing tags for
  the public subscription page is added in this commit.
- This also closes #602.
2021-12-09 20:51:07 +05:30
Kailash Nadh
02c1408f5c Fix broken Cypress UI tests. 2021-12-09 20:47:52 +05:30
Kailash Nadh
4cb5eb782f Fix settings form input validation.
- Fix settings UI form submit button.
- Validate upload URI. Closes #621.
2021-12-09 19:30:15 +05:30
Kailash Nadh
e9dded774a
Merge pull request #608 from mr-karan/dev_docker
feat: Add dev docker setup
2021-12-05 12:37:30 +05:30
Karan Sharma
e977b901e1 feat: Add dev docker setup 2021-12-01 23:17:14 +05:30
Kailash Nadh
e6c1f1e4bd
Merge pull request #605 from Jjagg/i18n-nl
Add Dutch (nl) translation
2021-11-30 09:44:55 +05:30
Jesse Gielen
1c8ab5c721
Add dutch (nl) translation 2021-11-29 17:53:02 +01:00
Kailash Nadh
3386de40c7 Fix GET /subscribers calls not accepting multiple list_ids.
Closes #585
2021-11-29 20:38:57 +05:30
Kailash Nadh
d32c11a595
Merge pull request #603 from NicoHood/patch-2
Fix #601 german translation
2021-11-29 13:12:13 +05:30
NicoHood
8a70595aff
Fix #601 german translation 2021-11-29 08:40:23 +01:00
natekfl
575d007575
Fix alert email urls (#595) 2021-11-19 21:05:46 +05:30
bohemtucsok
903330b972
Create hu.json (#591) 2021-11-16 19:10:28 +05:30
Kailash Nadh
a7fa97a214 Add scanning of full bounce email body for bounce headers. Closes #492. 2021-11-10 20:47:55 +05:30
Kailash Nadh
c8c135e31f Fix broken test mail due to missing tpl param. 2021-11-10 20:47:55 +05:30
SweetPPro
35ac1ccdf5
Embed Inter font files and remove Google font links. Closes #547.
Only Woff2 fonts have been added, from here (utliising all charsets):
https://google-webfonts-helper.herokuapp.com/fonts/inter?subsets=cyrillic,cyrillic-ext,greek,greek-ext,latin,latin-ext,vietnamese
2021-11-10 20:43:42 +05:30
SweetPPro
46f13bf9cd
Fix broken logout link in desktop nav view (#580) 2021-11-10 20:31:34 +05:30
MickGe
2388a05003
Update fr.json (#581) 2021-11-10 20:20:48 +05:30
SweetPPro
7b9ba2efbc
improved mobile navbar/sidebar (#574)
* improved mobile navbar/sidebar

Sidebar is hidden and all menu items moved to hamburger menu on mobile devices

* improvements to menu rendering

-removed redundant code
-fixed an issue with emitting data to App.vue

* Update Navigation.vue

fixed linting errors

* Add minor refactors to the mobile menu PR.

- Fix indentation and line lengths.
- Simplify prop definitions in the Navigation component.
- Remove redundant computed methods and use prop variables directly in
  the Navigation compontent.
- Simplify menu rendering logic by:
  removing isSidebar, showLogout and using simpler v-if / else
  in the parent instead of the Navigation component.

* Update App.vue

removed orphaned isSideBar Boolean

Co-authored-by: Kailash Nadh <kailash@nadh.in>
2021-11-10 00:26:34 +05:30
Kailash Nadh
125d51f7bf
Merge pull request #576 from MickGe/patch-1
Clear placeholder on focus
2021-11-09 22:47:38 +05:30
Kailash Nadh
a2c885b8bc Add a note on Postgres min version. 2021-11-09 22:43:44 +05:30
MickGe
ebf6af2f81
Clear placeholder on focus
Because it could be disturbing for people who are not confident with forms not being able to delete words before writing.
2021-11-09 00:20:30 +01:00
Kailash Nadh
19e0ea5f6c Fix scheduling params being ignored on the create campaign UI. Fixes #516. 2021-11-07 09:17:54 +05:30
Kailash Nadh
0bd13fe541 Fix response content type in plaintext campaign previews. Closes #568 2021-11-05 09:21:39 +05:30
Kailash Nadh
d00a1a1e84 Merge branch 'master' of github.com:knadh/listmonk 2021-11-05 09:15:49 +05:30
Kailash Nadh
738c8e95ee
Merge pull request #569 from ChrisTG742/patch-2
German translation needed for #526
2021-11-05 08:53:21 +05:30
Kailash Nadh
34915f176b
Merge pull request #570 from jorge-vitrubio/patch-1
Updated es.json
2021-11-05 08:52:43 +05:30
Jorge - vitrubio
58bd242b5b
Updated es.json
Updates in non translated strings and corrected some typos. Modified some translations.
2021-11-05 00:40:15 +01:00
ChrisTG742
bfefb0ff27
German translation needed for #526
Adds missing german translation for #526
2021-11-04 09:40:54 +01:00
Kailash Nadh
88d0c77f3b
Merge pull request #567 from knadh/dependabot/npm_and_yarn/frontend/tinymce-5.10.0
Bump tinymce from 5.9.2 to 5.10.0 in /frontend
2021-11-03 09:23:16 +05:30
dependabot[bot]
2819ca86cb
Bump tinymce from 5.9.2 to 5.10.0 in /frontend
Bumps [tinymce](https://github.com/tinymce/tinymce/tree/HEAD/modules/tinymce) from 5.9.2 to 5.10.0.
- [Release notes](https://github.com/tinymce/tinymce/releases)
- [Changelog](https://github.com/tinymce/tinymce/blob/develop/modules/tinymce/CHANGELOG.md)
- [Commits](https://github.com/tinymce/tinymce/commits/5.10.0/modules/tinymce)

---
updated-dependencies:
- dependency-name: tinymce
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-02 15:53:03 +00:00