@checkly/playwright-core 1.51.15-beta.1 → 1.51.16-beta.0
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/lib/checkly/secretsFilter.js +33 -6
- package/lib/generated/clockSource.js +2 -1
- package/lib/generated/consoleApiSource.js +2 -1
- package/lib/generated/injectedScriptSource.js +2 -1
- package/lib/generated/pollingRecorderSource.js +2 -1
- package/lib/generated/utilityScriptSource.js +2 -1
- package/lib/generated/webSocketMockSource.js +2 -1
- package/lib/vite/recorder/assets/codeMirrorModule-DrMbgOIo.js +16684 -0
- package/lib/vite/recorder/assets/codeMirrorModule-DuST8d_k.css +344 -0
- package/lib/vite/recorder/assets/index-5NM3V7eb.css +2524 -0
- package/lib/vite/recorder/assets/index-CT-scFHn.js +16848 -0
- package/lib/vite/recorder/index.html +2 -2
- package/lib/vite/traceViewer/assets/codeMirrorModule-CB-2okZ8.js +16684 -0
- package/lib/vite/traceViewer/assets/defaultSettingsView-CBiB4avC.js +217 -0
- package/lib/vite/traceViewer/assets/inspectorTab-CwgfffWb.js +25143 -0
- package/lib/vite/traceViewer/assets/workbench-CWZselvp.js +2470 -0
- package/lib/vite/traceViewer/assets/xtermModule-Es_gt_u7.js +5994 -0
- package/lib/vite/traceViewer/codeMirrorModule.DuST8d_k.css +344 -0
- package/lib/vite/traceViewer/defaultSettingsView.Dp3b_92q.css +41 -0
- package/lib/vite/traceViewer/embedded.BeldSa2G.css +68 -0
- package/lib/vite/traceViewer/embedded.gzudoghF.js +106 -0
- package/lib/vite/traceViewer/embedded.html +6 -6
- package/lib/vite/traceViewer/index.DilotR1h.js +314 -0
- package/lib/vite/traceViewer/index.QewjJ85u.css +131 -0
- package/lib/vite/traceViewer/index.html +8 -8
- package/lib/vite/traceViewer/inspectorTab.DnGm18kV.css +3178 -0
- package/lib/vite/traceViewer/recorder.DLgqV9db.css +15 -0
- package/lib/vite/traceViewer/recorder.DVrkq3Um.js +551 -0
- package/lib/vite/traceViewer/recorder.html +4 -4
- package/lib/vite/traceViewer/uiMode.C9_OcpPU.js +1756 -0
- package/lib/vite/traceViewer/uiMode.c5ORgcrX.css +1424 -0
- package/lib/vite/traceViewer/uiMode.html +8 -8
- package/lib/vite/traceViewer/workbench.xUZSA8PY.css +787 -0
- package/lib/vite/traceViewer/xtermModule.EsaqrrTX.css +209 -0
- package/package.json +1 -1
- package/lib/vite/recorder/assets/codeMirrorModule-B9YMkrwa.js +0 -24
- package/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +0 -1
- package/lib/vite/recorder/assets/index-ELPgmkwA.js +0 -184
- package/lib/vite/recorder/assets/index-eHBmevrY.css +0 -1
- package/lib/vite/traceViewer/assets/codeMirrorModule-gU1OOCQO.js +0 -24
- package/lib/vite/traceViewer/assets/defaultSettingsView-B5n_FjMx.js +0 -1
- package/lib/vite/traceViewer/assets/inspectorTab-6Tru8Mn_.js +0 -235
- package/lib/vite/traceViewer/assets/workbench-B_Nj4NA2.js +0 -25
- package/lib/vite/traceViewer/assets/xtermModule-BoAIEibi.js +0 -9
- package/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +0 -1
- package/lib/vite/traceViewer/defaultSettingsView.CO3FR0CX.css +0 -1
- package/lib/vite/traceViewer/embedded.DpNPH6mk.js +0 -2
- package/lib/vite/traceViewer/embedded.mLhjB5IF.css +0 -1
- package/lib/vite/traceViewer/index.CFOW-Ezb.css +0 -1
- package/lib/vite/traceViewer/index.CuE3SYGw.js +0 -2
- package/lib/vite/traceViewer/inspectorTab.CXDulcFG.css +0 -1
- package/lib/vite/traceViewer/recorder.BD-uZJs7.js +0 -2
- package/lib/vite/traceViewer/recorder.tn0RQdqM.css +0 -0
- package/lib/vite/traceViewer/uiMode.BatfzHMG.css +0 -1
- package/lib/vite/traceViewer/uiMode.DHrNgddz.js +0 -5
- package/lib/vite/traceViewer/workbench.B9vIAzH9.css +0 -1
- package/lib/vite/traceViewer/xtermModule.Beg8tuEN.css +0 -32
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { r as reactExports, j as jsxRuntimeExports, T as ToolbarButton, M as MultiTraceModel, a as applyTheme, c as clientExports } from "./assets/inspectorTab-CwgfffWb.js";
|
|
2
|
+
import { L as LLMProvider, W as Workbench } from "./assets/workbench-CWZselvp.js";
|
|
3
|
+
import { D as DefaultSettingsView, T as TestServerConnection, W as WebSocketTestServerTransport } from "./assets/defaultSettingsView-CBiB4avC.js";
|
|
4
|
+
const Dialog = ({
|
|
5
|
+
className,
|
|
6
|
+
style: externalStyle,
|
|
7
|
+
open,
|
|
8
|
+
width,
|
|
9
|
+
verticalOffset,
|
|
10
|
+
requestClose,
|
|
11
|
+
anchor,
|
|
12
|
+
dataTestId,
|
|
13
|
+
children
|
|
14
|
+
}) => {
|
|
15
|
+
const dialogRef = reactExports.useRef(null);
|
|
16
|
+
const [_, setRecalculateDimensionsCount] = reactExports.useState(0);
|
|
17
|
+
let style = externalStyle;
|
|
18
|
+
if (anchor == null ? void 0 : anchor.current) {
|
|
19
|
+
const bounds = anchor.current.getBoundingClientRect();
|
|
20
|
+
style = {
|
|
21
|
+
position: "fixed",
|
|
22
|
+
margin: 0,
|
|
23
|
+
top: bounds.bottom + (verticalOffset ?? 0),
|
|
24
|
+
left: buildTopLeftCoord(bounds, width),
|
|
25
|
+
width,
|
|
26
|
+
zIndex: 1,
|
|
27
|
+
...externalStyle
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
reactExports.useEffect(() => {
|
|
31
|
+
const onClick = (event) => {
|
|
32
|
+
if (!dialogRef.current || !(event.target instanceof Node))
|
|
33
|
+
return;
|
|
34
|
+
if (!dialogRef.current.contains(event.target))
|
|
35
|
+
requestClose == null ? void 0 : requestClose();
|
|
36
|
+
};
|
|
37
|
+
const onKeyDown = (event) => {
|
|
38
|
+
if (event.key === "Escape")
|
|
39
|
+
requestClose == null ? void 0 : requestClose();
|
|
40
|
+
};
|
|
41
|
+
if (open) {
|
|
42
|
+
document.addEventListener("mousedown", onClick);
|
|
43
|
+
document.addEventListener("keydown", onKeyDown);
|
|
44
|
+
return () => {
|
|
45
|
+
document.removeEventListener("mousedown", onClick);
|
|
46
|
+
document.removeEventListener("keydown", onKeyDown);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return () => {
|
|
50
|
+
};
|
|
51
|
+
}, [open, requestClose]);
|
|
52
|
+
reactExports.useEffect(() => {
|
|
53
|
+
const onResize = () => setRecalculateDimensionsCount((count) => count + 1);
|
|
54
|
+
window.addEventListener("resize", onResize);
|
|
55
|
+
return () => {
|
|
56
|
+
window.removeEventListener("resize", onResize);
|
|
57
|
+
};
|
|
58
|
+
}, []);
|
|
59
|
+
return open && /* @__PURE__ */ jsxRuntimeExports.jsx("dialog", { ref: dialogRef, style, className, "data-testid": dataTestId, open: true, children });
|
|
60
|
+
};
|
|
61
|
+
const buildTopLeftCoord = (bounds, width) => {
|
|
62
|
+
const leftAlignCoord = buildTopLeftCoordWithAlignment(bounds, width, "left");
|
|
63
|
+
if (leftAlignCoord.inBounds)
|
|
64
|
+
return leftAlignCoord.value;
|
|
65
|
+
const rightAlignCoord = buildTopLeftCoordWithAlignment(
|
|
66
|
+
bounds,
|
|
67
|
+
width,
|
|
68
|
+
"right"
|
|
69
|
+
);
|
|
70
|
+
if (rightAlignCoord.inBounds)
|
|
71
|
+
return rightAlignCoord.value;
|
|
72
|
+
return leftAlignCoord.value;
|
|
73
|
+
};
|
|
74
|
+
const buildTopLeftCoordWithAlignment = (bounds, width, alignment) => {
|
|
75
|
+
const maxLeft = document.documentElement.clientWidth;
|
|
76
|
+
if (alignment === "left") {
|
|
77
|
+
const value = bounds.left;
|
|
78
|
+
return {
|
|
79
|
+
value,
|
|
80
|
+
inBounds: value + width <= maxLeft
|
|
81
|
+
};
|
|
82
|
+
} else {
|
|
83
|
+
const value = bounds.right - width;
|
|
84
|
+
return {
|
|
85
|
+
value,
|
|
86
|
+
inBounds: bounds.right - width >= 0
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
const SettingsToolbarButton = () => {
|
|
91
|
+
const hostingRef = reactExports.useRef(null);
|
|
92
|
+
const [open, setOpen] = reactExports.useState(false);
|
|
93
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
94
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
95
|
+
ToolbarButton,
|
|
96
|
+
{
|
|
97
|
+
ref: hostingRef,
|
|
98
|
+
icon: "settings-gear",
|
|
99
|
+
title: "Settings",
|
|
100
|
+
onClick: () => setOpen((current) => !current)
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104
|
+
Dialog,
|
|
105
|
+
{
|
|
106
|
+
style: {
|
|
107
|
+
backgroundColor: "var(--vscode-sideBar-background)",
|
|
108
|
+
padding: "4px 8px"
|
|
109
|
+
},
|
|
110
|
+
open,
|
|
111
|
+
width: 200,
|
|
112
|
+
verticalOffset: 8,
|
|
113
|
+
requestClose: () => setOpen(false),
|
|
114
|
+
anchor: hostingRef,
|
|
115
|
+
dataTestId: "settings-toolbar-dialog",
|
|
116
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(DefaultSettingsView, {})
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
] });
|
|
120
|
+
};
|
|
121
|
+
const WorkbenchLoader = () => {
|
|
122
|
+
const [isServer, setIsServer] = reactExports.useState(false);
|
|
123
|
+
const [traceURLs, setTraceURLs] = reactExports.useState([]);
|
|
124
|
+
const [uploadedTraceNames, setUploadedTraceNames] = reactExports.useState([]);
|
|
125
|
+
const [model, setModel] = reactExports.useState(emptyModel);
|
|
126
|
+
const [progress, setProgress] = reactExports.useState({ done: 0, total: 0 });
|
|
127
|
+
const [dragOver, setDragOver] = reactExports.useState(false);
|
|
128
|
+
const [processingErrorMessage, setProcessingErrorMessage] = reactExports.useState(null);
|
|
129
|
+
const [fileForLocalModeError, setFileForLocalModeError] = reactExports.useState(null);
|
|
130
|
+
const processTraceFiles = reactExports.useCallback((files) => {
|
|
131
|
+
const blobUrls = [];
|
|
132
|
+
const fileNames = [];
|
|
133
|
+
const url = new URL(window.location.href);
|
|
134
|
+
for (let i = 0; i < files.length; i++) {
|
|
135
|
+
const file = files.item(i);
|
|
136
|
+
if (!file)
|
|
137
|
+
continue;
|
|
138
|
+
const blobTraceURL = URL.createObjectURL(file);
|
|
139
|
+
blobUrls.push(blobTraceURL);
|
|
140
|
+
fileNames.push(file.name);
|
|
141
|
+
url.searchParams.append("trace", blobTraceURL);
|
|
142
|
+
url.searchParams.append("traceFileName", file.name);
|
|
143
|
+
}
|
|
144
|
+
const href = url.toString();
|
|
145
|
+
window.history.pushState({}, "", href);
|
|
146
|
+
setTraceURLs(blobUrls);
|
|
147
|
+
setUploadedTraceNames(fileNames);
|
|
148
|
+
setDragOver(false);
|
|
149
|
+
setProcessingErrorMessage(null);
|
|
150
|
+
}, []);
|
|
151
|
+
reactExports.useEffect(() => {
|
|
152
|
+
const listener = async (e) => {
|
|
153
|
+
var _a;
|
|
154
|
+
if (!((_a = e.clipboardData) == null ? void 0 : _a.files.length))
|
|
155
|
+
return;
|
|
156
|
+
for (const file of e.clipboardData.files) {
|
|
157
|
+
if (file.type !== "application/zip")
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
e.preventDefault();
|
|
161
|
+
processTraceFiles(e.clipboardData.files);
|
|
162
|
+
};
|
|
163
|
+
document.addEventListener("paste", listener);
|
|
164
|
+
return () => document.removeEventListener("paste", listener);
|
|
165
|
+
});
|
|
166
|
+
const handleDropEvent = reactExports.useCallback((event) => {
|
|
167
|
+
event.preventDefault();
|
|
168
|
+
processTraceFiles(event.dataTransfer.files);
|
|
169
|
+
}, [processTraceFiles]);
|
|
170
|
+
const handleFileInputChange = reactExports.useCallback((event) => {
|
|
171
|
+
event.preventDefault();
|
|
172
|
+
if (!event.target.files)
|
|
173
|
+
return;
|
|
174
|
+
processTraceFiles(event.target.files);
|
|
175
|
+
}, [processTraceFiles]);
|
|
176
|
+
reactExports.useEffect(() => {
|
|
177
|
+
const params = new URL(window.location.href).searchParams;
|
|
178
|
+
const newTraceURLs = params.getAll("trace");
|
|
179
|
+
setIsServer(params.has("isServer"));
|
|
180
|
+
for (const url of newTraceURLs) {
|
|
181
|
+
if (url.startsWith("file:")) {
|
|
182
|
+
setFileForLocalModeError(url || null);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (params.has("isServer")) {
|
|
187
|
+
const guid = new URLSearchParams(window.location.search).get("ws");
|
|
188
|
+
const wsURL = new URL(`../${guid}`, window.location.toString());
|
|
189
|
+
wsURL.protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
|
|
190
|
+
const testServerConnection = new TestServerConnection(new WebSocketTestServerTransport(wsURL));
|
|
191
|
+
testServerConnection.onLoadTraceRequested(async (params2) => {
|
|
192
|
+
setTraceURLs(params2.traceUrl ? [params2.traceUrl] : []);
|
|
193
|
+
setDragOver(false);
|
|
194
|
+
setProcessingErrorMessage(null);
|
|
195
|
+
});
|
|
196
|
+
testServerConnection.initialize({}).catch(() => {
|
|
197
|
+
});
|
|
198
|
+
} else if (!newTraceURLs.some((url) => url.startsWith("blob:"))) {
|
|
199
|
+
setTraceURLs(newTraceURLs);
|
|
200
|
+
}
|
|
201
|
+
}, []);
|
|
202
|
+
reactExports.useEffect(() => {
|
|
203
|
+
(async () => {
|
|
204
|
+
if (traceURLs.length) {
|
|
205
|
+
const swListener = (event) => {
|
|
206
|
+
if (event.data.method === "progress")
|
|
207
|
+
setProgress(event.data.params);
|
|
208
|
+
};
|
|
209
|
+
navigator.serviceWorker.addEventListener("message", swListener);
|
|
210
|
+
setProgress({ done: 0, total: 1 });
|
|
211
|
+
const contextEntries = [];
|
|
212
|
+
for (let i = 0; i < traceURLs.length; i++) {
|
|
213
|
+
const url = traceURLs[i];
|
|
214
|
+
const params = new URLSearchParams();
|
|
215
|
+
params.set("trace", url);
|
|
216
|
+
if (uploadedTraceNames.length)
|
|
217
|
+
params.set("traceFileName", uploadedTraceNames[i]);
|
|
218
|
+
params.set("limit", String(traceURLs.length));
|
|
219
|
+
const response = await fetch(`contexts?${params.toString()}`);
|
|
220
|
+
if (!response.ok) {
|
|
221
|
+
if (!isServer)
|
|
222
|
+
setTraceURLs([]);
|
|
223
|
+
setProcessingErrorMessage((await response.json()).error);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
contextEntries.push(...await response.json());
|
|
227
|
+
}
|
|
228
|
+
navigator.serviceWorker.removeEventListener("message", swListener);
|
|
229
|
+
const model2 = new MultiTraceModel(contextEntries);
|
|
230
|
+
setProgress({ done: 0, total: 0 });
|
|
231
|
+
setModel(model2);
|
|
232
|
+
} else {
|
|
233
|
+
setModel(emptyModel);
|
|
234
|
+
}
|
|
235
|
+
})();
|
|
236
|
+
}, [isServer, traceURLs, uploadedTraceNames]);
|
|
237
|
+
const showFileUploadDropArea = !!(!isServer && !dragOver && !fileForLocalModeError && (!traceURLs.length || processingErrorMessage));
|
|
238
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "vbox workbench-loader", onDragOver: (event) => {
|
|
239
|
+
event.preventDefault();
|
|
240
|
+
setDragOver(true);
|
|
241
|
+
}, children: [
|
|
242
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "hbox header", ...showFileUploadDropArea ? { inert: "true" } : {}, children: [
|
|
243
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "logo", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: "playwright-logo.svg", alt: "Playwright logo" }) }),
|
|
244
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "product", children: "Playwright" }),
|
|
245
|
+
model.title && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "title", children: model.title }),
|
|
246
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "spacer" }),
|
|
247
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SettingsToolbarButton, {})
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "progress", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "inner-progress", style: { width: progress.total ? 100 * progress.done / progress.total + "%" : 0 } }) }),
|
|
250
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(LLMProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Workbench, { model, inert: showFileUploadDropArea }) }),
|
|
251
|
+
fileForLocalModeError && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "drop-target", children: [
|
|
252
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Trace Viewer uses Service Workers to show traces. To view trace:" }),
|
|
253
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { paddingTop: 20 }, children: [
|
|
254
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
255
|
+
"1. Click ",
|
|
256
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: fileForLocalModeError, children: "here" }),
|
|
257
|
+
" to put your trace into the download shelf"
|
|
258
|
+
] }),
|
|
259
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
260
|
+
"2. Go to ",
|
|
261
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://trace.playwright.dev", children: "trace.playwright.dev" })
|
|
262
|
+
] }),
|
|
263
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "3. Drop the trace from the download shelf into the page" })
|
|
264
|
+
] })
|
|
265
|
+
] }),
|
|
266
|
+
showFileUploadDropArea && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "drop-target", children: [
|
|
267
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "processing-error", role: "alert", children: processingErrorMessage }),
|
|
268
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "title", role: "heading", "aria-level": 1, children: "Drop Playwright Trace to load" }),
|
|
269
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "or" }),
|
|
270
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => {
|
|
271
|
+
const input = document.createElement("input");
|
|
272
|
+
input.type = "file";
|
|
273
|
+
input.multiple = true;
|
|
274
|
+
input.click();
|
|
275
|
+
input.addEventListener("change", (e) => handleFileInputChange(e));
|
|
276
|
+
}, type: "button", children: "Select file(s)" }),
|
|
277
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { maxWidth: 400 }, children: "Playwright Trace Viewer is a Progressive Web App, it does not send your trace anywhere, it opens it locally." })
|
|
278
|
+
] }),
|
|
279
|
+
isServer && !traceURLs.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "drop-target", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "title", children: "Select test to see the trace" }) }),
|
|
280
|
+
dragOver && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
281
|
+
"div",
|
|
282
|
+
{
|
|
283
|
+
className: "drop-target",
|
|
284
|
+
onDragLeave: () => {
|
|
285
|
+
setDragOver(false);
|
|
286
|
+
},
|
|
287
|
+
onDrop: (event) => handleDropEvent(event),
|
|
288
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "title", children: "Release to analyse the Playwright Trace" })
|
|
289
|
+
}
|
|
290
|
+
)
|
|
291
|
+
] });
|
|
292
|
+
};
|
|
293
|
+
const emptyModel = new MultiTraceModel([]);
|
|
294
|
+
(async () => {
|
|
295
|
+
applyTheme();
|
|
296
|
+
if (window.location.protocol !== "file:") {
|
|
297
|
+
if (window.location.href.includes("isUnderTest=true"))
|
|
298
|
+
await new Promise((f) => setTimeout(f, 1e3));
|
|
299
|
+
if (!navigator.serviceWorker)
|
|
300
|
+
throw new Error(`Service workers are not supported.
|
|
301
|
+
Make sure to serve the Trace Viewer (${window.location}) via HTTPS or localhost.`);
|
|
302
|
+
navigator.serviceWorker.register("sw.bundle.js");
|
|
303
|
+
if (!navigator.serviceWorker.controller) {
|
|
304
|
+
await new Promise((f) => {
|
|
305
|
+
navigator.serviceWorker.oncontrollerchange = () => f();
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
setInterval(function() {
|
|
309
|
+
fetch("ping");
|
|
310
|
+
}, 1e4);
|
|
311
|
+
}
|
|
312
|
+
clientExports.createRoot(document.querySelector("#root")).render(/* @__PURE__ */ jsxRuntimeExports.jsx(WorkbenchLoader, {}));
|
|
313
|
+
})();
|
|
314
|
+
//# sourceMappingURL=index.DilotR1h.js.map
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
.drop-target {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
flex: auto;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
background-color: var(--vscode-editor-background);
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
z-index: 100;
|
|
30
|
+
line-height: 24px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body .drop-target {
|
|
34
|
+
background: rgba(255, 255, 255, 0.8);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body.dark-mode .drop-target {
|
|
38
|
+
background: rgba(0, 0, 0, 0.8);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.drop-target .title {
|
|
42
|
+
font-size: 24px;
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
margin-bottom: 30px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.drop-target .processing-error {
|
|
48
|
+
font-size: 24px;
|
|
49
|
+
color: #e74c3c;
|
|
50
|
+
font-weight: bold;
|
|
51
|
+
text-align: center;
|
|
52
|
+
margin: 30px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.drop-target input {
|
|
56
|
+
margin-top: 50px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.drop-target button {
|
|
60
|
+
color: rgb(255, 255, 255);
|
|
61
|
+
background-color: rgb(0, 122, 204);
|
|
62
|
+
padding: 8px 12px;
|
|
63
|
+
border: none;
|
|
64
|
+
margin: 30px 0;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.progress {
|
|
69
|
+
flex: none;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 3px;
|
|
72
|
+
margin-top: -3px;
|
|
73
|
+
z-index: 10;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.inner-progress {
|
|
77
|
+
background-color: var(--vscode-progressBar-background);
|
|
78
|
+
height: 100%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.header {
|
|
82
|
+
display: flex;
|
|
83
|
+
background-color: #000;
|
|
84
|
+
flex: none;
|
|
85
|
+
flex-basis: 48px;
|
|
86
|
+
line-height: 48px;
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
color: #cccccc;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.workbench-loader {
|
|
92
|
+
contain: size;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.workbench-loader .header .toolbar-button {
|
|
96
|
+
margin: 12px;
|
|
97
|
+
padding: 8px 4px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.workbench-loader .logo {
|
|
101
|
+
margin-left: 16px;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.workbench-loader .logo img {
|
|
107
|
+
height: 32px;
|
|
108
|
+
width: 32px;
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
flex: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.workbench-loader .product {
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
margin-left: 16px;
|
|
116
|
+
flex: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.workbench-loader .header .title {
|
|
120
|
+
margin-left: 16px;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
text-wrap: nowrap;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Limit to a reasonable minimum viewport */
|
|
127
|
+
html, body {
|
|
128
|
+
min-width: 550px;
|
|
129
|
+
min-height: 450px;
|
|
130
|
+
overflow: auto;
|
|
131
|
+
}
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
<link rel="icon" href="./playwright-logo.svg" type="image/svg+xml">
|
|
8
8
|
<link rel="manifest" href="./manifest.webmanifest">
|
|
9
9
|
<title>Playwright Trace Viewer</title>
|
|
10
|
-
<script type="module" crossorigin src="./index.
|
|
11
|
-
<link rel="modulepreload" crossorigin href="./assets/inspectorTab-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="./assets/workbench-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="./assets/defaultSettingsView-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="./inspectorTab.
|
|
15
|
-
<link rel="stylesheet" crossorigin href="./workbench.
|
|
16
|
-
<link rel="stylesheet" crossorigin href="./defaultSettingsView.
|
|
17
|
-
<link rel="stylesheet" crossorigin href="./index.
|
|
10
|
+
<script type="module" crossorigin src="./index.DilotR1h.js"></script>
|
|
11
|
+
<link rel="modulepreload" crossorigin href="./assets/inspectorTab-CwgfffWb.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="./assets/workbench-CWZselvp.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="./assets/defaultSettingsView-CBiB4avC.js">
|
|
14
|
+
<link rel="stylesheet" crossorigin href="./inspectorTab.DnGm18kV.css">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="./workbench.xUZSA8PY.css">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="./defaultSettingsView.Dp3b_92q.css">
|
|
17
|
+
<link rel="stylesheet" crossorigin href="./index.QewjJ85u.css">
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
20
20
|
<div id="root"></div>
|