File size: 2,960 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
const exampleSite = {
URL: 'https://wpvip.com',
is_coming_soon: false,
is_private: false,
visible: true,
launch_status: 'launched',
name: 'The long title of the sample site',
jetpack: false,
site_owner: 12,
lang: 'en',
options: {
admin_url: 'https://wpvip.com/wp-admin/',
is_redirect: false,
is_wpforteams_site: false,
launchpad_screen: false,
site_intent: '',
unmapped_url: 'https://wpvip.com',
updated_at: new Date(),
},
p2_thumbnail_elements: null,
plan: {
product_id: 1,
product_slug: 'free_plan',
product_name_short: 'Free',
expired: false,
user_is_owner: false,
is_free: true,
},
is_wpcom_atomic: false,
title: 'The long title of the sample site',
slug: 'wpvip.wordpress.com',
};
const siteSimpleFree = {
...exampleSite,
ID: 1,
title: 'Free Simple Site',
};
const siteSimpleBusinessComingSoon = {
...exampleSite,
ID: 2,
options: {
...exampleSite.options,
updated_at: new Date( +new Date() - 60 * 60 * 24 * 1000 ),
},
plan: {
...exampleSite.plan,
product_id: 1008,
product_slug: 'business-bundle',
product_name_short: 'Creator',
user_is_owner: true,
is_free: false,
},
is_coming_soon: true,
launch_status: 'unlaunched',
title: 'Creator Simple Site with Coming Soon status',
};
const siteSimpleBusinessExpired = {
...exampleSite,
ID: 3,
options: {
...exampleSite.options,
updated_at: new Date( +new Date() - 60 * 60 * 24 * 1000 ),
},
plan: {
...exampleSite.plan,
product_id: 1008,
product_slug: 'business-bundle',
product_name_short: 'Creator',
user_is_owner: true,
is_free: false,
expired: true,
},
title: 'Expired Creator Simple Site',
};
const siteJetpackComplete = {
...exampleSite,
ID: 4,
jetpack: true,
options: {
...exampleSite.options,
updated_at: new Date( +new Date() - 60 * 60 * 24 * 2 * 1000 ),
},
plan: {
...exampleSite.plan,
product_id: 2014,
product_slug: 'jetpack_complete',
product_name_short: 'Complete',
user_is_owner: true,
is_free: false,
},
title: 'Jetpack Complete Site',
};
const siteSimplePrivateP2 = {
...exampleSite,
ID: 5,
is_private: true,
visible: false,
options: {
...exampleSite.options,
is_wpforteams_site: true,
updated_at: new Date( +new Date() - 60 * 60 * 24 * 30 * 1000 ),
},
plan: {
...exampleSite.plan,
product_id: 1040,
product_slug: '"wp_p2_plus_monthly"',
product_name_short: 'P2+',
is_free: false,
},
icon: {
ico: 'https://wpjobmanager.com/wp-content/uploads/2022/10/wp-job-manager-logo.webp?w=16',
img: 'https://wpjobmanager.com/wp-content/uploads/2022/10/wp-job-manager-logo.webp',
},
p2_thumbnail_elements: {
color_link: '#0267ff',
color_sidebar_background: '#d0ccb8',
header_image: 'https://wpjobmanager.com/wp-content/uploads/2022/11/hero-resized.png?resize=680',
},
title: 'Simple Private P2 Site',
};
export default [
siteSimpleFree,
siteSimpleBusinessComingSoon,
siteSimpleBusinessExpired,
siteJetpackComplete,
siteSimplePrivateP2,
];
|