mod-build 3.6.75-beta.2 → 4.0.0-alpha.2

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.
Files changed (62) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc +18 -0
  3. package/CHANGELOG.md +2 -252
  4. package/README.md +16 -263
  5. package/gulp-tasks/grab-cdn.js +0 -10
  6. package/package.json +18 -68
  7. package/siteconfig.js +38 -0
  8. package/src/data/footer.js +117 -0
  9. package/src/data/seasons.js +5 -7
  10. package/src/index.html +18 -0
  11. package/src/main.js +45 -0
  12. package/src/scripts/has-qs-params.js +6 -5
  13. package/src/scripts/url-cleaner.js +3 -3
  14. package/src/scripts/utils.js +178 -0
  15. package/src/styles/home.scss +1 -0
  16. package/src/templates/_partials/scripts/deferred-styles.html +16 -16
  17. package/src/templates/_partials/scripts/vwo-redirect-callback.html +43 -45
  18. package/src/templates/components/head.html +70 -0
  19. package/tasks/clean.js +13 -0
  20. package/tasks/grab-cdn.js +107 -0
  21. package/tasks/grab-form-helpers.js +94 -0
  22. package/tasks/grab-shared-components.js +81 -0
  23. package/tasks/grab-shared-scripts.js +267 -0
  24. package/tasks/serve.js +15 -0
  25. package/tasks/templates.js +168 -0
  26. package/template.js +801 -0
  27. package/vite.config.js +56 -0
  28. package/.eslintrc.yml +0 -59
  29. package/src/data/common.js +0 -704
  30. package/src/data/components/qs-footer.js +0 -55
  31. package/src/data/components/quote-footer.js +0 -73
  32. package/src/scripts/apt-block.js +0 -919
  33. package/src/scripts/components/custom-selects.js +0 -48
  34. package/src/scripts/components/radio-panels.js +0 -45
  35. package/src/scripts/es6-1.js +0 -6
  36. package/src/scripts/es6-2.js +0 -2
  37. package/src/scripts/qs-form.js +0 -839
  38. package/src/scripts/vendor/maxmind-geoip2.js +0 -2
  39. package/src/scripts/vendor/swiper.min.js +0 -13
  40. package/src/styles/apt-block.scss +0 -888
  41. package/src/templates/_partials/apt-block.html +0 -30
  42. package/src/templates/_partials/scripts/analytics.html +0 -4
  43. package/src/templates/_partials/scripts/go-page-hiding-snippet.html +0 -8
  44. package/src/templates/_partials/scripts/google-maps.html +0 -1
  45. package/src/templates/_partials/scripts/google-optimize.html +0 -12
  46. package/src/templates/_partials/scripts/gtm-editorials/body/google-tag-manager-body.html +0 -5
  47. package/src/templates/_partials/scripts/gtm-editorials/head/google-tag-manager-head.html +0 -10
  48. package/src/templates/_partials/scripts/gtm-hil/body/google-tag-manager-body.html +0 -5
  49. package/src/templates/_partials/scripts/gtm-hil/head/google-tag-manager-head.html +0 -10
  50. package/src/templates/_partials/scripts/gtm-pro/body/google-tag-manager-body.html +0 -5
  51. package/src/templates/_partials/scripts/gtm-pro/head/google-tag-manager-head.html +0 -10
  52. package/src/templates/_partials/scripts/gtm-quote/body/google-tag-manager-body.html +0 -5
  53. package/src/templates/_partials/scripts/gtm-quote/head/google-tag-manager-head.html +0 -9
  54. package/src/templates/_partials/scripts/gtm-whitelabel/body/mod-google-tag-manager-body.html +0 -5
  55. package/src/templates/_partials/scripts/gtm-whitelabel/body/non-mod-google-tag-manager-body.html +0 -5
  56. package/src/templates/_partials/scripts/gtm-whitelabel/head/mod-google-tag-manager-head.html +0 -10
  57. package/src/templates/_partials/scripts/gtm-whitelabel/head/non-mod-google-tag-manager-head.html +0 -9
  58. package/src/templates/_partials/scripts/gtm-wordpress/body/google-tag-manager-body.html +0 -5
  59. package/src/templates/_partials/scripts/gtm-wordpress/head/google-tag-manager-head.html +0 -9
  60. package/src/templates/_partials/scripts/visual-website-optimizer.html +0 -5
  61. package/src/templates/index.html +0 -46
  62. /package/{src → public}/favicon.ico +0 -0
@@ -1,55 +0,0 @@
1
- var qsFooterData = function(siteData) {
2
- var trade = '';
3
- if (siteData && siteData.contractor_trade) {
4
- trade = '&trade=' + siteData.contractor_trade;
5
- } else if (siteData && siteData.primary_trade) {
6
- trade = '&trade=' + siteData.primary_trade.replace(/[\s]+|_/g, '-').toLowerCase();
7
- }
8
- var data = {
9
- qsFooterData: {
10
- links: [
11
- {
12
- name: 'About',
13
- url: '/about/',
14
- modal: true,
15
- company: true
16
- },
17
- {
18
- name: 'Privacy Notice',
19
- url: '/privacy/',
20
- modal: true
21
- },
22
- {
23
- name: 'Affiliates',
24
- url: 'https://modernize.com/contact?publisher',
25
- modal: false
26
- },
27
- {
28
- name: 'Terms of Use',
29
- url: '/terms/',
30
- modal: true
31
- },
32
- {
33
- name: 'Contact Us',
34
- url: '/contact-us/',
35
- modal: true
36
- },
37
- {
38
- name: 'California - Do not sell my info',
39
- url: 'https://privacy-central.securiti.ai/#/dsr/983cfd4b-c36a-4601-89e9-b651e5a05708',
40
- modal: false
41
- }
42
- ],
43
- copyright: 'QuinStreet, Inc. All Rights Reserved.',
44
- contractor: {
45
- text: 'Are you a contractor?',
46
- linkText: 'Join Our Contractor Network',
47
- link: 'https://modernize.com/pro/register/leads/?utm_campaign=quinstreet-referral' + trade
48
- }
49
- }
50
- };
51
-
52
- return data;
53
- };
54
-
55
- module.exports = qsFooterData;
@@ -1,73 +0,0 @@
1
- var quoteFooterData = function(siteData) {
2
- var trade = '';
3
- if (siteData && siteData.contractor_trade) {
4
- trade = '&trade=' + siteData.contractor_trade;
5
- } else if (siteData && siteData.primary_trade) {
6
- trade = '&trade=' + siteData.primary_trade.replace(/[\s]+|_/g, '-').toLowerCase();
7
- }
8
- var data = {
9
- quoteFooterData: {
10
- copyright: 'All Rights Reserved.',
11
- contractor: {
12
- text: 'Are you a contractor?',
13
- linkText: 'Join Our Contractor Network',
14
- link: 'https://modernize.com/pro/register/leads/?utm_campaign=quinstreet-referral' + trade
15
- },
16
- capchaDisclosure: {
17
- text: 'This site is protected by reCAPTCHA and the Google',
18
- privacy: {
19
- text: 'Privacy Policy',
20
- url: 'https://policies.google.com/privacy'
21
- },
22
- terms: {
23
- text: 'Terms of Service',
24
- url: 'https://policies.google.com/terms'
25
- }
26
- },
27
- privacyLinks: [
28
- {
29
- text: 'California Privacy',
30
- anchor: 'ccpa',
31
- modal: true
32
- },
33
- {
34
- text: 'New York Privacy',
35
- anchor: 'nyna',
36
- modal: true
37
- },
38
- {
39
- text: 'Do Not Sell My Personal Information',
40
- anchor: 'uspi',
41
- modal: true
42
- }
43
- ],
44
- links: [
45
- {
46
- url: 'about',
47
- text: 'About Us',
48
- modal: true
49
- },
50
- {
51
- url: 'terms',
52
- text: 'Terms of Use',
53
- modal: true
54
- },
55
- {
56
- url: 'privacy',
57
- text: 'Privacy Policy',
58
- modal: true
59
- },
60
- {
61
- url: 'https://modernize.com/contact?publisher',
62
- text: 'I\'m a publisher',
63
- modal: false,
64
- target: '_blank'
65
- }
66
- ]
67
- }
68
- };
69
-
70
- return data;
71
- };
72
-
73
- module.exports = quoteFooterData;