yoastseo
Version:
Yoast client-side content analysis
54 lines (53 loc) • 3.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _contentAssessor = _interopRequireDefault(require("../contentAssessor.js"));
var _SubheadingDistributionTooLongAssessment = _interopRequireDefault(require("../../assessments/readability/SubheadingDistributionTooLongAssessment.js"));
var _ParagraphTooLongAssessment = _interopRequireDefault(require("../../assessments/readability/ParagraphTooLongAssessment.js"));
var _SentenceLengthInTextAssessment = _interopRequireDefault(require("../../assessments/readability/SentenceLengthInTextAssessment.js"));
var _TransitionWordsAssessment = _interopRequireDefault(require("../../assessments/readability/TransitionWordsAssessment.js"));
var _PassiveVoiceAssessment = _interopRequireDefault(require("../../assessments/readability/PassiveVoiceAssessment.js"));
var _TextPresenceAssessment = _interopRequireDefault(require("../../assessments/readability/TextPresenceAssessment.js"));
var _SentenceBeginningsAssessment = _interopRequireDefault(require("../../assessments/readability/SentenceBeginningsAssessment.js"));
var _helpers = require("../../../helpers");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/**
* The StorePostsAndPagesContentAssessor class is used for the readability analysis for store posts and pages.
*/
class StorePostsAndPagesContentAssessor extends _contentAssessor.default {
/**
* Creates a new StorePostsAndPagesContentAssessor instance.
* @param {Researcher} researcher The researcher to use.
* @param {Object} [options] The assessor options.
*/
constructor(researcher, options) {
super(researcher, options);
this.type = "storePostsAndPagesContentAssessor";
this._assessments = [new _SubheadingDistributionTooLongAssessment.default({
urlTitle: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify68"),
urlCallToAction: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify69")
}), new _ParagraphTooLongAssessment.default({
urlTitle: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify66"),
urlCallToAction: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify67")
}), new _SentenceLengthInTextAssessment.default({
urlTitle: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify48"),
urlCallToAction: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify49")
}), new _TransitionWordsAssessment.default({
urlTitle: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify44"),
urlCallToAction: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify45")
}), new _PassiveVoiceAssessment.default({
urlTitle: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify42"),
urlCallToAction: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify43")
}), new _TextPresenceAssessment.default({
urlTitle: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify56"),
urlCallToAction: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify57")
}), new _SentenceBeginningsAssessment.default({
urlTitle: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify5"),
urlCallToAction: (0, _helpers.createAnchorOpeningTag)("https://yoa.st/shopify65")
})];
}
}
exports.default = StorePostsAndPagesContentAssessor;
//# sourceMappingURL=contentAssessor.js.map