• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / fa1b5dcdc558f2a664f4ef222ea9dcd6c638f0e0

19 Jun 2024 09:43AM UTC coverage: 52.936% (+4.5%) from 48.41%
fa1b5dcdc558f2a664f4ef222ea9dcd6c638f0e0

push

github

FAMarfuaty
Merge branch 'trunk' of github.com:Yoast/wordpress-seo into feature/fix-assessments

7441 of 13454 branches covered (55.31%)

Branch coverage included in aggregate %.

73 of 81 new or added lines in 18 files covered. (90.12%)

4 existing lines in 3 files now uncovered.

28443 of 54334 relevant lines covered (52.35%)

61394.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/js/src/integrations-page/other-integrations.js
1
import { createInterpolateElement } from "@wordpress/element";
2
import { __, sprintf } from "@wordpress/i18n";
3

4
import { getInitialState, getIsNetworkControlEnabled, updateIntegrationState, getIsMultisiteAvailable } from "./helper";
5
import { ReactComponent as MastodonLogo } from "../../images/mastodon-logo.svg";
6
import { ToggleableIntegration } from "./toggleable-integration";
7
import { MastodonIntegration } from "./mastodon-integration";
8

NEW
9
const integrations = [];
×
10

11
const mastodonIntegration =        {
×
12
        name: "Mastodon",
13
        claim: createInterpolateElement(
14
                sprintf(
15
                        /* translators: 1: bold open tag; 2: Mastodon; 3: bold close tag. */
16
                        __( "Verify your site on %1$s%2$s%3$s", "wordpress-seo" ),
17
                        "<strong>",
18
                        "Mastodon",
19
                        "</strong>"
20
                ), {
21
                        strong: <strong />,
22
                }
23
        ),
24
        learnMoreLink: "https://yoa.st/integrations-about-mastodon",
25
        logoLink: "https://yoa.st/integrations-logo-mastodon",
26
        slug: "mastodon",
27
        description: sprintf(
28
                /* translators: 1: Mastodon, 2: Yoast SEO Premium */
29
                __( "Add trustworthiness to your %1$s profile by verifying your site with %2$s.", "wordpress-seo" ),
30
                "Mastodon",
31
                "Yoast SEO Premium"
32
        ),
33
        isPremium: true,
34
        isNew: true,
35
        isMultisiteAvailable: true,
36
        logo: MastodonLogo,
37
        upsellLink: "https://yoa.st/get-mastodon-integration",
38
};
39

40

41
export const OtherIntegrations = [
×
42
        integrations.map( ( integration, index ) => {
43
                return (
×
44
                        <ToggleableIntegration
45
                                key={ index }
46
                                integration={ integration }
47
                                toggleLabel={ __( "Enable integration", "wordpress-seo" ) }
48
                                initialActivationState={ getInitialState( integration ) }
49
                                isNetworkControlEnabled={ getIsNetworkControlEnabled( integration ) }
50
                                isMultisiteAvailable={ getIsMultisiteAvailable( integration ) }
51
                                beforeToggle={ updateIntegrationState }
52
                        />
53
                );
54
        } ),
55
        /* eslint-disable dot-notation */
56
        <MastodonIntegration
57
                key={ 3 }
58
                integration={ mastodonIntegration }
59
                isActive={ Boolean( window.wpseoIntegrationsData[ "mastodon_active" ] ) }
60
        />,
61
        /* eslint-enable dot-notation */
62
];
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc