diff --git a/admin/src/components/ContributionLink/ContributionLink.vue b/admin/src/components/ContributionLink/ContributionLink.vue
index 6440b5eaa..ee18bbee2 100644
--- a/admin/src/components/ContributionLink/ContributionLink.vue
+++ b/admin/src/components/ContributionLink/ContributionLink.vue
@@ -43,56 +43,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-->
diff --git a/admin/src/components/FigureQrCode.vue b/admin/src/components/FigureQrCode.vue
index 353c0d87d..edea28ad8 100644
--- a/admin/src/components/FigureQrCode.vue
+++ b/admin/src/components/FigureQrCode.vue
@@ -1,7 +1,7 @@
@@ -18,26 +18,26 @@ export default {
},
data() {
return {
- options: {
+ image: null,
+ showQr: false,
+ }
+ },
+ computed: {
+ qrOptions() {
+ return {
cellSize: 8,
correctLevel: 'H',
data: this.link,
- logo: {
- image: null,
- },
- },
- }
+ logo: { image: this.image },
+ }
+ },
},
created() {
const image = new Image()
- image.src = 'img/gdd-coin.png'
+ image.src = '/img/gdd-coin.png'
image.onload = () => {
- this.options = {
- ...this.options,
- logo: {
- image,
- },
- }
+ this.image = image
+ this.showQr = true
}
},
}
diff --git a/admin/src/components/Tables/StatisticTable.vue b/admin/src/components/Tables/StatisticTable.vue
index d5a62306c..70ec861f5 100644
--- a/admin/src/components/Tables/StatisticTable.vue
+++ b/admin/src/components/Tables/StatisticTable.vue
@@ -77,7 +77,7 @@
{{ $n(parseFloat(props.statistics.totalGradidoUnbookedDecayed), 'decimal') }}
{{ $t('GDD') }}
- {{ props.statistics.totalGradidoUnbookedDecayed }}
+ {{ props.statistics.totalGradidoUnbookedDecayed }}
diff --git a/admin/src/pages/FederationVisualize.vue b/admin/src/pages/FederationVisualize.vue
index 2f87dd5aa..e669df899 100644
--- a/admin/src/pages/FederationVisualize.vue
+++ b/admin/src/pages/FederationVisualize.vue
@@ -5,8 +5,8 @@
diff --git a/deployment/bare_metal/start.sh b/deployment/bare_metal/start.sh
index 5bdf10547..3fe99bd50 100755
--- a/deployment/bare_metal/start.sh
+++ b/deployment/bare_metal/start.sh
@@ -16,6 +16,7 @@ set +o allexport
# enable nvm
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
+nvm use default
# NOTE: all config values will be in process.env when starting
# the services and will therefore take precedence over the .env
@@ -204,6 +205,9 @@ echo 'Updating frontend' >> $UPDATE_HTML
cd $PROJECT_ROOT/frontend
# TODO maybe handle this differently?
unset NODE_ENV
+nvm use
+nvm install
+npm i -g yarn
yarn install
yarn build
# TODO maybe handle this differently?
@@ -215,12 +219,15 @@ cd $PROJECT_ROOT/admin
# TODO maybe handle this differently?
unset NODE_ENV
nvm use
+nvm install
npm i -g yarn
yarn install
yarn build
# TODO maybe handle this differently?
export NODE_ENV=production
+nvm use default
+
# Install & build dht-node
echo 'Updating dht-node' >> $UPDATE_HTML
cd $PROJECT_ROOT/dht-node
@@ -241,6 +248,7 @@ yarn build
# TODO maybe handle this differently?
export NODE_ENV=production
+nvm use default
# start after building all to use up less ressources
pm2 start --name gradido-backend "yarn --cwd $PROJECT_ROOT/backend start" -l $GRADIDO_LOG_PATH/pm2.backend.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS'
#pm2 start --name gradido-frontend "yarn --cwd $PROJECT_ROOT/frontend start" -l $GRADIDO_LOG_PATH/pm2.frontend.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS'