From fc4f2e4da0b1a59019bc0c25d3a3193f2dada040 Mon Sep 17 00:00:00 2001 From: Matt Stover Date: Fri, 4 Oct 2024 17:45:10 -0700 Subject: [PATCH 1/4] fix: install mitt event bus, update dev-inspect command with tailwind-watch --- package-lock.json | 12 ++++++++++++ package.json | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 1fef27ec12..864584c7db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -80,6 +80,7 @@ "memcached": "^2.2.2", "memjs": "^1.2.2", "minimist": "^1.2.6", + "mitt": "^3.0.1", "numeral": "^2.0.6", "passport": "^0.7.0", "passport-auth0": "^1.4.4", @@ -26879,6 +26880,12 @@ "node": ">=4.0.0" } }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "license": "MIT" + }, "node_modules/mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", @@ -57232,6 +57239,11 @@ "through2": "^2.0.0" } }, + "mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==" + }, "mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", diff --git a/package.json b/package.json index 6f0569e005..4c461b54bd 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "start": "cross-env NODE_ENV=production node --max-old-space-size=2048 server/index.js", "start-k8s": "cross-env NODE_ENV=production node --max-old-space-size=1536 server/index.js", "docker-dev-vm": "rimraf node_modules/.cache/hard-source && cross-env NODE_ENV=development node server/dev-server.js", - "inspect-dev": "cross-env NODE_ENV=development node --inspect --max-old-space-size=4096 server/dev-server.js", + "inspect-dev": "cross-env NODE_ENV=development TAILWIND_MODE=watch node --inspect --max-old-space-size=4096 server/dev-server.js", "inspect": "cross-env NODE_ENV=production node --inspect --max-old-space-size=4096 server/index.js", "build": "npm run build:all", "build:all": "rimraf dist && npm run build:client && npm run build:server", @@ -107,6 +107,7 @@ "memcached": "^2.2.2", "memjs": "^1.2.2", "minimist": "^1.2.6", + "mitt": "^3.0.1", "numeral": "^2.0.6", "passport": "^0.7.0", "passport-auth0": "^1.4.4", From cd249f67187f482400feaab64825cde27ebfd309 Mon Sep 17 00:00:00 2001 From: Matt Stover Date: Fri, 4 Oct 2024 17:46:05 -0700 Subject: [PATCH 2/4] fix: use event emitter for dynamic events out of contentful content, fix basket hash --- src/components/Contentful/ButtonWrapper.vue | 5 ++-- src/components/WwwFrame/TheBasketBar.vue | 2 +- .../CorporateCampaign/CCLandingPage.vue | 24 ++++++++++++++----- src/plugins/event-emitter.js | 6 +++++ 4 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 src/plugins/event-emitter.js diff --git a/src/components/Contentful/ButtonWrapper.vue b/src/components/Contentful/ButtonWrapper.vue index 67c210f923..6ac1bad504 100644 --- a/src/components/Contentful/ButtonWrapper.vue +++ b/src/components/Contentful/ButtonWrapper.vue @@ -12,6 +12,7 @@