@burdenoff/microfe-headshotmarketing 2026.1029.2 → 2026.1029.4
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/dist/generated/wspace-operations.d.ts +79 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +74 -26
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +80 -704
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +21 -19
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.d.ts +1 -0
- package/dist/headshotmarketing/HeadshotMarketingRoutes.d.ts.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js +129 -125
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +59 -52
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AttributionPage.d.ts +4 -0
- package/dist/headshotmarketing/pages/analytics/AttributionPage.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js +313 -0
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -0
- package/dist/headshotmarketing/pages/analytics/index.d.ts +1 -0
- package/dist/headshotmarketing/pages/analytics/index.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +150 -90
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/types/index.d.ts +9 -2
- package/dist/headshotmarketing/types/index.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/seoMapper.d.ts +4 -0
- package/dist/headshotmarketing/utils/seoMapper.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/seoMapper.js +38 -12
- package/dist/headshotmarketing/utils/seoMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -56,8 +56,25 @@ var ye = {
|
|
|
56
56
|
error: "text-status-error-text",
|
|
57
57
|
warning: "text-status-warning-text",
|
|
58
58
|
info: "text-status-info-text"
|
|
59
|
-
}, b = "https://headshotmarketing.com"
|
|
60
|
-
|
|
59
|
+
}, b = "https://headshotmarketing.com", Ce = [
|
|
60
|
+
{
|
|
61
|
+
value: 1,
|
|
62
|
+
label: "This page only"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: 10,
|
|
66
|
+
label: "Up to 10 pages"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
value: 25,
|
|
70
|
+
label: "Up to 25 pages"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
value: 50,
|
|
74
|
+
label: "Up to 50 pages"
|
|
75
|
+
}
|
|
76
|
+
];
|
|
77
|
+
function we(e) {
|
|
61
78
|
return s({
|
|
62
79
|
id: e.id,
|
|
63
80
|
url: e.url,
|
|
@@ -73,13 +90,15 @@ function Ce(e) {
|
|
|
73
90
|
recommendation: e.recommendation ?? "",
|
|
74
91
|
element: e.element ?? null
|
|
75
92
|
})),
|
|
93
|
+
pagesCrawled: e.pagesCrawled ?? null,
|
|
94
|
+
metadata: e.metadata ?? null,
|
|
76
95
|
completedAt: e.completedAt ?? null,
|
|
77
96
|
createdAt: e.createdAt,
|
|
78
97
|
updatedAt: e.updatedAt
|
|
79
98
|
});
|
|
80
99
|
}
|
|
81
100
|
var x = () => {
|
|
82
|
-
let { data: i, loading: x, error:
|
|
101
|
+
let { data: i, loading: x, error: Te, refetch: S } = ie(), [C, w] = l("keywords"), [T, E] = l(""), [D, O] = l("all"), [k, Ee] = l(""), [De, { loading: A }] = t(), [Oe, { loading: j }] = e(), [ke, M] = l(!1), [N, P] = l(b), [F, Ae] = l(1), [I, je] = l(null), [L, Me] = l(null), [R, z] = l(null), [B, V] = l(null), [H, U] = l(null), Ne = [
|
|
83
102
|
{
|
|
84
103
|
key: "keywords",
|
|
85
104
|
label: "Keyword Research"
|
|
@@ -92,18 +111,18 @@ var x = () => {
|
|
|
92
111
|
key: "optimization",
|
|
93
112
|
label: "Content Optimization"
|
|
94
113
|
}
|
|
95
|
-
],
|
|
114
|
+
], Pe = {
|
|
96
115
|
up: m,
|
|
97
116
|
down: ge,
|
|
98
117
|
stable: he
|
|
99
|
-
},
|
|
118
|
+
}, W = c(() => (i?.headshotmarketingSEOKeywords.items ?? []).map((e) => ({
|
|
100
119
|
...ae(e),
|
|
101
120
|
bestRank: e.bestRank ?? null,
|
|
102
121
|
status: e.status
|
|
103
|
-
})), [i?.headshotmarketingSEOKeywords.items]),
|
|
122
|
+
})), [i?.headshotmarketingSEOKeywords.items]), G = W.filter((e) => {
|
|
104
123
|
let t = T ? e.keyword.toLowerCase().includes(T.toLowerCase()) : !0, n = D === "all" ? !0 : e.status === D;
|
|
105
124
|
return t && n;
|
|
106
|
-
}),
|
|
125
|
+
}), Fe = W.some((e) => e.keyword.toLowerCase() === T.trim().toLowerCase()), K = i?.headshotmarketingSEOOverview, q = K?.avgRank, J = K?.avgSEOScore, Ie = q == null ? "—" : q.toFixed(1), Le = J == null ? "—" : String(Math.round(J)), Y = W.length > 0, Re = !!T.trim() || D !== "all", ze = [
|
|
107
126
|
{
|
|
108
127
|
key: "keyword",
|
|
109
128
|
header: "Keyword",
|
|
@@ -124,7 +143,7 @@ var x = () => {
|
|
|
124
143
|
header: "Current Rank",
|
|
125
144
|
sortable: !0,
|
|
126
145
|
render: (e) => {
|
|
127
|
-
let t =
|
|
146
|
+
let t = Pe[e.trend];
|
|
128
147
|
return /* @__PURE__ */ v("div", {
|
|
129
148
|
className: "flex items-center gap-1.5",
|
|
130
149
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -208,7 +227,7 @@ var x = () => {
|
|
|
208
227
|
});
|
|
209
228
|
}
|
|
210
229
|
}
|
|
211
|
-
],
|
|
230
|
+
], Be = c(() => s((i?.headshotmarketingSEOAudits.items ?? [])[0] ?? {
|
|
212
231
|
id: "audit-default",
|
|
213
232
|
url: b,
|
|
214
233
|
overallScore: 0,
|
|
@@ -220,44 +239,47 @@ var x = () => {
|
|
|
220
239
|
completedAt: null,
|
|
221
240
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
222
241
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
223
|
-
}), [i?.headshotmarketingSEOAudits.items]), X =
|
|
224
|
-
|
|
242
|
+
}), [i?.headshotmarketingSEOAudits.items]), X = I ?? Be, Z = !!(I || (i?.headshotmarketingSEOAudits.items ?? []).length > 0), Q = (e) => e >= 80 ? "text-status-success-text" : e >= 60 ? "text-status-warning-text" : "text-status-error-text", $ = async (e, t) => {
|
|
243
|
+
z(null);
|
|
225
244
|
try {
|
|
226
|
-
let
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
245
|
+
let n = (await De({ variables: {
|
|
246
|
+
url: e,
|
|
247
|
+
...t && t > 1 ? { maxPages: t } : {}
|
|
248
|
+
} })).data?.headshotmarketingRunSEOAudit;
|
|
249
|
+
if (!n) return z("Audit did not return a result."), null;
|
|
250
|
+
let r = we(n);
|
|
251
|
+
return S(), r;
|
|
230
252
|
} catch (e) {
|
|
231
|
-
return
|
|
253
|
+
return z(e instanceof Error ? e.message : "Failed to run SEO audit."), null;
|
|
232
254
|
}
|
|
233
|
-
},
|
|
255
|
+
}, Ve = async () => {
|
|
234
256
|
if (!N.trim()) {
|
|
235
|
-
|
|
257
|
+
z("Enter a URL to audit.");
|
|
236
258
|
return;
|
|
237
259
|
}
|
|
238
|
-
let e = await $(N.trim());
|
|
239
|
-
e && (
|
|
240
|
-
},
|
|
260
|
+
let e = await $(N.trim(), F);
|
|
261
|
+
e && (je(e), M(!1), w("audit"));
|
|
262
|
+
}, He = async () => {
|
|
241
263
|
if (!k.trim()) {
|
|
242
|
-
|
|
264
|
+
z("Enter a URL to analyze.");
|
|
243
265
|
return;
|
|
244
266
|
}
|
|
245
267
|
let e = await $(k.trim());
|
|
246
|
-
e &&
|
|
247
|
-
},
|
|
268
|
+
e && Me(e);
|
|
269
|
+
}, Ue = async () => {
|
|
248
270
|
let e = T.trim();
|
|
249
|
-
if (
|
|
250
|
-
|
|
271
|
+
if (V(null), U(null), !e) {
|
|
272
|
+
V("Enter a keyword to research.");
|
|
251
273
|
return;
|
|
252
274
|
}
|
|
253
|
-
if (
|
|
254
|
-
|
|
275
|
+
if (Fe) {
|
|
276
|
+
U("That keyword is already being tracked.");
|
|
255
277
|
return;
|
|
256
278
|
}
|
|
257
279
|
try {
|
|
258
|
-
await
|
|
280
|
+
await Oe({ variables: { input: { keyword: e } } }), await S(), U(`Now tracking "${e}".`);
|
|
259
281
|
} catch (e) {
|
|
260
|
-
|
|
282
|
+
V(e instanceof Error ? e.message : "Failed to add keyword.");
|
|
261
283
|
}
|
|
262
284
|
};
|
|
263
285
|
return /* @__PURE__ */ v(ee, {
|
|
@@ -266,7 +288,7 @@ var x = () => {
|
|
|
266
288
|
actions: /* @__PURE__ */ v("button", {
|
|
267
289
|
type: "button",
|
|
268
290
|
onClick: () => {
|
|
269
|
-
|
|
291
|
+
z(null), P(k.trim() || b), M(!0);
|
|
270
292
|
},
|
|
271
293
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
272
294
|
children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), "Run Audit"]
|
|
@@ -303,7 +325,7 @@ var x = () => {
|
|
|
303
325
|
className: "border-b border-border-subtle",
|
|
304
326
|
children: /* @__PURE__ */ _("div", {
|
|
305
327
|
className: "flex flex-nowrap gap-6 overflow-x-auto",
|
|
306
|
-
children:
|
|
328
|
+
children: Ne.map((e) => /* @__PURE__ */ _("button", {
|
|
307
329
|
onClick: () => w(e.key),
|
|
308
330
|
className: n("whitespace-nowrap pb-3 text-sm font-medium transition-colors border-b-2", C === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
309
331
|
children: e.label
|
|
@@ -312,7 +334,7 @@ var x = () => {
|
|
|
312
334
|
}),
|
|
313
335
|
/* @__PURE__ */ _(re, {
|
|
314
336
|
loading: x,
|
|
315
|
-
error:
|
|
337
|
+
error: Te,
|
|
316
338
|
onRetry: S,
|
|
317
339
|
hasData: !!i,
|
|
318
340
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -323,23 +345,23 @@ var x = () => {
|
|
|
323
345
|
children: [
|
|
324
346
|
/* @__PURE__ */ _(a, {
|
|
325
347
|
title: "Tracked Keywords",
|
|
326
|
-
value: r(
|
|
348
|
+
value: r(K?.totalKeywords ?? 0),
|
|
327
349
|
icon: /* @__PURE__ */ _(me, { className: "h-5 w-5" }),
|
|
328
350
|
featured: !0
|
|
329
351
|
}),
|
|
330
352
|
/* @__PURE__ */ _(a, {
|
|
331
353
|
title: "Avg Rank",
|
|
332
|
-
value:
|
|
354
|
+
value: Ie,
|
|
333
355
|
icon: /* @__PURE__ */ _(le, { className: "h-5 w-5" })
|
|
334
356
|
}),
|
|
335
357
|
/* @__PURE__ */ _(a, {
|
|
336
358
|
title: "Keywords Improved",
|
|
337
|
-
value: r(
|
|
359
|
+
value: r(K?.keywordsImproved ?? 0),
|
|
338
360
|
icon: /* @__PURE__ */ _(ce, { className: "h-5 w-5" })
|
|
339
361
|
}),
|
|
340
362
|
/* @__PURE__ */ _(a, {
|
|
341
363
|
title: "Avg SEO Score",
|
|
342
|
-
value:
|
|
364
|
+
value: Le,
|
|
343
365
|
icon: /* @__PURE__ */ _(fe, { className: "h-5 w-5" })
|
|
344
366
|
})
|
|
345
367
|
]
|
|
@@ -372,20 +394,20 @@ var x = () => {
|
|
|
372
394
|
}),
|
|
373
395
|
/* @__PURE__ */ _("button", {
|
|
374
396
|
type: "button",
|
|
375
|
-
onClick: () => void
|
|
397
|
+
onClick: () => void Ue(),
|
|
376
398
|
disabled: j || !T.trim(),
|
|
377
399
|
className: "inline-flex min-h-[44px] items-center justify-center rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",
|
|
378
400
|
children: j ? "Researching…" : "Research"
|
|
379
401
|
})
|
|
380
402
|
]
|
|
381
403
|
}),
|
|
382
|
-
|
|
404
|
+
B && /* @__PURE__ */ _("div", {
|
|
383
405
|
className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
|
|
384
|
-
children:
|
|
406
|
+
children: B
|
|
385
407
|
}),
|
|
386
|
-
|
|
408
|
+
H && !B && /* @__PURE__ */ _("div", {
|
|
387
409
|
className: "rounded-md border border-status-success-border/30 bg-status-success-bg/10 px-3 py-2 text-sm text-status-success-text",
|
|
388
|
-
children:
|
|
410
|
+
children: H
|
|
389
411
|
}),
|
|
390
412
|
/* @__PURE__ */ v("div", {
|
|
391
413
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
@@ -398,13 +420,13 @@ var x = () => {
|
|
|
398
420
|
children: "Keyword rankings"
|
|
399
421
|
}), /* @__PURE__ */ v("span", {
|
|
400
422
|
className: "text-xs text-text-secondary tabular-nums",
|
|
401
|
-
children: [
|
|
423
|
+
children: [G.length, G.length === 1 ? " keyword" : " keywords"]
|
|
402
424
|
})]
|
|
403
|
-
}),
|
|
404
|
-
illustration:
|
|
405
|
-
title:
|
|
406
|
-
description:
|
|
407
|
-
action:
|
|
425
|
+
}), G.length === 0 ? /* @__PURE__ */ _(o, {
|
|
426
|
+
illustration: Y ? "empty-search" : "empty-generic",
|
|
427
|
+
title: Y ? "No keywords match your filters" : "No keywords yet",
|
|
428
|
+
description: Y ? "Try a different search term or status filter." : "Research a keyword above to start tracking its search volume, difficulty and ranking opportunities.",
|
|
429
|
+
action: Y && Re ? /* @__PURE__ */ _("button", {
|
|
408
430
|
type: "button",
|
|
409
431
|
onClick: () => {
|
|
410
432
|
E(""), O("all");
|
|
@@ -413,8 +435,8 @@ var x = () => {
|
|
|
413
435
|
children: "Clear filters"
|
|
414
436
|
}) : void 0
|
|
415
437
|
}) : /* @__PURE__ */ _(te, {
|
|
416
|
-
data:
|
|
417
|
-
columns:
|
|
438
|
+
data: G,
|
|
439
|
+
columns: ze,
|
|
418
440
|
pageSize: 10
|
|
419
441
|
})]
|
|
420
442
|
}), /* @__PURE__ */ _("div", {
|
|
@@ -424,7 +446,7 @@ var x = () => {
|
|
|
424
446
|
hasAudit: Z,
|
|
425
447
|
onViewIssues: () => w("audit"),
|
|
426
448
|
onRunAudit: () => {
|
|
427
|
-
|
|
449
|
+
z(null), P(b), M(!0);
|
|
428
450
|
}
|
|
429
451
|
})
|
|
430
452
|
})]
|
|
@@ -498,12 +520,12 @@ var x = () => {
|
|
|
498
520
|
value: X.crawledPages
|
|
499
521
|
},
|
|
500
522
|
{
|
|
501
|
-
label: "
|
|
502
|
-
value: X.
|
|
523
|
+
label: "Reachable",
|
|
524
|
+
value: X.reachablePages
|
|
503
525
|
},
|
|
504
526
|
{
|
|
505
|
-
label: "
|
|
506
|
-
value: X.
|
|
527
|
+
label: "Unreachable",
|
|
528
|
+
value: X.unreachablePages
|
|
507
529
|
},
|
|
508
530
|
{
|
|
509
531
|
label: "Missing Meta",
|
|
@@ -528,12 +550,25 @@ var x = () => {
|
|
|
528
550
|
})]
|
|
529
551
|
}, e.label))
|
|
530
552
|
}),
|
|
553
|
+
X.crawlTimedOut && /* @__PURE__ */ v("p", {
|
|
554
|
+
className: "text-xs text-text-secondary",
|
|
555
|
+
children: [
|
|
556
|
+
"The crawl reached its time limit, so the report covers the",
|
|
557
|
+
" ",
|
|
558
|
+
X.crawledPages,
|
|
559
|
+
" pages fetched before it stopped."
|
|
560
|
+
]
|
|
561
|
+
}),
|
|
531
562
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ v("h3", {
|
|
532
563
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
533
564
|
children: [
|
|
534
565
|
"Issues (",
|
|
535
566
|
X.issues.length,
|
|
536
|
-
")"
|
|
567
|
+
")",
|
|
568
|
+
X.passedChecks > 0 && /* @__PURE__ */ v("span", {
|
|
569
|
+
className: "ml-2 text-xs font-normal text-text-secondary",
|
|
570
|
+
children: [X.passedChecks, " checks passed"]
|
|
571
|
+
})
|
|
537
572
|
]
|
|
538
573
|
}), X.issues.length === 0 ? /* @__PURE__ */ _("p", {
|
|
539
574
|
className: "text-sm text-text-secondary",
|
|
@@ -589,7 +624,7 @@ var x = () => {
|
|
|
589
624
|
action: /* @__PURE__ */ v("button", {
|
|
590
625
|
type: "button",
|
|
591
626
|
onClick: () => {
|
|
592
|
-
|
|
627
|
+
z(null), P(b), M(!0);
|
|
593
628
|
},
|
|
594
629
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
595
630
|
children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), "Run Audit"]
|
|
@@ -606,31 +641,31 @@ var x = () => {
|
|
|
606
641
|
children: [/* @__PURE__ */ _(pe, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
|
|
607
642
|
type: "url",
|
|
608
643
|
value: k,
|
|
609
|
-
onChange: (e) =>
|
|
644
|
+
onChange: (e) => Ee(e.target.value),
|
|
610
645
|
placeholder: "Enter URL to analyze (e.g. https://headshotmarketing.com/blog/tips)",
|
|
611
646
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-9 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
612
647
|
})]
|
|
613
648
|
}), /* @__PURE__ */ _("button", {
|
|
614
649
|
type: "button",
|
|
615
|
-
onClick: () => void
|
|
650
|
+
onClick: () => void He(),
|
|
616
651
|
disabled: A || !k.trim(),
|
|
617
652
|
className: "rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",
|
|
618
653
|
children: A ? "Analyzing…" : "Analyze"
|
|
619
654
|
})]
|
|
620
655
|
}),
|
|
621
|
-
|
|
656
|
+
R && /* @__PURE__ */ _("div", {
|
|
622
657
|
className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
|
|
623
|
-
children:
|
|
658
|
+
children: R
|
|
624
659
|
}),
|
|
625
|
-
|
|
660
|
+
L ? /* @__PURE__ */ v("div", {
|
|
626
661
|
className: "space-y-4",
|
|
627
662
|
children: [
|
|
628
663
|
/* @__PURE__ */ v("div", {
|
|
629
664
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 text-center",
|
|
630
665
|
children: [
|
|
631
666
|
/* @__PURE__ */ _("p", {
|
|
632
|
-
className: n("text-4xl font-bold", Q(
|
|
633
|
-
children: Math.round(
|
|
667
|
+
className: n("text-4xl font-bold", Q(L.score)),
|
|
668
|
+
children: Math.round(L.score)
|
|
634
669
|
}),
|
|
635
670
|
/* @__PURE__ */ _("p", {
|
|
636
671
|
className: "text-sm text-text-secondary mt-1",
|
|
@@ -639,8 +674,8 @@ var x = () => {
|
|
|
639
674
|
/* @__PURE__ */ _("div", {
|
|
640
675
|
className: "w-full h-3 rounded-full bg-bg-sunken mt-3 overflow-hidden max-w-xs mx-auto",
|
|
641
676
|
children: /* @__PURE__ */ _("div", {
|
|
642
|
-
className: n("h-full rounded-full",
|
|
643
|
-
style: { width: `${Math.min(Math.max(
|
|
677
|
+
className: n("h-full rounded-full", L.score >= 80 ? "bg-status-success-text" : L.score >= 60 ? "bg-status-warning-text" : "bg-status-error-text"),
|
|
678
|
+
style: { width: `${Math.min(Math.max(L.score, 0), 100)}%` }
|
|
644
679
|
})
|
|
645
680
|
})
|
|
646
681
|
]
|
|
@@ -650,19 +685,19 @@ var x = () => {
|
|
|
650
685
|
children: [
|
|
651
686
|
{
|
|
652
687
|
label: "Performance",
|
|
653
|
-
score:
|
|
688
|
+
score: L.performanceScore
|
|
654
689
|
},
|
|
655
690
|
{
|
|
656
691
|
label: "Accessibility",
|
|
657
|
-
score:
|
|
692
|
+
score: L.accessibilityScore
|
|
658
693
|
},
|
|
659
694
|
{
|
|
660
695
|
label: "Best Practices",
|
|
661
|
-
score:
|
|
696
|
+
score: L.bestPracticesScore
|
|
662
697
|
},
|
|
663
698
|
{
|
|
664
699
|
label: "SEO",
|
|
665
|
-
score:
|
|
700
|
+
score: L.seoScore
|
|
666
701
|
}
|
|
667
702
|
].map((e) => /* @__PURE__ */ v("div", {
|
|
668
703
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-3 text-center",
|
|
@@ -675,12 +710,12 @@ var x = () => {
|
|
|
675
710
|
})]
|
|
676
711
|
}, e.label))
|
|
677
712
|
}),
|
|
678
|
-
|
|
713
|
+
L.issues.length === 0 ? /* @__PURE__ */ _("div", {
|
|
679
714
|
className: "rounded-lg border border-status-success-border/30 bg-status-success-bg/10 p-4 text-sm text-status-success-text",
|
|
680
715
|
children: "No on-page issues found — this page is well optimized."
|
|
681
716
|
}) : /* @__PURE__ */ _("div", {
|
|
682
717
|
className: "space-y-2",
|
|
683
|
-
children:
|
|
718
|
+
children: L.issues.map((e) => /* @__PURE__ */ _("div", {
|
|
684
719
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
|
|
685
720
|
children: /* @__PURE__ */ v("div", {
|
|
686
721
|
className: "flex items-start justify-between gap-3",
|
|
@@ -712,7 +747,7 @@ var x = () => {
|
|
|
712
747
|
})
|
|
713
748
|
}),
|
|
714
749
|
/* @__PURE__ */ _(ne, {
|
|
715
|
-
open:
|
|
750
|
+
open: ke,
|
|
716
751
|
onClose: () => M(!1),
|
|
717
752
|
title: "Run SEO audit",
|
|
718
753
|
description: "Analyze a URL for performance, accessibility and SEO issues.",
|
|
@@ -724,29 +759,54 @@ var x = () => {
|
|
|
724
759
|
children: "Cancel"
|
|
725
760
|
}), /* @__PURE__ */ v("button", {
|
|
726
761
|
type: "button",
|
|
727
|
-
onClick: () => void
|
|
762
|
+
onClick: () => void Ve(),
|
|
728
763
|
disabled: A,
|
|
729
764
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
|
|
730
765
|
children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), A ? "Running…" : "Run Audit"]
|
|
731
766
|
})] }),
|
|
732
767
|
children: /* @__PURE__ */ v("div", {
|
|
733
768
|
className: "space-y-3",
|
|
734
|
-
children: [
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
769
|
+
children: [
|
|
770
|
+
/* @__PURE__ */ v("label", {
|
|
771
|
+
className: "block",
|
|
772
|
+
children: [/* @__PURE__ */ _("span", {
|
|
773
|
+
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
774
|
+
children: "URL to audit"
|
|
775
|
+
}), /* @__PURE__ */ _("input", {
|
|
776
|
+
type: "url",
|
|
777
|
+
value: N,
|
|
778
|
+
onChange: (e) => P(e.target.value),
|
|
779
|
+
placeholder: "https://example.com",
|
|
780
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
781
|
+
})]
|
|
782
|
+
}),
|
|
783
|
+
/* @__PURE__ */ v("label", {
|
|
784
|
+
className: "block",
|
|
785
|
+
children: [
|
|
786
|
+
/* @__PURE__ */ _("span", {
|
|
787
|
+
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
788
|
+
children: "Pages to crawl"
|
|
789
|
+
}),
|
|
790
|
+
/* @__PURE__ */ _("select", {
|
|
791
|
+
value: F,
|
|
792
|
+
onChange: (e) => Ae(Number(e.target.value)),
|
|
793
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
794
|
+
children: Ce.map((e) => /* @__PURE__ */ _("option", {
|
|
795
|
+
value: e.value,
|
|
796
|
+
children: e.label
|
|
797
|
+
}, e.value))
|
|
798
|
+
}),
|
|
799
|
+
/* @__PURE__ */ _("span", {
|
|
800
|
+
className: "mt-1 block text-xs text-text-secondary",
|
|
801
|
+
children: "A crawl follows same-site links from this URL and reports on every page it reaches."
|
|
802
|
+
})
|
|
803
|
+
]
|
|
804
|
+
}),
|
|
805
|
+
R && /* @__PURE__ */ _("div", {
|
|
806
|
+
className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
|
|
807
|
+
children: R
|
|
808
|
+
})
|
|
809
|
+
]
|
|
750
810
|
})
|
|
751
811
|
})
|
|
752
812
|
]
|