Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial setup of asphalt.com & pavementonline.com site. #758

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
004f1e9
Change mobile number to false
jwade1327 Nov 13, 2024
d8fd10a
Merge pull request #752 from jwade1327/mobile-optional
Shinsina Nov 13, 2024
4878919
v2.17.1
jwade1327 Nov 13, 2024
68a5bce
Remove specific ad alias ‘profit matters’
jwade1327 Nov 25, 2024
bcfea92
Merge pull request #754 from jwade1327/gamProfitMatters
Shinsina Nov 26, 2024
cb8e1cd
v2.17.2
jwade1327 Nov 26, 2024
5a918d8
Add Workwear to navigation FCP
Shinsina Dec 3, 2024
1389bdd
Merge pull request #755 from Shinsina/workwear-fcp
Shinsina Dec 3, 2024
2b1b0fb
v2.17.3
Shinsina Dec 3, 2024
7d6400d
@parameter1/base-cms dep upgrades 4.81.0
B77Mills Dec 3, 2024
31b7fcf
update css on content meter to make it span full width
B77Mills Dec 3, 2024
d7ab503
remove console log
B77Mills Dec 3, 2024
f85f0f5
fix placement of content meter and sticky footer ad.
B77Mills Dec 3, 2024
d3e3f46
Merge pull request #756 from B77Mills/trackMeter
B77Mills Dec 3, 2024
3d0257c
v2.17.4
B77Mills Dec 3, 2024
567ae31
Initial port/split of Asphalt & FCP
B77Mills Dec 9, 2024
b0d05ee
Fix alias
B77Mills Dec 9, 2024
88a3ee8
Add publicationIds & update logos
B77Mills Dec 10, 2024
c2d4328
update premium content alias
B77Mills Dec 10, 2024
1333af8
update auto signup to be acon
B77Mills Dec 10, 2024
cabd806
fix config ref
B77Mills Dec 10, 2024
6479c62
set profile question to be asphalt
B77Mills Dec 10, 2024
85450fa
Inital setup of PVM site folder
B77Mills Dec 10, 2024
ce7710f
add asphalt icons
B77Mills Dec 10, 2024
6585e85
add icons
B77Mills Dec 10, 2024
79f1027
fix site css to add section colors
B77Mills Dec 10, 2024
b5df136
update pvm to pavementonline.com
B77Mills Dec 10, 2024
6018434
Disallow crawling for now!
B77Mills Dec 10, 2024
c7f20f4
New ACON & PVM to only deploy to staging with leonis!
B77Mills Dec 10, 2024
ff27ed1
set pvm gtm container id
B77Mills Dec 10, 2024
06a499e
put him back
B77Mills Dec 10, 2024
755937a
revert fcp back
B77Mills Dec 10, 2024
c167836
remove a couple of invalid section routes
B77Mills Dec 10, 2024
a0ca72a
update specguides part of site config
B77Mills Dec 10, 2024
502ab51
set website attri in omeda
B77Mills Dec 11, 2024
67cef29
Adjust header to reflect color and make logo black and white for now.
B77Mills Dec 11, 2024
360d79a
update navigation logic on what displays when
B77Mills Dec 11, 2024
df57e01
Point gam root aliass ad new units
B77Mills Dec 11, 2024
e2b6bce
remove invalid return
B77Mills Dec 11, 2024
251236f
update defualt alias
B77Mills Dec 11, 2024
3b59aca
fix footer nav
B77Mills Dec 11, 2024
2e553f7
adjust ssearch section & notification bg colors
B77Mills Dec 12, 2024
070bd2a
Update to deploy to all envs
B77Mills Dec 12, 2024
42df1a6
Use shared global idx forms and remove site level for now.
B77Mills Dec 12, 2024
bf858a5
Fix recommended block and account for not having a personaHandler sec…
B77Mills Dec 12, 2024
fae956b
fix site map ref in robots
B77Mills Dec 12, 2024
ac5045a
fix local ref
B77Mills Dec 12, 2024
3b38c00
Point acon & pvm at tauron
B77Mills Dec 12, 2024
d6bd69d
Add missing , :(
B77Mills Dec 12, 2024
b148e5d
Remove PVM spec guide routing
B77Mills Dec 13, 2024
f1b3d7c
remove leonis envs instead point at prod/tauron
B77Mills Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ jobs:
#v# Make sure this matches the site matrix! #v#
###############################################
site:
- { dir: asphalt.com, stack: tauron, id: 675738bf11878ad52d62f188, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-asphalt.com }
- { dir: foodlogistics.com, stack: tauron, id: 53c95f4a1784f8066eb2c86a, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-foodlogistics.com }
- { dir: forconstructionpros.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-forconstructionpros.com }
- { dir: greenindustrypros.com, stack: tauron, id: 53c95fdd1784f8066eb2c891, account: acbm, tenant: acbm_gip, rancher_label: ac-business-media-greenindustrypros.com }
- { dir: ironpros.com, stack: tauron, id: 65f8419f7985623e9ff46d6e, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-ironpros.com }
- { dir: oemoffhighway.com, stack: tauron, id: 54b5a261c99db54158ed0fc9, account: acbm, tenant: acbm_ooh, rancher_label: ac-business-media-oemoffhighway.com }
- { dir: pavementonline.com, stack: tauron, id: 6757395211878ad52d66131a, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-pavementonline.com }
- { dir: rentalproductnews.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-rentalproductnews.com }
- { dir: sdcexec.com, stack: tauron, id: 53c960451784f8066eb2c8a4, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-sdcexec.com }
###############################################
Expand All @@ -79,11 +81,13 @@ jobs:
#v# Make sure this matches the site matrix! #v#
###############################################
site:
- { dir: asphalt.com, stack: tauron, id: 675738bf11878ad52d62f188, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-asphalt.com }
- { dir: foodlogistics.com, stack: tauron, id: 53c95f4a1784f8066eb2c86a, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-foodlogistics.com }
- { dir: forconstructionpros.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-forconstructionpros.com }
- { dir: greenindustrypros.com, stack: tauron, id: 53c95fdd1784f8066eb2c891, account: acbm, tenant: acbm_gip, rancher_label: ac-business-media-greenindustrypros.com }
- { dir: ironpros.com, stack: tauron, id: 65f8419f7985623e9ff46d6e, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-ironpros.com }
- { dir: oemoffhighway.com, stack: tauron, id: 54b5a261c99db54158ed0fc9, account: acbm, tenant: acbm_ooh, rancher_label: ac-business-media-oemoffhighway.com }
- { dir: pavementonline.com, stack: tauron, id: 6757395211878ad52d66131a, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-pavementonline.com }
- { dir: rentalproductnews.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-rentalproductnews.com }
- { dir: sdcexec.com, stack: tauron, id: 53c960451784f8066eb2c8a4, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-sdcexec.com }
###############################################
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ jobs:
#v# Make sure this matches the site matrix! #v#
###############################################
site:
- { dir: asphalt.com, stack: tauron, id: 675738bf11878ad52d62f188, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-asphalt.com }
- { dir: foodlogistics.com, stack: tauron, id: 53c95f4a1784f8066eb2c86a, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-foodlogistics.com }
- { dir: forconstructionpros.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-forconstructionpros.com }
- { dir: greenindustrypros.com, stack: tauron, id: 53c95fdd1784f8066eb2c891, account: acbm, tenant: acbm_gip, rancher_label: ac-business-media-greenindustrypros.com }
- { dir: ironpros.com, stack: tauron, id: 65f8419f7985623e9ff46d6e, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-ironpros.com }
- { dir: oemoffhighway.com, stack: tauron, id: 54b5a261c99db54158ed0fc9, account: acbm, tenant: acbm_ooh, rancher_label: ac-business-media-oemoffhighway.com }
- { dir: pavementonline.com, stack: tauron, id: 6757395211878ad52d66131a, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-pavementonline.com }
- { dir: rentalproductnews.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-rentalproductnews.com }
- { dir: sdcexec.com, stack: tauron, id: 53c960451784f8066eb2c8a4, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-sdcexec.com }
###############################################
Expand All @@ -78,11 +80,13 @@ jobs:
#v# Make sure this matches the site matrix! #v#
###############################################
site:
- { dir: asphalt.com, stack: tauron, id: 675738bf11878ad52d62f188, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-asphalt.com }
- { dir: foodlogistics.com, stack: tauron, id: 53c95f4a1784f8066eb2c86a, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-foodlogistics.com }
- { dir: forconstructionpros.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-forconstructionpros.com }
- { dir: greenindustrypros.com, stack: tauron, id: 53c95fdd1784f8066eb2c891, account: acbm, tenant: acbm_gip, rancher_label: ac-business-media-greenindustrypros.com }
- { dir: ironpros.com, stack: tauron, id: 65f8419f7985623e9ff46d6e, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-ironpros.com }
- { dir: oemoffhighway.com, stack: tauron, id: 54b5a261c99db54158ed0fc9, account: acbm, tenant: acbm_ooh, rancher_label: ac-business-media-oemoffhighway.com }
- { dir: pavementonline.com, stack: tauron, id: 6757395211878ad52d66131a, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-pavementonline.com }
- { dir: rentalproductnews.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-rentalproductnews.com }
- { dir: sdcexec.com, stack: tauron, id: 53c960451784f8066eb2c8a4, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-sdcexec.com }
###############################################
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
#v# Make sure this matches the site matrix! #v#
###############################################
site:
- { dir: asphalt.com, stack: tauron, id: 675738bf11878ad52d62f188, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-asphalt.com }
- { dir: foodlogistics.com, stack: tauron, id: 53c95f4a1784f8066eb2c86a, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-foodlogistics.com }
- { dir: forconstructionpros.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-forconstructionpros.com }
- { dir: greenindustrypros.com, stack: tauron, id: 53c95fdd1784f8066eb2c891, account: acbm, tenant: acbm_gip, rancher_label: ac-business-media-greenindustrypros.com }
- { dir: ironpros.com, stack: tauron, id: 65f8419f7985623e9ff46d6e, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-ironpros.com }
- { dir: oemoffhighway.com, stack: tauron, id: 54b5a261c99db54158ed0fc9, account: acbm, tenant: acbm_ooh, rancher_label: ac-business-media-oemoffhighway.com }
- { dir: pavementonline.com, stack: tauron, id: 6757395211878ad52d66131a, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-pavementonline.com }
- { dir: rentalproductnews.com, stack: tauron, id: 53ca8d671784f8066eb2c949, account: acbm, tenant: acbm_fcp, rancher_label: ac-business-media-rentalproductnews.com }
- { dir: sdcexec.com, stack: tauron, id: 53c960451784f8066eb2c8a4, account: acbm, tenant: acbm_scn, rancher_label: ac-business-media-sdcexec.com }
###############################################
Expand Down
30 changes: 30 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,36 @@ services:
depends_on:
- mongodb

acon:
<<: *site-cmd
working_dir: /root/sites/asphalt.com
environment:
<<: *env
PORT: 80
EXPOSED_PORT: 9722
LIVERELOAD_PORT: 19722
OMEDA_INPUT_ID: ${ACON_OMEDA_INPUT_ID-(unset)}
HOST: www-acbm-acon.dev.parameter1.com
hostname: www-acbm-acon.dev.parameter1.com
ports:
- "9722:80"
- "19722:19722"

pvm:
<<: *site-cmd
working_dir: /root/sites/pavementonline.com
environment:
<<: *env
PORT: 80
EXPOSED_PORT: 9723
LIVERELOAD_PORT: 19723
OMEDA_INPUT_ID: ${PVM_OMEDA_INPUT_ID-(unset)}
HOST: www-acbm-pvm.dev.parameter1.com
hostname: www-acbm-pvm.dev.parameter1.com
ports:
- "9723:80"
- "19723:19723"

mongodb:
tty: true
image: mongo:5
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.17.0",
"version": "2.17.4",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"test": "lerna run test"
},
"devDependencies": {
"@parameter1/base-cms-eslint": "^4.5.12",
"@parameter1/base-cms-marko-compiler": "^4.40.3",
"@parameter1/browserslist-config-base-cms": "^4.5.12",
"@parameter1/base-cms-eslint": "^4.74.0",
"@parameter1/base-cms-marko-compiler": "^4.74.0",
"@parameter1/browserslist-config-base-cms": "^4.74.0",
"lerna": "^6.5.1"
},
"engines": {
Expand Down
20 changes: 10 additions & 10 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ac-business-media/package-common",
"version": "2.16.6",
"version": "2.17.4",
"author": "Brandon Krigbaum <[email protected]>",
"repository": "https://github.com/parameter1/ac-business-media-websites/tree/master/packages/common",
"license": "MIT",
Expand All @@ -13,15 +13,15 @@
"test": "yarn lint && yarn compile --no-clean"
},
"dependencies": {
"@parameter1/base-cms-env": "^4.5.12",
"@parameter1/base-cms-marko-core": "^4.55.4",
"@parameter1/base-cms-marko-web": "^4.71.2",
"@parameter1/base-cms-marko-web-gtm": "^4.73.0",
"@parameter1/base-cms-marko-web-search": "^4.55.4",
"@parameter1/base-cms-marko-web-theme-default": "^4.40.3",
"@parameter1/base-cms-object-path": "^4.40.3",
"@parameter1/base-cms-utils": "^4.40.3",
"@parameter1/base-cms-web-cli": "^4.57.1",
"@parameter1/base-cms-env": "^4.74.0",
"@parameter1/base-cms-marko-core": "^4.80.0",
"@parameter1/base-cms-marko-web": "^4.80.0",
"@parameter1/base-cms-marko-web-gtm": "^4.74.0",
"@parameter1/base-cms-marko-web-search": "^4.80.4",
"@parameter1/base-cms-marko-web-theme-default": "^4.80.4",
"@parameter1/base-cms-object-path": "^4.74.0",
"@parameter1/base-cms-utils": "^4.74.0",
"@parameter1/base-cms-web-cli": "^4.74.0",
"@sendgrid/mail": "^6.4.0",
"@trevoreyre/autocomplete-vue": "^2.2.0",
"body-parser": "^1.19.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/directory/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ac-business-media/package-directory",
"version": "2.16.6",
"version": "2.17.4",
"author": "Jacob Bare <[email protected]>",
"repository": "https://github.com/parameter1/ac-business-media-websites/tree/master/packages/directory",
"license": "MIT",
Expand All @@ -13,10 +13,10 @@
"test": "yarn lint && yarn compile --no-clean"
},
"dependencies": {
"@parameter1/base-cms-marko-core": "^4.55.4",
"@parameter1/base-cms-marko-web": "^4.71.2",
"@parameter1/base-cms-marko-web-theme-default": "^4.40.3",
"@parameter1/base-cms-object-path": "^4.40.3"
"@parameter1/base-cms-marko-core": "^4.80.0",
"@parameter1/base-cms-marko-web": "^4.80.0",
"@parameter1/base-cms-marko-web-theme-default": "^4.80.4",
"@parameter1/base-cms-object-path": "^4.74.0"
},
"engines": {
"node": ">=14.15"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ const title = defaultValue(input.title, "Recommended");
<if(hasUser)>
$ const answeredQuestions = user.customSelectFieldAnswers.filter((answers) => answers.hasAnswered);
$ const { assignedRecommendContentSections } = personasHandler({ answeredQuestions });
$ const sectionIdForRecommendedContent = assignedRecommendContentSections[Math.floor(Math.random() * assignedRecommendContentSections.length)];
$ const sectionIdForRecommendedContent = assignedRecommendContentSections ? assignedRecommendContentSections[Math.floor(Math.random() * assignedRecommendContentSections.length)] : null;
<if(sectionIdForRecommendedContent)>
$ const queryParams = {
sectionId: sectionIdForRecommendedContent,
Expand Down
10 changes: 10 additions & 0 deletions packages/global/components/document.marko
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $ const {
req,
nativeX,
GAM,
contentMeterState,
} = out.global;

$ const omedaConfig = site.get('omeda');
Expand Down Expand Up @@ -120,6 +121,15 @@ $ const omedaConfig = site.get('omeda');
<else>
<global-site-footer />
</else>
<if(contentMeterState && !contentMeterState.isLoggedIn)>
<theme-content-meter-block
views=contentMeterState.views
view-limit=contentMeterState.viewLimit
display-overlay=contentMeterState.displayOverlay
display-gate=contentMeterState.displayGate
dynamic-title="We hope you’ve enjoyed your articles."
/>
</if>
</@below-container>
<@below-wrapper>
<marko-web-deferred-script-loader-load />
Expand Down
36 changes: 19 additions & 17 deletions packages/global/components/layouts/content/wrapper.marko
Original file line number Diff line number Diff line change
Expand Up @@ -130,25 +130,27 @@ $ const fixedAdBottom = defaultValue(input.fixedAdBottom, true);
</@section>
</marko-web-page-wrapper>
</if>
<if(withAds && !isSponsored)>
<theme-reveal-ad-handler
select-all-targets=true
path=GAM.getAdUnit({ name: "reskin", aliases }).path
id="reveal-ad"
/>
<theme-fixed-ad-bottom aliases=aliases />
<if(contentMeterState && !contentMeterState.isLoggedIn)>
<theme-content-meter-block
views=contentMeterState.views
view-limit=contentMeterState.viewLimit
display-overlay=contentMeterState.displayOverlay
display-gate=contentMeterState.displayGate
dynamic-title="We hope you’ve enjoyed your articles."
/>
</if>
</if>

</marko-web-resolve-page>
</marko-web-page-container>
</if>
</@below-page>
<@belowContainer>
<if(type !== "page")>
<marko-web-resolve-page|{ data: content, resolved }| node=pageNode>
$ const section = content.primarySection;
$ const labels = getAsArray(content, "labels");
$ const isSponsored = labels.includes("Sponsored");
$ const aliases = hierarchyAliases(section);
<if(withAds && !isSponsored)>
<theme-reveal-ad-handler
select-all-targets=true
path=GAM.getAdUnit({ name: "reskin", aliases }).path
id="reveal-ad"
/>
<theme-fixed-ad-bottom aliases=aliases />
</if>
</marko-web-resolve-page>
</if>
</@belowContainer>
</theme-content-page>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const formDefault = require('@ac-business-media/package-global/config/identity-x/default');
const formDefault = require('./default');

const form = {
title: 'Asphalt Content Form',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const formDefault = require('@ac-business-media/package-global/config/identity-x/default');
const formDefault = require('./default');

const form = {
title: 'Concrete Content Form',
Expand Down
2 changes: 1 addition & 1 deletion packages/global/config/identity-x/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
label: 'Mobile Number',
key: 'mobileNumber',
type: 'built-in',
required: true,
required: false,
width: 0.5,
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const formDefault = require('@ac-business-media/package-global/config/identity-x/default');
const formDefault = require('./default');

const form = {
title: 'Equipment Content Form',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const formDefault = require('@ac-business-media/package-global/config/identity-x/default');
const formDefault = require('./default');

const form = {
title: 'Pavement Content Form',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const formDefault = require('@ac-business-media/package-global/config/identity-x/default');
const formDefault = require('./default');

const form = {
title: 'Rental Content Form',
Expand Down
Loading
Loading