@cuemath/web-utils 1.0.32-arun.5 → 1.0.32
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/dist/cjs/website-category/constants/index.d.ts +2 -1
- package/dist/cjs/website-category/constants/index.js +60 -40
- package/dist/cjs/website-category/constants/index.js.map +1 -1
- package/dist/cjs/website-category/index.d.ts +1 -2
- package/dist/cjs/website-category/index.js +2 -3
- package/dist/cjs/website-category/index.js.map +1 -1
- package/dist/cjs/website-category/utils/index.d.ts +1 -0
- package/dist/cjs/website-category/utils/index.js +25 -4
- package/dist/cjs/website-category/utils/index.js.map +1 -1
- package/dist/esm/website-category/constants/index.d.ts +2 -1
- package/dist/esm/website-category/constants/index.js +59 -39
- package/dist/esm/website-category/constants/index.js.map +1 -1
- package/dist/esm/website-category/index.d.ts +1 -2
- package/dist/esm/website-category/index.js +1 -2
- package/dist/esm/website-category/index.js.map +1 -1
- package/dist/esm/website-category/utils/index.d.ts +1 -0
- package/dist/esm/website-category/utils/index.js +23 -3
- package/dist/esm/website-category/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/website-category/constants/instrumentation.d.ts +0 -138
- package/dist/cjs/website-category/constants/instrumentation.js +0 -142
- package/dist/cjs/website-category/constants/instrumentation.js.map +0 -1
- package/dist/cjs/website-category/utils/instrumentation.d.ts +0 -2
- package/dist/cjs/website-category/utils/instrumentation.js +0 -61
- package/dist/cjs/website-category/utils/instrumentation.js.map +0 -1
- package/dist/esm/website-category/constants/instrumentation.d.ts +0 -138
- package/dist/esm/website-category/constants/instrumentation.js +0 -139
- package/dist/esm/website-category/constants/instrumentation.js.map +0 -1
- package/dist/esm/website-category/utils/instrumentation.d.ts +0 -2
- package/dist/esm/website-category/utils/instrumentation.js +0 -56
- package/dist/esm/website-category/utils/instrumentation.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const BRAND_PAGES: string[];
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const CONTENT_PAGES: string[];
|
|
3
|
+
export declare const INTENT_PAGES: string[];
|
|
3
4
|
export declare const SUPPLY_PAGES: string[];
|
|
4
5
|
export declare const REFERRAL_PAGES: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REFERRAL_PAGES = exports.SUPPLY_PAGES = exports.INTENT_PAGES = exports.BRAND_PAGES = void 0;
|
|
3
|
+
exports.REFERRAL_PAGES = exports.SUPPLY_PAGES = exports.INTENT_PAGES = exports.CONTENT_PAGES = exports.BRAND_PAGES = void 0;
|
|
4
4
|
const URL_PATH_MAP = {
|
|
5
5
|
HOMEPAGE: '/',
|
|
6
6
|
WHY_CHOOSE_US: '/math-online-classes',
|
|
@@ -11,14 +11,14 @@ const URL_PATH_MAP = {
|
|
|
11
11
|
HOME_TUTORS: '/home-tutors/',
|
|
12
12
|
HOME_TUTORING: '/home-tutoring',
|
|
13
13
|
HYBRID_TEACHER_PROFILE: '/hybrid-teacher-profile/',
|
|
14
|
-
MATH_TUITION: '/math-tuition
|
|
14
|
+
MATH_TUITION: '/math-tuition',
|
|
15
15
|
CENTRES: '/centres/',
|
|
16
|
-
|
|
17
|
-
ONLINE_TUITIONS: '/online-tuitions
|
|
16
|
+
MATHS: '/maths',
|
|
17
|
+
ONLINE_TUITIONS: '/online-tuitions',
|
|
18
18
|
GRADE_MATH: 'grade-math/',
|
|
19
19
|
ONLINE_MATH_COURSES: '/online-math-courses/',
|
|
20
20
|
TUITION_TUTORS: '/tuition-tutors',
|
|
21
|
-
TEACH: '/teach
|
|
21
|
+
TEACH: '/teach',
|
|
22
22
|
TEACHER_PROFILE: '/teacher-profile/',
|
|
23
23
|
NEAR_ME: 'near-me/',
|
|
24
24
|
CONTACT: '/contact/',
|
|
@@ -39,31 +39,31 @@ const URL_PATH_MAP = {
|
|
|
39
39
|
MATHS_TEACHER: '/maths-teacher/',
|
|
40
40
|
LIVE_ONLINE_CLASSES: '/live-online-classes',
|
|
41
41
|
PARENT_STUDENT_SEO: '/parent-signup-seo',
|
|
42
|
-
WORKSHEETS: '/worksheets
|
|
43
|
-
WORKSHEET: '/worksheet
|
|
44
|
-
QUESTIONS: '/questions
|
|
45
|
-
MATH_PUZZLES: '/math-puzzles
|
|
46
|
-
MATH_GAMES: '/math-games
|
|
42
|
+
WORKSHEETS: '/worksheets',
|
|
43
|
+
WORKSHEET: '/worksheet',
|
|
44
|
+
QUESTIONS: '/questions',
|
|
45
|
+
MATH_PUZZLES: '/math-puzzles',
|
|
46
|
+
MATH_GAMES: '/math-games',
|
|
47
47
|
FORMULA: '-formula',
|
|
48
48
|
FORMULAS: '-formulas/',
|
|
49
|
-
CALCULATORS: '/calculators
|
|
50
|
-
MULTIPLICATION_TABLE: '/multiplication-tables
|
|
51
|
-
MULTIPLICATION: '/multiplication
|
|
52
|
-
LEARNING: '/learning
|
|
53
|
-
LEARN: '/learn
|
|
54
|
-
MATH_OLYMPIAD: '/math-olympiad
|
|
55
|
-
GEOMETRY: '/geometry
|
|
56
|
-
DATA: '/data
|
|
57
|
-
NUMBERS: '/numbers
|
|
58
|
-
ALGEBRA: '/algebra
|
|
59
|
-
CALCULUS: '/calculus
|
|
60
|
-
MEASURMENT: '/measurement
|
|
61
|
-
TRIGONOMETRY: '/trigonometry
|
|
62
|
-
COMMERCIAL_MATH: '/commercial-math
|
|
49
|
+
CALCULATORS: '/calculators',
|
|
50
|
+
MULTIPLICATION_TABLE: '/multiplication-tables',
|
|
51
|
+
MULTIPLICATION: '/multiplication',
|
|
52
|
+
LEARNING: '/learning',
|
|
53
|
+
LEARN: '/learn',
|
|
54
|
+
MATH_OLYMPIAD: '/math-olympiad',
|
|
55
|
+
GEOMETRY: '/geometry',
|
|
56
|
+
DATA: '/data',
|
|
57
|
+
NUMBERS: '/numbers',
|
|
58
|
+
ALGEBRA: '/algebra',
|
|
59
|
+
CALCULUS: '/calculus',
|
|
60
|
+
MEASURMENT: '/measurement',
|
|
61
|
+
TRIGONOMETRY: '/trigonometry',
|
|
62
|
+
COMMERCIAL_MATH: '/commercial-math',
|
|
63
63
|
NCERT: '/ncert',
|
|
64
64
|
NCERT2: '/NCERT',
|
|
65
|
-
NCERT_SOLUTIONS: '/ncert-solutions
|
|
66
|
-
STORIES_FOR_KIDS: '
|
|
65
|
+
NCERT_SOLUTIONS: '/ncert-solutions',
|
|
66
|
+
STORIES_FOR_KIDS: 'stories-for-kids',
|
|
67
67
|
EN_HOMEPAGE: '/en-',
|
|
68
68
|
ABOUT: '/about/',
|
|
69
69
|
LOGIN: '/login',
|
|
@@ -72,8 +72,7 @@ const URL_PATH_MAP = {
|
|
|
72
72
|
HYBRID_TEACHER: '/hybrid-teacher',
|
|
73
73
|
TUITION_TEACHER: 'tuition-teacher',
|
|
74
74
|
CLASS: '/class-',
|
|
75
|
-
GRADE:
|
|
76
|
-
GRADES: /^\/grades\/$/,
|
|
75
|
+
GRADE: '/grade',
|
|
77
76
|
LEAP_PAYMENT: '/leap-payment/',
|
|
78
77
|
LEARN_MATH_ONLINE: 'learn-math-online-',
|
|
79
78
|
UPGRADE: '/upgrade/',
|
|
@@ -88,12 +87,8 @@ const URL_PATH_MAP = {
|
|
|
88
87
|
PDF: 'pdf',
|
|
89
88
|
DOWNLOAD: 'download',
|
|
90
89
|
CUEMATH_OLYMPIAD: 'cuemath-olympiad',
|
|
91
|
-
GIFT: '
|
|
90
|
+
GIFT: 'gift',
|
|
92
91
|
MATH_FORMULA: '/math-formulas',
|
|
93
|
-
COURSE_OLYMPIAD: '/course/olympiad/',
|
|
94
|
-
PHILOSOPHY: '/philosophy',
|
|
95
|
-
PRICING: '/pricing',
|
|
96
|
-
MATHS_YEAR: '/maths/year-',
|
|
97
92
|
};
|
|
98
93
|
exports.BRAND_PAGES = [
|
|
99
94
|
URL_PATH_MAP.HOMEPAGE,
|
|
@@ -106,6 +101,37 @@ exports.BRAND_PAGES = [
|
|
|
106
101
|
URL_PATH_MAP.ABOUT,
|
|
107
102
|
URL_PATH_MAP.LOGIN,
|
|
108
103
|
];
|
|
104
|
+
exports.CONTENT_PAGES = [
|
|
105
|
+
URL_PATH_MAP.WORKSHEET,
|
|
106
|
+
URL_PATH_MAP.WORKSHEETS,
|
|
107
|
+
URL_PATH_MAP.QUESTIONS,
|
|
108
|
+
URL_PATH_MAP.MATH_GAMES,
|
|
109
|
+
URL_PATH_MAP.MATH_PUZZLES,
|
|
110
|
+
URL_PATH_MAP.FORMULA,
|
|
111
|
+
URL_PATH_MAP.FORMULAS,
|
|
112
|
+
URL_PATH_MAP.CALCULATORS,
|
|
113
|
+
URL_PATH_MAP.MULTIPLICATION_TABLE,
|
|
114
|
+
URL_PATH_MAP.LEARNING,
|
|
115
|
+
URL_PATH_MAP.LEARN,
|
|
116
|
+
URL_PATH_MAP.TEACH,
|
|
117
|
+
URL_PATH_MAP.MATH_OLYMPIAD,
|
|
118
|
+
URL_PATH_MAP.GEOMETRY,
|
|
119
|
+
URL_PATH_MAP.DATA,
|
|
120
|
+
URL_PATH_MAP.NUMBERS,
|
|
121
|
+
URL_PATH_MAP.ALGEBRA,
|
|
122
|
+
URL_PATH_MAP.CALCULUS,
|
|
123
|
+
URL_PATH_MAP.MEASURMENT,
|
|
124
|
+
URL_PATH_MAP.TRIGONOMETRY,
|
|
125
|
+
URL_PATH_MAP.COMMERCIAL_MATH,
|
|
126
|
+
URL_PATH_MAP.NCERT,
|
|
127
|
+
URL_PATH_MAP.NCERT2,
|
|
128
|
+
URL_PATH_MAP.NCERT_SOLUTIONS,
|
|
129
|
+
URL_PATH_MAP.STORIES_FOR_KIDS,
|
|
130
|
+
URL_PATH_MAP.PDF,
|
|
131
|
+
URL_PATH_MAP.DOWNLOAD,
|
|
132
|
+
URL_PATH_MAP.CUEMATH_OLYMPIAD,
|
|
133
|
+
URL_PATH_MAP.MATH_FORMULA,
|
|
134
|
+
];
|
|
109
135
|
exports.INTENT_PAGES = [
|
|
110
136
|
URL_PATH_MAP.WHY_CHOOSE_US,
|
|
111
137
|
URL_PATH_MAP.TUTORING_SERVICES,
|
|
@@ -117,7 +143,7 @@ exports.INTENT_PAGES = [
|
|
|
117
143
|
URL_PATH_MAP.HYBRID_TEACHER,
|
|
118
144
|
URL_PATH_MAP.MATH_TUITION,
|
|
119
145
|
URL_PATH_MAP.CENTRES,
|
|
120
|
-
URL_PATH_MAP.
|
|
146
|
+
URL_PATH_MAP.MATHS,
|
|
121
147
|
URL_PATH_MAP.ONLINE_TUITIONS,
|
|
122
148
|
URL_PATH_MAP.ONLINE_MATH_COURSES,
|
|
123
149
|
URL_PATH_MAP.TUITION_TUTORS,
|
|
@@ -141,15 +167,9 @@ exports.INTENT_PAGES = [
|
|
|
141
167
|
URL_PATH_MAP.TUITION_TEACHER,
|
|
142
168
|
URL_PATH_MAP.LEAP_PAYMENT,
|
|
143
169
|
URL_PATH_MAP.GRADE,
|
|
144
|
-
URL_PATH_MAP.GRADES,
|
|
145
170
|
URL_PATH_MAP.LEARN_MATH_ONLINE,
|
|
146
171
|
URL_PATH_MAP.UPGRADE,
|
|
147
172
|
URL_PATH_MAP.HCL,
|
|
148
|
-
URL_PATH_MAP.ONLINE_MATH,
|
|
149
|
-
URL_PATH_MAP.COURSE_OLYMPIAD,
|
|
150
|
-
URL_PATH_MAP.PHILOSOPHY,
|
|
151
|
-
URL_PATH_MAP.PRICING,
|
|
152
|
-
URL_PATH_MAP.MATHS_YEAR,
|
|
153
173
|
];
|
|
154
174
|
exports.SUPPLY_PAGES = [
|
|
155
175
|
URL_PATH_MAP.WORK_FROM_HOME,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/constants/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,gBAAgB;IAC/B,sBAAsB,EAAE,0BAA0B;IAClD,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/constants/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,gBAAgB;IAC/B,sBAAsB,EAAE,0BAA0B;IAClD,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,QAAQ;IACf,eAAe,EAAE,kBAAkB;IACnC,UAAU,EAAE,aAAa;IACzB,mBAAmB,EAAE,uBAAuB;IAC5C,cAAc,EAAE,iBAAiB;IACjC,KAAK,EAAE,QAAQ;IACf,eAAe,EAAE,mBAAmB;IACpC,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,WAAW;IACpB,aAAa,EAAE,gBAAgB;IAC/B,0BAA0B,EAAE,8BAA8B;IAC1D,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,cAAc;IAC1B,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,aAAa,EAAE,iBAAiB;IAChC,kBAAkB,EAAE,sBAAsB;IAC1C,mBAAmB,EAAE,uBAAuB;IAC5C,eAAe,EAAE,mBAAmB;IACpC,cAAc,EAAE,kBAAkB;IAClC,qBAAqB,EAAE,yBAAyB;IAChD,aAAa,EAAE,iBAAiB;IAChC,mBAAmB,EAAE,sBAAsB;IAC3C,kBAAkB,EAAE,oBAAoB;I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ERRAL_PAGES = exports.SUPPLY_PAGES = exports.INTENT_PAGES = exports.BRAND_PAGES = exports.checkContentPage = exports.isBrandOrIntentPage = void 0;
|
|
4
4
|
var utils_1 = require("./utils");
|
|
5
|
+
Object.defineProperty(exports, "isBrandOrIntentPage", { enumerable: true, get: function () { return utils_1.isBrandOrIntentPage; } });
|
|
5
6
|
Object.defineProperty(exports, "checkContentPage", { enumerable: true, get: function () { return utils_1.checkContentPage; } });
|
|
6
7
|
var constants_1 = require("./constants");
|
|
7
8
|
Object.defineProperty(exports, "BRAND_PAGES", { enumerable: true, get: function () { return constants_1.BRAND_PAGES; } });
|
|
8
9
|
Object.defineProperty(exports, "INTENT_PAGES", { enumerable: true, get: function () { return constants_1.INTENT_PAGES; } });
|
|
9
10
|
Object.defineProperty(exports, "SUPPLY_PAGES", { enumerable: true, get: function () { return constants_1.SUPPLY_PAGES; } });
|
|
10
11
|
Object.defineProperty(exports, "REFERRAL_PAGES", { enumerable: true, get: function () { return constants_1.REFERRAL_PAGES; } });
|
|
11
|
-
var instrumentation_1 = require("./utils/instrumentation");
|
|
12
|
-
Object.defineProperty(exports, "getSubRevenueChannel", { enumerable: true, get: function () { return instrumentation_1.getSubRevenueChannel; } });
|
|
13
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/website-category/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/website-category/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgE;AAAvD,4GAAA,mBAAmB,OAAA;AAAE,yGAAA,gBAAgB,OAAA;AAC9C,yCAAsF;AAA7E,wGAAA,WAAW,OAAA;AAAE,yGAAA,YAAY,OAAA;AAAE,yGAAA,YAAY,OAAA;AAAE,2GAAA,cAAc,OAAA"}
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkContentPage = void 0;
|
|
4
|
-
const
|
|
3
|
+
exports.checkContentPage = exports.isBrandOrIntentPage = void 0;
|
|
4
|
+
const url_parser_1 = require("../../url-parser");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const isBrandOrIntentPage = (path) => {
|
|
7
|
+
if (path === '/') {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
const urlWithoutTrailingSlash = (0, url_parser_1.removeTrailingSlashFromPath)(path);
|
|
11
|
+
const isBrandPage = constants_1.BRAND_PAGES.some(pagePath => pagePath === '/' ? false : urlWithoutTrailingSlash.includes(pagePath));
|
|
12
|
+
const isIntentPage = constants_1.INTENT_PAGES.some(pagePath => pagePath === '/' ? false : urlWithoutTrailingSlash.includes(pagePath));
|
|
13
|
+
if (isBrandPage || isIntentPage) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
17
|
+
};
|
|
18
|
+
exports.isBrandOrIntentPage = isBrandOrIntentPage;
|
|
5
19
|
const checkContentPage = (path) => {
|
|
6
|
-
|
|
7
|
-
|
|
20
|
+
if (path === '/') {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
const urlWithoutTrailingSlash = (0, url_parser_1.removeTrailingSlashFromPath)(path);
|
|
24
|
+
const isContentPage = constants_1.CONTENT_PAGES.some(pagePath => urlWithoutTrailingSlash.includes(pagePath));
|
|
25
|
+
if (isContentPage) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
8
29
|
};
|
|
9
30
|
exports.checkContentPage = checkContentPage;
|
|
10
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/utils/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/utils/index.ts"],"names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];
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const CONTENT_PAGES: string[];
|
|
3
|
+
export declare const INTENT_PAGES: string[];
|
|
3
4
|
export declare const SUPPLY_PAGES: string[];
|
|
4
5
|
export declare const REFERRAL_PAGES: string[];
|
|
@@ -8,14 +8,14 @@ const URL_PATH_MAP = {
|
|
|
8
8
|
HOME_TUTORS: '/home-tutors/',
|
|
9
9
|
HOME_TUTORING: '/home-tutoring',
|
|
10
10
|
HYBRID_TEACHER_PROFILE: '/hybrid-teacher-profile/',
|
|
11
|
-
MATH_TUITION: '/math-tuition
|
|
11
|
+
MATH_TUITION: '/math-tuition',
|
|
12
12
|
CENTRES: '/centres/',
|
|
13
|
-
|
|
14
|
-
ONLINE_TUITIONS: '/online-tuitions
|
|
13
|
+
MATHS: '/maths',
|
|
14
|
+
ONLINE_TUITIONS: '/online-tuitions',
|
|
15
15
|
GRADE_MATH: 'grade-math/',
|
|
16
16
|
ONLINE_MATH_COURSES: '/online-math-courses/',
|
|
17
17
|
TUITION_TUTORS: '/tuition-tutors',
|
|
18
|
-
TEACH: '/teach
|
|
18
|
+
TEACH: '/teach',
|
|
19
19
|
TEACHER_PROFILE: '/teacher-profile/',
|
|
20
20
|
NEAR_ME: 'near-me/',
|
|
21
21
|
CONTACT: '/contact/',
|
|
@@ -36,31 +36,31 @@ const URL_PATH_MAP = {
|
|
|
36
36
|
MATHS_TEACHER: '/maths-teacher/',
|
|
37
37
|
LIVE_ONLINE_CLASSES: '/live-online-classes',
|
|
38
38
|
PARENT_STUDENT_SEO: '/parent-signup-seo',
|
|
39
|
-
WORKSHEETS: '/worksheets
|
|
40
|
-
WORKSHEET: '/worksheet
|
|
41
|
-
QUESTIONS: '/questions
|
|
42
|
-
MATH_PUZZLES: '/math-puzzles
|
|
43
|
-
MATH_GAMES: '/math-games
|
|
39
|
+
WORKSHEETS: '/worksheets',
|
|
40
|
+
WORKSHEET: '/worksheet',
|
|
41
|
+
QUESTIONS: '/questions',
|
|
42
|
+
MATH_PUZZLES: '/math-puzzles',
|
|
43
|
+
MATH_GAMES: '/math-games',
|
|
44
44
|
FORMULA: '-formula',
|
|
45
45
|
FORMULAS: '-formulas/',
|
|
46
|
-
CALCULATORS: '/calculators
|
|
47
|
-
MULTIPLICATION_TABLE: '/multiplication-tables
|
|
48
|
-
MULTIPLICATION: '/multiplication
|
|
49
|
-
LEARNING: '/learning
|
|
50
|
-
LEARN: '/learn
|
|
51
|
-
MATH_OLYMPIAD: '/math-olympiad
|
|
52
|
-
GEOMETRY: '/geometry
|
|
53
|
-
DATA: '/data
|
|
54
|
-
NUMBERS: '/numbers
|
|
55
|
-
ALGEBRA: '/algebra
|
|
56
|
-
CALCULUS: '/calculus
|
|
57
|
-
MEASURMENT: '/measurement
|
|
58
|
-
TRIGONOMETRY: '/trigonometry
|
|
59
|
-
COMMERCIAL_MATH: '/commercial-math
|
|
46
|
+
CALCULATORS: '/calculators',
|
|
47
|
+
MULTIPLICATION_TABLE: '/multiplication-tables',
|
|
48
|
+
MULTIPLICATION: '/multiplication',
|
|
49
|
+
LEARNING: '/learning',
|
|
50
|
+
LEARN: '/learn',
|
|
51
|
+
MATH_OLYMPIAD: '/math-olympiad',
|
|
52
|
+
GEOMETRY: '/geometry',
|
|
53
|
+
DATA: '/data',
|
|
54
|
+
NUMBERS: '/numbers',
|
|
55
|
+
ALGEBRA: '/algebra',
|
|
56
|
+
CALCULUS: '/calculus',
|
|
57
|
+
MEASURMENT: '/measurement',
|
|
58
|
+
TRIGONOMETRY: '/trigonometry',
|
|
59
|
+
COMMERCIAL_MATH: '/commercial-math',
|
|
60
60
|
NCERT: '/ncert',
|
|
61
61
|
NCERT2: '/NCERT',
|
|
62
|
-
NCERT_SOLUTIONS: '/ncert-solutions
|
|
63
|
-
STORIES_FOR_KIDS: '
|
|
62
|
+
NCERT_SOLUTIONS: '/ncert-solutions',
|
|
63
|
+
STORIES_FOR_KIDS: 'stories-for-kids',
|
|
64
64
|
EN_HOMEPAGE: '/en-',
|
|
65
65
|
ABOUT: '/about/',
|
|
66
66
|
LOGIN: '/login',
|
|
@@ -69,8 +69,7 @@ const URL_PATH_MAP = {
|
|
|
69
69
|
HYBRID_TEACHER: '/hybrid-teacher',
|
|
70
70
|
TUITION_TEACHER: 'tuition-teacher',
|
|
71
71
|
CLASS: '/class-',
|
|
72
|
-
GRADE:
|
|
73
|
-
GRADES: /^\/grades\/$/,
|
|
72
|
+
GRADE: '/grade',
|
|
74
73
|
LEAP_PAYMENT: '/leap-payment/',
|
|
75
74
|
LEARN_MATH_ONLINE: 'learn-math-online-',
|
|
76
75
|
UPGRADE: '/upgrade/',
|
|
@@ -85,12 +84,8 @@ const URL_PATH_MAP = {
|
|
|
85
84
|
PDF: 'pdf',
|
|
86
85
|
DOWNLOAD: 'download',
|
|
87
86
|
CUEMATH_OLYMPIAD: 'cuemath-olympiad',
|
|
88
|
-
GIFT: '
|
|
87
|
+
GIFT: 'gift',
|
|
89
88
|
MATH_FORMULA: '/math-formulas',
|
|
90
|
-
COURSE_OLYMPIAD: '/course/olympiad/',
|
|
91
|
-
PHILOSOPHY: '/philosophy',
|
|
92
|
-
PRICING: '/pricing',
|
|
93
|
-
MATHS_YEAR: '/maths/year-',
|
|
94
89
|
};
|
|
95
90
|
export const BRAND_PAGES = [
|
|
96
91
|
URL_PATH_MAP.HOMEPAGE,
|
|
@@ -103,6 +98,37 @@ export const BRAND_PAGES = [
|
|
|
103
98
|
URL_PATH_MAP.ABOUT,
|
|
104
99
|
URL_PATH_MAP.LOGIN,
|
|
105
100
|
];
|
|
101
|
+
export const CONTENT_PAGES = [
|
|
102
|
+
URL_PATH_MAP.WORKSHEET,
|
|
103
|
+
URL_PATH_MAP.WORKSHEETS,
|
|
104
|
+
URL_PATH_MAP.QUESTIONS,
|
|
105
|
+
URL_PATH_MAP.MATH_GAMES,
|
|
106
|
+
URL_PATH_MAP.MATH_PUZZLES,
|
|
107
|
+
URL_PATH_MAP.FORMULA,
|
|
108
|
+
URL_PATH_MAP.FORMULAS,
|
|
109
|
+
URL_PATH_MAP.CALCULATORS,
|
|
110
|
+
URL_PATH_MAP.MULTIPLICATION_TABLE,
|
|
111
|
+
URL_PATH_MAP.LEARNING,
|
|
112
|
+
URL_PATH_MAP.LEARN,
|
|
113
|
+
URL_PATH_MAP.TEACH,
|
|
114
|
+
URL_PATH_MAP.MATH_OLYMPIAD,
|
|
115
|
+
URL_PATH_MAP.GEOMETRY,
|
|
116
|
+
URL_PATH_MAP.DATA,
|
|
117
|
+
URL_PATH_MAP.NUMBERS,
|
|
118
|
+
URL_PATH_MAP.ALGEBRA,
|
|
119
|
+
URL_PATH_MAP.CALCULUS,
|
|
120
|
+
URL_PATH_MAP.MEASURMENT,
|
|
121
|
+
URL_PATH_MAP.TRIGONOMETRY,
|
|
122
|
+
URL_PATH_MAP.COMMERCIAL_MATH,
|
|
123
|
+
URL_PATH_MAP.NCERT,
|
|
124
|
+
URL_PATH_MAP.NCERT2,
|
|
125
|
+
URL_PATH_MAP.NCERT_SOLUTIONS,
|
|
126
|
+
URL_PATH_MAP.STORIES_FOR_KIDS,
|
|
127
|
+
URL_PATH_MAP.PDF,
|
|
128
|
+
URL_PATH_MAP.DOWNLOAD,
|
|
129
|
+
URL_PATH_MAP.CUEMATH_OLYMPIAD,
|
|
130
|
+
URL_PATH_MAP.MATH_FORMULA,
|
|
131
|
+
];
|
|
106
132
|
export const INTENT_PAGES = [
|
|
107
133
|
URL_PATH_MAP.WHY_CHOOSE_US,
|
|
108
134
|
URL_PATH_MAP.TUTORING_SERVICES,
|
|
@@ -114,7 +140,7 @@ export const INTENT_PAGES = [
|
|
|
114
140
|
URL_PATH_MAP.HYBRID_TEACHER,
|
|
115
141
|
URL_PATH_MAP.MATH_TUITION,
|
|
116
142
|
URL_PATH_MAP.CENTRES,
|
|
117
|
-
URL_PATH_MAP.
|
|
143
|
+
URL_PATH_MAP.MATHS,
|
|
118
144
|
URL_PATH_MAP.ONLINE_TUITIONS,
|
|
119
145
|
URL_PATH_MAP.ONLINE_MATH_COURSES,
|
|
120
146
|
URL_PATH_MAP.TUITION_TUTORS,
|
|
@@ -138,15 +164,9 @@ export const INTENT_PAGES = [
|
|
|
138
164
|
URL_PATH_MAP.TUITION_TEACHER,
|
|
139
165
|
URL_PATH_MAP.LEAP_PAYMENT,
|
|
140
166
|
URL_PATH_MAP.GRADE,
|
|
141
|
-
URL_PATH_MAP.GRADES,
|
|
142
167
|
URL_PATH_MAP.LEARN_MATH_ONLINE,
|
|
143
168
|
URL_PATH_MAP.UPGRADE,
|
|
144
169
|
URL_PATH_MAP.HCL,
|
|
145
|
-
URL_PATH_MAP.ONLINE_MATH,
|
|
146
|
-
URL_PATH_MAP.COURSE_OLYMPIAD,
|
|
147
|
-
URL_PATH_MAP.PHILOSOPHY,
|
|
148
|
-
URL_PATH_MAP.PRICING,
|
|
149
|
-
URL_PATH_MAP.MATHS_YEAR,
|
|
150
170
|
];
|
|
151
171
|
export const SUPPLY_PAGES = [
|
|
152
172
|
URL_PATH_MAP.WORK_FROM_HOME,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/constants/index.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,gBAAgB;IAC/B,sBAAsB,EAAE,0BAA0B;IAClD,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/constants/index.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,oBAAoB;I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Y,CAAC,kBAAkB;IAC/B,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,kBAAkB;IAC/B,YAAY,CAAC,mBAAmB;IAChC,YAAY,CAAC,eAAe;IAC5B,YAAY,CAAC,cAAc;IAC3B,YAAY,CAAC,qBAAqB;IAClC,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,mBAAmB;IAChC,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,kBAAkB;IAC/B,YAAY,CAAC,UAAU;IACvB,YAAY,CAAC,UAAU;IACvB,YAAY,CAAC,eAAe;IAC5B,YAAY,CAAC,YAAY;IACzB,YAAY,CAAC,KAAK;IAClB,YAAY,CAAC,iBAAiB;IAC9B,YAAY,CAAC,OAAO;IACpB,YAAY,CAAC,GAAG;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,YAAY,CAAC,cAAc;IAC3B,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,YAAY;IACzB,YAAY,CAAC,cAAc;IAC3B,YAAY,CAAC,oBAAoB;IACjC,YAAY,CAAC,cAAc;IAC3B,YAAY,CAAC,OAAO;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { checkContentPage } from './utils';
|
|
1
|
+
export { isBrandOrIntentPage, checkContentPage } from './utils';
|
|
2
2
|
export { BRAND_PAGES, INTENT_PAGES, SUPPLY_PAGES, REFERRAL_PAGES } from './constants';
|
|
3
|
-
export { getSubRevenueChannel } from './utils/instrumentation';
|
|
4
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/website-category/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/website-category/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { removeTrailingSlashFromPath } from '../../url-parser';
|
|
2
|
+
import { BRAND_PAGES, CONTENT_PAGES, INTENT_PAGES } from '../constants';
|
|
3
|
+
export const isBrandOrIntentPage = (path) => {
|
|
4
|
+
if (path === '/') {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
const urlWithoutTrailingSlash = removeTrailingSlashFromPath(path);
|
|
8
|
+
const isBrandPage = BRAND_PAGES.some(pagePath => pagePath === '/' ? false : urlWithoutTrailingSlash.includes(pagePath));
|
|
9
|
+
const isIntentPage = INTENT_PAGES.some(pagePath => pagePath === '/' ? false : urlWithoutTrailingSlash.includes(pagePath));
|
|
10
|
+
if (isBrandPage || isIntentPage) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
return false;
|
|
14
|
+
};
|
|
2
15
|
export const checkContentPage = (path) => {
|
|
3
|
-
|
|
4
|
-
|
|
16
|
+
if (path === '/') {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
const urlWithoutTrailingSlash = removeTrailingSlashFromPath(path);
|
|
20
|
+
const isContentPage = CONTENT_PAGES.some(pagePath => urlWithoutTrailingSlash.includes(pagePath));
|
|
21
|
+
if (isContentPage) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
return true;
|
|
5
25
|
};
|
|
6
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|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KACd;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
export declare const seoPageNames: {
|
|
2
|
-
numbers: {
|
|
3
|
-
title: string;
|
|
4
|
-
route: string;
|
|
5
|
-
};
|
|
6
|
-
algebra: {
|
|
7
|
-
title: string;
|
|
8
|
-
route: string;
|
|
9
|
-
};
|
|
10
|
-
geometry: {
|
|
11
|
-
title: string;
|
|
12
|
-
route: string;
|
|
13
|
-
};
|
|
14
|
-
data: {
|
|
15
|
-
title: string;
|
|
16
|
-
route: string;
|
|
17
|
-
};
|
|
18
|
-
measurement: {
|
|
19
|
-
title: string;
|
|
20
|
-
route: string;
|
|
21
|
-
};
|
|
22
|
-
'commercial-math': {
|
|
23
|
-
title: string;
|
|
24
|
-
route: string;
|
|
25
|
-
};
|
|
26
|
-
trigonometry: {
|
|
27
|
-
title: string;
|
|
28
|
-
route: string;
|
|
29
|
-
};
|
|
30
|
-
calculus: {
|
|
31
|
-
title: string;
|
|
32
|
-
route: string;
|
|
33
|
-
};
|
|
34
|
-
learn: {
|
|
35
|
-
title: string;
|
|
36
|
-
route: string;
|
|
37
|
-
};
|
|
38
|
-
learning: {
|
|
39
|
-
title: string;
|
|
40
|
-
route: string;
|
|
41
|
-
};
|
|
42
|
-
'multiplication-tables': {
|
|
43
|
-
title: string;
|
|
44
|
-
route: string;
|
|
45
|
-
};
|
|
46
|
-
calculators: {
|
|
47
|
-
title: string;
|
|
48
|
-
route: string;
|
|
49
|
-
};
|
|
50
|
-
'math-formulas': {
|
|
51
|
-
title: string;
|
|
52
|
-
route: string;
|
|
53
|
-
};
|
|
54
|
-
'ncert-solutions': {
|
|
55
|
-
title: string;
|
|
56
|
-
route: string;
|
|
57
|
-
};
|
|
58
|
-
'math-olympiad': {
|
|
59
|
-
title: string;
|
|
60
|
-
route: string;
|
|
61
|
-
};
|
|
62
|
-
questions: {
|
|
63
|
-
title: string;
|
|
64
|
-
route: string;
|
|
65
|
-
};
|
|
66
|
-
worksheets: {
|
|
67
|
-
title: string;
|
|
68
|
-
route: string;
|
|
69
|
-
};
|
|
70
|
-
worksheet: {
|
|
71
|
-
title: string;
|
|
72
|
-
route: string;
|
|
73
|
-
};
|
|
74
|
-
'math-puzzles': {
|
|
75
|
-
title: string;
|
|
76
|
-
route: string;
|
|
77
|
-
};
|
|
78
|
-
'math-games': {
|
|
79
|
-
title: string;
|
|
80
|
-
route: string;
|
|
81
|
-
};
|
|
82
|
-
formula: {
|
|
83
|
-
title: string;
|
|
84
|
-
route: string;
|
|
85
|
-
};
|
|
86
|
-
multiplication: {
|
|
87
|
-
title: string;
|
|
88
|
-
route: string;
|
|
89
|
-
};
|
|
90
|
-
teach: {
|
|
91
|
-
title: string;
|
|
92
|
-
route: string;
|
|
93
|
-
};
|
|
94
|
-
ncert: {
|
|
95
|
-
title: string;
|
|
96
|
-
route: string;
|
|
97
|
-
};
|
|
98
|
-
ncert2: {
|
|
99
|
-
title: string;
|
|
100
|
-
route: string;
|
|
101
|
-
};
|
|
102
|
-
'stories-for-kids': {
|
|
103
|
-
title: string;
|
|
104
|
-
route: string;
|
|
105
|
-
};
|
|
106
|
-
pdf: {
|
|
107
|
-
title: string;
|
|
108
|
-
route: string;
|
|
109
|
-
};
|
|
110
|
-
download: {
|
|
111
|
-
title: string;
|
|
112
|
-
route: string;
|
|
113
|
-
};
|
|
114
|
-
'cuemath-olympiad': {
|
|
115
|
-
title: string;
|
|
116
|
-
route: string;
|
|
117
|
-
};
|
|
118
|
-
Maths: {
|
|
119
|
-
title: string;
|
|
120
|
-
route: string;
|
|
121
|
-
};
|
|
122
|
-
Grades: {
|
|
123
|
-
title: string;
|
|
124
|
-
route: string;
|
|
125
|
-
};
|
|
126
|
-
Concept: {
|
|
127
|
-
title: string;
|
|
128
|
-
route: string;
|
|
129
|
-
};
|
|
130
|
-
Properties: {
|
|
131
|
-
title: string;
|
|
132
|
-
route: string;
|
|
133
|
-
};
|
|
134
|
-
'Complex-numbers': {
|
|
135
|
-
title: string;
|
|
136
|
-
route: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.seoPageNames = void 0;
|
|
4
|
-
exports.seoPageNames = {
|
|
5
|
-
'numbers': {
|
|
6
|
-
title: 'Numbers',
|
|
7
|
-
route: '/numbers/',
|
|
8
|
-
},
|
|
9
|
-
'algebra': {
|
|
10
|
-
title: 'Algebra',
|
|
11
|
-
route: '/algebra',
|
|
12
|
-
},
|
|
13
|
-
'geometry': {
|
|
14
|
-
title: 'Geometry',
|
|
15
|
-
route: '/geometry/',
|
|
16
|
-
},
|
|
17
|
-
'data': {
|
|
18
|
-
title: 'Data',
|
|
19
|
-
route: '/data/',
|
|
20
|
-
},
|
|
21
|
-
'measurement': {
|
|
22
|
-
title: 'Measurement',
|
|
23
|
-
route: '/measurement/',
|
|
24
|
-
},
|
|
25
|
-
'commercial-math': {
|
|
26
|
-
title: 'Commercial Math',
|
|
27
|
-
route: '/commercial-math/',
|
|
28
|
-
},
|
|
29
|
-
'trigonometry': {
|
|
30
|
-
title: 'Trigonometry',
|
|
31
|
-
route: '/trigonometry/',
|
|
32
|
-
},
|
|
33
|
-
'calculus': {
|
|
34
|
-
title: 'Calculus',
|
|
35
|
-
route: '/calculus/',
|
|
36
|
-
},
|
|
37
|
-
'learn': {
|
|
38
|
-
title: 'Blog',
|
|
39
|
-
route: '/learn/',
|
|
40
|
-
},
|
|
41
|
-
'learning': {
|
|
42
|
-
title: 'Learning',
|
|
43
|
-
route: '/learning/',
|
|
44
|
-
},
|
|
45
|
-
'multiplication-tables': {
|
|
46
|
-
title: 'Multiplication Tables',
|
|
47
|
-
route: '/multiplication-tables/',
|
|
48
|
-
},
|
|
49
|
-
'calculators': {
|
|
50
|
-
title: 'Calculators',
|
|
51
|
-
route: '/calculators/',
|
|
52
|
-
},
|
|
53
|
-
'math-formulas': {
|
|
54
|
-
title: 'Math Formulas',
|
|
55
|
-
route: '/math-formulas/',
|
|
56
|
-
},
|
|
57
|
-
'ncert-solutions': {
|
|
58
|
-
title: 'NCERT Solutions',
|
|
59
|
-
route: '/ncert-solutions/',
|
|
60
|
-
},
|
|
61
|
-
'math-olympiad': {
|
|
62
|
-
title: 'Math Olympiad',
|
|
63
|
-
route: '/math-olympiad/',
|
|
64
|
-
},
|
|
65
|
-
'questions': {
|
|
66
|
-
title: 'Math Questions',
|
|
67
|
-
route: '/questions/',
|
|
68
|
-
},
|
|
69
|
-
'worksheets': {
|
|
70
|
-
title: 'Math Worksheets',
|
|
71
|
-
route: '/worksheets/',
|
|
72
|
-
},
|
|
73
|
-
'worksheet': {
|
|
74
|
-
title: 'Math Worksheet',
|
|
75
|
-
route: 'worksheet',
|
|
76
|
-
},
|
|
77
|
-
'math-puzzles': {
|
|
78
|
-
title: 'Math Puzzles',
|
|
79
|
-
route: '/math-puzzles/',
|
|
80
|
-
},
|
|
81
|
-
'math-games': {
|
|
82
|
-
title: 'Math Games',
|
|
83
|
-
route: '/math-games/',
|
|
84
|
-
},
|
|
85
|
-
'formula': {
|
|
86
|
-
title: 'Math formula',
|
|
87
|
-
route: '-formula',
|
|
88
|
-
},
|
|
89
|
-
'multiplication': {
|
|
90
|
-
title: 'Multiplication',
|
|
91
|
-
route: '/multiplication/',
|
|
92
|
-
},
|
|
93
|
-
'teach': {
|
|
94
|
-
title: 'Teach',
|
|
95
|
-
route: '/teach/',
|
|
96
|
-
},
|
|
97
|
-
'ncert': {
|
|
98
|
-
title: 'NCERT',
|
|
99
|
-
route: '/ncert',
|
|
100
|
-
},
|
|
101
|
-
'ncert2': {
|
|
102
|
-
title: 'NCERT',
|
|
103
|
-
route: '/NCERT',
|
|
104
|
-
},
|
|
105
|
-
'stories-for-kids': {
|
|
106
|
-
title: 'Stories for Kids',
|
|
107
|
-
route: '/stories-for-kids',
|
|
108
|
-
},
|
|
109
|
-
'pdf': {
|
|
110
|
-
title: 'Pdf',
|
|
111
|
-
route: 'pdf',
|
|
112
|
-
},
|
|
113
|
-
'download': {
|
|
114
|
-
title: 'Download',
|
|
115
|
-
route: 'download',
|
|
116
|
-
},
|
|
117
|
-
'cuemath-olympiad': {
|
|
118
|
-
title: 'Cuemath Olympiad',
|
|
119
|
-
route: 'cuemath-olympiad',
|
|
120
|
-
},
|
|
121
|
-
'Maths': {
|
|
122
|
-
title: 'Maths',
|
|
123
|
-
route: '/maths/',
|
|
124
|
-
},
|
|
125
|
-
'Grades': {
|
|
126
|
-
title: 'Grades',
|
|
127
|
-
route: '/grades/',
|
|
128
|
-
},
|
|
129
|
-
'Concept': {
|
|
130
|
-
title: 'Concept',
|
|
131
|
-
route: 'concept',
|
|
132
|
-
},
|
|
133
|
-
'Properties': {
|
|
134
|
-
title: 'Properties',
|
|
135
|
-
route: 'properties',
|
|
136
|
-
},
|
|
137
|
-
'Complex-numbers': {
|
|
138
|
-
title: 'Complex numbers',
|
|
139
|
-
route: 'complex-numbers',
|
|
140
|
-
},
|
|
141
|
-
};
|
|
142
|
-
//# sourceMappingURL=instrumentation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.js","sourceRoot":"","sources":["../../../../src/website-category/constants/instrumentation.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,WAAW;KACnB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,UAAU;KAClB;IACD,UAAU,EAAE;QACV,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,YAAY;KACpB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,QAAQ;KAChB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,eAAe;KACvB;IACD,iBAAiB,EAAE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AO,EAAE;QACP,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,SAAS;KACjB;IACD,OAAO,EAAE;QACP,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,QAAQ;KAChB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,QAAQ;KAChB;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,mBAAmB;KAC3B;IACD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,KAAK;KACb;IACD,UAAU,EAAE;QACV,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;KAClB;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,kBAAkB;KAC1B;IACD,OAAO,EAAE;QACP,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,SAAS;KACjB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,UAAU;KAClB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;KACjB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,YAAY;KACpB;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,iBAAiB;KACzB;CACF,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSubRevenueChannel = exports.getTopicName = void 0;
|
|
4
|
-
const url_parser_1 = require("../../url-parser");
|
|
5
|
-
const constants_1 = require("../constants");
|
|
6
|
-
const instrumentation_1 = require("../constants/instrumentation");
|
|
7
|
-
const getTopicName = (path) => {
|
|
8
|
-
const pagePath = (0, url_parser_1.removeQueryStringFromPath)(path);
|
|
9
|
-
const topic = pagePath?.split('/').filter((name) => name)[1] || '';
|
|
10
|
-
return topic === '#' ? '' : topic;
|
|
11
|
-
};
|
|
12
|
-
exports.getTopicName = getTopicName;
|
|
13
|
-
const isSEO = (path) => {
|
|
14
|
-
const pageNames = Object.values(instrumentation_1.seoPageNames);
|
|
15
|
-
let currentPageName = '';
|
|
16
|
-
const topic = (0, exports.getTopicName)(path);
|
|
17
|
-
const isSEOPage = !!pageNames.filter(({ title, route }) => {
|
|
18
|
-
const hasRoute = path.includes(route);
|
|
19
|
-
if (hasRoute) {
|
|
20
|
-
currentPageName = title;
|
|
21
|
-
}
|
|
22
|
-
return hasRoute;
|
|
23
|
-
})[0];
|
|
24
|
-
return {
|
|
25
|
-
isSEOPage,
|
|
26
|
-
currentPageName,
|
|
27
|
-
topic,
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
const isRegex = (value) => {
|
|
31
|
-
return value instanceof RegExp;
|
|
32
|
-
};
|
|
33
|
-
function getSubRevenueChannel(pathname = '') {
|
|
34
|
-
const pagePathWithoutAdditionParams = (0, url_parser_1.removeHrefLangFromPath)((0, url_parser_1.removeQueryStringFromPath)(pathname));
|
|
35
|
-
// brand pages
|
|
36
|
-
if (constants_1.BRAND_PAGES.includes(pagePathWithoutAdditionParams)) {
|
|
37
|
-
return 'Brand';
|
|
38
|
-
}
|
|
39
|
-
// intent pages
|
|
40
|
-
if (constants_1.INTENT_PAGES.some(pagePath => isRegex(pagePath)
|
|
41
|
-
? pagePath.test(pagePathWithoutAdditionParams)
|
|
42
|
-
: pagePathWithoutAdditionParams.includes(pagePath))) {
|
|
43
|
-
return 'Intent';
|
|
44
|
-
}
|
|
45
|
-
// supply pages
|
|
46
|
-
if (constants_1.SUPPLY_PAGES.some(pagePath => pagePathWithoutAdditionParams.includes(pagePath))) {
|
|
47
|
-
return 'Supply';
|
|
48
|
-
}
|
|
49
|
-
// referral pages
|
|
50
|
-
if (constants_1.REFERRAL_PAGES.some(pagePath => pagePathWithoutAdditionParams.includes(pagePath))) {
|
|
51
|
-
return 'Referral';
|
|
52
|
-
}
|
|
53
|
-
// content pages
|
|
54
|
-
const { isSEOPage = false } = isSEO(pagePathWithoutAdditionParams);
|
|
55
|
-
if (isSEOPage) {
|
|
56
|
-
return 'Content';
|
|
57
|
-
}
|
|
58
|
-
return 'Others';
|
|
59
|
-
}
|
|
60
|
-
exports.getSubRevenueChannel = getSubRevenueChannel;
|
|
61
|
-
//# sourceMappingURL=instrumentation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.js","sourceRoot":"","sources":["../../../../src/website-category/utils/instrumentation.ts"],"names":[],"mappings":";;;AAAA,iDAAqF;AACrF,4CAAuF;AACvF,kEAA4D;AAErD,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;IAC3C,MAAM,QAAQ,GAAG,IAAA,sCAAyB,EAAC,IAAI,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAExE,OAAO,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AACpC,CAAC,CAAC;AALW,QAAA,YAAY,gBAKvB;AAEF,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE;IAC7B,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,8BAAY,CAAC,CAAC;IAC9C,IAAI,eAAe,GAAG,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,IAAA,oBAAY,EAAC,IAAI,CAAC,CAAC;IAEjC,MAAM,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;QACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAEtC,IAAI,QA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SAAS,CAAC;KAClB;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAvCD,oDAuCC"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
export declare const seoPageNames: {
|
|
2
|
-
numbers: {
|
|
3
|
-
title: string;
|
|
4
|
-
route: string;
|
|
5
|
-
};
|
|
6
|
-
algebra: {
|
|
7
|
-
title: string;
|
|
8
|
-
route: string;
|
|
9
|
-
};
|
|
10
|
-
geometry: {
|
|
11
|
-
title: string;
|
|
12
|
-
route: string;
|
|
13
|
-
};
|
|
14
|
-
data: {
|
|
15
|
-
title: string;
|
|
16
|
-
route: string;
|
|
17
|
-
};
|
|
18
|
-
measurement: {
|
|
19
|
-
title: string;
|
|
20
|
-
route: string;
|
|
21
|
-
};
|
|
22
|
-
'commercial-math': {
|
|
23
|
-
title: string;
|
|
24
|
-
route: string;
|
|
25
|
-
};
|
|
26
|
-
trigonometry: {
|
|
27
|
-
title: string;
|
|
28
|
-
route: string;
|
|
29
|
-
};
|
|
30
|
-
calculus: {
|
|
31
|
-
title: string;
|
|
32
|
-
route: string;
|
|
33
|
-
};
|
|
34
|
-
learn: {
|
|
35
|
-
title: string;
|
|
36
|
-
route: string;
|
|
37
|
-
};
|
|
38
|
-
learning: {
|
|
39
|
-
title: string;
|
|
40
|
-
route: string;
|
|
41
|
-
};
|
|
42
|
-
'multiplication-tables': {
|
|
43
|
-
title: string;
|
|
44
|
-
route: string;
|
|
45
|
-
};
|
|
46
|
-
calculators: {
|
|
47
|
-
title: string;
|
|
48
|
-
route: string;
|
|
49
|
-
};
|
|
50
|
-
'math-formulas': {
|
|
51
|
-
title: string;
|
|
52
|
-
route: string;
|
|
53
|
-
};
|
|
54
|
-
'ncert-solutions': {
|
|
55
|
-
title: string;
|
|
56
|
-
route: string;
|
|
57
|
-
};
|
|
58
|
-
'math-olympiad': {
|
|
59
|
-
title: string;
|
|
60
|
-
route: string;
|
|
61
|
-
};
|
|
62
|
-
questions: {
|
|
63
|
-
title: string;
|
|
64
|
-
route: string;
|
|
65
|
-
};
|
|
66
|
-
worksheets: {
|
|
67
|
-
title: string;
|
|
68
|
-
route: string;
|
|
69
|
-
};
|
|
70
|
-
worksheet: {
|
|
71
|
-
title: string;
|
|
72
|
-
route: string;
|
|
73
|
-
};
|
|
74
|
-
'math-puzzles': {
|
|
75
|
-
title: string;
|
|
76
|
-
route: string;
|
|
77
|
-
};
|
|
78
|
-
'math-games': {
|
|
79
|
-
title: string;
|
|
80
|
-
route: string;
|
|
81
|
-
};
|
|
82
|
-
formula: {
|
|
83
|
-
title: string;
|
|
84
|
-
route: string;
|
|
85
|
-
};
|
|
86
|
-
multiplication: {
|
|
87
|
-
title: string;
|
|
88
|
-
route: string;
|
|
89
|
-
};
|
|
90
|
-
teach: {
|
|
91
|
-
title: string;
|
|
92
|
-
route: string;
|
|
93
|
-
};
|
|
94
|
-
ncert: {
|
|
95
|
-
title: string;
|
|
96
|
-
route: string;
|
|
97
|
-
};
|
|
98
|
-
ncert2: {
|
|
99
|
-
title: string;
|
|
100
|
-
route: string;
|
|
101
|
-
};
|
|
102
|
-
'stories-for-kids': {
|
|
103
|
-
title: string;
|
|
104
|
-
route: string;
|
|
105
|
-
};
|
|
106
|
-
pdf: {
|
|
107
|
-
title: string;
|
|
108
|
-
route: string;
|
|
109
|
-
};
|
|
110
|
-
download: {
|
|
111
|
-
title: string;
|
|
112
|
-
route: string;
|
|
113
|
-
};
|
|
114
|
-
'cuemath-olympiad': {
|
|
115
|
-
title: string;
|
|
116
|
-
route: string;
|
|
117
|
-
};
|
|
118
|
-
Maths: {
|
|
119
|
-
title: string;
|
|
120
|
-
route: string;
|
|
121
|
-
};
|
|
122
|
-
Grades: {
|
|
123
|
-
title: string;
|
|
124
|
-
route: string;
|
|
125
|
-
};
|
|
126
|
-
Concept: {
|
|
127
|
-
title: string;
|
|
128
|
-
route: string;
|
|
129
|
-
};
|
|
130
|
-
Properties: {
|
|
131
|
-
title: string;
|
|
132
|
-
route: string;
|
|
133
|
-
};
|
|
134
|
-
'Complex-numbers': {
|
|
135
|
-
title: string;
|
|
136
|
-
route: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
export const seoPageNames = {
|
|
2
|
-
'numbers': {
|
|
3
|
-
title: 'Numbers',
|
|
4
|
-
route: '/numbers/',
|
|
5
|
-
},
|
|
6
|
-
'algebra': {
|
|
7
|
-
title: 'Algebra',
|
|
8
|
-
route: '/algebra',
|
|
9
|
-
},
|
|
10
|
-
'geometry': {
|
|
11
|
-
title: 'Geometry',
|
|
12
|
-
route: '/geometry/',
|
|
13
|
-
},
|
|
14
|
-
'data': {
|
|
15
|
-
title: 'Data',
|
|
16
|
-
route: '/data/',
|
|
17
|
-
},
|
|
18
|
-
'measurement': {
|
|
19
|
-
title: 'Measurement',
|
|
20
|
-
route: '/measurement/',
|
|
21
|
-
},
|
|
22
|
-
'commercial-math': {
|
|
23
|
-
title: 'Commercial Math',
|
|
24
|
-
route: '/commercial-math/',
|
|
25
|
-
},
|
|
26
|
-
'trigonometry': {
|
|
27
|
-
title: 'Trigonometry',
|
|
28
|
-
route: '/trigonometry/',
|
|
29
|
-
},
|
|
30
|
-
'calculus': {
|
|
31
|
-
title: 'Calculus',
|
|
32
|
-
route: '/calculus/',
|
|
33
|
-
},
|
|
34
|
-
'learn': {
|
|
35
|
-
title: 'Blog',
|
|
36
|
-
route: '/learn/',
|
|
37
|
-
},
|
|
38
|
-
'learning': {
|
|
39
|
-
title: 'Learning',
|
|
40
|
-
route: '/learning/',
|
|
41
|
-
},
|
|
42
|
-
'multiplication-tables': {
|
|
43
|
-
title: 'Multiplication Tables',
|
|
44
|
-
route: '/multiplication-tables/',
|
|
45
|
-
},
|
|
46
|
-
'calculators': {
|
|
47
|
-
title: 'Calculators',
|
|
48
|
-
route: '/calculators/',
|
|
49
|
-
},
|
|
50
|
-
'math-formulas': {
|
|
51
|
-
title: 'Math Formulas',
|
|
52
|
-
route: '/math-formulas/',
|
|
53
|
-
},
|
|
54
|
-
'ncert-solutions': {
|
|
55
|
-
title: 'NCERT Solutions',
|
|
56
|
-
route: '/ncert-solutions/',
|
|
57
|
-
},
|
|
58
|
-
'math-olympiad': {
|
|
59
|
-
title: 'Math Olympiad',
|
|
60
|
-
route: '/math-olympiad/',
|
|
61
|
-
},
|
|
62
|
-
'questions': {
|
|
63
|
-
title: 'Math Questions',
|
|
64
|
-
route: '/questions/',
|
|
65
|
-
},
|
|
66
|
-
'worksheets': {
|
|
67
|
-
title: 'Math Worksheets',
|
|
68
|
-
route: '/worksheets/',
|
|
69
|
-
},
|
|
70
|
-
'worksheet': {
|
|
71
|
-
title: 'Math Worksheet',
|
|
72
|
-
route: 'worksheet',
|
|
73
|
-
},
|
|
74
|
-
'math-puzzles': {
|
|
75
|
-
title: 'Math Puzzles',
|
|
76
|
-
route: '/math-puzzles/',
|
|
77
|
-
},
|
|
78
|
-
'math-games': {
|
|
79
|
-
title: 'Math Games',
|
|
80
|
-
route: '/math-games/',
|
|
81
|
-
},
|
|
82
|
-
'formula': {
|
|
83
|
-
title: 'Math formula',
|
|
84
|
-
route: '-formula',
|
|
85
|
-
},
|
|
86
|
-
'multiplication': {
|
|
87
|
-
title: 'Multiplication',
|
|
88
|
-
route: '/multiplication/',
|
|
89
|
-
},
|
|
90
|
-
'teach': {
|
|
91
|
-
title: 'Teach',
|
|
92
|
-
route: '/teach/',
|
|
93
|
-
},
|
|
94
|
-
'ncert': {
|
|
95
|
-
title: 'NCERT',
|
|
96
|
-
route: '/ncert',
|
|
97
|
-
},
|
|
98
|
-
'ncert2': {
|
|
99
|
-
title: 'NCERT',
|
|
100
|
-
route: '/NCERT',
|
|
101
|
-
},
|
|
102
|
-
'stories-for-kids': {
|
|
103
|
-
title: 'Stories for Kids',
|
|
104
|
-
route: '/stories-for-kids',
|
|
105
|
-
},
|
|
106
|
-
'pdf': {
|
|
107
|
-
title: 'Pdf',
|
|
108
|
-
route: 'pdf',
|
|
109
|
-
},
|
|
110
|
-
'download': {
|
|
111
|
-
title: 'Download',
|
|
112
|
-
route: 'download',
|
|
113
|
-
},
|
|
114
|
-
'cuemath-olympiad': {
|
|
115
|
-
title: 'Cuemath Olympiad',
|
|
116
|
-
route: 'cuemath-olympiad',
|
|
117
|
-
},
|
|
118
|
-
'Maths': {
|
|
119
|
-
title: 'Maths',
|
|
120
|
-
route: '/maths/',
|
|
121
|
-
},
|
|
122
|
-
'Grades': {
|
|
123
|
-
title: 'Grades',
|
|
124
|
-
route: '/grades/',
|
|
125
|
-
},
|
|
126
|
-
'Concept': {
|
|
127
|
-
title: 'Concept',
|
|
128
|
-
route: 'concept',
|
|
129
|
-
},
|
|
130
|
-
'Properties': {
|
|
131
|
-
title: 'Properties',
|
|
132
|
-
route: 'properties',
|
|
133
|
-
},
|
|
134
|
-
'Complex-numbers': {
|
|
135
|
-
title: 'Complex numbers',
|
|
136
|
-
route: 'complex-numbers',
|
|
137
|
-
},
|
|
138
|
-
};
|
|
139
|
-
//# sourceMappingURL=instrumentation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.js","sourceRoot":"","sources":["../../../../src/website-category/constants/instrumentation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,WAAW;KACnB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,UAAU;KAClB;IACD,UAAU,EAAE;QACV,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,YAAY;KACpB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,QAAQ;KAChB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,eAAe;KACvB;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,mBAAmB;KAC3B;IACD,cAAc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,EAAE;QACP,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,QAAQ;KAChB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,QAAQ;KAChB;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,mBAAmB;KAC3B;IACD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,KAAK;KACb;IACD,UAAU,EAAE;QACV,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;KAClB;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,kBAAkB;KAC1B;IACD,OAAO,EAAE;QACP,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,SAAS;KACjB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,UAAU;KAClB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;KACjB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,YAAY;KACpB;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,iBAAiB;KACzB;CACF,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { removeHrefLangFromPath, removeQueryStringFromPath } from '../../url-parser';
|
|
2
|
-
import { BRAND_PAGES, INTENT_PAGES, REFERRAL_PAGES, SUPPLY_PAGES } from '../constants';
|
|
3
|
-
import { seoPageNames } from '../constants/instrumentation';
|
|
4
|
-
export const getTopicName = (path) => {
|
|
5
|
-
const pagePath = removeQueryStringFromPath(path);
|
|
6
|
-
const topic = (pagePath === null || pagePath === void 0 ? void 0 : pagePath.split('/').filter((name) => name)[1]) || '';
|
|
7
|
-
return topic === '#' ? '' : topic;
|
|
8
|
-
};
|
|
9
|
-
const isSEO = (path) => {
|
|
10
|
-
const pageNames = Object.values(seoPageNames);
|
|
11
|
-
let currentPageName = '';
|
|
12
|
-
const topic = getTopicName(path);
|
|
13
|
-
const isSEOPage = !!pageNames.filter(({ title, route }) => {
|
|
14
|
-
const hasRoute = path.includes(route);
|
|
15
|
-
if (hasRoute) {
|
|
16
|
-
currentPageName = title;
|
|
17
|
-
}
|
|
18
|
-
return hasRoute;
|
|
19
|
-
})[0];
|
|
20
|
-
return {
|
|
21
|
-
isSEOPage,
|
|
22
|
-
currentPageName,
|
|
23
|
-
topic,
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
const isRegex = (value) => {
|
|
27
|
-
return value instanceof RegExp;
|
|
28
|
-
};
|
|
29
|
-
export function getSubRevenueChannel(pathname = '') {
|
|
30
|
-
const pagePathWithoutAdditionParams = removeHrefLangFromPath(removeQueryStringFromPath(pathname));
|
|
31
|
-
// brand pages
|
|
32
|
-
if (BRAND_PAGES.includes(pagePathWithoutAdditionParams)) {
|
|
33
|
-
return 'Brand';
|
|
34
|
-
}
|
|
35
|
-
// intent pages
|
|
36
|
-
if (INTENT_PAGES.some(pagePath => isRegex(pagePath)
|
|
37
|
-
? pagePath.test(pagePathWithoutAdditionParams)
|
|
38
|
-
: pagePathWithoutAdditionParams.includes(pagePath))) {
|
|
39
|
-
return 'Intent';
|
|
40
|
-
}
|
|
41
|
-
// supply pages
|
|
42
|
-
if (SUPPLY_PAGES.some(pagePath => pagePathWithoutAdditionParams.includes(pagePath))) {
|
|
43
|
-
return 'Supply';
|
|
44
|
-
}
|
|
45
|
-
// referral pages
|
|
46
|
-
if (REFERRAL_PAGES.some(pagePath => pagePathWithoutAdditionParams.includes(pagePath))) {
|
|
47
|
-
return 'Referral';
|
|
48
|
-
}
|
|
49
|
-
// content pages
|
|
50
|
-
const { isSEOPage = false } = isSEO(pagePathWithoutAdditionParams);
|
|
51
|
-
if (isSEOPage) {
|
|
52
|
-
return 'Content';
|
|
53
|
-
}
|
|
54
|
-
return 'Others';
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=instrumentation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.js","sourceRoot":"","sources":["../../../../src/website-category/utils/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;IAC3C,MAAM,QAAQ,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,KAAI,EAAE,CAAC;IAExE,OAAO,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE;IAC7B,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAC9C,IAAI,eAAe,GAAG,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,MAAM,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;QACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAEtC,IAAI,QAAQ,EAAE;YACZ,eAAe,GAAG,KAAK,CAAC;SACzB;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,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