gatsby-core-theme 44.5.0-poc.3 → 44.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ci.yml +2 -28
- package/CHANGELOG.md +229 -32
- package/gatsby-browser.js +48 -78
- package/gatsby-node.mjs +25 -21
- package/package.json +1 -1
- package/release.config.js +0 -5
- package/src/components/atoms/admin/button/index.js +1 -1
- package/src/components/atoms/author/index.js +6 -5
- package/src/components/atoms/collapse/collapse.test.js +113 -26
- package/src/components/atoms/collapse/index.js +23 -1
- package/src/components/atoms/comment-votes/comment-votes.module.scss +34 -0
- package/src/components/atoms/comment-votes/index.js +93 -0
- package/src/components/atoms/ratings/index.js +7 -0
- package/src/components/atoms/ratings/rating.test.js +1 -1
- package/src/components/molecules/comment/comment.module.scss +42 -74
- package/src/components/molecules/comment/index.js +108 -134
- package/src/components/molecules/header/variants/operator/template-one-two/index.js +4 -3
- package/src/components/molecules/header/variants/operator/template-one-two/template-one-two.stories.js +4 -3
- package/src/components/molecules/header/variants/operator/template-one-two/template-one-two.test.js +8 -8
- package/src/components/molecules/header/variants/slot/template-one/index.js +4 -3
- package/src/components/molecules/header/variants/slot/template-one/template-one.stories.js +4 -3
- package/src/components/molecules/leave-comment-form/index.js +25 -19
- package/src/components/molecules/spotlights_v2/icon/template-one/index.js +1 -1
- package/src/components/organisms/anchor/template-one/anchor.module.scss +19 -11
- package/src/components/organisms/archive/index.js +5 -2
- package/src/components/organisms/comments/comment-tree/comment-tree.module.scss +47 -0
- package/src/components/organisms/comments/comment-tree/index.js +8 -7
- package/src/components/organisms/comments/index.js +14 -26
- package/src/components/organisms/cookie-consent/index.js +48 -34
- package/src/components/organisms/form/fields/fields.module.scss +7 -4
- package/src/components/organisms/form/fields/index.js +101 -56
- package/src/components/organisms/form/form.module.scss +131 -39
- package/src/components/organisms/form/form.test.js +28 -33
- package/src/components/organisms/form/index.js +138 -78
- package/src/constants/forms.js +65 -14
- package/src/constants/ratings-constant.js +5 -0
- package/src/constants/schema.js +1 -0
- package/src/constants/settings.mjs +0 -1
- package/src/context/VotesProvider.js +49 -0
- package/src/helpers/replaceMedia.js +44 -1
- package/src/helpers/schema.js +32 -0
- package/src/helpers/tracker.mjs +2 -2
- package/src/resolver/index.mjs +8 -4
- package/src/resolver/modules.mjs +9 -6
- package/src/resolver/modules.test.js +1 -1
- package/src/resolver/redirect.mjs +23 -0
- package/src/resolver/redirect.test.js +65 -1
package/.ci.yml
CHANGED
|
@@ -20,7 +20,7 @@ Theme Tests:
|
|
|
20
20
|
- if: '$CI_PIPELINE_SOURCE == "push" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "beta") && $PIPELINE == "automated"'
|
|
21
21
|
|
|
22
22
|
Theme Publish:
|
|
23
|
-
image: node:
|
|
23
|
+
image: node:20.8.1
|
|
24
24
|
stage: publish
|
|
25
25
|
tags:
|
|
26
26
|
- gatsby-runner-dev-docker
|
|
@@ -44,13 +44,11 @@ Theme Publish:
|
|
|
44
44
|
- $PIPELINE != "content-trigger"
|
|
45
45
|
|
|
46
46
|
Theme Beta Publish:
|
|
47
|
-
image: node:
|
|
47
|
+
image: node:20.8.1
|
|
48
48
|
stage: publish-beta
|
|
49
49
|
tags:
|
|
50
50
|
- gatsby-runner-dev-docker
|
|
51
51
|
before_script:
|
|
52
|
-
- echo "@gigmedia:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
53
|
-
- echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" >> ~/.npmrc
|
|
54
52
|
- git config --global http.sslverify false
|
|
55
53
|
- git config --global user.email "floyd@gig.com"
|
|
56
54
|
- git config --global user.name "floyd"
|
|
@@ -66,27 +64,3 @@ Theme Beta Publish:
|
|
|
66
64
|
- beta
|
|
67
65
|
variables:
|
|
68
66
|
- $PIPELINE != "content-trigger"
|
|
69
|
-
|
|
70
|
-
Theme POC Publish:
|
|
71
|
-
image: node:18.17.0
|
|
72
|
-
stage: publish-poc
|
|
73
|
-
tags:
|
|
74
|
-
- gatsby-runner-dev-docker
|
|
75
|
-
before_script:
|
|
76
|
-
- echo "@gigmedia:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
77
|
-
- echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" >> ~/.npmrc
|
|
78
|
-
- git config --global http.sslverify false
|
|
79
|
-
- git config --global user.email "floyd@gig.com"
|
|
80
|
-
- git config --global user.name "floyd"
|
|
81
|
-
script:
|
|
82
|
-
- export HUSKY=0
|
|
83
|
-
- yarn config set cache-folder .yarn
|
|
84
|
-
- yarn
|
|
85
|
-
- cd gatsby-theme/
|
|
86
|
-
- npx semantic-release@22.0.0
|
|
87
|
-
when: manual
|
|
88
|
-
only:
|
|
89
|
-
refs:
|
|
90
|
-
- poc
|
|
91
|
-
variables:
|
|
92
|
-
- $PIPELINE != "content-trigger"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,64 +1,261 @@
|
|
|
1
|
-
# [44.5.0
|
|
1
|
+
# [44.5.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.62...v44.5.0) (2025-10-21)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix the content logic on preview ([c2baa91](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c2baa913816189b8ebba88c140f48a79f9bacd39))
|
|
7
|
+
* remove filter tbody rows ([1fdcd8e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1fdcd8e98abea64c7554eb9ad24e4972ffa1e63f))
|
|
8
|
+
* update payout time ([ddcc0d3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ddcc0d3c42ada27858db0757a8bbc5576fb303a1))
|
|
9
|
+
* update tests ([931aa14](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/931aa1446150c7dc057d997afa49facc0ff1b36e))
|
|
5
10
|
|
|
6
|
-
* remove yieldToMain ([4c2b852](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4c2b85257b3e69712db882f487ac9a6a9bd3a044))
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
* Merge branch 'en-91-preview' into 'master' ([07317e4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/07317e45ea83edbcd607a1a2ca49a834cb169354))
|
|
13
|
+
* Merge branch 'en-110-thead-tag' into 'master' ([9f68b38](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9f68b38fbf4f15d39fa3dc58bcf60d68094cf0d3))
|
|
14
|
+
* Merge branch 'en-140-payout-time' into 'master' ([b86aca2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b86aca22dd9b45cb5af02821737d5013100a059f))
|
|
9
15
|
|
|
10
16
|
|
|
11
17
|
### Features
|
|
12
18
|
|
|
13
|
-
*
|
|
19
|
+
* create thead tag on table content ([8bd4564](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8bd45641ac459f0cb4a0ca724711681c81567259))
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
## [44.4.62](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.61...v44.4.62) (2025-10-13)
|
|
16
22
|
|
|
17
23
|
|
|
18
24
|
### Bug Fixes
|
|
19
25
|
|
|
20
|
-
*
|
|
21
|
-
* gtm id ([52c86e7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/52c86e77884fc12da1db4f1aea6ef739d44d224b))
|
|
22
|
-
* test deploy ([fa38562](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/fa3856257c8149dc84bf72e57e0fcc5ece8839af))
|
|
23
|
-
* test deploy ([6d649ce](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6d649ce3343a61792522be16a792fcc2c7aa158d))
|
|
24
|
-
* yield only on one place ([52acd92](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/52acd92131461b781f1b8e60e9f366239878ca3e))
|
|
26
|
+
* add title comment section as props ([a265fde](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a265fde61aa044113be71008c9340ea51e82b42d))
|
|
25
27
|
|
|
28
|
+
## [44.4.61](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.60...v44.4.61) (2025-10-10)
|
|
26
29
|
|
|
27
|
-
* Merge branch 'poc' of gitlab.com:g2m-gentoo/team-floyd/themes/gatsby-themes into poc ([cb72402](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/cb72402d1e34e427742f6ae335f77bbb9ad77785))
|
|
28
|
-
* Merge branch 'revert-2a55f352' into 'poc' ([eb0069c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/eb0069cd14b7a01c85e911cf6bf4abf8b4bb0fce))
|
|
29
|
-
* Revert "fix: remove multiple templates" ([0e1a8ca](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0e1a8ca0d1f7d21d059eff734aa040ef02f0e9b9))
|
|
30
30
|
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* add validation and translation ([558d589](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/558d589bbca711780ad24ec41de9ed9ffeb56524))
|
|
34
|
+
* clean up ([08f80b1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/08f80b1fbf9dda07a801aced5ab93a4717c5b614))
|
|
35
|
+
* do style ([a9818f5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a9818f53d6ec14e8741b756f5774a15c3100c3ba))
|
|
36
|
+
* fix tests ([f11785c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f11785c7e9a53949e28e532af12282abd4e56f54))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
* Merge branch 'valdation&translation' into 'master' ([4fe896a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4fe896aa8678fba227bf00cbf7ad5abe4dd425a6))
|
|
40
|
+
|
|
41
|
+
## [44.4.60](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.59...v44.4.60) (2025-10-08)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
* improve comment logic ([f1786b8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f1786b87f4705fea44dad32cd058734c65db6a5b))
|
|
47
|
+
|
|
48
|
+
## [44.4.59](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.58...v44.4.59) (2025-10-01)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Config
|
|
52
|
+
|
|
53
|
+
* update node version on semantic release ([4803297](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4803297d6e6e032e732de2c4c7e95c51a3de890e))
|
|
54
|
+
|
|
55
|
+
## [44.4.58](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.57...v44.4.58) (2025-09-26)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* fix the issue ([8a70580](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8a70580120d69d82cdc8e023c0df5509849e3b21))
|
|
61
|
+
* fix toplist redirection on admin bar and comments form ([4c0f3b5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4c0f3b568d3a57d7f17e3a1c1908f0e91f70e108))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
* Merge branch 'comments-fix' into 'master' ([d12464e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d12464e81f04c0858f38a4876d9c5fd04afbc96a))
|
|
65
|
+
|
|
66
|
+
## [44.4.57](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.56...v44.4.57) (2025-09-11)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Bug Fixes
|
|
70
|
+
|
|
71
|
+
* added option to include toplist in schema ([f335572](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f3355722385dc2c9cc27de4f5b4ddf9b3728bc36))
|
|
72
|
+
|
|
73
|
+
## [44.4.56](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.55...v44.4.56) (2025-09-10)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Bug Fixes
|
|
77
|
+
|
|
78
|
+
* update checkbox ([6787100](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6787100195fd2613a874d876c6f8f8af7e395ba4))
|
|
79
|
+
|
|
80
|
+
## [44.4.55](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.54...v44.4.55) (2025-09-09)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Bug Fixes
|
|
84
|
+
|
|
85
|
+
* update styling ([33b8f06](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/33b8f0669b65617d481379ab42989a56c98e792f))
|
|
86
|
+
|
|
87
|
+
## [44.4.54](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.53...v44.4.54) (2025-09-08)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* fixed tests ([bbe1370](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bbe1370f5eef7787e8c7865b1fbfc2ca8c936bb5))
|
|
93
|
+
* remove content id when content is empty, for the moment when content is empty is showing the id ([7a55cc1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7a55cc16eb012270d2c9d192fd4da92abb7d5fb7))
|
|
94
|
+
* remove livegoals from SSR till they want to use matrix theme ([854e7fd](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/854e7fd43b1a059514be414fb85550556e2f8598))
|
|
95
|
+
* update alt ([9ef63e3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9ef63e333909472eb3242a0d0eb571ea4581c41f))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
* Merge branch 'remove-content-id' into 'master' ([36eb1c2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/36eb1c20625401ed1ae3e814324656223bdcb96b))
|
|
99
|
+
* Merge branch 'sheet' into 'master' ([3682181](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/36821815a5b79ac165b4837b3041c8188e583fc6))
|
|
100
|
+
|
|
101
|
+
## [44.4.53](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.52...v44.4.53) (2025-09-06)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
* added vars for comments ([bae7841](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bae784144e2253f8ee4d9ca9698a32312f3d426f))
|
|
107
|
+
* update gtm id ([efedd77](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/efedd7751e36c891bbd770c6ff38f4668d1bb833))
|
|
108
|
+
|
|
109
|
+
## [44.4.52](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.51...v44.4.52) (2025-09-02)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* revert gtm changes ([4f05ce2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4f05ce26a89137acb82d638f9ffceb29168127a8))
|
|
115
|
+
|
|
116
|
+
## [44.4.51](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.50...v44.4.51) (2025-09-02)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Bug Fixes
|
|
120
|
+
|
|
121
|
+
* testing gtm scripts ([9fc6ffb](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9fc6ffbcd00472155df82315dffa42a093a0cec7))
|
|
122
|
+
|
|
123
|
+
## [44.4.50](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.49...v44.4.50) (2025-09-02)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
* testing INP ([397a9cd](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/397a9cda61065a81b9d596a07679a722e534d788))
|
|
129
|
+
|
|
130
|
+
## [44.4.49](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.48...v44.4.49) (2025-09-02)
|
|
31
131
|
|
|
32
|
-
### Features
|
|
33
132
|
|
|
34
|
-
|
|
133
|
+
### Bug Fixes
|
|
134
|
+
|
|
135
|
+
* updated gtm inclusion ([b7f0360](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b7f03605d1984351042fa06a1cd67812d39e435e))
|
|
136
|
+
|
|
137
|
+
## [44.4.48](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.47...v44.4.48) (2025-09-02)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Bug Fixes
|
|
141
|
+
|
|
142
|
+
* add lazy for comoponents ([732fdf7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/732fdf7c10c3bbd1e46ca1d2f4bef04d879c8409))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
* Merge branch 'en-8-cwv-unused-js' into 'master' ([bcc5448](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bcc5448cfce871e8189c7fbd42493c6f1d4c477e))
|
|
146
|
+
|
|
147
|
+
## [44.4.47](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.46...v44.4.47) (2025-09-01)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Bug Fixes
|
|
151
|
+
|
|
152
|
+
* checkbox issue ([dac5349](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/dac5349111ebd0c38bf1d84f05a35f34280dfe31))
|
|
153
|
+
|
|
154
|
+
## [44.4.46](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.45...v44.4.46) (2025-09-01)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### Bug Fixes
|
|
158
|
+
|
|
159
|
+
* comment vote logic ([a09a3bd](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a09a3bd5ef047976362b12099fb37e84c682cb69))
|
|
160
|
+
|
|
161
|
+
## [44.4.45](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.44...v44.4.45) (2025-08-29)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Bug Fixes
|
|
165
|
+
|
|
166
|
+
* voting logic ([15a7af0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/15a7af00ac73f71837d083c913d83fb9d6c95ca9))
|
|
167
|
+
|
|
168
|
+
## [44.4.44](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.43...v44.4.44) (2025-08-29)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Bug Fixes
|
|
172
|
+
|
|
173
|
+
* bug ([47ff70b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/47ff70b136bbcbd7efe441637dbd28d5ff0a3818))
|
|
174
|
+
* bug ([2c76971](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2c76971d6dca396f1c793786e9907d84f7b8fc15))
|
|
175
|
+
* styling fixes ([da45e7d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/da45e7d745c79953f5f2d830d0c7c86c8a72f4a6))
|
|
176
|
+
|
|
177
|
+
## [44.4.43](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.42...v44.4.43) (2025-08-29)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Bug Fixes
|
|
181
|
+
|
|
182
|
+
* voting ([2c38c8f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2c38c8ff3e2ee8b9aadeceb2e2318b47359d11b5))
|
|
35
183
|
|
|
36
|
-
## [44.4.
|
|
184
|
+
## [44.4.42](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.41...v44.4.42) (2025-08-29)
|
|
37
185
|
|
|
38
186
|
|
|
39
187
|
### Bug Fixes
|
|
40
188
|
|
|
41
|
-
*
|
|
189
|
+
* outside click ([8b88022](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8b88022dafe14a4c7c7d3d8efe08207a76659724))
|
|
190
|
+
* test collapse ([a5dc747](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a5dc7471eae5df4ab4b3eda3e91856a2e728476c))
|
|
191
|
+
* test coverage ([bbd1138](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bbd1138c1c668e745923917ddc5b08c5d994f64d))
|
|
192
|
+
* test outside click ([c616f66](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c616f66192927bc53366f5ede49827614dcdf847))
|
|
193
|
+
* voting ([2f2eb5c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2f2eb5c696d96c591af536a81f45bc7d4484e632))
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
* Merge branch 'collapse-outside-click' into 'master' ([ade0483](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ade0483aef0a470638e1b3132e11c850db0662b2))
|
|
197
|
+
|
|
198
|
+
## [44.4.41](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.40...v44.4.41) (2025-08-28)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Bug Fixes
|
|
202
|
+
|
|
203
|
+
* removed logs ([8930faa](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8930faa83e1561dfb9c9bbb993fc167a2527363a))
|
|
204
|
+
|
|
205
|
+
## [44.4.40](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.39...v44.4.40) (2025-08-28)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### Bug Fixes
|
|
209
|
+
|
|
210
|
+
* changed limit of chars ([c1649bf](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c1649bf408e3f14bbb070f2988306d5e84ba15a2))
|
|
211
|
+
* test ([0d6646b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0d6646be600d5c977b8f0c4ee90ab4326f604eed))
|
|
212
|
+
* update env ([849fc61](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/849fc61d6f0f33b2be2c2336061344b4a39c6f91))
|
|
213
|
+
|
|
214
|
+
## [44.4.39](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.38...v44.4.39) (2025-08-26)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Bug Fixes
|
|
218
|
+
|
|
219
|
+
* env handling ([149b8f2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/149b8f2de79af7532ce434223d12ef9249ba2047))
|
|
220
|
+
|
|
221
|
+
## [44.4.38](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.37...v44.4.38) (2025-08-26)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
### Bug Fixes
|
|
225
|
+
|
|
226
|
+
* redirect logic for affiliates ([f88bc07](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f88bc07ac8e48f90cc25c57ddecb75eed774a284))
|
|
227
|
+
* redirects ([c6ba3a0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c6ba3a00e7a794e7d7d816611bc72ae4531bf4ce))
|
|
228
|
+
* redirects ([c8358be](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c8358be986550b149677e7ec0eee484db913120e))
|
|
229
|
+
* tests ([9e90c50](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9e90c50ef0a77ae246033225f111a3ecc6d5f302))
|
|
230
|
+
|
|
231
|
+
## [44.4.37](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.36...v44.4.37) (2025-08-25)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Bug Fixes
|
|
235
|
+
|
|
236
|
+
* added x robots tag ([e549a5e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e549a5ebfd8e42ae32f6c283be4059b4c06d888f))
|
|
237
|
+
* test ([7630b92](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7630b92b621e6117c400af243d2b4c300422a833))
|
|
238
|
+
* test ([385538b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/385538b233d94cb8416f31eedd5f509efa1d1c1e))
|
|
239
|
+
|
|
240
|
+
## [44.4.36](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.35...v44.4.36) (2025-08-25)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### Bug Fixes
|
|
244
|
+
|
|
245
|
+
* add load more translation based on type of module cards ([0bf050c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0bf050cdb0fb0d43605ab6bc93478aaf0b46378e))
|
|
246
|
+
* added env var to enable server redirects instead of splash screens ([c67368f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c67368f1f11184ba52d2a32ea35e78e53e79b1a4))
|
|
247
|
+
* updated env ([dde7f3b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/dde7f3b11987fa88f018bd69b96b8ca4db1765d8))
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
* Merge branch 'tm-5657-redirect-logic' into 'master' ([04f2c5b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/04f2c5b863246c0889f232d65a7c375ea8e417d4))
|
|
251
|
+
* Merge branch 'tm-5331-load-more-archive' into 'master' ([22da05c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/22da05cf57b9bc77fe5f37bb5fc955ad7ec9351e))
|
|
42
252
|
|
|
43
|
-
## [44.4.35
|
|
253
|
+
## [44.4.35](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.34...v44.4.35) (2025-08-21)
|
|
44
254
|
|
|
45
255
|
|
|
46
256
|
### Bug Fixes
|
|
47
257
|
|
|
48
|
-
* added commit pipelines ([0d583de](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0d583de2d5683794918c6bb89e59a2a7ab88848f))
|
|
49
|
-
* added stage ci cd ([9fa7040](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9fa7040c89379832385b0d0a0fb4830c093601fa))
|
|
50
|
-
* added utils to publush script ([2c78e6e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2c78e6e276e034739b8fb08228ad637cf8a96122))
|
|
51
258
|
* added validation to comments ([64cd409](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/64cd40908393328d83fa10d933b834b74b418894))
|
|
52
|
-
* ci cd ([86d0f72](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/86d0f725b51853c019d4c492136e525b29d50285))
|
|
53
|
-
* deploy pm2 name ([0574aa7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0574aa77c25be5eda6a8f5131965ad36680d3152))
|
|
54
|
-
* deploy pm2 name ([70fbbe7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/70fbbe7026b584967bffcb9b3d169150e834a9fd))
|
|
55
|
-
* deploy pm2 name ([e937f5f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e937f5f9183d9f050211079a65b6c22b8e3c7f32))
|
|
56
|
-
* deploy pm2 name ([a384b54](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a384b545c3112742c9d9126cac655aa20a2aadbc))
|
|
57
|
-
* deploy pm2 name ([ef636b1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ef636b125cccc81158298bd0a2ca3f3c2e9be2ed))
|
|
58
|
-
* deploy pm2 name ([24662d5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/24662d5464dd6227da04c25c9a4a07ce2ab4fbfc))
|
|
59
|
-
* pm2 name ([9c26e31](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9c26e3103a4f01313a2aa67812eaa699e6fb6ddd))
|
|
60
|
-
* poc stages added ([502f386](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/502f386fe8f7a9444daab822e798db48a5873a1b))
|
|
61
|
-
* semantic release ([ccc3375](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ccc3375e46d8c563cd62f6268c61c6d6394f6676))
|
|
62
259
|
* tnc validation ([f4bb891](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f4bb8914e4f73e8f33952df2209f212ca677cafb))
|
|
63
260
|
|
|
64
261
|
## [44.4.34](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.33...v44.4.34) (2025-08-21)
|
package/gatsby-browser.js
CHANGED
|
@@ -9,47 +9,42 @@
|
|
|
9
9
|
/* eslint-disable prefer-destructuring */
|
|
10
10
|
|
|
11
11
|
// Main Vars
|
|
12
|
-
require(
|
|
13
|
-
require(
|
|
14
|
-
require(
|
|
15
|
-
require(
|
|
16
|
-
require(
|
|
17
|
-
require(
|
|
12
|
+
require('./src/styles/utils/variables/_colors.scss');
|
|
13
|
+
require('./src/styles/utils/variables/_main.scss');
|
|
14
|
+
require('./src/styles/base/_typography.scss');
|
|
15
|
+
require('./src/styles/base/_reset.scss');
|
|
16
|
+
require('./src/styles/base/_spacing.scss');
|
|
17
|
+
require('./src/styles/layouts/_grid.scss');
|
|
18
18
|
|
|
19
19
|
function initGTM() {
|
|
20
|
-
if (
|
|
21
|
-
window.loadGTM === false ||
|
|
22
|
-
window.gtmDidInit ||
|
|
23
|
-
process.env.DISABLE_GTM === "true"
|
|
24
|
-
) {
|
|
20
|
+
if (window.loadGTM === false || window.gtmDidInit || process.env.DISABLE_GTM === 'true') {
|
|
25
21
|
return false;
|
|
26
22
|
}
|
|
27
23
|
|
|
28
24
|
window.gtmDidInit = true; // flag to ensure script does not get added to DOM more than once.
|
|
29
25
|
const trackingLink = `https://www.googletagmanager.com/gtm.js?id=${process.env.GA_TRACKING_ID}`;
|
|
30
26
|
|
|
31
|
-
const script = document.createElement(
|
|
32
|
-
script.type =
|
|
27
|
+
const script = document.createElement('script');
|
|
28
|
+
script.type = 'text/javascript';
|
|
33
29
|
script.async = true;
|
|
34
|
-
script.crossOrigin = "anonymous";
|
|
35
30
|
script.src = trackingLink;
|
|
36
31
|
|
|
37
32
|
script.onload = () => {
|
|
38
33
|
// eslint-disable-next-line no-undef
|
|
39
34
|
dataLayer.push({
|
|
40
35
|
// ensure PageViews are always tracked
|
|
41
|
-
event:
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
event: 'gtm.js',
|
|
37
|
+
'gtm.start': new Date().getTime(),
|
|
38
|
+
'gtm.uniqueEventId': 0,
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
41
|
document.head.appendChild(script);
|
|
47
42
|
|
|
48
|
-
const noscript = document.createElement(
|
|
49
|
-
const iframe = document.createElement(
|
|
43
|
+
const noscript = document.createElement('noscript');
|
|
44
|
+
const iframe = document.createElement('iframe');
|
|
50
45
|
iframe.src = trackingLink;
|
|
51
|
-
iframe.style.display =
|
|
52
|
-
iframe.style.visibility =
|
|
46
|
+
iframe.style.display = 'none';
|
|
47
|
+
iframe.style.visibility = 'hidden';
|
|
53
48
|
iframe.height = 0;
|
|
54
49
|
iframe.width = 0;
|
|
55
50
|
noscript.innerHTML += iframe.outerHTML;
|
|
@@ -57,15 +52,16 @@ function initGTM() {
|
|
|
57
52
|
}
|
|
58
53
|
|
|
59
54
|
function optinMonster() {
|
|
60
|
-
const script = document.createElement(
|
|
61
|
-
script.id =
|
|
62
|
-
script.setAttribute(
|
|
63
|
-
script.setAttribute(
|
|
64
|
-
script.src =
|
|
55
|
+
const script = document.createElement('script');
|
|
56
|
+
script.id = 'optin-monstr';
|
|
57
|
+
script.setAttribute('data-user', process.env.OPTINMONSTR_USER);
|
|
58
|
+
script.setAttribute('data-account', process.env.OPTINMONSTR_ACC);
|
|
59
|
+
script.src = 'https://a.omappapi.com/app/js/api.min.js';
|
|
65
60
|
script.async = true;
|
|
66
61
|
document.head.appendChild(script);
|
|
67
62
|
}
|
|
68
63
|
|
|
64
|
+
|
|
69
65
|
const loadFacebookPixel = () => {
|
|
70
66
|
!(function (f, b, e, v, n, t, s) {
|
|
71
67
|
// eslint-disable-next-line no-multi-assign
|
|
@@ -79,20 +75,15 @@ const loadFacebookPixel = () => {
|
|
|
79
75
|
if (!f._fbq) f._fbq = n;
|
|
80
76
|
n.push = n;
|
|
81
77
|
n.loaded = !0;
|
|
82
|
-
n.version =
|
|
78
|
+
n.version = '2.0';
|
|
83
79
|
n.queue = [];
|
|
84
80
|
t = b.createElement(e);
|
|
85
81
|
t.async = !0;
|
|
86
|
-
t.id =
|
|
82
|
+
t.id = 'pixel-code';
|
|
87
83
|
t.src = v;
|
|
88
84
|
s = b.getElementsByTagName(e)[0];
|
|
89
85
|
s.parentNode.insertBefore(t, s);
|
|
90
|
-
})(
|
|
91
|
-
window,
|
|
92
|
-
document,
|
|
93
|
-
"script",
|
|
94
|
-
"https://connect.facebook.net/en_US/fbevents.js"
|
|
95
|
-
);
|
|
86
|
+
})(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
|
|
96
87
|
};
|
|
97
88
|
|
|
98
89
|
const microsoftAdvertising = () => {
|
|
@@ -100,94 +91,73 @@ const microsoftAdvertising = () => {
|
|
|
100
91
|
var f, n, i;
|
|
101
92
|
(w[u] = w[u] || []),
|
|
102
93
|
(f = function () {
|
|
103
|
-
var o = { ti:
|
|
104
|
-
(o.q = w[u]), (w[u] = new UET(o)), w[u].push(
|
|
94
|
+
var o = { ti: '187106455', enableAutoSpaTracking: true };
|
|
95
|
+
(o.q = w[u]), (w[u] = new UET(o)), w[u].push('pageLoad');
|
|
105
96
|
}),
|
|
106
97
|
(n = d.createElement(t)),
|
|
107
98
|
(n.src = r),
|
|
108
99
|
(n.async = 1),
|
|
109
|
-
(n.id =
|
|
100
|
+
(n.id = 'microsoft-code'),
|
|
110
101
|
(n.onload = n.onreadystatechange =
|
|
111
102
|
function () {
|
|
112
103
|
var s = this.readyState;
|
|
113
|
-
(s && s !==
|
|
104
|
+
(s && s !== 'loaded' && s !== 'complete') ||
|
|
114
105
|
(f(), (n.onload = n.onreadystatechange = null));
|
|
115
106
|
}),
|
|
116
107
|
(i = d.getElementsByTagName(t)[0]),
|
|
117
108
|
i.parentNode.insertBefore(n, i);
|
|
118
|
-
})(window, document,
|
|
109
|
+
})(window, document, 'script', '//bat.bing.com/bat.js', 'uetq');
|
|
119
110
|
};
|
|
120
111
|
|
|
121
|
-
const piguard = () =>
|
|
112
|
+
const piguard = () =>{
|
|
122
113
|
if (window.loadGTM === false) {
|
|
123
114
|
return false;
|
|
124
115
|
}
|
|
125
116
|
|
|
126
|
-
const script = document.createElement(
|
|
127
|
-
script.id =
|
|
117
|
+
const script = document.createElement('script');
|
|
118
|
+
script.id = 'piguard';
|
|
128
119
|
script.src = `https://pg.${process.env.GATSBY_SITE_NAME}/analytics.js?tid=PP-${process.env.PIGUARD_ID}`;
|
|
129
120
|
script.async = true;
|
|
130
121
|
document.head.appendChild(script);
|
|
131
|
-
}
|
|
122
|
+
}
|
|
132
123
|
|
|
133
|
-
|
|
124
|
+
function scrollEvent(event) {
|
|
134
125
|
initGTM();
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
process.env.ENABLE_PIGUARD === "true"
|
|
138
|
-
) {
|
|
126
|
+
|
|
127
|
+
if (!document.getElementById('piguard') && process.env.ENABLE_PIGUARD === 'true') {
|
|
139
128
|
piguard();
|
|
140
129
|
}
|
|
141
130
|
|
|
142
|
-
if (
|
|
143
|
-
process.env.ENABLE_MICROSOFT === "true" &&
|
|
144
|
-
!document.getElementById("microsoft-code")
|
|
145
|
-
)
|
|
131
|
+
if (process.env.ENABLE_MICROSOFT === 'true' && !document.getElementById('microsoft-code'))
|
|
146
132
|
microsoftAdvertising();
|
|
147
133
|
|
|
148
|
-
if (
|
|
149
|
-
process.env.ENABLE_OPTINMONSTR === "true" &&
|
|
150
|
-
!document.getElementById("optin-monstr")
|
|
151
|
-
)
|
|
134
|
+
if (process.env.ENABLE_OPTINMONSTR === 'true' && !document.getElementById('optin-monstr'))
|
|
152
135
|
optinMonster();
|
|
153
|
-
if (
|
|
154
|
-
process.env.ENABLE_PIXEL === "true" &&
|
|
155
|
-
!document.getElementById("pixel-code")
|
|
156
|
-
) {
|
|
136
|
+
if (process.env.ENABLE_PIXEL === 'true' && !document.getElementById('pixel-code')) {
|
|
157
137
|
if (
|
|
158
|
-
typeof window !==
|
|
138
|
+
typeof window !== 'undefined' &&
|
|
159
139
|
window.location.pathname !== process.env.PAGE_EXCLUDE_PIXEL
|
|
160
140
|
) {
|
|
161
141
|
loadFacebookPixel();
|
|
162
142
|
|
|
163
|
-
fbq(
|
|
143
|
+
fbq('init', process.env.PIXEL_ID);
|
|
164
144
|
|
|
165
145
|
// Initialize and track the PageView event
|
|
166
|
-
fbq(
|
|
146
|
+
fbq('track', 'PageView');
|
|
167
147
|
}
|
|
168
148
|
}
|
|
169
149
|
|
|
170
150
|
if (event) {
|
|
171
|
-
event.currentTarget
|
|
151
|
+
event.currentTarget.removeEventListener(event.type, scrollEvent); // remove the event listener that got triggered
|
|
172
152
|
}
|
|
173
153
|
}
|
|
174
154
|
|
|
175
155
|
exports.onClientEntry = () => {
|
|
176
|
-
if (process.env.PPC ===
|
|
156
|
+
if (process.env.PPC === 'true') {
|
|
177
157
|
scrollEvent(null);
|
|
178
158
|
} else {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
navigator.userAgent
|
|
183
|
-
)
|
|
184
|
-
) {
|
|
185
|
-
scrollEvent(null);
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
document.addEventListener("scroll", scrollEvent);
|
|
190
|
-
document.addEventListener("mousemove", scrollEvent);
|
|
191
|
-
document.addEventListener("touchstart", scrollEvent, { passive: true });
|
|
159
|
+
document.addEventListener('scroll', scrollEvent, { passive: true });
|
|
160
|
+
document.addEventListener('mousemove', scrollEvent, { passive: true });
|
|
161
|
+
document.addEventListener('touchstart', scrollEvent, { passive: true });
|
|
192
162
|
}
|
|
193
163
|
};
|
package/gatsby-node.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
clean,
|
|
24
24
|
removeUnwantedSections,
|
|
25
25
|
} from "./src/resolver/common.mjs";
|
|
26
|
-
import { generateRedirects } from "./src/resolver/redirect.mjs";
|
|
26
|
+
import { generateRedirects, generatePrettyLinkRedirects } from "./src/resolver/redirect.mjs";
|
|
27
27
|
import { translate, is404Page } from "./src/helpers/getters.mjs";
|
|
28
28
|
import { getArchivePages, hasArchiveModule } from "./src/resolver/archive.mjs";
|
|
29
29
|
|
|
@@ -71,12 +71,10 @@ const relations = {};
|
|
|
71
71
|
|
|
72
72
|
// eslint-disable-next-line import/prefer-default-export
|
|
73
73
|
export const createPages = async (
|
|
74
|
-
{ actions: { createPage } },
|
|
74
|
+
{ actions: { createPage, createRedirect } },
|
|
75
75
|
themeOptions
|
|
76
76
|
) => {
|
|
77
77
|
process.env.GATSBY_SITE_NAME = String(themeOptions.siteName);
|
|
78
|
-
|
|
79
|
-
generateRedirects(siteSettingsData);
|
|
80
78
|
preconnectLinks = themeOptions.preconnectLinks || [];
|
|
81
79
|
console.log(chalk.magenta("info") + chalk.whiteBright(" starting processor"));
|
|
82
80
|
|
|
@@ -126,6 +124,8 @@ export const createPages = async (
|
|
|
126
124
|
streamRobotsTxt.write(robotsTxtContent);
|
|
127
125
|
streamRobotsTxt.end();
|
|
128
126
|
|
|
127
|
+
generateRedirects(siteSettingsData);
|
|
128
|
+
|
|
129
129
|
// create every single page
|
|
130
130
|
Object.keys(processed.site_markets).forEach((siteMarket) => {
|
|
131
131
|
if (!processed.pages[siteMarket]["page"]) {
|
|
@@ -282,23 +282,27 @@ export const createPages = async (
|
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
285
|
+
if(process.env.DISABLE_SPLASH_SCREEN === 'true'){
|
|
286
|
+
generatePrettyLinkRedirects( trackingPages )
|
|
287
|
+
}else{
|
|
288
|
+
trackingPages.forEach(({ path, page, operator }) => {
|
|
289
|
+
createPage({
|
|
290
|
+
path,
|
|
291
|
+
component: `${__dirname}/src/components/${
|
|
292
|
+
process.env.IS_TRACKING_SSR === "true"
|
|
293
|
+
? "app-tracker-ssr.js"
|
|
294
|
+
: "app-tracker.js"
|
|
295
|
+
}`,
|
|
296
|
+
context: {
|
|
297
|
+
page,
|
|
298
|
+
siteGeneralData,
|
|
299
|
+
operator,
|
|
300
|
+
isTracker: true,
|
|
301
|
+
isLiveStreamProvider: false,
|
|
302
|
+
},
|
|
303
|
+
});
|
|
304
|
+
})
|
|
305
|
+
}
|
|
302
306
|
};
|
|
303
307
|
|
|
304
308
|
export const onCreatePage = async ({ page, actions }) => {
|