From 3a0021c5d8e8d684d8b7f9f3d17831142e115b14 Mon Sep 17 00:00:00 2001 From: frakarr Date: Tue, 9 Dec 2025 13:55:11 +0100 Subject: [PATCH] feat: Add PayPal configuration to settings Introduces the ability to configure PayPal credentials for individual condos within the settings. This feature is only visible if PayPal is enabled in the global settings. Also removes and simplifies Dockerfile configurations. --- .dockerignore | Bin 188 -> 136 bytes Dockerfile | 15 --------------- nginx.conf | 38 -------------------------------------- pages/Settings.tsx | 20 ++++++++++++++++++++ server/Dockerfile | 13 ------------- 5 files changed, 20 insertions(+), 66 deletions(-) diff --git a/.dockerignore b/.dockerignore index c2f40b612d49512df49fd4f7c96a33a4c874f7c0..276bbec6497998dcc0f46046911191732494e1c2 100644 GIT binary patch literal 136 zcmaFAfA9PKd*gsOOBP6k196$QE)xfkW&~m&VlV*`UO=o}2_$5I7=nu6EC?gh8A8j! Y#jB35hO;3I6nmJ|<8rux;vj?K0B1~FyZ`_I literal 188 zcmZXOy$ZrG6h`;^6qmS(O { + {/* PayPal Configuration for Single Condo Mode */} + {globalSettings?.features.payPal && ( +
+
+ + Configurazione Pagamenti +
+
+ + setActiveCondo({...activeCondo, paypalClientId: e.target.value})} + /> +

Necessario per abilitare i pagamenti online delle rate.

+
+
+ )} +
setActiveCondo({ ...activeCondo, defaultMonthlyQuota: parseFloat(e.target.value) })} className="w-full border p-2.5 rounded-lg text-slate-700" placeholder="Quota Default" required /> diff --git a/server/Dockerfile b/server/Dockerfile index 9a6d3cb..e69de29 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,13 +0,0 @@ -FROM node:18-alpine -WORKDIR /app - -# Set production environment -ENV NODE_ENV=production - -COPY package*.json ./ -RUN npm install --production - -COPY . . - -EXPOSE 3001 -CMD ["node", "server.js"]