Commit Graph

291 Commits

Author SHA1 Message Date
Kailash Nadh 1caa63b113 Rename 'build-dist' to 'dist' in Makefile 2019-06-26 17:50:53 +05:30
Kailash Nadh 089522a2e5 Replace config struct tags 2019-06-26 17:02:42 +05:30
Kailash Nadh 65317503cf Remove hardcoded binary name from unstuff routine 2019-06-26 16:55:59 +05:30
Kailash Nadh fe4f39f65d Replace viper with koanf 2019-06-26 16:53:23 +05:30
Kailash Nadh fe9102120c Remove stub user features and handlers. 2019-06-26 16:22:47 +05:30
Kailash Nadh c952b7a2e8 Refactor README for publishing 2019-06-26 16:05:50 +05:30
Kailash Nadh 95038d3f3c Refactor Makefile 2019-06-26 11:59:03 +05:30
Kailash Nadh 4f9bb269a3 Merge branch 'fix-frontend-dir' into 'develop'
fix: frontend directory structre and other minor fixes

See merge request kailash/listmonk!1
2019-05-27 11:51:34 +00:00
Vivek R 11ca4beddb chore: fix frontend directory structure 2019-05-27 17:17:26 +05:30
Vivek R 09117426ee feat: add config to enable/disable postgres ssl mode 2019-05-27 17:16:46 +05:30
Vivek R 08b9d153da fix: update echo framewor to fix commit hash mismatch 2019-05-27 17:10:02 +05:30
Kailash Nadh 3a6f15e9dc Update list date on import before notif and run notif as a goroutine 2019-05-14 22:18:18 +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 3cf075e3a9 Add deps to dev docs 2019-05-14 20:53:54 +05:30
Kailash Nadh 7a64aca888 Removed redundant consts and goal 2019-05-14 17:56:44 +05:30
Kailash Nadh 9729395648 Add dev README 2019-05-14 17:46:12 +05:30
Kailash Nadh d9585a7365 Add pagination to the lists page 2019-05-14 16:41:05 +05:30
Kailash Nadh b467c9bc3f Fix incorrect sort order in stats SQL queries 2019-05-08 13:20:27 +05:30
Kailash Nadh b078c0006c Fix missing lists fetch in query-campaigns 2019-04-23 22:36:20 +05:30
Kailash Nadh 420c661d4d Remove duplicate TODO 2019-04-07 09:43:33 +05:30
Kailash Nadh b0602594aa Add TODO 2019-04-07 09:42:50 +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 93c952082c Refactor campaigns query into two: 'query' and 'get' 2019-03-30 12:38:02 +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 e43c9b88e9 Add target 'run' to Makefile 2019-03-27 13:35:51 +05:30
Kailash Nadh 5acde50c2e Merge branch 'develop' of https://github.com/knadh/listmonk into develop 2019-03-09 13:17:27 +05:30
Kailash Nadh 917cb8aeed Reformat all JS to 'prettier' style 2019-03-09 13:16:47 +05:30
Kailash Nadh 5b42e8659f Fix incorrect passing of error in HTTP response 2019-03-09 13:14:53 +05:30
Kailash Nadh 7d65672d7b
Merge pull request #1 from joeirimpan/develop
Init go modules and readme
2019-02-01 11:18:26 +05:30
Joe Paul 4ef5a3a042 chore: Go modules and add readme 2019-02-01 11:13:37 +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 e7c75b3d83 Fix the accidentally deleted Lists field in Campaign (!) 2019-01-04 12:36:55 +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 46f4a0e2aa Remove redundant error wrapper 2018-12-26 15:38:08 +05:30
Kailash Nadh 08bc6bc67c Refactor SQL schema and add missing indexes 2018-12-26 15:31:30 +05:30
Kailash Nadh 01b43b992f Refactor get-campaigns query
The get-campaigns query was doing two direct joins with the campaign_views
and link_clicks tables (that have very large number of relationships)
to get the view and click counts. Now the campaigns are selected first
in a CTE and their views and counts are aggregated in two more CTEs,
and the whole thing is then aggregated to produce the final results.
2018-12-20 10:52:13 +05:30
Kailash Nadh 1fd3a3bada Refactor TrackLink template function to accept backticks
Quill link dialog (righly) escapes quotes in URL values there by breaking the
TrackLink() template function. That is, {{ TrackLink "https://listmonk.app" }}
when inserted using the Quill link dialog would become
{{ TrackLink "https://listmonk.app" }}. A simplework around is to
add support to backticks so that the template parser works with
{{ TrackLink `https://listmonk.app` }}
2018-12-19 12:28:52 +05:30
Kailash Nadh ffd43cec6c Rename 'runner.Runner' to 'manager.Manager' 2018-12-19 12:03:13 +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