From c11cef411934c75ebd57b2f62b2f090d65d6fb46 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 27 Feb 2023 15:23:14 -0800 Subject: [PATCH] Additional whitelabel changes. --- client/public/firebase-messaging-sw.js | 11 +++++++++++ .../user-request-reset-pw.component.jsx | 2 +- client/src/pages/disclaimer/disclaimer.page.jsx | 4 ++-- client/src/redux/user/user.sagas.js | 2 +- client/src/utils/TemplateConstants.js | 2 +- server.js | 2 ++ server/accounting/pbs/pbs-job-export.js | 2 +- server/sms/receive.js | 2 +- 8 files changed, 20 insertions(+), 7 deletions(-) diff --git a/client/public/firebase-messaging-sw.js b/client/public/firebase-messaging-sw.js index 7ee3f3d98..2df9cde10 100644 --- a/client/public/firebase-messaging-sw.js +++ b/client/public/firebase-messaging-sw.js @@ -28,6 +28,17 @@ switch (this.location.hostname) { // measurementId: "${config.measurementId}", }; break; + case "romeonline.io": + firebaseConfig = { + apiKey: "AIzaSyAuLQR9SV5LsVxjU8wh9hvFLdhcAHU6cxE", + authDomain: "rome-prod-1.firebaseapp.com", + projectId: "rome-prod-1", + storageBucket: "rome-prod-1.appspot.com", + messagingSenderId: "147786367145", + appId: "1:147786367145:web:9d4cba68071c3f29a8a9b8", + measurementId: "G-G8Z9DRHTZS", + }; + break; case "imex.online": default: firebaseConfig = { diff --git a/client/src/components/user-request-pw-reset/user-request-reset-pw.component.jsx b/client/src/components/user-request-pw-reset/user-request-reset-pw.component.jsx index aac56a0b4..b0e7a1b7a 100644 --- a/client/src/components/user-request-pw-reset/user-request-reset-pw.component.jsx +++ b/client/src/components/user-request-pw-reset/user-request-reset-pw.component.jsx @@ -55,7 +55,7 @@ export function UserRequestResetPw({ return (
- ImEX Online + Rome Online {t("titles.app")}
{t("titles.resetpassword")} diff --git a/client/src/pages/disclaimer/disclaimer.page.jsx b/client/src/pages/disclaimer/disclaimer.page.jsx index e08b7e350..721be5f91 100644 --- a/client/src/pages/disclaimer/disclaimer.page.jsx +++ b/client/src/pages/disclaimer/disclaimer.page.jsx @@ -6,10 +6,10 @@ export default function AboutPage() {
{`ImEX Online V.${process.env.NODE_ENV}-${process.env.REACT_APP_GIT_SHA}`} + >{`Rome Online V.${process.env.NODE_ENV}-${process.env.REACT_APP_GIT_SHA}`} © 2019 - {new Date().getFullYear()} ImEX Systems Inc. used under - license to Rome Technologies Inc. + license to Rome Technologies Third Party Notices diff --git a/client/src/redux/user/user.sagas.js b/client/src/redux/user/user.sagas.js index d67754f0c..8712d9b45 100644 --- a/client/src/redux/user/user.sagas.js +++ b/client/src/redux/user/user.sagas.js @@ -205,7 +205,7 @@ export function* signInSuccessSaga({ payload }) { [payload.displayName || payload.email], ]); - window.$crisp.push(["set", "session:segments", [["user"]]]); + window.$crisp.push(["set", "session:segments", [["user", "rome"]]]); Sentry.setUser({ email: payload.email, diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js index aab4b9069..18d96660e 100644 --- a/client/src/utils/TemplateConstants.js +++ b/client/src/utils/TemplateConstants.js @@ -2,7 +2,7 @@ import i18n from "i18next"; //import { store } from "../redux/store"; export const EmailSettings = { fromNameDefault: "Rome Online", - fromAddress: "noreply@rome.online", + fromAddress: "noreply@romeonline.io", }; export const TemplateList = (type, context) => { diff --git a/server.js b/server.js index 90d3da90f..95d0d376e 100644 --- a/server.js +++ b/server.js @@ -34,6 +34,8 @@ const io = new Server(server, { "http://localhost:3000", "https://imex.online", "https://www.imex.online", + "https://romeonline.io", + "https://www.romeonline.io", ], methods: ["GET", "POST"], credentials: true, diff --git a/server/accounting/pbs/pbs-job-export.js b/server/accounting/pbs/pbs-job-export.js index ee0b3c8a8..45289e652 100644 --- a/server/accounting/pbs/pbs-job-export.js +++ b/server/accounting/pbs/pbs-job-export.js @@ -656,7 +656,7 @@ async function InsertAccountPostingData(socket) { .toISOString(), //"0001-01-01T00:00:00.0000000Z", Description: socket.txEnvelope.story, //AdditionalInfo: "String", - Source: "ImEX Online", + Source: "Rome Online", Lines: wips, }, }, diff --git a/server/sms/receive.js b/server/sms/receive.js index e081b96b3..9044a64bc 100644 --- a/server/sms/receive.js +++ b/server/sms/receive.js @@ -103,7 +103,7 @@ exports.receive = async (req, res) => { const fcmresp = await admin.messaging().send({ topic: `${message.conversation.bodyshop.imexshopid}-messaging`, notification: { - title: `ImEX Online Message - ${data.phone_num}`, + title: `Rome Online Message - ${data.phone_num}`, body: message.image_path ? `Image ${message.text}` : message.text, //imageUrl: "https://thinkimex.com/img/io-fcm.png", },