PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
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 0.7.0 All 126 releases
extendify / src / HelpCenter / tours / plugin-management.js

plugin-management.js in Extendify 3.1.5, at src/HelpCenter/tours/plugin-management.js

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