diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 1d2aef77e..08e03c5b7 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -5,21 +5,5 @@ labels: bug
title: 🐛 [Bug]
---
-## :bug: Bugreport
-
-
-### Steps to reproduce the behavior
-1.
-2.
-3.
-4. ...
-5. Profit
-
-### Expected behavior
-
-
-### Version & Environment
-
-
-### Additional context
-
+## 🐛 Bugreport
+
-
-### Motive
-
-
-### Related issues
-
-
-### Implementation
-
-
-### Validation
-
-
-### Additional context
-
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index ef3b30be2..94e5e5d80 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -5,20 +5,5 @@ labels: feature
title: 🚀 [Feature]
---
-## :rocket: Feature
+## 🚀 Feature
-
-### User Problem
-
-
-### Implementation
-
-
-### Design & Layout
-
-
-### Validation
-
-
-### Additional context
-
diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md
index ef10a53ef..886faae20 100644
--- a/.github/ISSUE_TEMPLATE/question.md
+++ b/.github/ISSUE_TEMPLATE/question.md
@@ -1,11 +1,11 @@
---
name: 💬 Question
-about: If you need help understanding HumanConnection.
+about: If you need help understanding Gradido.
labels: question
title: 💬 [Question]
---
-## :speech_balloon: Question
+## 💬 Question
diff --git a/.github/ISSUE_TEMPLATE/refactor_tickets.md b/.github/ISSUE_TEMPLATE/refactor_tickets.md
index b595abd5d..969595dee 100644
--- a/.github/ISSUE_TEMPLATE/refactor_tickets.md
+++ b/.github/ISSUE_TEMPLATE/refactor_tickets.md
@@ -5,17 +5,5 @@ labels: refactor
title: 🔧 [Refactor]
---
-## :zap: Refactor ticket
+## 🔧 Refactor ticket
-
-### Motive
-
-
-### Related issues
-
-
-### Implementation
-
-
-### Additional context
-
diff --git a/docker-compose.override.yml b/docker-compose.override.yml
index 5a505478b..944f8d976 100644
--- a/docker-compose.override.yml
+++ b/docker-compose.override.yml
@@ -8,6 +8,8 @@ services:
image: gradido/frontend:development
build:
target: development
+ networks:
+ - external-net
environment:
- NODE_ENV="development"
# - DEBUG=true
diff --git a/docker-compose.yml b/docker-compose.yml
index 8b5bf33de..59e617d71 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -15,13 +15,13 @@ services:
context: ./frontend
target: production
networks:
- - external-net
+ - internal-net
ports:
- - 8080:8080
+ - 3000:3000
environment:
# Envs used in Dockerfile
# - DOCKER_WORKDIR="/app"
- # - PORT="8080"
+ # - PORT=3000
- BUILD_DATE
- BUILD_VERSION
- BUILD_COMMIT
diff --git a/frontend/.env.dist b/frontend/.env.dist
index 39edd4b4e..ffe4869fa 100644
--- a/frontend/.env.dist
+++ b/frontend/.env.dist
@@ -1,3 +1,3 @@
LOGIN_API_URL=http://localhost/login_api/
COMMUNITY_API_URL=http://localhost/api/
-VUE_PATH=/vue
+ALLOW_REGISTER=true
\ No newline at end of file
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index f133926b2..5ec90fe81 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -15,7 +15,7 @@ ENV BUILD_COMMIT="0000000"
## SET NODE_ENV
ENV NODE_ENV="production"
## App relevant Envs
-ENV PORT="8080"
+ENV PORT="3000"
# Labels
LABEL org.label-schema.build-date="${BUILD_DATE}"
@@ -82,15 +82,14 @@ FROM base as production
# Copy "binary"-files from build image
COPY --from=build ${DOCKER_WORKDIR}/dist ./dist
-#COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
-#COPY --from=build ${DOCKER_WORKDIR}/nuxt.config.js ./nuxt.config.js
+# We also copy the node_modules express and serve-static for the run script
+COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
# Copy static files
-# TODO - this should be one Folder containign all stuff needed to be copied
-#COPY --from=build ${DOCKER_WORKDIR}/constants ./constants
-#COPY --from=build ${DOCKER_WORKDIR}/static ./static
-#COPY --from=build ${DOCKER_WORKDIR}/locales ./locales
+COPY --from=build ${DOCKER_WORKDIR}/public ./public
# Copy package.json for script definitions (lock file should not be needed)
COPY --from=build ${DOCKER_WORKDIR}/package.json ./package.json
+# Copy run scripts run/
+COPY --from=build ${DOCKER_WORKDIR}/run ./run
# Run command
CMD /bin/sh -c "yarn run start"
diff --git a/frontend/package.json b/frontend/package.json
index 00e0ca45b..a7f59eaa1 100755
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -3,7 +3,7 @@
"version": "0.9.4",
"private": true,
"scripts": {
- "start": "node server.js",
+ "start": "node run/server.js",
"serve": "vue-cli-service serve --open",
"build": "vue-cli-service build",
"lint": "eslint --ext .js,.vue .",
@@ -69,6 +69,7 @@
"vue-good-table": "^2.21.3",
"vue-i18n": "^8.22.4",
"vue-jest": "^3.0.7",
+ "vue-loading-overlay": "^3.4.2",
"vue-moment": "^4.1.0",
"vue-qrcode": "^0.3.5",
"vue-qrcode-reader": "^2.3.16",
diff --git a/frontend/run/server.js b/frontend/run/server.js
new file mode 100644
index 000000000..470acdc4e
--- /dev/null
+++ b/frontend/run/server.js
@@ -0,0 +1,14 @@
+// Imports
+const express = require('express')
+const serveStatic = require('serve-static')
+
+// Port
+const port = process.env.PORT || 3000
+
+// Express Server
+const app = express()
+app.use(serveStatic(__dirname + '/../dist'))
+app.listen(port)
+
+// eslint-disable-next-line no-console
+console.log(`http://frontend:${port} server started.`)
diff --git a/frontend/server.js b/frontend/server.js
deleted file mode 100644
index 5bcebd90a..000000000
--- a/frontend/server.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var express = require('express')
-var serveStatic = require('serve-static')
-var app = express()
-app.use(serveStatic(__dirname + '/dist'))
-var port = process.env.PORT || 5000
-app.listen(port)
-// console.log('http://localhost:5000 server started.');
diff --git a/frontend/src/config/index.js b/frontend/src/config/index.js
index 7d950b87d..fa4bf388b 100644
--- a/frontend/src/config/index.js
+++ b/frontend/src/config/index.js
@@ -2,11 +2,11 @@
// Load Package Details for some default values
// const pkg = require('../../package')
-
const environment = {
NODE_ENV: process.env.NODE_ENV,
DEBUG: process.env.NODE_ENV !== 'production' || false,
PRODUCTION: process.env.NODE_ENV === 'production' || false,
+ ALLOW_REGISTER: process.env.ALLOW_REGISTER !== 'false',
}
const server = {
diff --git a/frontend/src/plugins/dashboard-plugin.js b/frontend/src/plugins/dashboard-plugin.js
index 9b6e350dc..881fecf7d 100755
--- a/frontend/src/plugins/dashboard-plugin.js
+++ b/frontend/src/plugins/dashboard-plugin.js
@@ -37,6 +37,10 @@ import 'vue-good-table/dist/vue-good-table.css'
import VueMoment from 'vue-moment'
+import Loading from 'vue-loading-overlay'
+// import the styles
+import 'vue-loading-overlay/dist/vue-loading.css'
+
Object.keys(rules).forEach((rule) => {
extend(rule, {
...rules[rule], // copies rule configuration
@@ -56,6 +60,7 @@ export default {
Vue.use(VueQrcodeReader)
Vue.use(VueQrcode)
Vue.use(VueFlatPickr)
+ Vue.use(Loading)
configure({
classes: {
valid: 'is-valid',
diff --git a/frontend/src/routes/router.js b/frontend/src/routes/router.js
index 6671a8de9..189516242 100644
--- a/frontend/src/routes/router.js
+++ b/frontend/src/routes/router.js
@@ -1,11 +1,13 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
+import CONFIG from '../config'
Vue.use(VueRouter)
// configure router
const router = new VueRouter({
+ base: '/vue',
routes, // short for routes: routes
linkActiveClass: 'active',
mode: 'history',
@@ -20,4 +22,11 @@ const router = new VueRouter({
},
})
+if (CONFIG.ALLOW_REGISTER) {
+ router.addRoute({
+ path: '/register',
+ component: () => import('../views/Pages/Register.vue'),
+ })
+}
+
export default router
diff --git a/frontend/src/routes/routes.js b/frontend/src/routes/routes.js
index bfaff9de6..ed5394d11 100755
--- a/frontend/src/routes/routes.js
+++ b/frontend/src/routes/routes.js
@@ -50,10 +50,6 @@ const routes = [
path: '/thx',
component: () => import('../views/Pages/thx.vue'),
},
- {
- path: '/register',
- component: () => import('../views/Pages/Register.vue'),
- },
{
path: '/password',
component: () => import('../views/Pages/ForgotPassword.vue'),
diff --git a/frontend/src/views/KontoOverview/GddSend.vue b/frontend/src/views/KontoOverview/GddSend.vue
index 264bb714d..7a29c7478 100644
--- a/frontend/src/views/KontoOverview/GddSend.vue
+++ b/frontend/src/views/KontoOverview/GddSend.vue
@@ -10,7 +10,7 @@
+