|
23 | 23 | "onFileSystem:b2c-webdav", |
24 | 24 | "onFileSystem:b2c-content", |
25 | 25 | "onCommand:b2c-dx.openUI", |
26 | | - "onCommand:b2c-dx.handleStorefrontNextCartridge", |
27 | 26 | "onCommand:b2c-dx.promptAgent", |
28 | 27 | "onCommand:b2c-dx.listWebDav", |
29 | 28 | "onCommand:b2c-dx.scapiExplorer", |
30 | | - "onCommand:b2c-dx.odsManagement" |
| 29 | + "onView:b2cSandboxExplorer" |
31 | 30 | ], |
32 | 31 | "main": "./dist/extension.js", |
33 | 32 | "contributes": { |
| 33 | + "configuration": { |
| 34 | + "title": "B2C DX", |
| 35 | + "properties": { |
| 36 | + "b2c-dx.features.sandboxExplorer": { |
| 37 | + "type": "boolean", |
| 38 | + "default": true, |
| 39 | + "description": "Enable the Sandbox Explorer sidebar." |
| 40 | + }, |
| 41 | + "b2c-dx.features.webdavBrowser": { |
| 42 | + "type": "boolean", |
| 43 | + "default": true, |
| 44 | + "description": "Enable the WebDAV Browser." |
| 45 | + }, |
| 46 | + "b2c-dx.features.contentLibraries": { |
| 47 | + "type": "boolean", |
| 48 | + "default": true, |
| 49 | + "description": "Enable the Content Libraries browser." |
| 50 | + }, |
| 51 | + "b2c-dx.features.logTailing": { |
| 52 | + "type": "boolean", |
| 53 | + "default": true, |
| 54 | + "description": "Enable log tailing commands." |
| 55 | + }, |
| 56 | + "b2c-dx.logLevel": { |
| 57 | + "type": "string", |
| 58 | + "default": "info", |
| 59 | + "enum": ["trace", "debug", "info", "warn", "error", "silent"], |
| 60 | + "description": "Log verbosity level for the B2C DX output channel." |
| 61 | + }, |
| 62 | + "b2c-dx.sandbox.pollingInterval": { |
| 63 | + "type": "number", |
| 64 | + "default": 10, |
| 65 | + "minimum": 2, |
| 66 | + "maximum": 300, |
| 67 | + "description": "Seconds between polls during sandbox state transitions." |
| 68 | + } |
| 69 | + } |
| 70 | + }, |
34 | 71 | "submenus": [ |
35 | 72 | { |
36 | 73 | "id": "b2c-dx.submenu", |
|
43 | 80 | "id": "b2c-dx", |
44 | 81 | "title": "B2C-DX", |
45 | 82 | "icon": "media/b2c-icon.svg" |
| 83 | + }, |
| 84 | + { |
| 85 | + "id": "b2c-dx-sandboxes", |
| 86 | + "title": "B2C-DX Sandboxes", |
| 87 | + "icon": "$(server-environment)" |
46 | 88 | } |
47 | 89 | ] |
48 | 90 | }, |
|
52 | 94 | "id": "b2cWebdavExplorer", |
53 | 95 | "name": "WebDAV Browser", |
54 | 96 | "icon": "media/b2c-icon.svg", |
55 | | - "contextualTitle": "B2C Commerce" |
| 97 | + "contextualTitle": "B2C-DX" |
56 | 98 | }, |
57 | 99 | { |
58 | 100 | "id": "b2cContentExplorer", |
59 | 101 | "name": "Libraries", |
60 | 102 | "icon": "media/b2c-icon.svg", |
61 | | - "contextualTitle": "B2C Commerce Content" |
| 103 | + "contextualTitle": "B2C-DX" |
| 104 | + } |
| 105 | + ], |
| 106 | + "b2c-dx-sandboxes": [ |
| 107 | + { |
| 108 | + "id": "b2cSandboxExplorer", |
| 109 | + "name": "Realm Explorer", |
| 110 | + "contextualTitle": "B2C-DX" |
62 | 111 | } |
63 | 112 | ] |
64 | 113 | }, |
|
70 | 119 | { |
71 | 120 | "view": "b2cContentExplorer", |
72 | 121 | "contents": "No content libraries configured.\n\nSet \"contentLibrary\" in dw.json or add a library manually.\n\n[Add Library](command:b2c-dx.content.addLibrary)" |
| 122 | + }, |
| 123 | + { |
| 124 | + "view": "b2cSandboxExplorer", |
| 125 | + "contents": "No sandbox realms configured.\n\nSet \"realm\" in dw.json or add a realm manually.\n\n[Add Realm](command:b2c-dx.sandbox.addRealm)" |
73 | 126 | } |
74 | 127 | ], |
75 | 128 | "commands": [ |
|
78 | 131 | "title": "Open Page Designer Assistant UI", |
79 | 132 | "category": "B2C DX - Page Designer Assistant" |
80 | 133 | }, |
81 | | - { |
82 | | - "command": "b2c-dx.handleStorefrontNextCartridge", |
83 | | - "title": "Storefront Next Cartridge", |
84 | | - "category": "B2C DX - Page Designer Assistant" |
85 | | - }, |
86 | 134 | { |
87 | 135 | "command": "b2c-dx.promptAgent", |
88 | 136 | "title": "Prompt Agent", |
|
99 | 147 | "category": "B2C DX" |
100 | 148 | }, |
101 | 149 | { |
102 | | - "command": "b2c-dx.odsManagement", |
103 | | - "title": "On Demand Sandbox (ods) Management", |
| 150 | + "command": "b2c-dx.sandbox.refresh", |
| 151 | + "title": "Refresh", |
| 152 | + "icon": "$(refresh)", |
| 153 | + "category": "B2C DX - Sandboxes" |
| 154 | + }, |
| 155 | + { |
| 156 | + "command": "b2c-dx.sandbox.addRealm", |
| 157 | + "title": "Add Realm", |
| 158 | + "icon": "$(add)", |
| 159 | + "category": "B2C DX - Sandboxes" |
| 160 | + }, |
| 161 | + { |
| 162 | + "command": "b2c-dx.sandbox.removeRealm", |
| 163 | + "title": "Remove Realm", |
| 164 | + "icon": "$(remove)", |
| 165 | + "category": "B2C DX - Sandboxes" |
| 166 | + }, |
| 167 | + { |
| 168 | + "command": "b2c-dx.sandbox.create", |
| 169 | + "title": "Create Sandbox", |
| 170 | + "icon": "$(plus)", |
| 171 | + "category": "B2C DX - Sandboxes" |
| 172 | + }, |
| 173 | + { |
| 174 | + "command": "b2c-dx.sandbox.delete", |
| 175 | + "title": "Delete Sandbox", |
| 176 | + "icon": "$(trash)", |
| 177 | + "category": "B2C DX - Sandboxes" |
| 178 | + }, |
| 179 | + { |
| 180 | + "command": "b2c-dx.sandbox.start", |
| 181 | + "title": "Start Sandbox", |
| 182 | + "icon": "$(debug-start)", |
| 183 | + "category": "B2C DX - Sandboxes" |
| 184 | + }, |
| 185 | + { |
| 186 | + "command": "b2c-dx.sandbox.stop", |
| 187 | + "title": "Stop Sandbox", |
| 188 | + "icon": "$(debug-stop)", |
| 189 | + "category": "B2C DX - Sandboxes" |
| 190 | + }, |
| 191 | + { |
| 192 | + "command": "b2c-dx.sandbox.restart", |
| 193 | + "title": "Restart Sandbox", |
| 194 | + "icon": "$(debug-restart)", |
| 195 | + "category": "B2C DX - Sandboxes" |
| 196 | + }, |
| 197 | + { |
| 198 | + "command": "b2c-dx.sandbox.viewDetails", |
| 199 | + "title": "View Details", |
| 200 | + "icon": "$(info)", |
| 201 | + "category": "B2C DX - Sandboxes" |
| 202 | + }, |
| 203 | + { |
| 204 | + "command": "b2c-dx.sandbox.openBM", |
| 205 | + "title": "Open Business Manager", |
| 206 | + "icon": "$(link-external)", |
| 207 | + "category": "B2C DX - Sandboxes" |
| 208 | + }, |
| 209 | + { |
| 210 | + "command": "b2c-dx.instance.inspect", |
| 211 | + "title": "B2C Instance Config", |
| 212 | + "category": "B2C DX" |
| 213 | + }, |
| 214 | + { |
| 215 | + "command": "b2c-dx.instance.switch", |
| 216 | + "title": "Switch Active Instance", |
104 | 217 | "category": "B2C DX" |
105 | 218 | }, |
| 219 | + { |
| 220 | + "command": "b2c-dx.logs.startTail", |
| 221 | + "title": "Start Tailing Logs", |
| 222 | + "icon": "$(output)", |
| 223 | + "category": "B2C DX - Logs" |
| 224 | + }, |
| 225 | + { |
| 226 | + "command": "b2c-dx.logs.stopTail", |
| 227 | + "title": "Stop Tailing Logs", |
| 228 | + "icon": "$(debug-stop)", |
| 229 | + "category": "B2C DX - Logs" |
| 230 | + }, |
106 | 231 | { |
107 | 232 | "command": "b2c-dx.webdav.refresh", |
108 | 233 | "title": "Refresh", |
|
232 | 357 | "command": "b2c-dx.content.clearFilter", |
233 | 358 | "when": "view == b2cContentExplorer && b2cContentFilterActive", |
234 | 359 | "group": "navigation" |
| 360 | + }, |
| 361 | + { |
| 362 | + "command": "b2c-dx.sandbox.refresh", |
| 363 | + "when": "view == b2cSandboxExplorer", |
| 364 | + "group": "navigation" |
| 365 | + }, |
| 366 | + { |
| 367 | + "command": "b2c-dx.sandbox.addRealm", |
| 368 | + "when": "view == b2cSandboxExplorer", |
| 369 | + "group": "navigation" |
235 | 370 | } |
236 | 371 | ], |
237 | 372 | "view/item/context": [ |
|
289 | 424 | "command": "b2c-dx.content.removeLibrary", |
290 | 425 | "when": "view == b2cContentExplorer && viewItem == library", |
291 | 426 | "group": "2_manage@1" |
| 427 | + }, |
| 428 | + { |
| 429 | + "command": "b2c-dx.sandbox.create", |
| 430 | + "when": "view == b2cSandboxExplorer && viewItem == realm", |
| 431 | + "group": "1_realm@1" |
| 432 | + }, |
| 433 | + { |
| 434 | + "command": "b2c-dx.sandbox.removeRealm", |
| 435 | + "when": "view == b2cSandboxExplorer && viewItem == realm", |
| 436 | + "group": "2_manage@1" |
| 437 | + }, |
| 438 | + { |
| 439 | + "command": "b2c-dx.sandbox.viewDetails", |
| 440 | + "when": "view == b2cSandboxExplorer && viewItem =~ /^sandbox-/", |
| 441 | + "group": "1_info@1" |
| 442 | + }, |
| 443 | + { |
| 444 | + "command": "b2c-dx.sandbox.openBM", |
| 445 | + "when": "view == b2cSandboxExplorer && viewItem =~ /^sandbox-/", |
| 446 | + "group": "1_info@2" |
| 447 | + }, |
| 448 | + { |
| 449 | + "command": "b2c-dx.sandbox.start", |
| 450 | + "when": "view == b2cSandboxExplorer && viewItem == sandbox-stopped", |
| 451 | + "group": "2_lifecycle@1" |
| 452 | + }, |
| 453 | + { |
| 454 | + "command": "b2c-dx.sandbox.stop", |
| 455 | + "when": "view == b2cSandboxExplorer && viewItem == sandbox-started", |
| 456 | + "group": "2_lifecycle@2" |
| 457 | + }, |
| 458 | + { |
| 459 | + "command": "b2c-dx.sandbox.restart", |
| 460 | + "when": "view == b2cSandboxExplorer && viewItem == sandbox-started", |
| 461 | + "group": "2_lifecycle@3" |
| 462 | + }, |
| 463 | + { |
| 464 | + "command": "b2c-dx.sandbox.delete", |
| 465 | + "when": "view == b2cSandboxExplorer && viewItem =~ /^sandbox-/", |
| 466 | + "group": "3_destructive@1" |
292 | 467 | } |
293 | 468 | ], |
294 | 469 | "explorer/context": [ |
|
308 | 483 | "command": "b2c-dx.content.import", |
309 | 484 | "when": "explorerResourceIsFolder" |
310 | 485 | } |
| 486 | + ], |
| 487 | + "commandPalette": [ |
| 488 | + {"command": "b2c-dx.sandbox.removeRealm", "when": "false"}, |
| 489 | + {"command": "b2c-dx.sandbox.delete", "when": "false"}, |
| 490 | + {"command": "b2c-dx.sandbox.start", "when": "false"}, |
| 491 | + {"command": "b2c-dx.sandbox.stop", "when": "false"}, |
| 492 | + {"command": "b2c-dx.sandbox.restart", "when": "false"}, |
| 493 | + {"command": "b2c-dx.sandbox.viewDetails", "when": "false"}, |
| 494 | + {"command": "b2c-dx.sandbox.openBM", "when": "false"}, |
| 495 | + {"command": "b2c-dx.webdav.newFolder", "when": "false"}, |
| 496 | + {"command": "b2c-dx.webdav.uploadFile", "when": "false"}, |
| 497 | + {"command": "b2c-dx.webdav.delete", "when": "false"}, |
| 498 | + {"command": "b2c-dx.webdav.download", "when": "false"}, |
| 499 | + {"command": "b2c-dx.webdav.openFile", "when": "false"}, |
| 500 | + {"command": "b2c-dx.webdav.newFile", "when": "false"}, |
| 501 | + {"command": "b2c-dx.webdav.mountWorkspace", "when": "false"}, |
| 502 | + {"command": "b2c-dx.content.removeLibrary", "when": "false"}, |
| 503 | + {"command": "b2c-dx.content.export", "when": "false"}, |
| 504 | + {"command": "b2c-dx.content.exportNoAssets", "when": "false"}, |
| 505 | + {"command": "b2c-dx.content.exportAssets", "when": "false"}, |
| 506 | + {"command": "b2c-dx.content.clearFilter", "when": "false"} |
311 | 507 | ] |
312 | 508 | } |
313 | 509 | }, |
|
0 commit comments