Commit Graph

150 Commits

Author SHA1 Message Date
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 0e116a2286 Update dependencies 2019-07-05 14:18:50 +05:30
Kailash Nadh 61c2a728ca Upgrade to stuffbin v1.0.0 2019-07-05 14:08:48 +05:30
Kailash Nadh be20014524 Add doc links to UI 2019-07-04 18:41:30 +05:30
Kailash Nadh bcf35bf670 Add basic sanitisation to subscriber query expressions 2019-07-04 17:40:55 +05:30
Kailash Nadh 69e5e351e0 Refactor default install records and add test campaign 2019-07-04 14:47:33 +05:30
Kailash Nadh 1ca8c2faf2 Fix default template location in install 2019-07-04 14:33:03 +05:30
Kailash Nadh 348e65f1ec Fix lists not showing on the subscriber form 2019-07-04 13:39:05 +05:30
Kailash Nadh 64043f0d62 Add run-frontend to Makefile 2019-07-02 13:23:44 +05:30
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