mod-build 3.6.71 → 4.0.0-alpha.1
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/.eslintignore +3 -0
- package/.eslintrc +18 -0
- package/CHANGELOG.md +2 -240
- package/README.md +16 -263
- package/gulp-tasks/build.js +1 -1
- package/package.json +21 -69
- package/siteconfig.js +38 -0
- package/src/accessible-components/button/_button.scss +195 -0
- package/src/accessible-components/button/back-button.html +4 -0
- package/src/accessible-components/button/button.html +17 -0
- package/src/accessible-components/carousel/_carousel.scss +112 -0
- package/src/accessible-components/carousel/carousel.html +25 -0
- package/src/accessible-components/checkbox/_checkbox.scss +96 -0
- package/src/accessible-components/checkbox/checkbox.html +8 -0
- package/src/accessible-components/expand-collapse/_expand-collapse.scss +122 -0
- package/src/accessible-components/expand-collapse/expand-collapse.html +8 -0
- package/src/accessible-components/expand-collapse/expand-collapse.js +52 -0
- package/src/accessible-components/expand-collapse/expand-collapse.min.js +2 -0
- package/src/accessible-components/expand-collapse/expand-collapse.min.js.map +1 -0
- package/src/accessible-components/featured-block/_featured-block.scss +219 -0
- package/src/accessible-components/featured-block/featured-block.html +54 -0
- package/src/accessible-components/foot-assets/foot-assets.html +92 -0
- package/src/accessible-components/footer/footer.html +2 -0
- package/src/{templates/_partials/scripts/gtm-editorials/body/google-tag-manager-body.html → accessible-components/gtm-body/gtm-body.html} +1 -2
- package/src/accessible-components/head/head.html +188 -0
- package/src/accessible-components/header/_header.scss +289 -0
- package/src/accessible-components/header/header.html +66 -0
- package/src/accessible-components/hero/_hero.scss +371 -0
- package/src/accessible-components/hero/hero.html +53 -0
- package/src/accessible-components/how-it-works/_how-it-works.scss +217 -0
- package/src/accessible-components/how-it-works/how-it-works-carousel.html +12 -0
- package/src/accessible-components/how-it-works/how-it-works-static.html +12 -0
- package/src/accessible-components/how-it-works/how-it-works.html +14 -0
- package/src/accessible-components/information/_information.scss +92 -0
- package/src/accessible-components/information/information.html +26 -0
- package/src/accessible-components/input/_input.scss +202 -0
- package/src/accessible-components/input/input.html +22 -0
- package/src/accessible-components/input/textarea.html +9 -0
- package/src/accessible-components/partners/_partners.scss +232 -0
- package/src/accessible-components/partners/partners.html +56 -0
- package/src/accessible-components/picture/picture.html +19 -0
- package/src/accessible-components/preloader/_preloader.scss +61 -0
- package/src/accessible-components/preloader/preloader.html +23 -0
- package/src/accessible-components/progress-bar/_progress-bar.scss +119 -0
- package/src/accessible-components/progress-bar/progress-bar.html +21 -0
- package/src/accessible-components/progress-bar/progress-bar.js +37 -0
- package/src/accessible-components/progress-bar/progress-bar.min.js +2 -0
- package/src/accessible-components/progress-bar/progress-bar.min.js.map +1 -0
- package/src/accessible-components/radio-button/_radio-button.scss +537 -0
- package/src/accessible-components/radio-button/radio-button.html +34 -0
- package/src/accessible-components/reviews/_reviews.scss +175 -0
- package/src/accessible-components/reviews/reviews-carousel.html +12 -0
- package/src/accessible-components/reviews/reviews-static.html +12 -0
- package/src/accessible-components/reviews/reviews.html +37 -0
- package/src/accessible-components/select/_select.scss +69 -0
- package/src/accessible-components/select/select.html +10 -0
- package/src/accessible-components/steps/_steps.scss +524 -0
- package/src/accessible-components/steps/defaultFormFieldConfig.json +109 -0
- package/src/accessible-components/steps/step-fields.html +33 -0
- package/src/accessible-components/steps/steps.html +150 -0
- package/src/accessible-components/tcpa/_tcpa.scss +49 -0
- package/src/accessible-components/tcpa/tcpa.html +9 -0
- package/src/accessible-components/tile/_tile.scss +117 -0
- package/src/accessible-components/tile/tile.html +14 -0
- package/src/accessible-components/value-props/_value-props.scss +100 -0
- package/src/accessible-components/value-props/value-props.html +17 -0
- package/src/accessible-components/zip-control/_zip-control.scss +78 -0
- package/src/accessible-components/zip-control/zip-control.html +10 -0
- package/src/data/footer.js +117 -0
- package/src/data/seasons.js +5 -7
- package/src/data/theme.json +164 -0
- package/src/index.html +18 -0
- package/src/main.js +45 -0
- package/src/resources/scripts/abandonment/abandonment-1df90ee155f6c0893d90.min.js +2 -0
- package/src/resources/scripts/abandonment/abandonment.min.js +2 -0
- package/src/resources/scripts/footer/footer-component-7b5e263f64568573ecc0.min.js +2 -0
- package/src/resources/scripts/footer/footer-component.min.js +2 -0
- package/src/resources/scripts/helpers/initNumericOnlyFields.min.js +2 -0
- package/src/resources/scripts/helpers/initNumericOnlyFields.min.js.map +1 -0
- package/src/resources/scripts/helpers/isZipCodeValid.min.js +2 -0
- package/src/resources/scripts/helpers/isZipCodeValid.min.js.map +1 -0
- package/src/resources/scripts/mod-alytics/modalytics-0ac7d7a5a72ea67a0f47.min.js +2 -0
- package/src/resources/scripts/mod-alytics/modalytics.min.js +2 -0
- package/src/resources/scripts/mod-form/form/homeowner-77a4dd439b8db412678b.min.js +2 -0
- package/src/resources/scripts/mod-form/form/homeowner.min.js +2 -0
- package/src/resources/scripts/mod-utils/modutils-8ba40d21f559171ddd36.min.js +2 -0
- package/src/resources/scripts/mod-utils/modutils.min.js +2 -0
- package/src/resources/styles/components/abandonment/abandonment-ae63aca828944411eff7.min.css +1 -0
- package/src/resources/styles/components/abandonment/abandonment.min.css +1 -0
- package/src/resources/styles/components/footer/mod-footer-3717faf57147c62c1777.min.css +1 -0
- package/src/resources/styles/components/footer/mod-footer.min.css +1 -0
- package/src/resources/styles/components/footer/qs-footer-12bf078dc614ff221c3c.min.css +1 -0
- package/src/resources/styles/components/footer/qs-footer.min.css +1 -0
- package/src/resources/templates/modals/about/index.html +9 -0
- package/src/resources/templates/modals/contact-us/index.html +348 -0
- package/src/resources/templates/modals/faq/index.html +9 -0
- package/src/resources/templates/modals/privacy/index.html +236 -0
- package/src/resources/templates/modals/terms/index.html +166 -0
- package/src/scripts/has-qs-params.js +6 -5
- package/src/scripts/url-cleaner.js +3 -3
- package/src/scripts/utils.js +178 -0
- package/src/styles/home.scss +1 -0
- package/src/temp/scripts/maxmind-geoip2.js +104 -0
- package/src/templates/_partials/scripts/deferred-styles.html +16 -16
- package/src/templates/_partials/scripts/vwo-redirect-callback.html +43 -45
- package/src/templates/components/head.html +70 -0
- package/tasks/clean.js +13 -0
- package/tasks/grab-cdn.js +107 -0
- package/tasks/grab-form-helpers.js +94 -0
- package/tasks/grab-shared-components.js +81 -0
- package/tasks/grab-shared-scripts.js +267 -0
- package/tasks/serve.js +15 -0
- package/tasks/templates.js +168 -0
- package/template.js +801 -0
- package/vite.config.js +56 -0
- package/.eslintrc.yml +0 -59
- package/src/data/common.js +0 -704
- package/src/data/components/qs-footer.js +0 -55
- package/src/data/components/quote-footer.js +0 -73
- package/src/scripts/apt-block.js +0 -919
- package/src/scripts/components/custom-selects.js +0 -48
- package/src/scripts/components/radio-panels.js +0 -45
- package/src/scripts/es6-1.js +0 -6
- package/src/scripts/es6-2.js +0 -2
- package/src/scripts/qs-form.js +0 -839
- package/src/scripts/vendor/maxmind-geoip2.js +0 -2
- package/src/scripts/vendor/swiper.min.js +0 -13
- package/src/styles/apt-block.scss +0 -888
- package/src/templates/_partials/apt-block.html +0 -30
- package/src/templates/_partials/scripts/analytics.html +0 -4
- package/src/templates/_partials/scripts/go-page-hiding-snippet.html +0 -8
- package/src/templates/_partials/scripts/google-maps.html +0 -1
- package/src/templates/_partials/scripts/google-optimize.html +0 -12
- package/src/templates/_partials/scripts/gtm-editorials/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-hil/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-hil/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-pro/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-pro/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-quote/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-quote/head/google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/gtm-whitelabel/body/mod-google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-whitelabel/body/non-mod-google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-whitelabel/head/mod-google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-whitelabel/head/non-mod-google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/gtm-wordpress/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-wordpress/head/google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/visual-website-optimizer.html +0 -5
- package/src/templates/index.html +0 -46
- /package/{src → public}/favicon.ico +0 -0
package/vite.config.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import handlebars from 'vite-plugin-handlebars'
|
|
2
|
+
import inject from '@rollup/plugin-inject'
|
|
3
|
+
import { defaultSettings, siteData } from './siteconfig.js'
|
|
4
|
+
import { defineConfig } from 'vite'
|
|
5
|
+
import serve from './tasks/serve.js'
|
|
6
|
+
import { templateData } from './template.js'
|
|
7
|
+
import { handlebarsHelpers } from './src/scripts/utils.js'
|
|
8
|
+
import eslint from 'vite-plugin-eslint'
|
|
9
|
+
import { resolve } from 'path'
|
|
10
|
+
|
|
11
|
+
const { page } = templateData()
|
|
12
|
+
|
|
13
|
+
export default defineConfig(({ command }) => ({
|
|
14
|
+
root: defaultSettings.srcFolder,
|
|
15
|
+
build: {
|
|
16
|
+
outDir: `../${defaultSettings.distFolder}`,
|
|
17
|
+
emptyOutDir: true
|
|
18
|
+
},
|
|
19
|
+
publicDir: '../public',
|
|
20
|
+
plugins: [
|
|
21
|
+
inject({
|
|
22
|
+
$: 'jquery',
|
|
23
|
+
}),
|
|
24
|
+
{
|
|
25
|
+
...handlebars({
|
|
26
|
+
partialDirectory: resolve(__dirname, 'src', 'templates', 'partials'),
|
|
27
|
+
context: { ...page, ...templateData() },
|
|
28
|
+
helpers: handlebarsHelpers
|
|
29
|
+
}),
|
|
30
|
+
enforce: 'pre',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'test-gulp',
|
|
34
|
+
buildStart() {
|
|
35
|
+
if (command === 'serve') {
|
|
36
|
+
serve(siteData);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
...eslint(),
|
|
42
|
+
apply: 'build',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
...eslint({
|
|
46
|
+
failOnWarning: false,
|
|
47
|
+
failOnError: false,
|
|
48
|
+
}),
|
|
49
|
+
apply: 'serve',
|
|
50
|
+
enforce: 'post'
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
define: {
|
|
54
|
+
'process.env': process.env
|
|
55
|
+
}
|
|
56
|
+
}))
|
package/.eslintrc.yml
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
parserOptions:
|
|
2
|
-
ecmaVersion: 2018
|
|
3
|
-
sourceType: 'module'
|
|
4
|
-
env:
|
|
5
|
-
browser: true
|
|
6
|
-
jquery: true
|
|
7
|
-
|
|
8
|
-
globals:
|
|
9
|
-
require: true
|
|
10
|
-
module: true
|
|
11
|
-
|
|
12
|
-
rules:
|
|
13
|
-
indent: [1, 'tab']
|
|
14
|
-
brace-style: [2, "1tbs"]
|
|
15
|
-
comma-style: [1, "last"]
|
|
16
|
-
default-case: 2
|
|
17
|
-
no-floating-decimal: 2
|
|
18
|
-
no-nested-ternary: 2
|
|
19
|
-
no-undefined: 2
|
|
20
|
-
space-before-function-paren: [1, "never"]
|
|
21
|
-
keyword-spacing: [2, {before: true, after: true}]
|
|
22
|
-
space-before-blocks: 1
|
|
23
|
-
spaced-comment: [2, "always", { exceptions: ["-"]}]
|
|
24
|
-
valid-jsdoc: [1, { requireReturn: false, prefer: { return: "returns" }}]
|
|
25
|
-
wrap-iife: [2, "inside", { functionPrototypeMethods: true }]
|
|
26
|
-
guard-for-in: 2
|
|
27
|
-
strict: [2, "never"]
|
|
28
|
-
camelcase: 1
|
|
29
|
-
curly: [2, "all"]
|
|
30
|
-
eqeqeq: [2, "allow-null"]
|
|
31
|
-
no-empty: 2
|
|
32
|
-
no-use-before-define: 2
|
|
33
|
-
no-obj-calls: 2
|
|
34
|
-
no-unused-vars: [1, {vars: "local", args: "after-used"}]
|
|
35
|
-
new-cap: 2
|
|
36
|
-
no-shadow: 1
|
|
37
|
-
no-invalid-regexp: 2
|
|
38
|
-
comma-dangle: [1, "never"]
|
|
39
|
-
no-undef: 2
|
|
40
|
-
no-new: 2
|
|
41
|
-
no-extra-semi: 2
|
|
42
|
-
no-debugger: 2
|
|
43
|
-
no-caller: 1
|
|
44
|
-
semi: 2
|
|
45
|
-
quotes: [1, "single", "avoid-escape"]
|
|
46
|
-
no-unreachable: 2
|
|
47
|
-
eol-last: 1
|
|
48
|
-
operator-linebreak: [1, "before", {overrides: {"?": "after", ":": "after"}}]
|
|
49
|
-
no-multi-str: 1
|
|
50
|
-
no-mixed-spaces-and-tabs: 1
|
|
51
|
-
no-trailing-spaces: 1
|
|
52
|
-
space-infix-ops: 1
|
|
53
|
-
space-unary-ops: 0
|
|
54
|
-
no-with: 2
|
|
55
|
-
dot-notation: 1
|
|
56
|
-
semi-spacing: 1
|
|
57
|
-
key-spacing: [1, {beforeColon: false, afterColon: true, mode: "minimum"}]
|
|
58
|
-
space-in-parens: [1, "never"]
|
|
59
|
-
prefer-const: 2
|