@consilioweb/payload-seo-analyzer 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1201 -0
- package/dist/client.cjs +19286 -0
- package/dist/client.d.cts +133 -0
- package/dist/client.d.ts +133 -0
- package/dist/client.js +19261 -0
- package/dist/index.cjs +11836 -0
- package/dist/index.d.cts +1416 -0
- package/dist/index.d.ts +1416 -0
- package/dist/index.js +11752 -0
- package/dist/views.cjs +216 -0
- package/dist/views.d.cts +67 -0
- package/dist/views.d.ts +67 -0
- package/dist/views.js +206 -0
- package/package.json +122 -0
- package/scripts/uninstall.mjs +282 -0
package/dist/views.cjs
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var templates = require('@payloadcms/next/templates');
|
|
4
|
+
var navigation = require('next/navigation');
|
|
5
|
+
var client = require('@consilioweb/payload-seo-analyzer/client');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
// src/views/SeoView.tsx
|
|
9
|
+
var SeoView2 = (props) => {
|
|
10
|
+
const { initPageResult } = props;
|
|
11
|
+
if (!initPageResult?.req?.user) {
|
|
12
|
+
navigation.redirect("/admin/login");
|
|
13
|
+
}
|
|
14
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
+
templates.DefaultTemplate,
|
|
17
|
+
{
|
|
18
|
+
i18n: req.i18n,
|
|
19
|
+
locale,
|
|
20
|
+
params: {},
|
|
21
|
+
payload: req.payload,
|
|
22
|
+
permissions,
|
|
23
|
+
req,
|
|
24
|
+
searchParams: {},
|
|
25
|
+
user: req.user,
|
|
26
|
+
visibleEntities,
|
|
27
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.SeoView, {})
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
var SeoConfigView2 = (props) => {
|
|
32
|
+
const { initPageResult } = props;
|
|
33
|
+
if (!initPageResult?.req?.user) {
|
|
34
|
+
navigation.redirect("/admin/login");
|
|
35
|
+
}
|
|
36
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
|
+
templates.DefaultTemplate,
|
|
39
|
+
{
|
|
40
|
+
i18n: req.i18n,
|
|
41
|
+
locale,
|
|
42
|
+
params: {},
|
|
43
|
+
payload: req.payload,
|
|
44
|
+
permissions,
|
|
45
|
+
req,
|
|
46
|
+
searchParams: {},
|
|
47
|
+
user: req.user,
|
|
48
|
+
visibleEntities,
|
|
49
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.SeoConfigView, {})
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
var SitemapAuditView2 = (props) => {
|
|
54
|
+
const { initPageResult } = props;
|
|
55
|
+
if (!initPageResult?.req?.user) {
|
|
56
|
+
navigation.redirect("/admin/login");
|
|
57
|
+
}
|
|
58
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
59
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
60
|
+
templates.DefaultTemplate,
|
|
61
|
+
{
|
|
62
|
+
i18n: req.i18n,
|
|
63
|
+
locale,
|
|
64
|
+
params: {},
|
|
65
|
+
payload: req.payload,
|
|
66
|
+
permissions,
|
|
67
|
+
req,
|
|
68
|
+
searchParams: {},
|
|
69
|
+
user: req.user,
|
|
70
|
+
visibleEntities,
|
|
71
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.SitemapAuditView, {})
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
var RedirectManagerView2 = (props) => {
|
|
76
|
+
const { initPageResult } = props;
|
|
77
|
+
if (!initPageResult?.req?.user) {
|
|
78
|
+
navigation.redirect("/admin/login");
|
|
79
|
+
}
|
|
80
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
81
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
82
|
+
templates.DefaultTemplate,
|
|
83
|
+
{
|
|
84
|
+
i18n: req.i18n,
|
|
85
|
+
locale,
|
|
86
|
+
params: {},
|
|
87
|
+
payload: req.payload,
|
|
88
|
+
permissions,
|
|
89
|
+
req,
|
|
90
|
+
searchParams: {},
|
|
91
|
+
user: req.user,
|
|
92
|
+
visibleEntities,
|
|
93
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.RedirectManagerView, {})
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
var CannibalizationView2 = (props) => {
|
|
98
|
+
const { initPageResult } = props;
|
|
99
|
+
if (!initPageResult?.req?.user) {
|
|
100
|
+
navigation.redirect("/admin/login");
|
|
101
|
+
}
|
|
102
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
103
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
104
|
+
templates.DefaultTemplate,
|
|
105
|
+
{
|
|
106
|
+
i18n: req.i18n,
|
|
107
|
+
locale,
|
|
108
|
+
params: {},
|
|
109
|
+
payload: req.payload,
|
|
110
|
+
permissions,
|
|
111
|
+
req,
|
|
112
|
+
searchParams: {},
|
|
113
|
+
user: req.user,
|
|
114
|
+
visibleEntities,
|
|
115
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.CannibalizationView, {})
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
};
|
|
119
|
+
var PerformanceView2 = (props) => {
|
|
120
|
+
const { initPageResult } = props;
|
|
121
|
+
if (!initPageResult?.req?.user) {
|
|
122
|
+
navigation.redirect("/admin/login");
|
|
123
|
+
}
|
|
124
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
125
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
126
|
+
templates.DefaultTemplate,
|
|
127
|
+
{
|
|
128
|
+
i18n: req.i18n,
|
|
129
|
+
locale,
|
|
130
|
+
params: {},
|
|
131
|
+
payload: req.payload,
|
|
132
|
+
permissions,
|
|
133
|
+
req,
|
|
134
|
+
searchParams: {},
|
|
135
|
+
user: req.user,
|
|
136
|
+
visibleEntities,
|
|
137
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.PerformanceView, {})
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
};
|
|
141
|
+
var KeywordResearchView2 = (props) => {
|
|
142
|
+
const { initPageResult } = props;
|
|
143
|
+
if (!initPageResult?.req?.user) {
|
|
144
|
+
navigation.redirect("/admin/login");
|
|
145
|
+
}
|
|
146
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
147
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
148
|
+
templates.DefaultTemplate,
|
|
149
|
+
{
|
|
150
|
+
i18n: req.i18n,
|
|
151
|
+
locale,
|
|
152
|
+
params: {},
|
|
153
|
+
payload: req.payload,
|
|
154
|
+
permissions,
|
|
155
|
+
req,
|
|
156
|
+
searchParams: {},
|
|
157
|
+
user: req.user,
|
|
158
|
+
visibleEntities,
|
|
159
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.KeywordResearchView, {})
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
};
|
|
163
|
+
var SchemaBuilderView2 = (props) => {
|
|
164
|
+
const { initPageResult } = props;
|
|
165
|
+
if (!initPageResult?.req?.user) {
|
|
166
|
+
navigation.redirect("/admin/login");
|
|
167
|
+
}
|
|
168
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
169
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
170
|
+
templates.DefaultTemplate,
|
|
171
|
+
{
|
|
172
|
+
i18n: req.i18n,
|
|
173
|
+
locale,
|
|
174
|
+
params: {},
|
|
175
|
+
payload: req.payload,
|
|
176
|
+
permissions,
|
|
177
|
+
req,
|
|
178
|
+
searchParams: {},
|
|
179
|
+
user: req.user,
|
|
180
|
+
visibleEntities,
|
|
181
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.SchemaBuilderView, {})
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
};
|
|
185
|
+
var LinkGraphView2 = (props) => {
|
|
186
|
+
const { initPageResult } = props;
|
|
187
|
+
if (!initPageResult?.req?.user) {
|
|
188
|
+
navigation.redirect("/admin/login");
|
|
189
|
+
}
|
|
190
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
191
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
192
|
+
templates.DefaultTemplate,
|
|
193
|
+
{
|
|
194
|
+
i18n: req.i18n,
|
|
195
|
+
locale,
|
|
196
|
+
params: {},
|
|
197
|
+
payload: req.payload,
|
|
198
|
+
permissions,
|
|
199
|
+
req,
|
|
200
|
+
searchParams: {},
|
|
201
|
+
user: req.user,
|
|
202
|
+
visibleEntities,
|
|
203
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(client.LinkGraphView, {})
|
|
204
|
+
}
|
|
205
|
+
);
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
exports.CannibalizationView = CannibalizationView2;
|
|
209
|
+
exports.KeywordResearchView = KeywordResearchView2;
|
|
210
|
+
exports.LinkGraphView = LinkGraphView2;
|
|
211
|
+
exports.PerformanceView = PerformanceView2;
|
|
212
|
+
exports.RedirectManagerView = RedirectManagerView2;
|
|
213
|
+
exports.SchemaBuilderView = SchemaBuilderView2;
|
|
214
|
+
exports.SeoConfigView = SeoConfigView2;
|
|
215
|
+
exports.SeoView = SeoView2;
|
|
216
|
+
exports.SitemapAuditView = SitemapAuditView2;
|
package/dist/views.d.cts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AdminViewServerProps } from 'payload';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* SeoView — Server component wrapper.
|
|
6
|
+
* Wraps the client SeoView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
declare const SeoView: React.FC<AdminViewServerProps>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* SeoConfigView — Server component wrapper.
|
|
13
|
+
* Wraps the client SeoConfigView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
declare const SeoConfigView: React.FC<AdminViewServerProps>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* SitemapAuditView — Server component wrapper.
|
|
20
|
+
* Wraps the client SitemapAuditView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
declare const SitemapAuditView: React.FC<AdminViewServerProps>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* RedirectManagerView — Server component wrapper.
|
|
27
|
+
* Wraps the client RedirectManagerView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
declare const RedirectManagerView: React.FC<AdminViewServerProps>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* CannibalizationView — Server component wrapper.
|
|
34
|
+
* Wraps the client CannibalizationView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
declare const CannibalizationView: React.FC<AdminViewServerProps>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* PerformanceView — Server component wrapper.
|
|
41
|
+
* Wraps the client PerformanceView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
declare const PerformanceView: React.FC<AdminViewServerProps>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* KeywordResearchView — Server component wrapper.
|
|
48
|
+
* Wraps the client KeywordResearchView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
declare const KeywordResearchView: React.FC<AdminViewServerProps>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* SchemaBuilderView — Server component wrapper.
|
|
55
|
+
* Wraps the client SchemaBuilderView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
declare const SchemaBuilderView: React.FC<AdminViewServerProps>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* LinkGraphView — Server component wrapper.
|
|
62
|
+
* Wraps the client LinkGraphView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
declare const LinkGraphView: React.FC<AdminViewServerProps>;
|
|
66
|
+
|
|
67
|
+
export { CannibalizationView, KeywordResearchView, LinkGraphView, PerformanceView, RedirectManagerView, SchemaBuilderView, SeoConfigView, SeoView, SitemapAuditView };
|
package/dist/views.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AdminViewServerProps } from 'payload';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* SeoView — Server component wrapper.
|
|
6
|
+
* Wraps the client SeoView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
declare const SeoView: React.FC<AdminViewServerProps>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* SeoConfigView — Server component wrapper.
|
|
13
|
+
* Wraps the client SeoConfigView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
declare const SeoConfigView: React.FC<AdminViewServerProps>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* SitemapAuditView — Server component wrapper.
|
|
20
|
+
* Wraps the client SitemapAuditView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
declare const SitemapAuditView: React.FC<AdminViewServerProps>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* RedirectManagerView — Server component wrapper.
|
|
27
|
+
* Wraps the client RedirectManagerView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
declare const RedirectManagerView: React.FC<AdminViewServerProps>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* CannibalizationView — Server component wrapper.
|
|
34
|
+
* Wraps the client CannibalizationView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
declare const CannibalizationView: React.FC<AdminViewServerProps>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* PerformanceView — Server component wrapper.
|
|
41
|
+
* Wraps the client PerformanceView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
declare const PerformanceView: React.FC<AdminViewServerProps>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* KeywordResearchView — Server component wrapper.
|
|
48
|
+
* Wraps the client KeywordResearchView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
declare const KeywordResearchView: React.FC<AdminViewServerProps>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* SchemaBuilderView — Server component wrapper.
|
|
55
|
+
* Wraps the client SchemaBuilderView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
declare const SchemaBuilderView: React.FC<AdminViewServerProps>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* LinkGraphView — Server component wrapper.
|
|
62
|
+
* Wraps the client LinkGraphView in Payload's DefaultTemplate to get the admin sidebar + header.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
declare const LinkGraphView: React.FC<AdminViewServerProps>;
|
|
66
|
+
|
|
67
|
+
export { CannibalizationView, KeywordResearchView, LinkGraphView, PerformanceView, RedirectManagerView, SchemaBuilderView, SeoConfigView, SeoView, SitemapAuditView };
|
package/dist/views.js
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { DefaultTemplate } from '@payloadcms/next/templates';
|
|
2
|
+
import { redirect } from 'next/navigation';
|
|
3
|
+
import { SeoView, SeoConfigView, SitemapAuditView, RedirectManagerView, CannibalizationView, PerformanceView, KeywordResearchView, SchemaBuilderView, LinkGraphView } from '@consilioweb/payload-seo-analyzer/client';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/views/SeoView.tsx
|
|
7
|
+
var SeoView2 = (props) => {
|
|
8
|
+
const { initPageResult } = props;
|
|
9
|
+
if (!initPageResult?.req?.user) {
|
|
10
|
+
redirect("/admin/login");
|
|
11
|
+
}
|
|
12
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
DefaultTemplate,
|
|
15
|
+
{
|
|
16
|
+
i18n: req.i18n,
|
|
17
|
+
locale,
|
|
18
|
+
params: {},
|
|
19
|
+
payload: req.payload,
|
|
20
|
+
permissions,
|
|
21
|
+
req,
|
|
22
|
+
searchParams: {},
|
|
23
|
+
user: req.user,
|
|
24
|
+
visibleEntities,
|
|
25
|
+
children: /* @__PURE__ */ jsx(SeoView, {})
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
var SeoConfigView2 = (props) => {
|
|
30
|
+
const { initPageResult } = props;
|
|
31
|
+
if (!initPageResult?.req?.user) {
|
|
32
|
+
redirect("/admin/login");
|
|
33
|
+
}
|
|
34
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
35
|
+
return /* @__PURE__ */ jsx(
|
|
36
|
+
DefaultTemplate,
|
|
37
|
+
{
|
|
38
|
+
i18n: req.i18n,
|
|
39
|
+
locale,
|
|
40
|
+
params: {},
|
|
41
|
+
payload: req.payload,
|
|
42
|
+
permissions,
|
|
43
|
+
req,
|
|
44
|
+
searchParams: {},
|
|
45
|
+
user: req.user,
|
|
46
|
+
visibleEntities,
|
|
47
|
+
children: /* @__PURE__ */ jsx(SeoConfigView, {})
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
var SitemapAuditView2 = (props) => {
|
|
52
|
+
const { initPageResult } = props;
|
|
53
|
+
if (!initPageResult?.req?.user) {
|
|
54
|
+
redirect("/admin/login");
|
|
55
|
+
}
|
|
56
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
DefaultTemplate,
|
|
59
|
+
{
|
|
60
|
+
i18n: req.i18n,
|
|
61
|
+
locale,
|
|
62
|
+
params: {},
|
|
63
|
+
payload: req.payload,
|
|
64
|
+
permissions,
|
|
65
|
+
req,
|
|
66
|
+
searchParams: {},
|
|
67
|
+
user: req.user,
|
|
68
|
+
visibleEntities,
|
|
69
|
+
children: /* @__PURE__ */ jsx(SitemapAuditView, {})
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
var RedirectManagerView2 = (props) => {
|
|
74
|
+
const { initPageResult } = props;
|
|
75
|
+
if (!initPageResult?.req?.user) {
|
|
76
|
+
redirect("/admin/login");
|
|
77
|
+
}
|
|
78
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
79
|
+
return /* @__PURE__ */ jsx(
|
|
80
|
+
DefaultTemplate,
|
|
81
|
+
{
|
|
82
|
+
i18n: req.i18n,
|
|
83
|
+
locale,
|
|
84
|
+
params: {},
|
|
85
|
+
payload: req.payload,
|
|
86
|
+
permissions,
|
|
87
|
+
req,
|
|
88
|
+
searchParams: {},
|
|
89
|
+
user: req.user,
|
|
90
|
+
visibleEntities,
|
|
91
|
+
children: /* @__PURE__ */ jsx(RedirectManagerView, {})
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
var CannibalizationView2 = (props) => {
|
|
96
|
+
const { initPageResult } = props;
|
|
97
|
+
if (!initPageResult?.req?.user) {
|
|
98
|
+
redirect("/admin/login");
|
|
99
|
+
}
|
|
100
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
101
|
+
return /* @__PURE__ */ jsx(
|
|
102
|
+
DefaultTemplate,
|
|
103
|
+
{
|
|
104
|
+
i18n: req.i18n,
|
|
105
|
+
locale,
|
|
106
|
+
params: {},
|
|
107
|
+
payload: req.payload,
|
|
108
|
+
permissions,
|
|
109
|
+
req,
|
|
110
|
+
searchParams: {},
|
|
111
|
+
user: req.user,
|
|
112
|
+
visibleEntities,
|
|
113
|
+
children: /* @__PURE__ */ jsx(CannibalizationView, {})
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
};
|
|
117
|
+
var PerformanceView2 = (props) => {
|
|
118
|
+
const { initPageResult } = props;
|
|
119
|
+
if (!initPageResult?.req?.user) {
|
|
120
|
+
redirect("/admin/login");
|
|
121
|
+
}
|
|
122
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
123
|
+
return /* @__PURE__ */ jsx(
|
|
124
|
+
DefaultTemplate,
|
|
125
|
+
{
|
|
126
|
+
i18n: req.i18n,
|
|
127
|
+
locale,
|
|
128
|
+
params: {},
|
|
129
|
+
payload: req.payload,
|
|
130
|
+
permissions,
|
|
131
|
+
req,
|
|
132
|
+
searchParams: {},
|
|
133
|
+
user: req.user,
|
|
134
|
+
visibleEntities,
|
|
135
|
+
children: /* @__PURE__ */ jsx(PerformanceView, {})
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
var KeywordResearchView2 = (props) => {
|
|
140
|
+
const { initPageResult } = props;
|
|
141
|
+
if (!initPageResult?.req?.user) {
|
|
142
|
+
redirect("/admin/login");
|
|
143
|
+
}
|
|
144
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
145
|
+
return /* @__PURE__ */ jsx(
|
|
146
|
+
DefaultTemplate,
|
|
147
|
+
{
|
|
148
|
+
i18n: req.i18n,
|
|
149
|
+
locale,
|
|
150
|
+
params: {},
|
|
151
|
+
payload: req.payload,
|
|
152
|
+
permissions,
|
|
153
|
+
req,
|
|
154
|
+
searchParams: {},
|
|
155
|
+
user: req.user,
|
|
156
|
+
visibleEntities,
|
|
157
|
+
children: /* @__PURE__ */ jsx(KeywordResearchView, {})
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
};
|
|
161
|
+
var SchemaBuilderView2 = (props) => {
|
|
162
|
+
const { initPageResult } = props;
|
|
163
|
+
if (!initPageResult?.req?.user) {
|
|
164
|
+
redirect("/admin/login");
|
|
165
|
+
}
|
|
166
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
167
|
+
return /* @__PURE__ */ jsx(
|
|
168
|
+
DefaultTemplate,
|
|
169
|
+
{
|
|
170
|
+
i18n: req.i18n,
|
|
171
|
+
locale,
|
|
172
|
+
params: {},
|
|
173
|
+
payload: req.payload,
|
|
174
|
+
permissions,
|
|
175
|
+
req,
|
|
176
|
+
searchParams: {},
|
|
177
|
+
user: req.user,
|
|
178
|
+
visibleEntities,
|
|
179
|
+
children: /* @__PURE__ */ jsx(SchemaBuilderView, {})
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
var LinkGraphView2 = (props) => {
|
|
184
|
+
const { initPageResult } = props;
|
|
185
|
+
if (!initPageResult?.req?.user) {
|
|
186
|
+
redirect("/admin/login");
|
|
187
|
+
}
|
|
188
|
+
const { req, visibleEntities, permissions, locale } = initPageResult;
|
|
189
|
+
return /* @__PURE__ */ jsx(
|
|
190
|
+
DefaultTemplate,
|
|
191
|
+
{
|
|
192
|
+
i18n: req.i18n,
|
|
193
|
+
locale,
|
|
194
|
+
params: {},
|
|
195
|
+
payload: req.payload,
|
|
196
|
+
permissions,
|
|
197
|
+
req,
|
|
198
|
+
searchParams: {},
|
|
199
|
+
user: req.user,
|
|
200
|
+
visibleEntities,
|
|
201
|
+
children: /* @__PURE__ */ jsx(LinkGraphView, {})
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export { CannibalizationView2 as CannibalizationView, KeywordResearchView2 as KeywordResearchView, LinkGraphView2 as LinkGraphView, PerformanceView2 as PerformanceView, RedirectManagerView2 as RedirectManagerView, SchemaBuilderView2 as SchemaBuilderView, SeoConfigView2 as SeoConfigView, SeoView2 as SeoView, SitemapAuditView2 as SitemapAuditView };
|
package/package.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@consilioweb/payload-seo-analyzer",
|
|
3
|
+
"version": "1.7.1",
|
|
4
|
+
"description": "Payload CMS SEO plugin — 50+ checks, dashboard, Lexical JSON support, Flesch FR/EN readability, i18n",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./client": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/client.d.ts",
|
|
23
|
+
"default": "./dist/client.js"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/client.d.cts",
|
|
27
|
+
"default": "./dist/client.cjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"./views": {
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/views.d.ts",
|
|
33
|
+
"default": "./dist/views.js"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./dist/views.d.cts",
|
|
37
|
+
"default": "./dist/views.cjs"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"bin": {
|
|
42
|
+
"seo-analyzer-uninstall": "./scripts/uninstall.mjs"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist",
|
|
46
|
+
"scripts",
|
|
47
|
+
"README.md",
|
|
48
|
+
"LICENSE"
|
|
49
|
+
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsup",
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"test:watch": "vitest",
|
|
54
|
+
"typecheck": "tsc --noEmit",
|
|
55
|
+
"prepublishOnly": "pnpm build"
|
|
56
|
+
},
|
|
57
|
+
"keywords": [
|
|
58
|
+
"seo",
|
|
59
|
+
"seo-analyzer",
|
|
60
|
+
"seo-plugin",
|
|
61
|
+
"seo-audit",
|
|
62
|
+
"on-page-seo",
|
|
63
|
+
"payload",
|
|
64
|
+
"payload-cms",
|
|
65
|
+
"payload-cms-plugin",
|
|
66
|
+
"payload-plugin",
|
|
67
|
+
"cms-seo",
|
|
68
|
+
"meta-tags",
|
|
69
|
+
"content-analysis",
|
|
70
|
+
"readability",
|
|
71
|
+
"readability-score",
|
|
72
|
+
"flesch",
|
|
73
|
+
"lexical",
|
|
74
|
+
"next.js",
|
|
75
|
+
"nextjs",
|
|
76
|
+
"i18n",
|
|
77
|
+
"french",
|
|
78
|
+
"english",
|
|
79
|
+
"structured-data",
|
|
80
|
+
"json-ld",
|
|
81
|
+
"sitemap",
|
|
82
|
+
"seo-dashboard",
|
|
83
|
+
"redirects",
|
|
84
|
+
"typescript"
|
|
85
|
+
],
|
|
86
|
+
"repository": {
|
|
87
|
+
"type": "git",
|
|
88
|
+
"url": "git+https://github.com/pOwn3d/payload-seo-analyzer.git"
|
|
89
|
+
},
|
|
90
|
+
"homepage": "https://github.com/pOwn3d/payload-seo-analyzer#readme",
|
|
91
|
+
"bugs": {
|
|
92
|
+
"url": "https://github.com/pOwn3d/payload-seo-analyzer/issues"
|
|
93
|
+
},
|
|
94
|
+
"author": "ConsilioWEB <contact@consilioweb.fr> (https://consilioweb.fr)",
|
|
95
|
+
"license": "MIT",
|
|
96
|
+
"peerDependencies": {
|
|
97
|
+
"@payloadcms/next": "^3.0.0",
|
|
98
|
+
"@payloadcms/ui": "^3.0.0",
|
|
99
|
+
"payload": "^3.0.0",
|
|
100
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
101
|
+
},
|
|
102
|
+
"peerDependenciesMeta": {
|
|
103
|
+
"@payloadcms/ui": {
|
|
104
|
+
"optional": true
|
|
105
|
+
},
|
|
106
|
+
"@payloadcms/next": {
|
|
107
|
+
"optional": true
|
|
108
|
+
},
|
|
109
|
+
"react": {
|
|
110
|
+
"optional": true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"engines": {
|
|
114
|
+
"node": ">=18"
|
|
115
|
+
},
|
|
116
|
+
"devDependencies": {
|
|
117
|
+
"@types/react": "^19.0.0",
|
|
118
|
+
"tsup": "^8.0.0",
|
|
119
|
+
"typescript": "^5.5.0",
|
|
120
|
+
"vitest": "^2.0.0"
|
|
121
|
+
}
|
|
122
|
+
}
|