@shopify/cli-hydrogen 6.0.2 → 7.0.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/dist/commands/hydrogen/build.js +40 -78
- package/dist/commands/hydrogen/codegen.js +8 -3
- package/dist/commands/hydrogen/deploy.js +173 -37
- package/dist/commands/hydrogen/deploy.test.js +192 -20
- package/dist/commands/hydrogen/dev.js +56 -31
- package/dist/commands/hydrogen/init.js +1 -1
- package/dist/commands/hydrogen/init.test.js +155 -53
- package/dist/commands/hydrogen/link.js +5 -21
- package/dist/commands/hydrogen/link.test.js +10 -10
- package/dist/commands/hydrogen/preview.js +22 -11
- package/dist/commands/hydrogen/setup.js +0 -4
- package/dist/commands/hydrogen/setup.test.js +0 -1
- package/dist/commands/hydrogen/shortcut.js +1 -0
- package/dist/commands/hydrogen/upgrade.js +720 -0
- package/dist/commands/hydrogen/upgrade.test.js +786 -0
- package/dist/generator-templates/starter/.graphqlrc.yml +12 -1
- package/dist/generator-templates/starter/CHANGELOG.md +126 -0
- package/dist/generator-templates/starter/README.md +23 -0
- package/dist/generator-templates/starter/app/components/Cart.tsx +1 -1
- package/dist/generator-templates/starter/app/components/Footer.tsx +3 -1
- package/dist/generator-templates/starter/app/components/Header.tsx +5 -1
- package/dist/generator-templates/starter/app/components/Layout.tsx +14 -11
- package/dist/generator-templates/starter/app/components/Search.tsx +1 -1
- package/dist/generator-templates/starter/app/graphql/customer-account/CustomerAddressMutations.ts +61 -0
- package/dist/generator-templates/starter/app/graphql/customer-account/CustomerDetailsQuery.ts +39 -0
- package/dist/generator-templates/starter/app/graphql/customer-account/CustomerOrderQuery.ts +87 -0
- package/dist/generator-templates/starter/app/graphql/customer-account/CustomerOrdersQuery.ts +58 -0
- package/dist/generator-templates/starter/app/graphql/customer-account/CustomerUpdateMutation.ts +24 -0
- package/dist/generator-templates/starter/app/lib/fragments.ts +102 -0
- package/dist/generator-templates/starter/app/lib/session.ts +67 -0
- package/dist/generator-templates/starter/app/root.tsx +11 -45
- package/dist/generator-templates/starter/app/routes/[robots.txt].tsx +0 -27
- package/dist/generator-templates/starter/app/routes/account.$.tsx +8 -4
- package/dist/generator-templates/starter/app/routes/account._index.tsx +5 -0
- package/dist/generator-templates/starter/app/routes/account.addresses.tsx +215 -206
- package/dist/generator-templates/starter/app/routes/account.orders.$id.tsx +56 -163
- package/dist/generator-templates/starter/app/routes/account.orders._index.tsx +32 -109
- package/dist/generator-templates/starter/app/routes/account.profile.tsx +40 -180
- package/dist/generator-templates/starter/app/routes/account.tsx +20 -135
- package/dist/generator-templates/starter/app/routes/account_.authorize.tsx +5 -0
- package/dist/generator-templates/starter/app/routes/account_.login.tsx +3 -140
- package/dist/generator-templates/starter/app/routes/account_.logout.tsx +5 -24
- package/dist/generator-templates/starter/app/routes/cart.tsx +7 -5
- package/dist/generator-templates/starter/app/routes/collections.$handle.tsx +1 -1
- package/dist/generator-templates/starter/app/routes/products.$handle.tsx +2 -2
- package/dist/generator-templates/starter/app/routes/search.tsx +1 -1
- package/dist/generator-templates/starter/customer-accountapi.generated.d.ts +506 -0
- package/dist/generator-templates/starter/package.json +11 -10
- package/dist/generator-templates/starter/remix.config.js +4 -0
- package/dist/generator-templates/starter/remix.env.d.ts +6 -11
- package/dist/generator-templates/starter/server.ts +24 -167
- package/dist/generator-templates/starter/storefrontapi.generated.d.ts +104 -881
- package/dist/hooks/init.js +4 -4
- package/dist/lib/auth.js +5 -10
- package/dist/lib/build.js +6 -1
- package/dist/lib/bundle/analyzer.js +36 -26
- package/dist/lib/check-lockfile.js +1 -0
- package/dist/lib/codegen.js +59 -18
- package/dist/lib/defer.js +12 -0
- package/dist/lib/file.js +52 -3
- package/dist/lib/flags.js +27 -9
- package/dist/lib/get-oxygen-deployment-data.test.js +4 -2
- package/dist/lib/graphql/admin/client.test.js +2 -2
- package/dist/lib/graphql/admin/get-oxygen-data.js +1 -0
- package/dist/lib/log.js +32 -14
- package/dist/lib/mini-oxygen/assets.js +118 -0
- package/dist/lib/mini-oxygen/common.js +2 -1
- package/dist/lib/mini-oxygen/index.js +7 -5
- package/dist/lib/mini-oxygen/mini-oxygen.test.js +214 -0
- package/dist/lib/mini-oxygen/node.js +19 -5
- package/dist/lib/mini-oxygen/workerd-inspector-logs.js +227 -0
- package/dist/lib/mini-oxygen/workerd-inspector-proxy.js +200 -0
- package/dist/lib/mini-oxygen/workerd-inspector.js +62 -235
- package/dist/lib/mini-oxygen/workerd.js +74 -50
- package/dist/lib/missing-routes.js +6 -3
- package/dist/lib/onboarding/common.js +40 -9
- package/dist/lib/onboarding/local.js +19 -11
- package/dist/lib/onboarding/remote.js +48 -28
- package/dist/lib/render-errors.js +2 -0
- package/dist/lib/request-events.js +65 -31
- package/dist/lib/setups/css/assets.js +1 -46
- package/dist/lib/setups/css/css-modules.js +3 -2
- package/dist/lib/setups/css/postcss.js +4 -2
- package/dist/lib/setups/css/tailwind.js +4 -2
- package/dist/lib/setups/css/vanilla-extract.js +3 -2
- package/dist/lib/setups/i18n/replacers.test.js +56 -38
- package/dist/lib/shell.js +1 -1
- package/dist/lib/template-diff.js +89 -0
- package/dist/lib/template-downloader.js +3 -2
- package/dist/lib/transpile/project.js +1 -1
- package/dist/virtual-routes/assets/debug-network.css +592 -0
- package/dist/virtual-routes/assets/favicon-dark.svg +20 -0
- package/dist/virtual-routes/components/FlameChartWrapper.jsx +8 -10
- package/dist/virtual-routes/components/IconClose.jsx +38 -0
- package/dist/virtual-routes/components/IconDiscard.jsx +44 -0
- package/dist/virtual-routes/components/RequestDetails.jsx +179 -0
- package/dist/virtual-routes/components/RequestTable.jsx +92 -0
- package/dist/virtual-routes/components/RequestWaterfall.jsx +151 -0
- package/dist/virtual-routes/lib/useDebugNetworkServer.jsx +176 -0
- package/dist/virtual-routes/routes/subrequest-profiler.jsx +243 -0
- package/oclif.manifest.json +134 -59
- package/package.json +18 -26
- package/dist/generator-templates/starter/app/routes/account_.activate.$id.$activationToken.tsx +0 -161
- package/dist/generator-templates/starter/app/routes/account_.recover.tsx +0 -129
- package/dist/generator-templates/starter/app/routes/account_.register.tsx +0 -207
- package/dist/generator-templates/starter/app/routes/account_.reset.$id.$resetToken.tsx +0 -136
- package/dist/virtual-routes/routes/debug-network.jsx +0 -289
- /package/dist/generator-templates/starter/app/{utils.ts → lib/variants.ts} +0 -0
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--background-color: #f1f1f1;
|
|
3
|
+
--primary-color: #333333;
|
|
4
|
+
--secondary-color: #e3e3e3;
|
|
5
|
+
--shadow-color: #999;
|
|
6
|
+
--dark-border-color: #666;
|
|
7
|
+
--button-state-color: #fafafa;
|
|
8
|
+
--secondary-text-color: #616161;
|
|
9
|
+
--highlight-color: #f5f5f5;
|
|
10
|
+
--hover-highlight-color: rgba(230, 238, 254, 0.5);
|
|
11
|
+
--active-highlight-color: #e6eefe;
|
|
12
|
+
--button-border: 1px solid rgba(51, 51, 51, 0.75);
|
|
13
|
+
|
|
14
|
+
--text-large: 0.813rem;
|
|
15
|
+
--text-normal: 0.688rem;
|
|
16
|
+
--font-bold: 650;
|
|
17
|
+
|
|
18
|
+
--box-shadow: 0 0.125rem 0.0625rem #0000000d, 0 0 0.0625rem #42474c73;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
color: var(--primary-color);
|
|
23
|
+
font-size: var(--text-normal);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
input[type='checkbox'] {
|
|
27
|
+
display: grid;
|
|
28
|
+
place-content: center;
|
|
29
|
+
|
|
30
|
+
accent-color: var(--primary-color);
|
|
31
|
+
|
|
32
|
+
width: 1.15em;
|
|
33
|
+
height: 1.15em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text-normal {
|
|
37
|
+
font-size: var(--text-normal);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.text-large {
|
|
41
|
+
font-size: var(--text-large);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.bold {
|
|
45
|
+
font-weight: var(--font-bold);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.bold-1 {
|
|
49
|
+
font-weight: 550;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.flex-row {
|
|
53
|
+
display: flex;
|
|
54
|
+
gap: 0.75rem;
|
|
55
|
+
align-items: center;
|
|
56
|
+
flex-direction: row;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.gap-small {
|
|
60
|
+
gap: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.gap-tiny {
|
|
64
|
+
gap: 0.25rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.justify-between {
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.form-control {
|
|
73
|
+
display: grid;
|
|
74
|
+
grid-template-columns: 1rem auto;
|
|
75
|
+
gap: 0.7rem;
|
|
76
|
+
align-items: center;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.form-control > * {
|
|
80
|
+
opacity: 75%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.form-control > input:checked,
|
|
84
|
+
.form-control > input:checked + label {
|
|
85
|
+
opacity: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
header {
|
|
89
|
+
height: 3.5rem;
|
|
90
|
+
box-shadow: var(--box-shadow);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
header .logo {
|
|
94
|
+
width: 16.7px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
header h1 {
|
|
98
|
+
font-size: var(--text-large);
|
|
99
|
+
font-weight: normal;
|
|
100
|
+
padding-left: 0.75rem;
|
|
101
|
+
color: #000;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.pill {
|
|
105
|
+
background-color: #f4f4f4;
|
|
106
|
+
border-radius: 4rem;
|
|
107
|
+
padding: 0.2rem 0.8rem;
|
|
108
|
+
font-size: 0.75rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.word-break-all {
|
|
112
|
+
word-break: break-all;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Button */
|
|
116
|
+
button,
|
|
117
|
+
[role='button'] {
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
button,
|
|
122
|
+
[type='button'],
|
|
123
|
+
[type='reset'],
|
|
124
|
+
[type='submit'] {
|
|
125
|
+
-webkit-appearance: button;
|
|
126
|
+
appearance: button;
|
|
127
|
+
border-radius: 0.375rem;
|
|
128
|
+
border: var(--button-border);
|
|
129
|
+
background: #fff;
|
|
130
|
+
padding: 0.375rem 0.75rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
button.plain {
|
|
134
|
+
background-color: transparent;
|
|
135
|
+
border: none;
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
button.icon {
|
|
140
|
+
padding: 0.25rem;
|
|
141
|
+
line-height: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
button:hover {
|
|
145
|
+
background-color: #fafafa;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
button:focus {
|
|
149
|
+
outline: 2px solid #005bd3;
|
|
150
|
+
outline-offset: 1px;
|
|
151
|
+
background-color: #fff;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
button:active {
|
|
155
|
+
box-shadow: 0px 2px 0px 0px #c1c2c2 inset;
|
|
156
|
+
background-color: #ccc;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
button.primary {
|
|
160
|
+
background-color: #0554f2;
|
|
161
|
+
color: #fff;
|
|
162
|
+
border: none;
|
|
163
|
+
font-weight: 600;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
button:hover.primary {
|
|
167
|
+
background-color: #0c54e6;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
button:focus.primary {
|
|
171
|
+
background-color: #0e50d4;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
button:active.primary {
|
|
175
|
+
box-shadow: 0px 3px 4px 0px #0446cb inset;
|
|
176
|
+
background-color: #0e50d4;
|
|
177
|
+
color: #fff;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
#buttonClear {
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
padding-left: 0.5rem;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
#buttonClear span {
|
|
187
|
+
padding-left: 2px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
#server-network-timing {
|
|
191
|
+
display: grid;
|
|
192
|
+
grid-template-rows: 3.5rem auto;
|
|
193
|
+
min-height: 100vh;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
#server-network-timing.withNotification {
|
|
197
|
+
grid-template-rows: 3rem 3.5rem auto;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
#main.empty {
|
|
201
|
+
display: grid;
|
|
202
|
+
grid-template-rows: 4rem auto;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
#main.empty #request-info {
|
|
206
|
+
display: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.pad {
|
|
210
|
+
padding-left: 1rem;
|
|
211
|
+
padding-right: 1rem;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.link-margin-top {
|
|
215
|
+
margin-top: 0.5rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
#options-and-legend {
|
|
219
|
+
height: 4rem;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
#options-and-legend p {
|
|
223
|
+
font-size: var(--text-normal);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.legend {
|
|
227
|
+
background-color: var(--highlight-color);
|
|
228
|
+
border-radius: 0.125rem;
|
|
229
|
+
padding: 0.25rem 0.5rem;
|
|
230
|
+
gap: 0.75rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.swatch {
|
|
234
|
+
width: 0.5rem;
|
|
235
|
+
height: 0.5rem;
|
|
236
|
+
border-radius: 0.125rem;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.overflow-hidden {
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
#request-waterfall {
|
|
244
|
+
border-top: 1px solid var(--secondary-color);
|
|
245
|
+
border-bottom: 1px solid var(--secondary-color);
|
|
246
|
+
overflow: hidden;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
#request-waterfall .request-waterfall-chart {
|
|
250
|
+
height: calc(60vh - 3.85rem);
|
|
251
|
+
width: calc(99.8vw - 1.75rem);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
#server-network-timing.withNotification
|
|
255
|
+
#request-waterfall
|
|
256
|
+
.request-waterfall-chart {
|
|
257
|
+
height: calc(60vh - 5.35rem);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
#request-info {
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: stretch;
|
|
263
|
+
flex-direction: row;
|
|
264
|
+
|
|
265
|
+
height: calc(40vh - 3.85rem);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
#server-network-timing.withNotification #request-info {
|
|
269
|
+
height: calc(40vh - 5.35rem);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
#request-info > div {
|
|
273
|
+
flex: 1;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
#request-table__content .grid-row:nth-child(odd) {
|
|
277
|
+
background-color: var(--highlight-color);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
#request-table {
|
|
281
|
+
height: 100%;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
#request-table > div {
|
|
285
|
+
padding: 0;
|
|
286
|
+
font-size: var(--text-large);
|
|
287
|
+
display: grid;
|
|
288
|
+
grid-template-rows: 2.75rem auto 2rem;
|
|
289
|
+
height: 100%;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
#request-table .grid-row {
|
|
293
|
+
display: grid;
|
|
294
|
+
grid-template-columns: 1fr 80px 80px;
|
|
295
|
+
border-bottom: 1px solid var(--secondary-color);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
#request-table__content .grid-row {
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
#request-table__content .grid-row:hover {
|
|
303
|
+
background-color: var(--hover-highlight-color);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
#request-table .grid-cell {
|
|
307
|
+
text-overflow: ellipsis;
|
|
308
|
+
overflow: hidden;
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
place-self: stretch;
|
|
311
|
+
align-self: center;
|
|
312
|
+
padding: 0.5rem 0;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
#request-table .grid-cell:first-child {
|
|
316
|
+
padding-left: 1rem;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
#request-table .grid-cell:last-child {
|
|
320
|
+
padding-right: 0.75rem;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
#request-table__header.grid-row {
|
|
324
|
+
font-weight: 550;
|
|
325
|
+
font-size: var(--text-normal);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
#request-table__header.grid-cell {
|
|
329
|
+
border-top: none;
|
|
330
|
+
padding-top: 0.75rem;
|
|
331
|
+
padding-bottom: 0.75rem;
|
|
332
|
+
opacity: 75%;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
#request-table__content {
|
|
336
|
+
overflow: auto;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
#request-table__content .grid-row.active {
|
|
340
|
+
background-color: var(--active-highlight-color);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
#request-table__footer {
|
|
344
|
+
border-top: 1px solid var(--secondary-color);
|
|
345
|
+
padding: 0.5rem 0;
|
|
346
|
+
|
|
347
|
+
display: flex;
|
|
348
|
+
align-items: center;
|
|
349
|
+
justify-content: center;
|
|
350
|
+
|
|
351
|
+
font-size: var(--text-normal);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** Tab panels */
|
|
355
|
+
|
|
356
|
+
#close-request-detail {
|
|
357
|
+
padding-left: 3px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
#request-detail-header {
|
|
361
|
+
display: grid;
|
|
362
|
+
grid-template-columns: auto min-content;
|
|
363
|
+
align-items: center;
|
|
364
|
+
padding-left: calc(1rem - 2px);
|
|
365
|
+
padding-right: 1rem;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
#tabButtons {
|
|
369
|
+
overflow-x: scroll;
|
|
370
|
+
padding: 2px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
#tabButtons::-webkit-scrollbar {
|
|
374
|
+
display: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
#tab-buttons-wrapper {
|
|
378
|
+
position: relative;
|
|
379
|
+
width: 100%;
|
|
380
|
+
overflow-x: scroll;
|
|
381
|
+
}
|
|
382
|
+
#tab-buttons-wrapper .fadCover {
|
|
383
|
+
position: absolute;
|
|
384
|
+
top: 0;
|
|
385
|
+
pointer-events: none;
|
|
386
|
+
width: 100%;
|
|
387
|
+
height: 100%;
|
|
388
|
+
|
|
389
|
+
--gradient-color-start: rgba(255, 255, 255, 1);
|
|
390
|
+
--gradient-color-end: transparent;
|
|
391
|
+
--background-color: transparent;
|
|
392
|
+
|
|
393
|
+
background-image: linear-gradient(
|
|
394
|
+
to right,
|
|
395
|
+
var(--background-color),
|
|
396
|
+
var(--background-color)
|
|
397
|
+
),
|
|
398
|
+
linear-gradient(to right, var(--background-color), var(--background-color)),
|
|
399
|
+
linear-gradient(
|
|
400
|
+
to right,
|
|
401
|
+
var(--gradient-color-start),
|
|
402
|
+
var(--gradient-color-end)
|
|
403
|
+
),
|
|
404
|
+
linear-gradient(
|
|
405
|
+
to left,
|
|
406
|
+
var(--gradient-color-start),
|
|
407
|
+
var(--gradient-color-end)
|
|
408
|
+
);
|
|
409
|
+
background-position: left center, right center, left center, right center;
|
|
410
|
+
background-repeat: no-repeat;
|
|
411
|
+
background-color: var(--background-color);
|
|
412
|
+
background-size: 20px 100%, 20px 100%, 0px 100%, 0px 100%;
|
|
413
|
+
background-attachment: local, local, scroll, scroll;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
#tab-buttons-wrapper .fadCover.fadeLeft {
|
|
417
|
+
background-size: 20px 100%, 20px 100%, 40px 100%, 0px 100%;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
#tab-buttons-wrapper .fadCover.fadeRight {
|
|
421
|
+
background-size: 20px 100%, 20px 100%, 0px 100%, 40px 100%;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
#tab-buttons-wrapper .fadCover.fadeLeftRight {
|
|
425
|
+
background-size: 20px 100%, 20px 100%, 40px 100%, 40px 100%;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.tabPanels .tabPanel {
|
|
429
|
+
display: none;
|
|
430
|
+
|
|
431
|
+
overflow: auto;
|
|
432
|
+
padding-bottom: 0.75rem;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.tabPanels > .tabPanel.active {
|
|
436
|
+
display: flex;
|
|
437
|
+
gap: 0.75rem;
|
|
438
|
+
flex-direction: column;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
#request-details-panel {
|
|
442
|
+
display: none;
|
|
443
|
+
max-width: 50vw;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
#request-details-panel.active {
|
|
447
|
+
display: block;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
#request-detail {
|
|
451
|
+
display: grid;
|
|
452
|
+
grid-template-rows: 2.75rem auto;
|
|
453
|
+
height: 100%;
|
|
454
|
+
overflow: hidden;
|
|
455
|
+
border-left: 1px solid var(--secondary-color);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
#request-detail > .flex-row {
|
|
459
|
+
padding-left: 0.75rem;
|
|
460
|
+
padding-right: 1rem;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
#request-detail .tabPanels {
|
|
464
|
+
width: 100%;
|
|
465
|
+
height: 100%;
|
|
466
|
+
overflow: auto;
|
|
467
|
+
padding-left: 1rem;
|
|
468
|
+
padding-right: 1rem;
|
|
469
|
+
padding-top: 0.5rem;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
#request-detail div.tab {
|
|
473
|
+
background-color: transparent;
|
|
474
|
+
padding: 0.375rem 0.75rem;
|
|
475
|
+
border-radius: 0.25rem;
|
|
476
|
+
font-size: var(--text-normal);
|
|
477
|
+
cursor: pointer;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
#request-detail div.tab.active {
|
|
481
|
+
background-color: var(--active-highlight-color);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
#request-detail div.tab:hover {
|
|
485
|
+
background-color: var(--hover-highlight-color);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
#request-detail .tabPanels .grid-layout a {
|
|
489
|
+
text-overflow: ellipsis;
|
|
490
|
+
overflow: hidden;
|
|
491
|
+
white-space: nowrap;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
#request-detail .grid-layout {
|
|
495
|
+
display: grid;
|
|
496
|
+
gap: 0.7rem;
|
|
497
|
+
grid-template-columns: minmax(50px, 100px) auto;
|
|
498
|
+
margin-bottom: 1rem;
|
|
499
|
+
font-size: var(--text-large);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.tabPanel .gridTitle {
|
|
503
|
+
font-weight: 550;
|
|
504
|
+
opacity: 75%;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.notification {
|
|
508
|
+
display: flex;
|
|
509
|
+
align-items: center;
|
|
510
|
+
justify-content: center;
|
|
511
|
+
background-color: var(--highlight-color);
|
|
512
|
+
height: 3rem;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.notification p {
|
|
516
|
+
font-size: var(--text-normal);
|
|
517
|
+
color: var(--secondary-text-color);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
#close-notification {
|
|
521
|
+
position: absolute;
|
|
522
|
+
right: 0.5rem;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
#empty-view {
|
|
526
|
+
display: flex;
|
|
527
|
+
justify-content: center;
|
|
528
|
+
align-items: center;
|
|
529
|
+
height: 100%;
|
|
530
|
+
flex-direction: column;
|
|
531
|
+
gap: 0.5rem;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.code-json {
|
|
535
|
+
white-space: pre;
|
|
536
|
+
font-size: var(--text-normal);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.error {
|
|
540
|
+
color: #b32720;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@media (max-width: 940px) {
|
|
544
|
+
#main.empty {
|
|
545
|
+
display: grid;
|
|
546
|
+
grid-template-rows: 6.59rem auto;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
#options-and-legend {
|
|
550
|
+
flex-direction: column;
|
|
551
|
+
justify-content: flex-start;
|
|
552
|
+
gap: 1rem;
|
|
553
|
+
|
|
554
|
+
padding: 1rem;
|
|
555
|
+
height: 6.59rem;
|
|
556
|
+
width: 100vw;
|
|
557
|
+
overflow-x: scroll;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
#options-and-legend > .flex-row {
|
|
561
|
+
min-width: 453px;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
#request-waterfall .request-waterfall-chart {
|
|
565
|
+
height: calc(60vh - 5.145rem);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
#server-network-timing.withNotification
|
|
569
|
+
#request-waterfall
|
|
570
|
+
.request-waterfall-chart {
|
|
571
|
+
height: calc(60vh - 6.645rem);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
#request-info {
|
|
575
|
+
height: calc(40vh - 5.145rem);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
#server-network-timing.withNotification #request-info {
|
|
579
|
+
height: calc(40vh - 6.645rem);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
#request-table .grid-row {
|
|
583
|
+
grid-template-columns: 1fr 55px 55px;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
@media (max-width: 575px) {
|
|
588
|
+
#request-detail .tabPanel .grid-layout {
|
|
589
|
+
display: flex;
|
|
590
|
+
flex-direction: column;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none">
|
|
2
|
+
<style>
|
|
3
|
+
.stroke {
|
|
4
|
+
stroke: #5c5f62;
|
|
5
|
+
}
|
|
6
|
+
.fill {
|
|
7
|
+
fill: #5c5f62;
|
|
8
|
+
}
|
|
9
|
+
</style>
|
|
10
|
+
<path
|
|
11
|
+
class="stroke"
|
|
12
|
+
fill-rule="evenodd"
|
|
13
|
+
d="M16.1 16.04 1 8.02 6.16 5.3l5.82 3.09 4.88-2.57-5.82-3.1L16.21 0l15.1 8.02-5.17 2.72-5.5-2.91-4.88 2.57 5.5 2.92-5.16 2.72Z"
|
|
14
|
+
/>
|
|
15
|
+
<path
|
|
16
|
+
class="fill"
|
|
17
|
+
fill-rule="evenodd"
|
|
18
|
+
d="M16.1 32 1 23.98l5.16-2.72 5.82 3.08 4.88-2.57-5.82-3.08 5.17-2.73 15.1 8.02-5.17 2.72-5.5-2.92-4.88 2.58 5.5 2.92L16.1 32Z"
|
|
19
|
+
/>
|
|
20
|
+
</svg>
|
|
@@ -8,7 +8,13 @@ const FlameChartWrapper = (props) => {
|
|
|
8
8
|
const flameChart = useRef(null);
|
|
9
9
|
useResizeObserver({
|
|
10
10
|
ref: boxRef,
|
|
11
|
-
onResize: ({ width = 0, height = 0 }) =>
|
|
11
|
+
onResize: ({ width = 0, height = 0 }) => {
|
|
12
|
+
if (props.onResize) {
|
|
13
|
+
props.onResize(flameChart.current, width, height);
|
|
14
|
+
} else {
|
|
15
|
+
flameChart.current?.resize(width, height - 3);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
12
18
|
});
|
|
13
19
|
const initialize = useCallback(() => {
|
|
14
20
|
const {
|
|
@@ -110,15 +116,7 @@ const FlameChartWrapper = (props) => {
|
|
|
110
116
|
}
|
|
111
117
|
};
|
|
112
118
|
}, [props.onSelect]);
|
|
113
|
-
return /* @__PURE__ */ jsx(
|
|
114
|
-
"div",
|
|
115
|
-
{
|
|
116
|
-
style: { height: `${props.height ? props.height : 300}px` },
|
|
117
|
-
className: props.className,
|
|
118
|
-
ref: setBoxRef,
|
|
119
|
-
children: /* @__PURE__ */ jsx("canvas", { ref: setCanvasRef })
|
|
120
|
-
}
|
|
121
|
-
);
|
|
119
|
+
return /* @__PURE__ */ jsx("div", { style: { height: `100%` }, className: props.className, ref: setBoxRef, children: /* @__PURE__ */ jsx("canvas", { ref: setCanvasRef }) });
|
|
122
120
|
};
|
|
123
121
|
export {
|
|
124
122
|
FlameChartWrapper
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
function IconClose(props) {
|
|
3
|
+
return /* @__PURE__ */ jsxs(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
width: "20px",
|
|
7
|
+
height: "20px",
|
|
8
|
+
...props,
|
|
9
|
+
stroke: props.stroke || "currentColor",
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ jsx("title", { children: "Close" }),
|
|
12
|
+
/* @__PURE__ */ jsx(
|
|
13
|
+
"line",
|
|
14
|
+
{
|
|
15
|
+
x1: "4.44194",
|
|
16
|
+
y1: "4.30806",
|
|
17
|
+
x2: "15.7556",
|
|
18
|
+
y2: "15.6218",
|
|
19
|
+
strokeWidth: "1.25"
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
"line",
|
|
24
|
+
{
|
|
25
|
+
y1: "-0.625",
|
|
26
|
+
x2: "16",
|
|
27
|
+
y2: "-0.625",
|
|
28
|
+
transform: "matrix(-0.707107 0.707107 0.707107 0.707107 16 4.75)",
|
|
29
|
+
strokeWidth: "1.25"
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
IconClose
|
|
38
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
function IconDiscard(props) {
|
|
3
|
+
const fillColor = props.fill || "#333333";
|
|
4
|
+
return /* @__PURE__ */ jsxs(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "20",
|
|
9
|
+
height: "20",
|
|
10
|
+
viewBox: "0 0 20 20",
|
|
11
|
+
fill: "none",
|
|
12
|
+
...props,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ jsx("title", { children: "Clear" }),
|
|
15
|
+
/* @__PURE__ */ jsx(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: "M11.5 8.25C11.9142 8.25 12.25 8.58579 12.25 9V13.25C12.25 13.6642 11.9142 14 11.5 14C11.0858 14 10.75 13.6642 10.75 13.25V9C10.75 8.58579 11.0858 8.25 11.5 8.25Z",
|
|
19
|
+
fill: fillColor
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
d: "M9.25 9C9.25 8.58579 8.91421 8.25 8.5 8.25C8.08579 8.25 7.75 8.58579 7.75 9V13.25C7.75 13.6642 8.08579 14 8.5 14C8.91421 14 9.25 13.6642 9.25 13.25V9Z",
|
|
26
|
+
fill: fillColor
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
"path",
|
|
31
|
+
{
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
d: "M7.24994 5.25C7.24994 3.73122 8.48116 2.5 9.99994 2.5C11.5187 2.5 12.7499 3.73122 12.7499 5.25H15.75C16.1642 5.25 16.5 5.58579 16.5 6C16.5 6.41421 16.1642 6.75 15.75 6.75H14.9999L14.9998 12.2001C14.9998 13.8802 14.9997 14.7203 14.6728 15.362C14.3851 15.9265 13.9262 16.3854 13.3617 16.673C12.72 17 11.8799 17 10.1997 17H9.79999C8.11978 17 7.27968 17 6.63793 16.673C6.07343 16.3854 5.61448 15.9264 5.32687 15.3619C4.99989 14.7202 4.9999 13.8801 4.99994 12.1999L5.00005 6.75H4.25C3.83579 6.75 3.5 6.41421 3.5 6C3.5 5.58579 3.83579 5.25 4.25 5.25H7.24994ZM8.74994 5.25C8.74994 4.55964 9.30958 4 9.99994 4C10.6903 4 11.2499 4.55964 11.2499 5.25H8.74994ZM6.50007 6.75H13.4999L13.4998 12.2001C13.4998 13.0649 13.4986 13.6233 13.4639 14.0483C13.4305 14.4558 13.374 14.6068 13.3362 14.681C13.1924 14.9632 12.963 15.1927 12.6807 15.3365C12.6065 15.3743 12.4555 15.4308 12.048 15.4641C11.623 15.4988 11.0646 15.5 10.1997 15.5H9.79999C8.93513 15.5 8.37671 15.4988 7.95169 15.4641C7.54418 15.4308 7.3931 15.3743 7.31893 15.3365C7.03668 15.1927 6.80721 14.9632 6.6634 14.681C6.62561 14.6068 6.56909 14.4557 6.53581 14.0482C6.50109 13.6232 6.49994 13.0648 6.49995 12.1999L6.50007 6.75Z",
|
|
35
|
+
fill: fillColor
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
IconDiscard
|
|
44
|
+
};
|