Commit Graph

330 Commits

Author SHA1 Message Date
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
Kailash Nadh 39aa56454e Fix missing API response data{} envelope 2020-07-09 23:29:55 +05:30
Kailash Nadh 80ef60d4a7
Merge pull request #155 from RaghavSood/hotfix/add-to-lists-by-query
frontend: pass query when changing lists for subscribers
2020-07-09 14:45:14 +05:30
raghavsood 7b62a7f83d
frontend: pass query when changing lists for subscribers 2020-07-09 16:17:42 +08:00
Kailash Nadh 586defe470
Merge pull request #153 from mr-karan/docker_docs
feat: Add separate config for demo setup, tweak docs
2020-07-09 12:55:42 +05:30
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
Karan Sharma 06bb719a7b feat: Add separate config for demo setup, tweak docs
This PR adds `config-demo.toml` to `Dockerfile` which uses the db host
`demo-db`. This is more suited for demo setups. For normal docker installations
the db host is changed back to `db` which is a better sane default.
Reworded `INSTALL.md` and `README.md` for more clarity on docker
installation and configuration.
2020-07-08 22:38:31 +05:30
Kailash Nadh 525a5100f5
Merge pull request #147 from RaghavSood/hotfix/vue-filenameHash
frontend: Enable vue filenameHashing
2020-07-07 18:57:24 +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 c2613d1030 Fix ticker leak in campaign manager message push 2020-07-06 20:29:19 +05:30
Kailash Nadh fd044f4cb6 Minor refactor to campaign manager.
- Remove external invocation of worker goroutines into Run()
- Split Run() into smaller functions.
2020-07-06 20:22:57 +05:30
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 79dd916d09 Make DB pull batch size in campaign manager configurable 2020-07-05 19:48:39 +05:30
Kailash Nadh b45a2a0f89 Fix incorrect record count in the importer 2020-07-05 19:39:42 +05:30
Kailash Nadh e7da8fa668 Fix ordering of records on the subscribers page 2020-07-05 19:23:45 +05:30
Kailash Nadh db032d3001 Change campaign status to draft on removing schedule 2020-07-05 18:42:38 +05:30
Kailash Nadh 64d44707c2 Add {{ templating }} support to e-mail subjects 2020-07-05 18:39:24 +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 7f9a811897 Merge branch 'vue' 2020-07-05 15:16:28 +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
Kailash Nadh 75547b609d Refactor subscriber handlers to send opt-in mails on updation. 2020-06-24 20:30:44 +05:30
Kailash Nadh a03c7bd7c9 Default to empty list instead of nil in media response 2020-06-24 19:50:53 +05:30
Kailash Nadh 693b939a72 Fix incorrect wrapping of subscriber handler 2020-06-07 16:28:33 +05:30
Kailash Nadh 3048ab5afb Add a check for zero SMTP config 2020-06-05 17:00:11 +05:30
Kailash Nadh 67eb3dbbbe Fix incorrect config check in subscriber data wipe 2020-06-05 09:25:45 +05:30
Kailash Nadh ae68bd2645
Merge pull request #126 from PhilippSeitz/bugfix/status-on-success
fix: status code on success
2020-06-04 22:34:45 +05:30
Philipp Seitz f789f06cc0 fix status code on success 2020-06-04 17:42:37 +02:00
Kailash Nadh 7a467a5a3b Add support for custom e-mail headers per SMTP server 2020-05-31 21:16:56 +05:30
Kailash Nadh 82702ed5bc
Remove completed items 2020-05-25 11:55:02 +05:30
Kailash Nadh f06d6b360d Fix optin e-mails on subscriber addition to single option lists 2020-05-23 12:54:25 +05:30
Kailash Nadh bfe31b75c1 Fix incorrect param read bug in list deletion handler 2020-05-23 12:03:04 +05:30
Kailash Nadh 3dcff5dbca Remove redundant log import 2020-05-21 23:12:56 +05:30
Kailash Nadh c9fc83fb60 Fix comments 2020-05-19 23:29:58 +05:30
Kailash Nadh 18329ff052 Add TLS to SMTP config 2020-05-17 21:07:48 +05:30
Kailash Nadh cb331b9341 Merge branch 'master' of github.com:knadh/listmonk 2020-05-16 23:39:40 +05:30
Kailash Nadh abddcb9a03 Remove redundant SMTP LOGIN auth implementation 2020-05-16 23:38:19 +05:30