@webx-ui/module-audit 0.1.0 → 0.2.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/dist/AuditDetails.d.ts +2 -1
- package/dist/AuditHostPlaces.d.ts +1 -1
- package/dist/AuditOverviewPage.d.ts +2 -2
- package/dist/index.js +1196 -1104
- package/dist/index.js.map +1 -1
- package/dist/resources.d.ts +7 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +18 -2
- package/package.json +4 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AuditResourceRow } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Whether the browser is worth asking for a picture of the page: the run reached it and it
|
|
4
|
+
* answered. One past the run's limit or on the stand was never asked, and one that failed for the
|
|
5
|
+
* run would fail here too — the card keeps the placeholder for those, with nothing to open.
|
|
6
|
+
*/
|
|
7
|
+
export declare function viewable(row: AuditResourceRow): boolean;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.wx-audit-places[data-v-
|
|
1
|
+
.wx-audit-places[data-v-e95fc205]{display:flex;flex-direction:column;gap:var(--wx-space-16);min-width:0}.wx-audit-places__group[data-v-e95fc205]{display:flex;flex-direction:column;gap:var(--wx-space-8);min-width:0}.wx-audit-places__row[data-v-e95fc205]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-4) var(--wx-space-8);min-width:0}.wx-audit-places__url[data-v-e95fc205]{min-width:0;overflow-wrap:anywhere}.wx-audit-hosts__host[data-v-44b7e64a]{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-8);min-width:0;overflow-wrap:anywhere}[data-v-44b7e64a] .is-stand>td:first-child{box-shadow:inset 3px 0 0 var(--wx-color-danger)}.wx-audit-details[data-v-c364445d]{display:flex;flex-direction:column;gap:var(--wx-space-8);min-width:0}.wx-audit-details__scroll[data-v-c364445d]{overflow-x:auto}.wx-audit-details__table[data-v-c364445d]{width:100%;border-collapse:collapse;font-size:var(--wx-font-size-sm)}.wx-audit-details__table th[data-v-c364445d]{color:var(--wx-text-muted);font-weight:400;text-align:left;white-space:nowrap}.wx-audit-details__table th[data-v-c364445d],.wx-audit-details__table td[data-v-c364445d]{padding:var(--wx-space-4) var(--wx-space-8);border-bottom:1px solid var(--wx-border-muted);vertical-align:top}.wx-audit-details__code[data-v-c364445d]{font-family:var(--wx-font-family-mono);font-size:var(--wx-font-size-xs);overflow-wrap:anywhere;white-space:pre-wrap}.wx-audit-details__url[data-v-c364445d]{overflow-wrap:anywhere}.wx-audit-fix[data-v-28525af3]{display:flex;flex-direction:column;gap:var(--wx-space-16);min-width:0}.wx-audit-fix__offer[data-v-28525af3]{display:flex;flex-direction:column;gap:var(--wx-space-8);min-width:0}.wx-audit-fix__changes[data-v-28525af3]{width:100%;border-collapse:collapse;font-size:var(--wx-font-size-sm)}.wx-audit-fix__changes th[data-v-28525af3]{padding:var(--wx-space-4) var(--wx-space-8);color:var(--wx-text-muted);font-weight:var(--wx-font-weight-medium);text-align:start;border-bottom:1px solid var(--wx-border-default)}.wx-audit-fix__changes td[data-v-28525af3]{padding:var(--wx-space-6) var(--wx-space-8);vertical-align:top;border-bottom:1px solid var(--wx-border-default);overflow-wrap:anywhere}.wx-audit-fix__field[data-v-28525af3],.wx-audit-fix__count[data-v-28525af3]{color:var(--wx-text-muted)}.wx-audit-fix__value[data-v-28525af3]{white-space:pre-line}.wx-audit-fix__actions[data-v-28525af3]{display:flex;justify-content:flex-end}.wx-audit-hide[data-v-1db364c4],.wx-audit-issues[data-v-23ac6ac8]{display:flex;flex-direction:column;gap:var(--wx-space-12);min-width:0}.wx-audit-issues__item[data-v-23ac6ac8]{display:flex;flex-direction:column;gap:var(--wx-space-6);min-width:0}.wx-audit-issues__head[data-v-23ac6ac8]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-8);min-width:0}.wx-audit-issues__fix[data-v-23ac6ac8],.wx-audit-issues__end[data-v-23ac6ac8]{margin-inline-start:auto}.wx-audit-issues__url[data-v-23ac6ac8]{min-width:0;overflow-wrap:anywhere}.wx-audit-findings__filters[data-v-7f790d95]{display:flex;flex-direction:column;gap:var(--wx-space-8)}.wx-audit-findings__title[data-v-7f790d95]{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-6)}.wx-audit-findings__texts[data-v-7f790d95]{display:grid;gap:var(--wx-space-4);margin:0;font-size:var(--wx-font-size-sm)}.wx-audit-findings__texts dt[data-v-7f790d95]{color:var(--wx-text-muted)}.wx-audit-findings__texts dd[data-v-7f790d95]{margin:0 0 var(--wx-space-8)}.wx-audit-overview[data-v-5c088ef8]{display:flex;flex-direction:column;gap:var(--wx-space-16);container-type:inline-size}.wx-audit-overview__row[data-v-5c088ef8]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-8) var(--wx-space-12);margin-bottom:var(--wx-space-8)}.wx-audit-overview__end[data-v-5c088ef8]{margin-left:auto}.wx-audit-overview__summary[data-v-5c088ef8]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-24)}.wx-audit-overview__health[data-v-5c088ef8]{display:flex;flex:1 1 20rem;align-items:center;gap:var(--wx-space-16);min-width:0}.wx-audit-overview__parts[data-v-5c088ef8]{display:flex;flex-direction:column;gap:var(--wx-space-4);max-width:36ch;min-width:0}.wx-audit-overview__stats[data-v-5c088ef8]{display:flex;flex:1 1 auto;flex-wrap:wrap;gap:var(--wx-space-16) var(--wx-space-32)}.wx-audit-overview__meta[data-v-5c088ef8]{display:flex;flex-wrap:wrap;gap:var(--wx-space-4);margin-top:var(--wx-space-16)}.wx-audit-overview__url[data-v-5c088ef8]{min-width:0;overflow-wrap:anywhere}.wx-audit-overview__groups[data-v-5c088ef8]{display:flex;flex-direction:column;gap:var(--wx-space-8);margin:0;padding:0;list-style:none}.wx-audit-overview__groups li[data-v-5c088ef8]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--wx-space-8)}.wx-audit-overview__badges[data-v-5c088ef8],.wx-audit-overview__missing[data-v-5c088ef8]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-6)}.wx-audit-overview__missing[data-v-5c088ef8]{margin-top:var(--wx-space-12)}.wx-audit-overview__title[data-v-5c088ef8]{display:inline-flex;align-items:center;gap:var(--wx-space-4)}.wx-audit-card[data-v-4cc2906c]{display:flex;flex-direction:column;gap:var(--wx-space-12);min-width:0}.wx-audit-card__title[data-v-4cc2906c]{display:inline-flex;align-items:center;gap:var(--wx-space-8);min-width:0}.wx-audit-card__url[data-v-4cc2906c]{min-width:0;overflow-wrap:anywhere}.wx-audit-card__facts[data-v-4cc2906c]{display:grid;grid-template-columns:minmax(120px,max-content) minmax(0,1fr);gap:var(--wx-space-6) var(--wx-space-16);margin:var(--wx-space-12) 0 0;font-size:var(--wx-font-size-sm)}.wx-audit-card__facts dt[data-v-4cc2906c]{color:var(--wx-text-muted)}.wx-audit-card__facts dd[data-v-4cc2906c]{margin:0;overflow-wrap:anywhere;white-space:pre-line}.wx-audit-card__pairs[data-v-4cc2906c]{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:var(--wx-space-6) var(--wx-space-8);align-items:baseline}.wx-audit-card__key[data-v-4cc2906c]{justify-self:end;font-family:var(--wx-font-family-mono)}.wx-audit-card__tags[data-v-4cc2906c]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-6)}.wx-audit-card__section[data-v-4cc2906c]{margin-top:var(--wx-space-12);font-weight:var(--wx-font-weight-semibold)}.wx-audit-card__code[data-v-4cc2906c]{font-family:var(--wx-font-family-mono)}.wx-audit-card__issues[data-v-4cc2906c]{display:flex;flex-direction:column;gap:var(--wx-space-16);margin-top:var(--wx-space-12)}.wx-audit-card__issue[data-v-4cc2906c]{display:flex;flex-direction:column;gap:var(--wx-space-6);min-width:0}.wx-audit-card__picture[data-v-4cc2906c]{display:flex;align-items:center;gap:var(--wx-space-12);min-width:0}.wx-audit-card__thumb[data-v-4cc2906c]{flex:none}.wx-audit-card__thumb.is-unviewable[data-v-4cc2906c] .wx-image__placeholder .wx-icon{width:32px;height:32px}.wx-audit-card__source[data-v-4cc2906c]{max-height:480px;margin:0;padding:var(--wx-space-8);overflow:auto;border-radius:var(--wx-radius-sm);background:var(--wx-bg-muted);font-family:var(--wx-font-family-mono);font-size:var(--wx-font-size-xs);white-space:pre-wrap;overflow-wrap:anywhere}.wx-audit-card__issue-head[data-v-4cc2906c]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-8)}.wx-audit-card__extra[data-v-4cc2906c]{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-8)}.wx-audit-card__recheck[data-v-4cc2906c]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-4) var(--wx-space-12)}.wx-audit-pages__none[data-v-7850735f]{display:block;padding:var(--wx-space-24)}.wx-audit-pages__filters[data-v-7850735f]{display:flex;flex-direction:column;gap:var(--wx-space-8)}.wx-audit-pages__filter[data-v-7850735f]{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto;gap:var(--wx-space-4);align-items:center}.wx-audit-pages__picker[data-v-7850735f]{max-height:360px;overflow-y:auto}.wx-audit-pages__long[data-v-7850735f]{overflow-wrap:anywhere}.wx-audit-compare[data-v-02d42bdb]{display:flex;flex-direction:column;gap:var(--wx-space-12);min-width:0}.wx-audit-compare__item[data-v-02d42bdb]{display:flex;flex-direction:column;gap:var(--wx-space-6);min-width:0}.wx-audit-compare__url[data-v-02d42bdb]{min-width:0;overflow-wrap:anywhere}.wx-audit-runs[data-v-abbed1f9]{display:flex;flex-direction:column;gap:var(--wx-space-16);min-width:0}.wx-audit-runs__counts[data-v-abbed1f9]{display:inline-flex;flex-wrap:wrap;gap:var(--wx-space-4)}.wx-audit-runs__pair[data-v-abbed1f9]{display:block;margin-bottom:var(--wx-space-12)}.wx-audit-runs__note[data-v-abbed1f9]{margin-bottom:var(--wx-space-12)}.wx-audit-settings[data-v-4b3f5a3f]{display:flex;flex-direction:column;gap:var(--wx-gap, var(--wx-space-16))}
|
package/dist/types.d.ts
CHANGED
|
@@ -11,8 +11,13 @@ export interface AuditCounts {
|
|
|
11
11
|
checks: string[];
|
|
12
12
|
/** The worst severity of every check that found something. */
|
|
13
13
|
failed: Record<string, AuditSeverity>;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* 0–100: the share of crawled pages without errors, minus 10 for each error of the whole site
|
|
16
|
+
* and 2 for each check with warnings (20 at most).
|
|
17
|
+
*/
|
|
15
18
|
health: number;
|
|
19
|
+
/** What the health was made of; absent on runs counted before it was kept. */
|
|
20
|
+
health_parts?: AuditHealthParts;
|
|
16
21
|
new: number;
|
|
17
22
|
fixed: number;
|
|
18
23
|
previous_id: number | null;
|
|
@@ -21,6 +26,16 @@ export interface AuditCounts {
|
|
|
21
26
|
missing: string[];
|
|
22
27
|
};
|
|
23
28
|
}
|
|
29
|
+
export interface AuditHealthParts {
|
|
30
|
+
/** Pages crawled; 0 for a quick run. */
|
|
31
|
+
pages: number;
|
|
32
|
+
/** Of them, without an error. */
|
|
33
|
+
clean: number;
|
|
34
|
+
/** Checks with an error that belongs to no page. */
|
|
35
|
+
site_errors: number;
|
|
36
|
+
/** Checks with a warning, each counted once. */
|
|
37
|
+
warnings: number;
|
|
38
|
+
}
|
|
24
39
|
export interface AuditRun {
|
|
25
40
|
id: number;
|
|
26
41
|
status: AuditRunStatus;
|
|
@@ -78,7 +93,8 @@ export interface AuditCheckRow {
|
|
|
78
93
|
/** The fixes that can close this check — the screen offers a button when there are any. */
|
|
79
94
|
fixes: string[];
|
|
80
95
|
}
|
|
81
|
-
|
|
96
|
+
/** `code` is markup quoted from the page — the page's HTML itself is not kept. */
|
|
97
|
+
export type AuditCellType = 'url' | 'status' | 'bool' | 'text' | 'missing' | 'edit' | 'code';
|
|
82
98
|
export interface AuditDetailsColumn {
|
|
83
99
|
key: string;
|
|
84
100
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webx-ui/module-audit",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "A site audit for the WebX UI admin panel: the production config, the host, and links to a development stand in the content.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"vue-router": "^4.5.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@webx-ui/core": "^0.
|
|
47
|
-
"@webx-ui/module-admin": "^0.23.
|
|
48
|
-
"@webx-ui/schema": "^0.7.
|
|
46
|
+
"@webx-ui/core": "^0.37.0",
|
|
47
|
+
"@webx-ui/module-admin": "^0.23.3",
|
|
48
|
+
"@webx-ui/schema": "^0.7.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^24.10.1",
|