PluginProbe
Extendify / 3.0.5
Extendify v3.0.5
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Agent / tours / plugin-management.js

plugin-management.js in Extendify 3.0.5, at src/Agent/tours/plugin-management.js

132 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __, isRTL } from '@wordpress/i18n';
2
3 export default {
4 id: 'plugin-management-tour',
5 title: __('Plugin management', 'extendify-local'),
6 message: __('Learn how to manage plugins', 'extendify-local'),
7 settings: {
8 allowOverflow: false,
9 startFrom: [`${window.extSharedData.adminUrl}plugins.php`],
10 },
11 onStart: () => {
12 if (document.body.classList.contains('folded')) {
13 document.querySelector('#menu-plugins').classList.add('opensub');
14 }
15 },
16 steps: [
17 {
18 title: __('Installed Plugins menu', 'extendify-local'),
19 text: __(
20 'Click this menu to see and manage the plugins you have installed.',
21 'extendify-local',
22 ),
23 attachTo: {
24 element: '#menu-plugins ul > li:nth-child(2)',
25 offset: {
26 marginTop: 0,
27 marginLeft: isRTL() ? -15 : 15,
28 },
29 position: {
30 x: isRTL() ? 'left' : 'right',
31 y: 'top',
32 },
33 hook: isRTL() ? 'top right' : 'top left',
34 },
35 events: {
36 onDetach: () => {
37 if (document.body.classList.contains('folded')) {
38 document.querySelector('#menu-plugins').classList.remove('opensub');
39 }
40 },
41 },
42 },
43 {
44 title: __('Installed plugins', 'extendify-local'),
45 text: __(
46 'See all plugins installed on your site. This includes plugins that are active and deactivated.',
47 'extendify-local',
48 ),
49 attachTo: {
50 element: 'tbody#the-list > tr:nth-child(1)',
51 offset: {
52 marginTop: 15,
53 marginLeft: 0,
54 },
55 position: {
56 x: isRTL() ? 'left' : 'right',
57 y: 'bottom',
58 },
59 hook: isRTL() ? 'top left' : 'top right',
60 },
61 events: {},
62 },
63 {
64 title: __('Deactivate/activate option', 'extendify-local'),
65 text: __(
66 'Under each plugin you can activate or deactivate it.',
67 'extendify-local',
68 ),
69 attachTo: {
70 element: 'tbody#the-list > tr:nth-child(1) > td.plugin-title',
71 offset: {
72 marginTop: 0,
73 marginLeft: isRTL() ? -15 : 15,
74 },
75 position: {
76 x: isRTL() ? 'left' : 'right',
77 y: 'top',
78 },
79 hook: isRTL() ? 'top right' : 'top left',
80 },
81 events: {},
82 },
83 // {
84 // title: __('Enable auto-updates', 'extendify-local'),
85 // text: __(
86 // "If you'd like, you can set any plugin to auto-update when a new version is available.",
87 // 'extendify-local',
88 // ),
89 // attachTo: {
90 // element:
91 // 'tbody#the-list > tr:nth-child(1) > td.column-auto-updates',
92 // offset: {
93 // marginTop: 0,
94 // marginLeft: -15,
95 // },
96 // position: {
97 // x: 'left',
98 // y: 'top',
99 // },
100 // hook: 'top right',
101 // },
102 // events: {},
103 // },
104 {
105 title: __('Add another', 'extendify-local'),
106 text: __(
107 'Click here to add another plugin to your site.',
108 'extendify-local',
109 ),
110 attachTo: {
111 element: 'a.page-title-action',
112 offset: {
113 marginTop: -5,
114 marginLeft: isRTL() ? -15 : 15,
115 },
116 boxPadding: {
117 top: 5,
118 bottom: 5,
119 left: 5,
120 right: 5,
121 },
122 position: {
123 x: isRTL() ? 'left' : 'right',
124 y: 'top',
125 },
126 hook: isRTL() ? 'top right' : 'top left',
127 },
128 events: {},
129 },
130 ],
131 };
132