Commit graph

435 commits

Author SHA1 Message Date
Kailash Nadh 7691fbd90f Refactor the large settings UI view to multiple files. 2021-08-28 16:44:26 +05:30
Kailash Nadh edac5a1910 Add bounce tests (Cypress) 2021-08-22 15:48:36 +05:30
Kailash Nadh d6d1883587 Add custom S3 backend support (eg: Minio) to media uploads
- Introduce a new S3 backend URL on the settings UI
- Add DB migration to populate S3 URL for existing S3 settings
- Refactor and fix URL formatting

Closes #139
2021-08-15 16:09:00 +05:30
Kailash Nadh 1be8c7d387 Merge branch 'bounce' 2021-08-14 17:13:59 +05:30
Kailash Nadh d41b697bfb Fix race in settings UI and settings API fetch 2021-08-14 17:13:22 +05:30
Kailash Nadh 59c897645d Normalize i18n files with new bounce keys.
- Rename some 'settings.smtp' keys to `settings.mailserver` so that
  they can be reused across SMTP and bounce settings UIs.
2021-08-14 15:56:43 +05:30
Kailash Nadh 1ae98699e7 Add support for bounce processing.
- Blocklist or unsubscribe subscribers based on a bounce threshold
- Add /bounces UI for viewing bounces and in the subscriber view
- Add settings UI for managing bounce settings
- Add support for scanning POP3 bounce mailboxes
- Add a generic webhook for posting custom bounces at /webhooks/bounce
- Add SES bounce webhook support at /webhooks/services/ses
- Add Sendgrid bounce webhook support at /webhooks/services/sendgrid
2021-08-14 15:35:29 +05:30
dependabot[bot] c7a962bfd0
Bump url-parse from 1.5.1 to 1.5.3 in /frontend
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-14 09:50:02 +00:00
dependabot[bot] 4405550cab
Bump path-parse from 1.0.6 to 1.0.7 in /frontend
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 16:57:51 +00:00
Kailash Nadh 078ca39606
Merge pull request #405 from knadh/dependabot/npm_and_yarn/frontend/color-string-1.5.5
Bump color-string from 1.5.3 to 1.5.5 in /frontend
2021-06-29 20:13:09 +05:30
dependabot[bot] 893fab2975
Bump prismjs from 1.23.0 to 1.24.0 in /frontend
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.24.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.23.0...v1.24.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 20:19:23 +00:00
dependabot[bot] f101dded3a
Bump color-string from 1.5.3 to 1.5.5 in /frontend
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.5.5.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/commits/1.5.5)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-27 14:16:31 +00:00
dependabot[bot] d6551e174c
Bump browserslist from 4.12.0 to 4.16.6 in /frontend
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.12.0 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.12.0...4.16.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-17 08:20:32 +00:00
dependabot[bot] 674536c1f5
Bump postcss from 7.0.32 to 7.0.36 in /frontend
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.32 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.32...7.0.36)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-17 06:39:48 +00:00
Kailash Nadh b3612927c8 Display app version the settings UI 2021-06-09 20:11:45 +05:30
Kailash Nadh a3b285fa62 Fix Buefy number input width 2021-06-09 20:02:24 +05:30
Kailash Nadh 3ecac7671a Fix Vue linting issue 2021-06-07 18:44:58 +05:30
Kailash Nadh 868fae6ac2 Refactor subsbscription status option on the import page.
- Refactor subimporter New*() funcs to take opt structs.
- Refactor and simplify Vue code.
- Remove redundant i18n entries and use existing ones.
- Remove redundant subimporter constants and use existing ones.

- Consider 'overwrite' option for subscription status as well.
- Write Cypress integration tests for the new feature.
2021-06-06 17:33:23 +05:30
Russ Smith 7ca08f0a36 Adding a subscription status option to the import.
Ref #168
2021-06-06 17:33:23 +05:30
dependabot[bot] 6ddb03c452
Bump ws from 6.2.1 to 6.2.2 in /frontend
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-04 14:19:26 +00:00
Kailash Nadh 3d26366620 Fix pagination query.
- Fix '?per_page=all' not working inconditional LIMIT queries.
- Fetch all lists on the UI for list dropdowns everywhere.
2021-06-04 19:47:55 +05:30
Kailash Nadh bbffbbc5f3 Fix listID not being passed in bulk sub deletion. Closes #384 2021-06-04 19:32:42 +05:30
dependabot[bot] cb07774fa5
Bump dns-packet from 1.3.1 to 1.3.4 in /frontend
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-28 21:34:02 +00:00
Kailash Nadh 69f84c99d0 Refactor log line view to prevent HTML render log lines.
This commit processes log lis and renders them as different fields
removing the use of <pre> and also `v-html` which renders HTML strings
from log lines.
2021-05-23 19:13:47 +05:30
Kailash Nadh b7932e4b57 Upgrade all JS deps to latest 2021-05-23 17:57:30 +05:30
Kailash Nadh 57962918e7 Remove unused JS deps 2021-05-23 17:44:08 +05:30
Kailash Nadh f5221ab1ee Upgrade JS sass libs.
See issue #369

Upgrade sass libs to work with Node 16.
2021-05-23 17:27:32 +05:30
Kailash Nadh dea4d185ae Upgrade Vue and Buefy UI lib.
- Vue 2.6 introduces "v-slot" which Buefy 0.9.7 uses.
- Refactor all `<b-table>` and `<b-column>` instances to work with the
  new `v-slot` snytax.
- Refactor `<b-column>` <td> and class attributes to work wit hthe new
  syntax.
- Fix Buefy scss setup to work with the update.
- Fix sidebar responsive view to work with the update.
2021-05-23 17:27:21 +05:30
Kailash Nadh c593be51c1 Upgrade Vue + eslint to the latest version 2021-05-23 14:20:21 +05:30
Kailash Nadh 931e467b25 Fixes campaign test messages not including unsub headers.
Campaign messages are handled by `manager` whereas test messages
were being pushed directly into a messenger skipping some campaign
related routines such as the addition of list unsub headers.

This commit exposes a new function `manager.PushCampaignMessage()`
that accepts arbitrary campaign messages that then pass through
the standard campaign message workers, thus getting the missing unsub
headers. This closes #360.

In addition, this removes the superfluous `CampaignMessage.Render()`
function which had to be mandatorily called always and makes it
implicit in `manager.NewCampaignMessage()`.
2021-05-21 23:35:08 +05:30
Kailash Nadh 9f2e708798 Wrap lines in <pre> without overflowing the viewport.
Closes #359.
2021-05-18 16:16:28 +05:30
Kailash Nadh 95a81d17ce Add option on UI to toggle update checks.
Closes #326
2021-05-16 16:54:55 +05:30
Kailash Nadh aa5eff915d Fix incorre check on template deletion. 2021-05-16 15:26:38 +05:30
Kailash Nadh 9fe78d6247 Make conditional icons consistent on templates UI 2021-05-16 15:26:32 +05:30
Kailash Nadh ed57ecca99 Sanitize HTML strings passed to buefy.toast().
The buefy toast component does not sanitize HTML leaving it open
to XSS. This patch centralised all toast calls in the app to a util
function which sanitizes HTML strings before passing to toast().

Closes #357.
2021-05-16 13:27:58 +05:30
Kailash Nadh 20939e8121
Merge pull request #354 from knadh/dependabot/npm_and_yarn/frontend/url-parse-1.5.1
Bump url-parse from 1.4.7 to 1.5.1 in /frontend
2021-05-09 16:47:04 +05:30
Kailash Nadh 6bbde095a8
Merge pull request #353 from knadh/dependabot/npm_and_yarn/frontend/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.8 to 2.8.9 in /frontend
2021-05-09 16:46:52 +05:30
Kailash Nadh cd1aa810dd
Merge pull request #352 from knadh/dependabot/npm_and_yarn/frontend/lodash-4.17.21
Bump lodash from 4.17.19 to 4.17.21 in /frontend
2021-05-09 16:46:39 +05:30
Kailash Nadh 6a21776124 Fix password fields not updating settings UI.
Closes #332.
2021-05-09 16:04:01 +05:30
dependabot[bot] 0b0cd5a791
Bump url-parse from 1.4.7 to 1.5.1 in /frontend
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-09 10:11:06 +00:00
dependabot[bot] a06f1aed77
Bump hosted-git-info from 2.8.8 to 2.8.9 in /frontend
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-09 10:09:59 +00:00
dependabot[bot] 02b92b5916
Bump lodash from 4.17.19 to 4.17.21 in /frontend
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-09 10:09:50 +00:00
Kailash Nadh 65d25fc3f9 Improve campaign content format conversion.
Previously, converting between formats simply copied over raw content.
This update does actual conversion between different formats. While
lossy, this seems to a good enough approximation for even reasonbly
rich HTML content. Closes #348.

- richtext, html => plain
  Strips HTML and converts content to plain text.

- richtext, html => markdown
  Uses turndown (JS) lib to convert HTML to Markdown.

- plain => richtext, html
  Converts line breaks in plain text to HTML breaks.

- richtext => html
  "Beautifies" the HTML generated by the WYSIWYG editor unlike the
  earlier behaviour of dumping one long line of HTML.

- markdown => richtext, html
  Makes an API call to the backend to use the Goldmark lib to convert
  Markdown to HTML.
2021-05-09 15:36:31 +05:30
dependabot[bot] 2bbe38f4f5
Bump ssri from 6.0.1 to 6.0.2 in /frontend
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-17 08:10:32 +00:00
Kailash Nadh ad0a0e0841 Add preconfirm_subscriptions=true/falsenew subs API.
Sending th optional flag as `trunue` in the POST /api/subscrirs
body will skip sending opt-iconfirmation e-mails to subscribers
and mark list subscriptions in the request a`confirmed`.
2021-04-17 13:34:37 +05:30
Kailash Nadh 1e59d53135 Add markdown support to campaign content. 2021-04-14 12:26:09 +05:30
Kailash Nadh 570a81f966 WIP: Add tests 2021-04-10 12:26:33 +05:30
Kailash Nadh 039feef938
Merge pull request #307 from knadh/dependabot/npm_and_yarn/frontend/y18n-4.0.1
Bump y18n from 4.0.0 to 4.0.1 in /frontend
2021-04-10 12:14:13 +05:30
Kousik Mitra 35b1d01621 Fix template box label name 2021-04-01 19:43:00 +05:30
dependabot[bot] ca403d5583
Bump y18n from 4.0.0 to 4.0.1 in /frontend
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-01 03:55:39 +00:00
Kousik Mitra 6d61c52126 Fix placeholder attribute typo 2021-03-30 20:11:26 +05:30
Kailash Nadh 2579d7c2b3
Merge pull request #291 from knadh/dependabot/npm_and_yarn/frontend/elliptic-6.5.4
Bump elliptic from 6.5.3 to 6.5.4 in /frontend
2021-03-11 11:51:45 +05:30
dependabot[bot] 1ac0e65dd8
Bump elliptic from 6.5.3 to 6.5.4 in /frontend
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-11 00:27:23 +00:00
Kailash Nadh e8ad7a9adc Fix subscriber attribs update API.
Change the behaviour where not passing attribs to the update API
overwrites the attribs with empty values. This commit changes the
behaviour so that in the absence of the attribs field in the
subscriber API, the existing value in the DB is retained.
2021-03-10 21:20:26 +05:30
Kailash Nadh 93a710c9ae
Merge pull request #284 from RustyDust/master
Fix wrong list links in subscribers overview
2021-03-07 13:22:20 +05:30
Kailash Nadh 8a6ed2ac2e Fix incorrect week day name logic in translation 2021-03-07 12:36:10 +05:30
Stefan Rubner 860953e331 Fix wrong list links in subscribers overview 2021-03-05 16:45:22 +01:00
dependabot[bot] f268dc69ab
Bump prismjs from 1.20.0 to 1.23.0 in /frontend
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.20.0 to 1.23.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.20.0...v1.23.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 21:19:19 +00:00
Kailash Nadh 8e78b6418f Allow editing of unsubscribed lists on the UI 2021-02-13 18:05:31 +05:30
Kailash Nadh bc5cc53f28 Fix broken reload on clicking the restart button on UI 2021-02-13 13:14:52 +05:30
Kailash Nadh b950d2f4ff Refactor fetching of server config and settings.
The earlier approach of loading `/api/config.js` as a script on
initial page load with the necessary variables to init the UI is
ditched. Instead, it's now `/api/config` and `/api/settings` like
all other API calls. On load of the frontend, these two resources
are fetched and the frontend is initialised.
2021-02-13 12:34:36 +05:30
Kailash Nadh ee46b3d3d8 Fix blank UI on forms pages when there are no public lists 2021-02-06 18:58:11 +05:30
Kailash Nadh c90d42a7a9 Fix widget padding on the dashboard UI 2021-02-06 12:36:19 +05:30
Kailash Nadh 2235d30063 Add a new public page for end users to subscribe to public lists.
In addition to generating HTML forms for selected public lists,
the form page now shows a URL (/subscription/form) that can be
publicly shared to solicit subscriptions. The page lists all
public lists in the database. This page can be disabled on the
Settings UI.
2021-01-31 16:19:39 +05:30
Kailash Nadh a7b72a6b7c Fix broken i18n language keys 2021-01-31 13:38:35 +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 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 535b505404 Add autofocus on the first field in SMTP/Messenger settings UI 2021-01-30 11:00:06 +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 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
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 4cd5e6ebeb Refactor and remove placeholder i18n func 2021-01-23 18:54:33 +05:30
Kailash Nadh ec1c4f30ed Add subscriber export feature 2021-01-23 18:23:29 +05:30
Kailash Nadh 3498a727f5 WIP: Add i18n support 2021-01-17 20:59:01 +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
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 ce108c8487 Fix broken 'send campaign' shortcut on the Lists UI 2020-11-21 16:11:59 +05:30
Kailash Nadh 7a9d11d426 Fix escaping {{ TrackLink }} in WYSIWYG editor UI 2020-11-08 19:47:10 +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
Kailash Nadh 966954d8f4 Refactor log view UI into a component. 2020-10-24 11:42:28 +05:30
Kailash Nadh b054ed5adc Fix inconsistent quotes in Vue config 2020-10-18 23:10:48 +05:30
Kailash Nadh f6511b68d8 Update JS dep (security): node-forge 2020-10-18 18:07:26 +05:30
Kailash Nadh 1b279478fb Make individual subscriber tracking optional.
A new toggle switch in Settings -> Privacy, which is off by
default, allows campaign views (pixel) and link clicks to function
without registering the subscriber ID against view and click
events, anonymising tracking. When off, the subscriber UUIDs in
view and link tracking URLs are removed, anonymising subscriber
information from HTTP logs as well.
2020-10-18 17:49:46 +05:30
Kailash Nadh 50e488fc01 Fix 'Send test' not reflecting campaign body on first page load 2020-10-17 23:38:29 +05:30
Kailash Nadh 8dbe30cd26 Add new 'Logs' page to the UI to view stdout logs 2020-10-10 23:55:54 +05:30
Kailash Nadh f81d75a787 Allow deleting of all campaigns irrespective of status 2020-10-10 22:08:13 +05:30
Kailash Nadh 409b259fd3 Fix settings UI copying SMTP values on 'new' 2020-10-10 21:35:09 +05:30
Kailash Nadh 6cf43ea674 Add generic HTTP postback Messenger support.
This is a major feature that builds upon the `Messenger` interface
that has been in listmonk since its inception (with SMTP as the only
messenger). This commit introduces a new Messenger implementation, an
HTTP "postback", that can post campaign messages as a standard JSON
payload to arbitrary HTTP servers. These servers can in turn push them
to FCM, SMS, or any or any such upstream, enabling listmonk to be a
generic campaign messenger for any type of communication, not just
e-mails.

Postback HTTP endpoints can be defined in settings and they can be
selected on campaigns.
2020-10-10 18:52:08 +05:30
Kailash Nadh be9fbcd542
Merge pull request #200 from knadh/fix-incorrect-csv-example
fix: incorrect csv import example on frontend
2020-10-04 15:10:19 +05:30
Vivek R 025d54b64e fix: incorrect csv import example on frontend
Example given for CSV import on Import.vue is incorrect since
field `attributes` value is not a valid JSON. Previous example
copy pasted was throwing CSV parse error.
2020-10-03 17:52:56 +05:30
Vivek R 6c234f1b1d fix: use inbuilt frontend dev server to proxy API
Vue's inbuilt dev server can be configured to proxy API for
development instead of directing developers to setup Nginx proxy.
Additionally this commit also adds an option to configure frontend port
on which dev server runs. Sample env config file is under
`frontend/.env.sample`, it can be copied to either `frontend/.env` or `frontend/.env.local`.

Available options are

LISTMONK_FRONTEND_PORT - Configure frontend dev server port (defaults to 8080)
LISTMONK_API_URL - Configure API server URL (defaults to http://127.0.0.1:9000)

Since env variables are sourced to current session we are prefixing it with `LISTMONK_`.
2020-10-03 04:50:07 +05:30
René d6279ed965
Update Settings.vue 2020-09-19 00:11:42 +02:00
Kailash Nadh 288164ea6a Remove 'required' from upload field that fails to recognize drag-drop 2020-09-02 11:48:56 +05:30
Kailash Nadh 26390e9994 Merge branch 'master' of github.com:knadh/listmonk 2020-08-30 17:46:17 +05:30
Shivam Mishra abe8c598fc fix: update toggle on update:active 2020-08-25 19:16:33 +05:30
Shivam Mishra ed0d9ee431 chore: remove stray whitesapce 2020-08-25 19:15:32 +05:30
Shivam Mishra 3b141bb100 style: remove stray tab indentation 2020-08-24 19:52:00 +05:30
Shivam Mishra 427fcf7efd fix: inconsistent active link on sidebar navigation 2020-08-24 19:15:28 +05:30
Kailash Nadh 8fe601aa4a Add pagination to lists 2020-08-22 19:58:21 +05:30
Kailash Nadh 1ef1c5a61c Fix incorrect default values and server response in list creation UI 2020-08-22 14:13:13 +05:30
Kailash Nadh 8c56407031 Add rebranded design elements.
- New logo and favicon and new splash image + intro text in the
  README.
2020-08-09 19:15:44 +05:30
Kailash Nadh d8a60d1295 Add automatic update checks.
- A check for new versions on the GitHub releases pages happens
  once every 24 hours. When a new version is available, a notice
  is displayed on the admin UI.
2020-08-08 16:59:47 +05:30
Kailash Nadh 7ed07550ff Fix minor inconsistencies in settings.
- Add missing `app.root_url` key in migration.
- Register `/settings` handler in the backend.
- Add dummy dots in secret fields on the UI for visibility.
2020-08-07 19:28:23 +05:30
Kailash Nadh 8979a2ad0b Fix Quill setup to use inline CSS styles instead of classes 2020-08-07 13:43:18 +05:30
Kailash Nadh 494c519359 Upgrade JS dependencies (security fixes) 2020-08-01 20:28:39 +05:30
Kailash Nadh 4703d78b39 Add a fullscreen option to the campaign richtext editor 2020-08-01 20:19:03 +05:30
Kailash Nadh 378e8145fe Add campaign search UI. 2020-08-01 19:46:47 +05:30
Kailash Nadh 0db95799fb Suffix app name in page titles 2020-08-01 18:47:05 +05:30
Kailash Nadh 5ff5c74321 Add custom email headers to SMTP settings UI 2020-08-01 18:33:15 +05:30
Kailash Nadh ec097909db Add support for List-Unsubscribe header.
- Added as a setting in the settings UI.
- Refactor Messenger.Push() method to accept messenger.Message{}
  instead of a growing number of positional arguments.
2020-08-01 17:54:51 +05:30
Kailash Nadh 7ead052054 Fixed reset not clearing query on subscriber search UI 2020-08-01 16:59:34 +05:30
Kailash Nadh e4f233e2e5 Add missing root_url to settings UI 2020-08-01 16:53:29 +05:30
Kailash Nadh 8c0804ba9f Refactor blacklist to blocklist 2020-08-01 16:45:29 +05:30
Kailash Nadh 2143def136 Fix loss of caret on image insertion in campaign from popup 2020-08-01 16:09:55 +05:30
Kailash Nadh 13a252a7b3 Add missing 'opt-in' campaign feature to the new UI 2020-08-01 15:31:13 +05:30
Kailash Nadh 818da1bb4d Add 'clone template' feature to the templates UI 2020-08-01 13:28:12 +05:30
Kailash Nadh d9197668c6 Add 'cancel' icon to campaigns UI 2020-08-01 13:15:40 +05:30
Kailash Nadh 0145aba30f Add missing tag UI to lists 2020-08-01 12:58:46 +05:30
Kailash Nadh f9e4a50795 Fix incorrect handling of non-JSON responses in APIs 2020-07-26 22:15:57 +05:30
Kailash Nadh 76f4fd68f8 Show countdown on scheduled campaigns UI 2020-07-26 20:54:05 +05:30
Kailash Nadh e2e65b1bc0 Polish UI elements and fix styling issues.
- Change global font to Inter.
- Introduce global top nav bar.
- Restyle form inputs to have inline labels.
- Restyle form inputs to have inline lengt counters.
- Override glitchy Buefy animations (sidebar, toast etc.)
- Fix tag alignment inside tables in responsive view.
- Refactor import page UI.
- Miscellaneous styling fixes.
- Add missing Fontello icons.
2020-07-26 20:35:06 +05:30
Kailash Nadh 942eb7c3d8 Add settings UI and "hot reload" support to the app.
This is a major breaking change that moves away from having the
entire app configuration in external TOML files to settings being
in the database with a UI to update them dynamically.

The app loads all config into memory (app settings, SMTP conf)
on boot. "Hot" replacing them is complex and it's a fair tradeoff
to instead just restart the application as it is practically
instant.

A new `settings` table stores arbitrary string keys with a JSONB
value field which happens to support arbitrary types. After every
settings update, the app gracefully releases all resources
(HTTP server, DB pool, SMTP pool etc.) and restarts itself,
occupying the same PID. If there are any running campaigns, the
auto-restart doesn't happen and the user is prompted to invoke
it manually with a one-click button once all running campaigns
have been paused.
2020-07-21 00:23:57 +05:30
Kailash Nadh d294c95c9b Merge branch 'refactor-api-resp' 2020-07-09 23:32:16 +05:30
Kailash Nadh 3df889cdc1 Refactor global API response handling in axios.
Instead of using a response transformer, move the global response
JSON transformation (snake case to camel case) to the pre-existing
response interceptor. Also, fix the `data.data` and `data`
discrepancy in responses.
2020-07-09 23:29:59 +05:30
raghavsood 7b62a7f83d
frontend: pass query when changing lists for subscribers 2020-07-09 16:17:42 +08:00
Kailash Nadh eae88c1add Add Ctrl+Enter search on the subscriber query exp box 2020-07-09 12:49:42 +05:30
Kailash Nadh ab8dbd8314 Fix advanced subscriber query exp not propagating to search 2020-07-09 12:17:21 +05:30
raghavsood ceac96b662
frontend: Enable vue filenameHash
This enables clean updates when listmonk is behind a caching proxy such as cloudflare
2020-07-06 23:54:08 +08:00
Kailash Nadh 3e755596c7 Fix incorrect WYSIWYG image insertion position 2020-07-06 19:46:18 +05:30
Kailash Nadh 1b346b1c2b Fix 'cancelled' tag colour 2020-07-06 19:37:46 +05:30
Kailash Nadh b45d49f5e0 Fix HTML editor's line bar colour 2020-07-06 00:50:43 +05:30
Kailash Nadh dc4020679f Add syntax highlighted HTML code editor 2020-07-06 00:46:08 +05:30
Kailash Nadh 2651820e29 Fix campaign message rate display 2020-07-05 21:55:52 +05:30
Kailash Nadh 61f8fae50d Add 'overwrite?' option to bulk import.
- Fix minor UI inconsitency on import states.
- Minor refactor to importer initialisation.
2020-07-05 21:35:17 +05:30
Kailash Nadh b45a2a0f89 Fix incorrect record count in the importer 2020-07-05 19:39:42 +05:30
Kailash Nadh 24192a327f Refactor and fix media uploads.
- Fix path related issues in filesystem and S3.
- Add checks for S3 "/" path prefix.
- Add support for custom S3 domain names.
- Remove obsolete `width` and `height` columns from media table (breaking)
- Add `provider` field to media table (breaking)
2020-07-05 17:35:05 +05:30
Kailash Nadh 217adf185d Add frontend README 2020-07-05 14:33:17 +05:30
Kailash Nadh 412e016614 Add missing save icon 2020-07-05 14:17:18 +05:30
Kailash Nadh f2030a1768 Fix redirect after new campaign creation 2020-07-05 14:08:30 +05:30
Kailash Nadh 1bcd350b20 Integrate config.js on the frontend 2020-07-04 23:37:23 +05:30
Kailash Nadh 92cb70f1a4 Refactor empty/placeholder states with new component 2020-07-04 23:08:34 +05:30
Kailash Nadh feb5ba09be Add new dashboard (with new metrics) 2020-07-04 22:25:02 +05:30
Kailash Nadh 97583fe4b4 Rewrite frontend with Vue+Buevy and ditch React+Ant Design.
- antd+react was resulting in extremely clunky and unreadable
  spaghetti frontend code (primarily due to how antd is).
- Buefy is lighter by an order of magnitude, has excellent
  responsive views (especially tables) and usability.
- Vue's templating produces far more readable template code.
2020-07-04 00:12:14 +05:30
Karan Sharma 23faa9f127 fix: Remove root URI on frontend
Removes appending root URI in `img src` from frontend which broke the rendering
of S3 URLs in campaign templates.

Closes https://github.com/knadh/listmonk/issues/101
2020-05-16 19:39:21 +05:30
Kailash Nadh 901c456aa9 Fix issues with responsive UI on the campaign page 2020-03-08 15:55:22 +05:30
Kailash Nadh 68c4ccdefc Fix campaign UI to update start/schedule button automatically 2020-03-08 15:23:57 +05:30
Kailash Nadh 0a2d2d66be Refactor forms UI 2020-03-07 22:32:36 +05:30
Kailash Nadh c08ca14a5b Add subscription forms 2020-03-07 20:22:01 +05:30
Kailash Nadh 2ee2e68230 Inject version during build into the frontend 2020-02-09 18:50:08 +05:30
Kailash Nadh f039f351c1 Link list name to subscribers page on lists UI 2020-02-09 17:27:51 +05:30
Kailash Nadh afdf053288 Add 'send opt-in mail' link to subscriber modal UI 2020-02-09 17:17:58 +05:30
Kailash Nadh 8616aa8028 Remove status from example on the import UI 2020-02-09 11:36:15 +05:30
Kailash Nadh ab8bac226f Fix title bug in list modal UI 2020-02-09 11:36:15 +05:30
Kailash Nadh 022b35c4a7 Add support for sending 'opt-in' campaigns.
- Campaigns now have a `type` property (regular, opt-in)
- Opt-in campaigns work for double opt-in lists and e-mail
  subscribers who haven't confirmed their subscriptions.
- Lists UI shows a 'Send opt-in campaign' optin that
  automatically creates an opt-in campaign for the list
  with a default message body that can be tweaked before
  sending the campaign.
- Primary usecase is to send opt-in campaigns to subscribers
  who are added via bulk import.

This is a breaking change. Adds a new Postgres enum type
`campaign_type` and a new column `type` to the campaigns table.
2020-02-09 11:36:15 +05:30
Kailash Nadh af14fff6c2 Refactor campaign content type references 2020-02-09 11:36:15 +05:30
Kailash Nadh ec22170176 Fix list ID parsing in campaign UI 2020-02-09 11:36:15 +05:30
Kailash Nadh 871893a9d2 Add double opt-in support.
- Lists can now be marked as single | double optin.
- Insert subscribers to double opt-in lists send out a
  confirmation e-mail to the subscriber with a confirmation link.
- Add `{{ OptinURL }}` to template functions.

This is a breaking change. Adds a new field 'optin' to the lists
table and changes how campaigns behave. Campaigns on double opt-in
lists exclude subscribers who haven't explicitly confirmed subscriptions.

Changes the structure and behaviour of how notification e-mail routines,
including notif email template compilation,  notification callbacks for
campaign and bulk import completions.
2020-02-09 11:36:15 +05:30
Kailash Nadh 6681f189fc Fix 'send_at' option on the UI and bug in starting scheduled campaigns 2020-01-19 20:46:25 +05:30
Kailash Nadh 0d8abf9435 Fix subscriber export button 2019-12-01 17:57:13 +05:30
Vivek R 3e5a6468e7 fix: responsive layour fixes for table, modal and form fields 2019-09-09 00:14:16 +05:30
Vivek R a7034bb3ad WIP: responsive design 2019-09-09 00:10:19 +05:30
Kailash Nadh 649d1b11f0 Fix 'send later' switch + date not updating on campaign edit 2019-08-26 23:45:18 +05:30
Kailash Nadh d0a7c3baf7 Add Prettier conf 2019-08-26 23:42:47 +05:30
Kailash Nadh 3b7902802e Add data privacy export / wipe features (aimed at GDPR compliance).
- Toggle options to enable self-service data export and wipe
  options on the public unsubscription page. Subscribers can get
  a copy of all data on them e-mailed to them as JSON, or
  instantly wipe all their data.
- Refactor "unsubscribe" pages and URIs to "subscription".
- Add export icon to subscriber admin view.
2019-07-21 19:21:23 +05:30
Kailash Nadh 6409c9a23b Add missing help link to subscriber modal 2019-07-12 15:09:58 +05:30
Kailash Nadh f457605707 Remove unimplemented features from nav 2019-07-12 13:53:56 +05:30
Kailash Nadh e89a54b957 Refactor and add new build routines
- Fix version injection in build
- Refactor Makefile
- Add --new-config flag to generate sample config
- Add license
- Remove autogenerated frontend README
- Refactor make dist to do end-to-end build
- Refactor build and add goreleaser conf
2019-07-09 15:57:04 +05:30
Kailash Nadh be20014524 Add doc links to UI 2019-07-04 18:41:30 +05:30
Kailash Nadh 348e65f1ec Fix lists not showing on the subscriber form 2019-07-04 13:39:05 +05:30
Vivek R 11ca4beddb chore: fix frontend directory structure 2019-05-27 17:17:26 +05:30
Kailash Nadh 8701cb445a Fix import and campaign page and integrate new paginated lists API 2019-05-14 22:06:14 +05:30
Kailash Nadh d9585a7365 Add pagination to the lists page 2019-05-14 16:41:05 +05:30
Kailash Nadh b078c0006c Fix missing lists fetch in query-campaigns 2019-04-23 22:36:20 +05:30
Kailash Nadh 3bf405fc1c Refactor and fix importer state bugs
- Fixed invalid file uploads leaving the importer in a hanging
  state without exiting
- Make the import UI always show the upload status page so that
  error logs are visible
2019-04-03 14:08:31 +05:30
Kailash Nadh cfec13c589 Optimize campaign and subscriber queries
- Simplify campaigns querying to separate statistics gather into
  a separate query for lazy loading.
- Simplify subscribers query to separate list fetching into
  a separate query for lazy loading.
2019-04-01 17:07:24 +05:30
Kailash Nadh baa618475b Add 'send campaign' shortcut link to lists view 2019-03-28 18:18:26 +05:30
Kailash Nadh 3de7b3f560 Fix incorrect maxlength param values 2019-03-28 18:04:27 +05:30
Kailash Nadh 6b29c0ff28 Remove subscriber list link from list name 2019-03-28 17:59:32 +05:30
Kailash Nadh 178604dbbf Refactor campaigns view
- Fix sorting issues
- Add status filter
- Add name + subject search
2019-03-28 17:17:51 +05:30
Kailash Nadh 9655ce6f14 Refactor subscriber data src to check for errors 2019-03-28 17:16:21 +05:30
Kailash Nadh 917cb8aeed Reformat all JS to 'prettier' style 2019-03-09 13:16:47 +05:30
Kailash Nadh 9fc23a89de Fix text in global footer 2019-01-04 18:41:21 +05:30
Kailash Nadh ac2234a838 Refactored subscriber add/edit from from modal to modal + standalone view 2019-01-04 18:27:34 +05:30
Kailash Nadh ab1a6bbed8 Add ID and UUID info to list, subscriber, and campaign views 2019-01-04 12:40:10 +05:30
Kailash Nadh 7eeb813f19 Add embedding of static assets for standalone dist binary
This is a big commit that involves drastic changes to how static assets
(.sql and template files, the whole frontend bundle) are handled.
listmonk distribution should be a self-contained single binary
distribution, hence all static assets should be bundled. After
evaluating several solutions, srtkkou/zgok seemed like the best bet but
it lacked several fundamental features, namely the ability to fall back
to the local filesystem in the absence of embedded assets (for instance,
in the dev mode). Moreover, there was a lot of room for cleanup.

After a PR went unanswered, github.com/knadh/stuffbin was created. Just
like zgok, this enables arbitrary files and assets to be embedded into a
compiled Go binary that can be read during runtime. These changes
followed:

- Compress and embed all static files into the binary during
  the build (Makefile) to make it standalone and distributable
- Refactor static paths (/public/* for public facing assets,
  /frontend/* for the frontend app's assets)
- Add 'logo_url' to config
- Remove 'assets_path' from config
- Tweak yarn build to not produce symbol maps and override
  the default /static (%PUBLIC_URL%) path to /frontend
2019-01-03 16:48:47 +05:30
Kailash Nadh 72cf9e2d9b Fix state setting on subscriber modal unmount 2018-12-19 11:53:45 +05:30
Kailash Nadh b461f51275 Change default name/email search query to case insensitive regex instead of LIKE 2018-12-19 00:12:40 +05:30
Kailash Nadh f686606b9e Fix broken close function in clone campaign modal 2018-12-18 23:55:18 +05:30
Kailash Nadh f54170d509 Add view and click counts to campaign API response and UI 2018-12-18 23:46:29 +05:30
Kailash Nadh a4135be9c7 Doc and typo fix on the import page 2018-12-18 23:21:49 +05:30
Kailash Nadh 099ca1183d Doc fix in advanced query placeholder 2018-12-18 23:17:53 +05:30
Kailash Nadh f2bbf86846 Display subscription status in the subscribers table 2018-12-18 16:24:50 +05:30
Kailash Nadh 11f8e62cf1 Add subscriber count to the subscriber page heading 2018-12-18 13:34:23 +05:30
Kailash Nadh 5f0e3acfb9 Add bulk subscriber querying, segmentation, and management features
- Add a name / e-mail "quicksearch" input to the UI
- Implement row selection and aggregation at table level and a "select all" that selects all rows at the query level
- On selected subscribers, add bulk list management (add / remove / unsubscribe), blacklist, and delete
2018-12-18 10:54:55 +05:30
Kailash Nadh 755d3d2630 Refactor and add subscriber search and segmentation UI 2018-11-30 13:49:33 +05:30
Kailash Nadh 2a161a567a Redesign the 'broken' warning page 2018-11-28 18:41:00 +05:30
Kailash Nadh 5662fac440 Refactor redirection on campaign creation 2018-11-28 18:37:39 +05:30
Kailash Nadh ccd966a1f4 Refactor campaign 'save' button and add 'start' button to campaign page 2018-11-28 18:35:33 +05:30
Kailash Nadh ca19b50126 Fix content tab redirection on campaign creation 2018-11-28 14:17:02 +05:30
Kailash Nadh 8a0a7a195e Add support for importing unzipped CSV 2018-11-27 12:21:59 +05:30
Kailash Nadh 5ff0e446ed Make the default template the default selection on the campaign form 2018-11-27 11:54:23 +05:30
Kailash Nadh 0577367d4f Fix default values in the campaign dropdown 2018-11-26 16:38:09 +05:30
Kailash Nadh 6d96986b3a Add loadng spinner to dashboard 2018-11-06 16:33:04 +05:30
Kailash Nadh 08717528c5 Fix incorrect campaign counts on dashboard 2018-11-06 16:18:52 +05:30
Kailash Nadh b333d05609 Fix merge conflicts 2018-11-06 15:59:13 +05:30
Kailash Nadh dce6db7b73 Untrack yarn.lock 2018-11-06 15:57:50 +05:30
Kailash Nadh e3a6ba3e28 Untrack yarn.lock 2018-11-06 15:57:39 +05:30
Kailash Nadh 9511a78d91 Add welcome dashboard
- Add a stats overview API to aggregate global stats
- Add bizcharts to the project to render visualisations
- WIP: Add stats widgets and visualisations to the dashboard
2018-11-06 15:14:26 +05:30
Kailash Nadh c3d1813695 Add an error page for app config (window.CONFIG) not being loaded 2018-11-06 09:01:24 +05:30
Kailash Nadh f334022cd6 Make duration stats visibility conditional 2018-11-05 23:27:44 +05:30
Kailash Nadh ec7d398c21 Rearrange and move prominent action icons to the front 2018-11-05 23:07:10 +05:30
Kailash Nadh d09a16d514 Add form blocking + spinner to the upload form 2018-11-05 23:06:38 +05:30
Kailash Nadh 0f56a5c1a5 Fix campaign stats cell width 2018-11-05 19:19:16 +05:30
Kailash Nadh ec02921c25 Fix SVG logo (font to path) 2018-11-05 17:04:39 +05:30
Kailash Nadh 6761d1af23 Add missing placement param to all antd notification() calls 2018-11-05 17:03:25 +05:30
Kailash Nadh f2c09e716c Refactor the import process
- Add 'Subscribe' and 'Blacklist' modes to the importer
- Removed 'override status' and the support for the 'status' field in import files
2018-11-05 16:59:09 +05:30
Kailash Nadh 31e180089e WIP: Add dashboard stats queries and endpoint 2018-11-05 11:19:08 +05:30
Kailash Nadh 9aa413013a Update logo 2018-11-05 11:15:35 +05:30
Kailash Nadh ac8c7ed93b Add custom theme overhaul
- Use 'config-overrides.js' with less loader to load ant.design's less files instead of the compiled css to override theme variables
- Change logo, favicon, and primary theme colours
- Add pageTitle() to App() to let components set page titles
- Move all notifications to bottomRight to avoid blocking action items on the UI
2018-11-03 17:53:22 +05:30
Kailash Nadh 5d099ab10c Make image inserts use full root URL 2018-11-02 23:57:44 +05:30
Kailash Nadh ad8787cab3 Load global configuration into the frontend as a JS dict using a <script> inclusion 2018-11-02 23:33:00 +05:30
Kailash Nadh ae2ca2cb5d Fix routes not remounting with keys 2018-11-02 16:02:48 +05:30
Kailash Nadh 6c5cf0da7a Add support for campaign view tracking with {{ TrackView }} pixel tag 2018-11-02 13:20:32 +05:30
Kailash Nadh 027bc02a83 Fix re-rendering of iframe by removing state dependency for spinner 2018-11-02 13:17:18 +05:30
Kailash Nadh 0fee76a88e Add loading spinner to preview modal 2018-11-02 00:14:43 +05:30
Kailash Nadh 1ae2905bf5 Add help text 2018-10-31 18:23:57 +05:30
Kailash Nadh 52f8217b77 Fix form state locking on save 2018-10-30 11:18:15 +05:30
Kailash Nadh d89b22e757 Add 'send campaign test' feature 2018-10-29 15:20:49 +05:30
Kailash Nadh b70ceccd02 Refactor and fix the bad URL param substitution method 2018-10-29 15:16:53 +05:30
Kailash Nadh e794aa703d Fix campaigns table actions cell width 2018-10-26 13:23:12 +05:30
Kailash Nadh 9582e20cd7 Fix the preview button in the new template form 2018-10-26 12:29:46 +05:30
Kailash Nadh 0849dc491b Added the clone modal that was accidentally removed 2018-10-26 12:24:51 +05:30
Kailash Nadh a1b5a39cfb Added preview component with preview support for campaigns and templates 2018-10-26 11:18:17 +05:30
Kailash Nadh 3ab21383b1 Fresh start 2018-10-25 19:21:47 +05:30