High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
chore: fix frontend directory structure
Vivek R11ca4beddb52
diff --git a/.gitignore b/.gitignoreindex d43e047f..4edb754d 100644--- a/.gitignore+++ b/.gitignore@@ -1,8 +1,6 @@frontend/node_modules/-frontend/my/node_modules/frontend/.cache/frontend/yarn.lock-frontend/my/yarn.lock.vscode/-config.toml\ No newline at end of file+config.tomldiff --git a/Makefile b/Makefileindex 67ed7660..61fbffe6 100644--- a/Makefile+++ b/Makefile@@ -1,5 +1,5 @@BIN := listmonk-STATIC := config.toml.sample schema.sql queries.sql public email-templates frontend/my/build:/frontend+STATIC := config.toml.sample schema.sql queries.sql public email-templates frontend/build:/frontendHASH := $(shell git rev-parse --short HEAD)COMMIT_DATE := $(shell git show -s --format=%ci ${HASH})@@ -8,20 +8,20 @@ VERSION := ${HASH} (${COMMIT_DATE}).PHONY: build-frontendbuild-frontend:- cd frontend/my && yarn install && yarn build+ cd frontend && yarn install && yarn build.PHONY: quickdevquickdev:- @ if [ ! -d "frontend/my/node_modules" ]; then \+ @ if [ ! -d "frontend/node_modules" ]; then \echo "Installing frontend deps"; \- cd frontend/my && yarn install; \+ cd frontend && yarn install; \fi- @ if [ ! -d "frontend/my/build" ]; then \+ @ if [ ! -d "frontend/build" ]; then \echo "Creating build directory"; \- mkdir -p frontend/my/build; \+ mkdir -p frontend/build; \echo "Building frontend assets"; \- cd frontend/my && yarn build; \+ cd frontend && yarn build; \fi@ echo -e "\nBuilding go binary\n"diff --git a/README.dev.md b/README.dev.mdindex c95da9bf..31d7072d 100644--- a/README.dev.md+++ b/README.dev.md@@ -15,7 +15,7 @@ There are two independent components, the Go backend and the React frontend. In### 2. Run the frontend-`cd frontend/my` and `yarn start`+`cd frontend` and `yarn start`### 3. Setup an Nginx proxy endpointdiff --git a/frontend/.babelrc b/frontend/.babelrcindex 235b076e..c7c5e2f1 100644--- a/frontend/.babelrc+++ b/frontend/.babelrc@@ -2,3 +2,4 @@"presets": ["env", "react"],"plugins": [["transform-react-jsx", { "pragma": "h" }]]}+diff --git a/frontend/my/.gitignore b/frontend/.gitignoresimilarity index 100%rename from frontend/my/.gitignorerename to frontend/.gitignorediff --git a/frontend/my/README.md b/frontend/README.mdsimilarity index 100%rename from frontend/my/README.mdrename to frontend/README.mddiff --git a/frontend/my/config-overrides.js b/frontend/config-overrides.jssimilarity index 100%rename from frontend/my/config-overrides.jsrename to frontend/config-overrides.jsdiff --git a/frontend/my/package.json b/frontend/my/package.jsondeleted file mode 100644index ff1f7210..00000000--- a/frontend/my/package.json+++ /dev/null@@ -1,34 +0,0 @@-{- "name": "my",- "version": "0.1.0",- "private": true,- "dependencies": {- "antd": "^3.6.5",- "axios": "^0.18.0",- "bizcharts": "^3.2.5-beta.4",- "dayjs": "^1.7.5",- "react": "^16.4.1",- "react-app-rewire-less": "^2.1.3",- "react-app-rewired": "^1.6.2",- "react-dom": "^16.4.1",- "react-quill": "^1.3.1",- "react-router": "^4.3.1",- "react-router-dom": "^4.3.1",- "react-scripts": "1.1.4"- },- "scripts": {- "start": "react-app-rewired start",- "build": "GENERATE_SOURCEMAP=false PUBLIC_URL=/frontend/ react-app-rewired build",- "test": "react-app-rewired test --env=jsdom",- "eject": "react-scripts eject"- },- "eslintConfig": {- "extends": "react-app"- },- "devDependencies": {- "babel-plugin-import": "^1.11.0",- "eslint-plugin-prettier": "^3.0.1",- "less-plugin-npm-import": "^2.1.0",- "prettier": "1.15.3"- }-}diff --git a/frontend/package.json b/frontend/package.jsonindex f9078406..ff1f7210 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -1,6 +1,34 @@{+ "name": "my",+ "version": "0.1.0",+ "private": true,"dependencies": {- "create-react-app": "^1.5.2",- "react": "^16.4.1"+ "antd": "^3.6.5",+ "axios": "^0.18.0",+ "bizcharts": "^3.2.5-beta.4",+ "dayjs": "^1.7.5",+ "react": "^16.4.1",+ "react-app-rewire-less": "^2.1.3",+ "react-app-rewired": "^1.6.2",+ "react-dom": "^16.4.1",+ "react-quill": "^1.3.1",+ "react-router": "^4.3.1",+ "react-router-dom": "^4.3.1",+ "react-scripts": "1.1.4"+ },+ "scripts": {+ "start": "react-app-rewired start",+ "build": "GENERATE_SOURCEMAP=false PUBLIC_URL=/frontend/ react-app-rewired build",+ "test": "react-app-rewired test --env=jsdom",+ "eject": "react-scripts eject"+ },+ "eslintConfig": {+ "extends": "react-app"+ },+ "devDependencies": {+ "babel-plugin-import": "^1.11.0",+ "eslint-plugin-prettier": "^3.0.1",+ "less-plugin-npm-import": "^2.1.0",+ "prettier": "1.15.3"}}diff --git a/frontend/my/public/favicon.png b/frontend/public/favicon.pngsimilarity index 100%rename from frontend/my/public/favicon.pngrename to frontend/public/favicon.pngdiff --git a/frontend/my/public/gallery.svg b/frontend/public/gallery.svgsimilarity index 100%rename from frontend/my/public/gallery.svgrename to frontend/public/gallery.svgdiff --git a/frontend/my/public/index.html b/frontend/public/index.htmlsimilarity index 100%rename from frontend/my/public/index.htmlrename to frontend/public/index.htmldiff --git a/frontend/my/public/manifest.json b/frontend/public/manifest.jsonsimilarity index 100%rename from frontend/my/public/manifest.jsonrename to frontend/public/manifest.jsondiff --git a/frontend/my/src/App.js b/frontend/src/App.jssimilarity index 100%rename from frontend/my/src/App.jsrename to frontend/src/App.jsdiff --git a/frontend/my/src/Campaign.js b/frontend/src/Campaign.jssimilarity index 100%rename from frontend/my/src/Campaign.jsrename to frontend/src/Campaign.jsdiff --git a/frontend/my/src/Campaigns.js b/frontend/src/Campaigns.jssimilarity index 100%rename from frontend/my/src/Campaigns.jsrename to frontend/src/Campaigns.jsdiff --git a/frontend/my/src/Dashboard.css b/frontend/src/Dashboard.csssimilarity index 100%rename from frontend/my/src/Dashboard.cssrename to frontend/src/Dashboard.cssdiff --git a/frontend/my/src/Dashboard.js b/frontend/src/Dashboard.jssimilarity index 100%rename from frontend/my/src/Dashboard.jsrename to frontend/src/Dashboard.jsdiff --git a/frontend/my/src/Import.js b/frontend/src/Import.jssimilarity index 100%rename from frontend/my/src/Import.jsrename to frontend/src/Import.jsdiff --git a/frontend/my/src/Layout.js b/frontend/src/Layout.jssimilarity index 100%rename from frontend/my/src/Layout.jsrename to frontend/src/Layout.jsdiff --git a/frontend/my/src/Lists.js b/frontend/src/Lists.jssimilarity index 100%rename from frontend/my/src/Lists.jsrename to frontend/src/Lists.jsdiff --git a/frontend/my/src/Media.js b/frontend/src/Media.jssimilarity index 100%rename from frontend/my/src/Media.jsrename to frontend/src/Media.jsdiff --git a/frontend/my/src/ModalPreview.js b/frontend/src/ModalPreview.jssimilarity index 100%rename from frontend/my/src/ModalPreview.jsrename to frontend/src/ModalPreview.jsdiff --git a/frontend/my/src/Subscriber.js b/frontend/src/Subscriber.jssimilarity index 100%rename from frontend/my/src/Subscriber.jsrename to frontend/src/Subscriber.jsdiff --git a/frontend/my/src/Subscribers.js b/frontend/src/Subscribers.jssimilarity index 100%rename from frontend/my/src/Subscribers.jsrename to frontend/src/Subscribers.jsdiff --git a/frontend/my/src/Templates.js b/frontend/src/Templates.jssimilarity index 100%rename from frontend/my/src/Templates.jsrename to frontend/src/Templates.jsdiff --git a/frontend/my/src/constants.js b/frontend/src/constants.jssimilarity index 100%rename from frontend/my/src/constants.jsrename to frontend/src/constants.jsdiff --git a/frontend/my/src/index.css b/frontend/src/index.csssimilarity index 100%rename from frontend/my/src/index.cssrename to frontend/src/index.cssdiff --git a/frontend/my/src/index.js b/frontend/src/index.jssimilarity index 100%rename from frontend/my/src/index.jsrename to frontend/src/index.jsdiff --git a/frontend/my/src/logo.svg b/frontend/src/logo.svgsimilarity index 100%rename from frontend/my/src/logo.svgrename to frontend/src/logo.svgdiff --git a/frontend/my/src/registerServiceWorker.js b/frontend/src/registerServiceWorker.jssimilarity index 100%rename from frontend/my/src/registerServiceWorker.jsrename to frontend/src/registerServiceWorker.jsdiff --git a/frontend/my/src/static/gallery.svg b/frontend/src/static/gallery.svgsimilarity index 100%rename from frontend/my/src/static/gallery.svgrename to frontend/src/static/gallery.svgdiff --git a/frontend/my/src/static/listmonk.svg b/frontend/src/static/listmonk.svgsimilarity index 100%rename from frontend/my/src/static/listmonk.svgrename to frontend/src/static/listmonk.svgdiff --git a/frontend/my/src/utils.js b/frontend/src/utils.jssimilarity index 100%rename from frontend/my/src/utils.jsrename to frontend/src/utils.jsdiff --git a/main.go b/main.goindex 9ea07780..c3be7e39 100644--- a/main.go+++ b/main.go@@ -101,7 +101,7 @@ func initFileSystem(binPath string) (stuffbin.FileSystem, error) {// The frontend app's static assets are aliased to /frontend// so that they are accessible at localhost:port/frontend/static/ ...- "frontend/my/build:/frontend",+ "frontend/build:/frontend",}fs, err = stuffbin.NewLocalFS("/", files...)