@gxp-dev/tools 2.0.63 → 2.0.65
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/README.md +32 -31
- package/bin/gx-devtools.js +74 -54
- package/bin/lib/cli.js +23 -21
- package/bin/lib/commands/add-dependency.js +366 -325
- package/bin/lib/commands/assets.js +137 -139
- package/bin/lib/commands/build.js +169 -174
- package/bin/lib/commands/datastore.js +181 -183
- package/bin/lib/commands/dev.js +127 -131
- package/bin/lib/commands/extensions.js +147 -149
- package/bin/lib/commands/extract-config.js +73 -67
- package/bin/lib/commands/index.js +12 -12
- package/bin/lib/commands/init.js +342 -240
- package/bin/lib/commands/publish.js +69 -75
- package/bin/lib/commands/socket.js +69 -69
- package/bin/lib/commands/ssl.js +14 -14
- package/bin/lib/constants.js +10 -24
- package/bin/lib/tui/App.tsx +761 -705
- package/bin/lib/tui/components/AIPanel.tsx +191 -171
- package/bin/lib/tui/components/CommandInput.tsx +394 -343
- package/bin/lib/tui/components/GeminiPanel.tsx +175 -151
- package/bin/lib/tui/components/Header.tsx +23 -21
- package/bin/lib/tui/components/LogPanel.tsx +244 -220
- package/bin/lib/tui/components/TabBar.tsx +50 -48
- package/bin/lib/tui/components/WelcomeScreen.tsx +126 -71
- package/bin/lib/tui/index.tsx +37 -39
- package/bin/lib/tui/services/AIService.ts +518 -462
- package/bin/lib/tui/services/ExtensionService.ts +140 -129
- package/bin/lib/tui/services/GeminiService.ts +367 -337
- package/bin/lib/tui/services/ServiceManager.ts +344 -322
- package/bin/lib/tui/services/SocketService.ts +168 -168
- package/bin/lib/tui/services/ViteService.ts +88 -88
- package/bin/lib/tui/services/index.ts +47 -22
- package/bin/lib/utils/ai-scaffold.js +291 -280
- package/bin/lib/utils/extract-config.js +157 -140
- package/bin/lib/utils/files.js +82 -86
- package/bin/lib/utils/index.js +7 -7
- package/bin/lib/utils/paths.js +34 -34
- package/bin/lib/utils/prompts.js +194 -169
- package/bin/lib/utils/ssl.js +79 -81
- package/browser-extensions/README.md +0 -1
- package/browser-extensions/chrome/background.js +244 -237
- package/browser-extensions/chrome/content.js +32 -29
- package/browser-extensions/chrome/devtools.html +7 -7
- package/browser-extensions/chrome/devtools.js +19 -19
- package/browser-extensions/chrome/inspector.js +802 -767
- package/browser-extensions/chrome/manifest.json +71 -63
- package/browser-extensions/chrome/panel.html +674 -636
- package/browser-extensions/chrome/panel.js +722 -712
- package/browser-extensions/chrome/popup.html +586 -543
- package/browser-extensions/chrome/popup.js +282 -244
- package/browser-extensions/chrome/rules.json +1 -1
- package/browser-extensions/chrome/test-chrome.html +216 -136
- package/browser-extensions/chrome/test-mixed-content.html +284 -189
- package/browser-extensions/chrome/test-uri-pattern.html +221 -198
- package/browser-extensions/firefox/README.md +9 -6
- package/browser-extensions/firefox/background.js +221 -218
- package/browser-extensions/firefox/content.js +55 -52
- package/browser-extensions/firefox/debug-errors.html +386 -228
- package/browser-extensions/firefox/debug-https.html +153 -105
- package/browser-extensions/firefox/devtools.html +7 -7
- package/browser-extensions/firefox/devtools.js +23 -20
- package/browser-extensions/firefox/inspector.js +802 -767
- package/browser-extensions/firefox/manifest.json +68 -68
- package/browser-extensions/firefox/panel.html +674 -636
- package/browser-extensions/firefox/panel.js +722 -712
- package/browser-extensions/firefox/popup.html +572 -535
- package/browser-extensions/firefox/popup.js +281 -236
- package/browser-extensions/firefox/test-gramercy.html +170 -125
- package/browser-extensions/firefox/test-imports.html +59 -55
- package/browser-extensions/firefox/test-masking.html +231 -140
- package/browser-extensions/firefox/test-uri-pattern.html +221 -198
- package/dist/tui/App.d.ts +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/App.js +154 -150
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/components/AIPanel.d.ts.map +1 -1
- package/dist/tui/components/AIPanel.js +42 -35
- package/dist/tui/components/AIPanel.js.map +1 -1
- package/dist/tui/components/CommandInput.d.ts +1 -1
- package/dist/tui/components/CommandInput.d.ts.map +1 -1
- package/dist/tui/components/CommandInput.js +92 -62
- package/dist/tui/components/CommandInput.js.map +1 -1
- package/dist/tui/components/GeminiPanel.d.ts.map +1 -1
- package/dist/tui/components/GeminiPanel.js +37 -30
- package/dist/tui/components/GeminiPanel.js.map +1 -1
- package/dist/tui/components/Header.d.ts.map +1 -1
- package/dist/tui/components/Header.js +1 -1
- package/dist/tui/components/Header.js.map +1 -1
- package/dist/tui/components/LogPanel.d.ts +1 -1
- package/dist/tui/components/LogPanel.d.ts.map +1 -1
- package/dist/tui/components/LogPanel.js +26 -24
- package/dist/tui/components/LogPanel.js.map +1 -1
- package/dist/tui/components/TabBar.d.ts +2 -2
- package/dist/tui/components/TabBar.d.ts.map +1 -1
- package/dist/tui/components/TabBar.js +11 -11
- package/dist/tui/components/TabBar.js.map +1 -1
- package/dist/tui/components/WelcomeScreen.d.ts.map +1 -1
- package/dist/tui/components/WelcomeScreen.js +6 -6
- package/dist/tui/components/WelcomeScreen.js.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/index.js +8 -8
- package/dist/tui/index.js.map +1 -1
- package/dist/tui/services/AIService.d.ts +2 -2
- package/dist/tui/services/AIService.d.ts.map +1 -1
- package/dist/tui/services/AIService.js +165 -125
- package/dist/tui/services/AIService.js.map +1 -1
- package/dist/tui/services/ExtensionService.d.ts +1 -1
- package/dist/tui/services/ExtensionService.d.ts.map +1 -1
- package/dist/tui/services/ExtensionService.js +33 -26
- package/dist/tui/services/ExtensionService.js.map +1 -1
- package/dist/tui/services/GeminiService.d.ts +1 -1
- package/dist/tui/services/GeminiService.d.ts.map +1 -1
- package/dist/tui/services/GeminiService.js +87 -76
- package/dist/tui/services/GeminiService.js.map +1 -1
- package/dist/tui/services/ServiceManager.d.ts +3 -3
- package/dist/tui/services/ServiceManager.d.ts.map +1 -1
- package/dist/tui/services/ServiceManager.js +72 -58
- package/dist/tui/services/ServiceManager.js.map +1 -1
- package/dist/tui/services/SocketService.d.ts.map +1 -1
- package/dist/tui/services/SocketService.js +32 -32
- package/dist/tui/services/SocketService.js.map +1 -1
- package/dist/tui/services/ViteService.d.ts.map +1 -1
- package/dist/tui/services/ViteService.js +26 -28
- package/dist/tui/services/ViteService.js.map +1 -1
- package/dist/tui/services/index.d.ts +6 -6
- package/dist/tui/services/index.d.ts.map +1 -1
- package/dist/tui/services/index.js +6 -6
- package/dist/tui/services/index.js.map +1 -1
- package/mcp/gxp-api-server.js +83 -81
- package/package.json +109 -93
- package/runtime/PortalContainer.vue +258 -234
- package/runtime/dev-tools/DevToolsModal.vue +153 -155
- package/runtime/dev-tools/LayoutSwitcher.vue +144 -140
- package/runtime/dev-tools/MockDataEditor.vue +456 -433
- package/runtime/dev-tools/SocketSimulator.vue +379 -371
- package/runtime/dev-tools/StoreInspector.vue +517 -455
- package/runtime/dev-tools/index.js +5 -5
- package/runtime/fallback-layouts/PrivateLayout.vue +2 -2
- package/runtime/fallback-layouts/PublicLayout.vue +2 -2
- package/runtime/fallback-layouts/SystemLayout.vue +2 -2
- package/runtime/gxpStringsPlugin.js +159 -134
- package/runtime/index.html +17 -19
- package/runtime/main.js +24 -22
- package/runtime/mock-api/auth-middleware.js +15 -15
- package/runtime/mock-api/image-generator.js +46 -46
- package/runtime/mock-api/index.js +55 -55
- package/runtime/mock-api/response-generator.js +116 -105
- package/runtime/mock-api/route-generator.js +107 -84
- package/runtime/mock-api/socket-triggers.js +94 -93
- package/runtime/mock-api/spec-loader.js +79 -80
- package/runtime/package.json +3 -0
- package/runtime/server.js +68 -68
- package/runtime/stores/gxpPortalConfigStore.js +204 -186
- package/runtime/stores/index.js +2 -2
- package/runtime/vite-inspector-plugin.js +858 -707
- package/runtime/vite-source-tracker-plugin.js +132 -113
- package/runtime/vite.config.js +191 -139
- package/scripts/launch-chrome.js +41 -41
- package/scripts/pack-chrome.js +38 -39
- package/socket-events/AiSessionMessageCreated.json +17 -17
- package/socket-events/SocialStreamPostCreated.json +23 -23
- package/socket-events/SocialStreamPostVariantCompleted.json +22 -22
- package/template/.claude/agents/gxp-developer.md +100 -99
- package/template/.claude/settings.json +7 -7
- package/template/AGENTS.md +30 -23
- package/template/GEMINI.md +20 -20
- package/template/README.md +70 -53
- package/template/app-manifest.json +2 -4
- package/template/configuration.json +10 -10
- package/template/default-styling.css +1 -1
- package/template/index.html +18 -20
- package/template/main.js +24 -22
- package/template/src/DemoPage.vue +415 -362
- package/template/src/Plugin.vue +76 -85
- package/template/src/stores/index.js +3 -3
- package/template/src/stores/test-data.json +164 -172
- package/template/theme-layouts/AdditionalStyling.css +50 -50
- package/template/theme-layouts/PrivateLayout.vue +8 -12
- package/template/theme-layouts/PublicLayout.vue +8 -12
- package/template/theme-layouts/SystemLayout.vue +8 -12
- package/template/vite.extend.js +45 -0
- package/template/vite.config.js +0 -409
|
@@ -1,537 +1,574 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html>
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
</
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<style>
|
|
6
|
+
* {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
body {
|
|
11
|
+
width: 380px;
|
|
12
|
+
height: 500px;
|
|
13
|
+
padding: 0;
|
|
14
|
+
margin: 0;
|
|
15
|
+
font-family:
|
|
16
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
17
|
+
background: #f8f9fa;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Header */
|
|
24
|
+
.header {
|
|
25
|
+
background: #fff;
|
|
26
|
+
padding: 12px 16px;
|
|
27
|
+
border-bottom: 1px solid #e9ecef;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.header-row {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.title {
|
|
38
|
+
margin: 0;
|
|
39
|
+
font-size: 15px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
color: #212529;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.toggle-button {
|
|
45
|
+
background: #dc3545;
|
|
46
|
+
border: none;
|
|
47
|
+
padding: 6px 14px;
|
|
48
|
+
border-radius: 16px;
|
|
49
|
+
color: white;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
transition: all 0.2s;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: 6px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.toggle-button.enabled {
|
|
60
|
+
background: #28a745;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.toggle-button:hover {
|
|
64
|
+
opacity: 0.9;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.status-dot {
|
|
68
|
+
width: 6px;
|
|
69
|
+
height: 6px;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
background: currentColor;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Tabs */
|
|
75
|
+
.tabs {
|
|
76
|
+
display: flex;
|
|
77
|
+
background: #fff;
|
|
78
|
+
border-bottom: 1px solid #e9ecef;
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.tab {
|
|
83
|
+
flex: 1;
|
|
84
|
+
padding: 10px 16px;
|
|
85
|
+
border: none;
|
|
86
|
+
background: transparent;
|
|
87
|
+
font-size: 13px;
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
color: #6c757d;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
border-bottom: 2px solid transparent;
|
|
92
|
+
transition: all 0.2s;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tab:hover {
|
|
96
|
+
color: #495057;
|
|
97
|
+
background: #f8f9fa;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.tab.active {
|
|
101
|
+
color: #007bff;
|
|
102
|
+
border-bottom-color: #007bff;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.tab-badge {
|
|
106
|
+
display: inline-block;
|
|
107
|
+
padding: 2px 6px;
|
|
108
|
+
margin-left: 6px;
|
|
109
|
+
border-radius: 10px;
|
|
110
|
+
font-size: 10px;
|
|
111
|
+
font-weight: 600;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.tab-badge.enabled {
|
|
115
|
+
background: #d4edda;
|
|
116
|
+
color: #155724;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.tab-badge.disabled {
|
|
120
|
+
background: #f8d7da;
|
|
121
|
+
color: #721c24;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Content area */
|
|
125
|
+
.content {
|
|
126
|
+
flex: 1;
|
|
127
|
+
overflow-y: auto;
|
|
128
|
+
padding: 16px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.tab-content {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.tab-content.active {
|
|
136
|
+
display: block;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Rule sections */
|
|
140
|
+
.rule-header {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: space-between;
|
|
144
|
+
margin-bottom: 16px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.rule-title {
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
color: #495057;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.input-group {
|
|
154
|
+
margin-bottom: 14px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.input-label {
|
|
158
|
+
display: block;
|
|
159
|
+
font-size: 11px;
|
|
160
|
+
color: #6c757d;
|
|
161
|
+
font-weight: 500;
|
|
162
|
+
margin-bottom: 4px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
input[type="text"],
|
|
166
|
+
textarea {
|
|
167
|
+
width: 100%;
|
|
168
|
+
padding: 8px 10px;
|
|
169
|
+
border: 1px solid #ced4da;
|
|
170
|
+
border-radius: 4px;
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
textarea {
|
|
175
|
+
min-height: 60px;
|
|
176
|
+
font-family: "Monaco", "Menlo", monospace;
|
|
177
|
+
resize: vertical;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
input[type="text"]:focus,
|
|
181
|
+
textarea:focus {
|
|
182
|
+
outline: none;
|
|
183
|
+
border-color: #007bff;
|
|
184
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
input[type="text"]:disabled,
|
|
188
|
+
textarea:disabled {
|
|
189
|
+
background: #f8f9fa;
|
|
190
|
+
color: #6c757d;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.checkbox-group {
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: 8px;
|
|
197
|
+
margin-bottom: 10px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.checkbox-group input[type="checkbox"] {
|
|
201
|
+
margin: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.checkbox-group label {
|
|
205
|
+
font-size: 12px;
|
|
206
|
+
color: #495057;
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.help-text {
|
|
211
|
+
font-size: 10px;
|
|
212
|
+
color: #6c757d;
|
|
213
|
+
margin-top: 4px;
|
|
214
|
+
line-height: 1.3;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.blank-option {
|
|
218
|
+
background: #fff3cd;
|
|
219
|
+
border: 1px solid #ffeaa7;
|
|
220
|
+
border-radius: 4px;
|
|
221
|
+
padding: 10px;
|
|
222
|
+
margin-bottom: 14px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.blank-option-title {
|
|
226
|
+
font-size: 11px;
|
|
227
|
+
font-weight: 600;
|
|
228
|
+
color: #856404;
|
|
229
|
+
margin-bottom: 6px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Settings tab */
|
|
233
|
+
.settings-section {
|
|
234
|
+
background: white;
|
|
235
|
+
border: 1px solid #dee2e6;
|
|
236
|
+
border-radius: 6px;
|
|
237
|
+
padding: 12px;
|
|
238
|
+
margin-bottom: 12px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.settings-title {
|
|
242
|
+
font-size: 12px;
|
|
243
|
+
font-weight: 600;
|
|
244
|
+
color: #495057;
|
|
245
|
+
margin-bottom: 10px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Inspector section */
|
|
249
|
+
.inspector-card {
|
|
250
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
251
|
+
border-radius: 8px;
|
|
252
|
+
padding: 14px;
|
|
253
|
+
margin-top: 16px;
|
|
254
|
+
cursor: pointer;
|
|
255
|
+
transition: all 0.2s;
|
|
256
|
+
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.inspector-card:hover {
|
|
260
|
+
transform: translateY(-1px);
|
|
261
|
+
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.inspector-card-header {
|
|
265
|
+
display: flex;
|
|
266
|
+
align-items: center;
|
|
267
|
+
justify-content: space-between;
|
|
268
|
+
margin-bottom: 8px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.inspector-card-title {
|
|
272
|
+
font-size: 13px;
|
|
273
|
+
font-weight: 600;
|
|
274
|
+
color: white;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.inspector-badge {
|
|
278
|
+
background: rgba(255, 255, 255, 0.2);
|
|
279
|
+
padding: 3px 8px;
|
|
280
|
+
border-radius: 10px;
|
|
281
|
+
font-size: 10px;
|
|
282
|
+
font-weight: 600;
|
|
283
|
+
color: white;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.inspector-badge.enabled {
|
|
287
|
+
background: rgba(40, 167, 69, 0.8);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.inspector-card-desc {
|
|
291
|
+
font-size: 11px;
|
|
292
|
+
color: rgba(255, 255, 255, 0.85);
|
|
293
|
+
margin-bottom: 8px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.inspector-card-hint {
|
|
297
|
+
font-size: 10px;
|
|
298
|
+
color: rgba(255, 255, 255, 0.6);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.inspector-card-hint kbd {
|
|
302
|
+
background: rgba(255, 255, 255, 0.2);
|
|
303
|
+
color: white;
|
|
304
|
+
padding: 2px 5px;
|
|
305
|
+
border-radius: 3px;
|
|
306
|
+
font-size: 9px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
kbd {
|
|
310
|
+
background: #e9ecef;
|
|
311
|
+
padding: 2px 5px;
|
|
312
|
+
border-radius: 3px;
|
|
313
|
+
font-size: 9px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* Footer */
|
|
317
|
+
.footer {
|
|
318
|
+
background: #fff;
|
|
319
|
+
padding: 12px 16px;
|
|
320
|
+
border-top: 1px solid #e9ecef;
|
|
321
|
+
flex-shrink: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.footer-buttons {
|
|
325
|
+
display: flex;
|
|
326
|
+
gap: 8px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.save-button {
|
|
330
|
+
flex: 1;
|
|
331
|
+
background: #007bff;
|
|
332
|
+
border: none;
|
|
333
|
+
color: white;
|
|
334
|
+
padding: 10px 16px;
|
|
335
|
+
border-radius: 4px;
|
|
336
|
+
font-size: 13px;
|
|
337
|
+
font-weight: 500;
|
|
338
|
+
cursor: pointer;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.save-button:hover {
|
|
342
|
+
background: #0056b3;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.save-button:disabled {
|
|
346
|
+
background: #6c757d;
|
|
347
|
+
cursor: not-allowed;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.cache-button {
|
|
351
|
+
background: #ffc107;
|
|
352
|
+
border: none;
|
|
353
|
+
color: #212529;
|
|
354
|
+
padding: 10px 16px;
|
|
355
|
+
border-radius: 4px;
|
|
356
|
+
font-size: 13px;
|
|
357
|
+
cursor: pointer;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.cache-button:hover {
|
|
361
|
+
background: #e0a800;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.status {
|
|
365
|
+
margin-top: 8px;
|
|
366
|
+
padding: 6px 10px;
|
|
367
|
+
border-radius: 4px;
|
|
368
|
+
font-size: 11px;
|
|
369
|
+
text-align: center;
|
|
370
|
+
display: none;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.status.success {
|
|
374
|
+
background: #d4edda;
|
|
375
|
+
color: #155724;
|
|
376
|
+
display: block;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.status.error {
|
|
380
|
+
background: #f8d7da;
|
|
381
|
+
color: #721c24;
|
|
382
|
+
display: block;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.rule-disabled {
|
|
386
|
+
opacity: 0.5;
|
|
387
|
+
pointer-events: none;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.hidden {
|
|
391
|
+
display: none !important;
|
|
392
|
+
}
|
|
393
|
+
</style>
|
|
394
|
+
</head>
|
|
395
|
+
<body>
|
|
396
|
+
<!-- Header with main toggle -->
|
|
397
|
+
<div class="header">
|
|
398
|
+
<div class="header-row">
|
|
399
|
+
<h1 class="title">GxP Developer Toolkit</h1>
|
|
400
|
+
<button id="toggleButton" class="toggle-button">
|
|
401
|
+
<div class="status-dot"></div>
|
|
402
|
+
<span id="toggleText">OFF</span>
|
|
403
|
+
</button>
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
<!-- Tabs -->
|
|
408
|
+
<div class="tabs">
|
|
409
|
+
<button class="tab active" data-tab="js">
|
|
410
|
+
JavaScript
|
|
411
|
+
<span id="jsBadge" class="tab-badge enabled">ON</span>
|
|
412
|
+
</button>
|
|
413
|
+
<button class="tab" data-tab="css">
|
|
414
|
+
CSS
|
|
415
|
+
<span id="cssBadge" class="tab-badge enabled">ON</span>
|
|
416
|
+
</button>
|
|
417
|
+
<button class="tab" data-tab="settings">Settings</button>
|
|
418
|
+
</div>
|
|
419
|
+
|
|
420
|
+
<!-- Scrollable content area -->
|
|
421
|
+
<div class="content">
|
|
422
|
+
<!-- JavaScript Tab -->
|
|
423
|
+
<div id="jsTab" class="tab-content active">
|
|
424
|
+
<div class="rule-header">
|
|
425
|
+
<span class="rule-title">JavaScript Redirect</span>
|
|
426
|
+
<div>
|
|
427
|
+
<input type="checkbox" id="jsRuleToggle" />
|
|
428
|
+
<label for="jsRuleToggle" style="font-size: 11px; margin-left: 4px"
|
|
429
|
+
>Enabled</label
|
|
430
|
+
>
|
|
431
|
+
</div>
|
|
432
|
+
</div>
|
|
433
|
+
|
|
434
|
+
<div id="jsRuleContent">
|
|
435
|
+
<div class="input-group">
|
|
436
|
+
<label class="input-label">Redirect To URL</label>
|
|
437
|
+
<input
|
|
438
|
+
type="text"
|
|
439
|
+
id="jsRedirectUrl"
|
|
440
|
+
placeholder="https://localhost:3060/src/Plugin.vue"
|
|
441
|
+
/>
|
|
442
|
+
<div class="help-text">
|
|
443
|
+
Local URL where JavaScript files should be redirected
|
|
444
|
+
</div>
|
|
445
|
+
</div>
|
|
446
|
+
|
|
447
|
+
<div class="checkbox-group">
|
|
448
|
+
<input type="checkbox" id="jsUseCustomPattern" />
|
|
449
|
+
<label for="jsUseCustomPattern">Use custom URL pattern</label>
|
|
450
|
+
</div>
|
|
451
|
+
|
|
452
|
+
<div class="input-group" id="jsPatternGroup">
|
|
453
|
+
<label class="input-label">URL Pattern to Match (RegEx)</label>
|
|
454
|
+
<textarea
|
|
455
|
+
id="jsPattern"
|
|
456
|
+
placeholder="Custom regex pattern"
|
|
457
|
+
></textarea>
|
|
458
|
+
<div class="help-text">
|
|
459
|
+
RegEx pattern to match JavaScript file URLs
|
|
460
|
+
</div>
|
|
461
|
+
</div>
|
|
462
|
+
</div>
|
|
463
|
+
|
|
464
|
+
<!-- Component Inspector Card -->
|
|
465
|
+
<div id="inspectorCard" class="inspector-card">
|
|
466
|
+
<div class="inspector-card-header">
|
|
467
|
+
<span class="inspector-card-title">Component Inspector</span>
|
|
468
|
+
<span id="inspectorBadge" class="inspector-badge">OFF</span>
|
|
469
|
+
</div>
|
|
470
|
+
<div class="inspector-card-desc">
|
|
471
|
+
Click to open DevTools and inspect Vue components
|
|
472
|
+
</div>
|
|
473
|
+
<div class="inspector-card-hint">
|
|
474
|
+
Or press <kbd>Ctrl+Shift+I</kbd> on the page
|
|
475
|
+
</div>
|
|
476
|
+
</div>
|
|
477
|
+
</div>
|
|
478
|
+
|
|
479
|
+
<!-- CSS Tab -->
|
|
480
|
+
<div id="cssTab" class="tab-content">
|
|
481
|
+
<div class="rule-header">
|
|
482
|
+
<span class="rule-title">CSS Override</span>
|
|
483
|
+
<div>
|
|
484
|
+
<input type="checkbox" id="cssRuleToggle" />
|
|
485
|
+
<label for="cssRuleToggle" style="font-size: 11px; margin-left: 4px"
|
|
486
|
+
>Enabled</label
|
|
487
|
+
>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
|
|
491
|
+
<div id="cssRuleContent">
|
|
492
|
+
<div class="blank-option">
|
|
493
|
+
<div class="blank-option-title">Return Blank CSS</div>
|
|
494
|
+
<div class="checkbox-group" style="margin-bottom: 4px">
|
|
495
|
+
<input type="checkbox" id="cssReturnBlank" />
|
|
496
|
+
<label for="cssReturnBlank"
|
|
497
|
+
>Return empty CSS instead of redirecting</label
|
|
498
|
+
>
|
|
499
|
+
</div>
|
|
500
|
+
<div class="help-text" style="margin: 0">
|
|
501
|
+
Disables production styles during development
|
|
502
|
+
</div>
|
|
503
|
+
</div>
|
|
504
|
+
|
|
505
|
+
<div id="cssRedirectGroup">
|
|
506
|
+
<div class="input-group">
|
|
507
|
+
<label class="input-label">Redirect To URL</label>
|
|
508
|
+
<input
|
|
509
|
+
type="text"
|
|
510
|
+
id="cssRedirectUrl"
|
|
511
|
+
placeholder="https://localhost:3060/src/styles.css"
|
|
512
|
+
/>
|
|
513
|
+
<div class="help-text">
|
|
514
|
+
Local URL where CSS files should be redirected
|
|
515
|
+
</div>
|
|
516
|
+
</div>
|
|
517
|
+
</div>
|
|
518
|
+
|
|
519
|
+
<div class="checkbox-group">
|
|
520
|
+
<input type="checkbox" id="cssUseCustomPattern" />
|
|
521
|
+
<label for="cssUseCustomPattern">Use custom URL pattern</label>
|
|
522
|
+
</div>
|
|
523
|
+
|
|
524
|
+
<div class="input-group" id="cssPatternGroup">
|
|
525
|
+
<label class="input-label">URL Pattern to Match (RegEx)</label>
|
|
526
|
+
<textarea
|
|
527
|
+
id="cssPattern"
|
|
528
|
+
placeholder="Custom regex pattern"
|
|
529
|
+
></textarea>
|
|
530
|
+
<div class="help-text">RegEx pattern to match CSS file URLs</div>
|
|
531
|
+
</div>
|
|
532
|
+
</div>
|
|
533
|
+
</div>
|
|
534
|
+
|
|
535
|
+
<!-- Settings Tab -->
|
|
536
|
+
<div id="settingsTab" class="tab-content">
|
|
537
|
+
<div class="settings-section">
|
|
538
|
+
<div class="settings-title">Cache Management</div>
|
|
539
|
+
<div class="checkbox-group">
|
|
540
|
+
<input type="checkbox" id="clearCacheOnEnable" />
|
|
541
|
+
<label for="clearCacheOnEnable"
|
|
542
|
+
>Clear cache when extension is enabled</label
|
|
543
|
+
>
|
|
544
|
+
</div>
|
|
545
|
+
<div class="checkbox-group">
|
|
546
|
+
<input type="checkbox" id="disableCacheForRedirects" />
|
|
547
|
+
<label for="disableCacheForRedirects"
|
|
548
|
+
>Disable caching for matched URLs</label
|
|
549
|
+
>
|
|
550
|
+
</div>
|
|
551
|
+
</div>
|
|
552
|
+
|
|
553
|
+
<div class="settings-section">
|
|
554
|
+
<div class="settings-title">Advanced</div>
|
|
555
|
+
<div class="checkbox-group">
|
|
556
|
+
<input type="checkbox" id="maskingMode" />
|
|
557
|
+
<label for="maskingMode">URL Masking Mode</label>
|
|
558
|
+
</div>
|
|
559
|
+
</div>
|
|
560
|
+
</div>
|
|
561
|
+
</div>
|
|
562
|
+
|
|
563
|
+
<!-- Fixed footer with buttons -->
|
|
564
|
+
<div class="footer">
|
|
565
|
+
<div class="footer-buttons">
|
|
566
|
+
<button id="saveBtn" class="save-button">Save Configuration</button>
|
|
567
|
+
<button id="clearCacheBtn" class="cache-button">Clear Cache</button>
|
|
568
|
+
</div>
|
|
569
|
+
<div id="statusMessage" class="status"></div>
|
|
570
|
+
</div>
|
|
571
|
+
|
|
572
|
+
<script src="popup.js"></script>
|
|
573
|
+
</body>
|
|
537
574
|
</html>
|