Skip to content

Commit 614f30a

Browse files
committed
Update notebooks
1 parent 9088208 commit 614f30a

File tree

4 files changed

+128
-125
lines changed

4 files changed

+128
-125
lines changed

package-lock.json

Lines changed: 12 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
"@kui-shell/proxy": "^9.1.0",
4848
"@kui-shell/react": "^9.1.0",
4949
"@kui-shell/webpack": "^9.1.0",
50-
"@types/carbon-components-react": "7.10.9",
50+
"@types/carbon-components-react": "7.10.11",
5151
"@types/carbon__icons-react": "10.10.0",
5252
"@types/node": "12.12.31",
5353
"@types/react": "16.9.50",
5454
"@types/react-dom": "16.9.8",
5555
"concurrently": "5.3.0",
5656
"css-loader": "3.6.0",
57-
"electron": "^7.3.3",
57+
"electron": "7.3.3",
5858
"file-loader": "6.0.0",
5959
"font-config-webpack-plugin": "^2.0.0",
6060
"html-loader": "1.1.0",

plugins/plugin-client-default/notebooks/settings.json

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -112,63 +112,7 @@
112112
"history": 251,
113113
"env": {}
114114
},
115-
"response": {
116-
"apiVersion": "kui-shell/v1",
117-
"kind": "RadioTable",
118-
"title": "Temi disponibili",
119-
"header": {
120-
"cells": [
121-
"Tema",
122-
{
123-
"value": "Stile",
124-
"hints": "hide-with-narrow-window"
125-
},
126-
{
127-
"value": "Provider",
128-
"hints": "hide-with-sidecar"
129-
}
130-
]
131-
},
132-
"body": [
133-
{
134-
"nameIdx": 0,
135-
"cells": [
136-
"Carbon Gray10",
137-
{
138-
"value": "chiaro",
139-
"hints": "hide-with-narrow-window"
140-
},
141-
{
142-
"value": "plugin-carbon-themes",
143-
"hints": [
144-
"hide-with-sidecar",
145-
"sub-text"
146-
]
147-
}
148-
],
149-
"onSelect": "theme set \"Carbon Gray10\""
150-
},
151-
{
152-
"nameIdx": 0,
153-
"cells": [
154-
"Carbon Gray90",
155-
{
156-
"value": "scuro",
157-
"hints": "hide-with-narrow-window"
158-
},
159-
{
160-
"value": "plugin-carbon-themes",
161-
"hints": [
162-
"hide-with-sidecar",
163-
"sub-text"
164-
]
165-
}
166-
],
167-
"onSelect": "theme set \"Carbon Gray90\""
168-
}
169-
],
170-
"defaultSelectedIdx": 1
171-
},
115+
172116
"responseType": "ScalarResponse",
173117
"historyIdx": 251
174118
},

plugins/plugin-client-default/notebooks/welcome.json

Lines changed: 113 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"spec": {
88
"splits": [
99
{
10-
"uuid": "3_c57e811f-2da8-557e-a402-9f0950407675",
10+
"uuid": "2_c57e811f-2da8-557e-a402-9f0950407675",
1111
"blocks": [
1212
{
1313
"response": {
@@ -305,67 +305,155 @@
305305
"state": "valid-response"
306306
},
307307
{
308-
"response": true,
309-
"historyIdx": 251,
308+
"response": {
309+
"apiVersion": "kui-shell/v1",
310+
"kind": "NavResponse",
311+
"breadcrumbs": [
312+
{
313+
"label": "Help"
314+
},
315+
{
316+
"label": "HTTP Shell"
317+
}
318+
],
319+
"menus": [
320+
{
321+
"label": "Available commands",
322+
"items": [
323+
{
324+
"mode": "Authentication",
325+
"contentType": "text/markdown",
326+
"content": "\n#### set auth\nOpens a dialog to sets the basic authentication credentials to use in further requests\n> e.g. [`h set auth`](#kuiexec?command=h%20set%20auth)\n\n#### reset auth\nClear the basic authentication credentials\n> e.g. [`h reset auth`](#kuiexec?command=h%20reset%20auth)\n"
327+
},
328+
{
329+
"mode": "Configuration",
330+
"contentType": "text/markdown",
331+
"content": "\n#### set url <url>\nSets the base url to use in further requests. If <url> does not include the protocol, http is assumed. If <url> only specifies the port (e.g. :8080), localhost is assumed\n> e.g. [`h set url http://127.0.0.1:8080`](#kuiexec?command=h%20set%20url%20http%3A%2F%2F127.0.0.1%3A8080)\n\n#### [get url](#kuiexec?command=h%20get%20url)\nPrints the base url\n\n#### edit <file>\nOpens <file> for editing. Tip, hit key F1 for list of editor commands\n> e.g. [`edit body.json`](#kuiexec?command=edit%20body.json)\n"
332+
},
333+
{
334+
"mode": "Access Methods",
335+
"contentType": "text/markdown",
336+
"content": "\n#### get <uri>\nExecutes the GET request to url=<base-url>+<uri>\n> e.g. [`h get /messages`](#kuiexec?command=h%20get%20/messages)\n​\n#### post <uri> <file>\nExecutes the request POST <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h post /messages msg.json`](#kuiexec?command=h%20post%20%2Fmessages%20msg.json)\n​\n#### put <uri> <file>\nExecutes the request PUT <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h put /messages/foo msg.json`](#kuiexec?command=h%20put%20%2Fmessages%2Ffoo%20msg.json)\n​\n#### patch <uri> <file>\nExecutes the request PATCH <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h patch /messages msg.json`](#kuiexec?command=h%20patch%20%2Fmessages%20msg.json)\n\n#### delete <uri>\nExecutes the DELETE request to url=<base-url>+<uri>\n​\n#### set header <name> <value>\nSet the header <name> to <value>\n> e.g. [`h set header Authorization \"Bearer 5f7f35efcb800f2502f95cb5\"`](#kuiexec?command=h%20set%20header%20Authorization%20\"Bearer%205f7f35efcb800f2502f95cb5\")\n​\n#### [get headers](#kuiexec?command=h%20get%20headers)\nPrints the current set headers\n> e.g. [`h get headers`](#kuiexec?command=h%20get%20headers)\n​\n#### [reset headers](#kuiexec?command=h%20reset%20headers)\nClears the headers\n> e.g. [`h reset headers`](#kuiexec?command=h%20reset%20headers)\n"
337+
}
338+
]
339+
}
340+
]
341+
},
342+
"historyIdx": 11,
310343
"cwd": "~/development/http-shell",
311344
"command": "help http-shell",
312345
"startEvent": {
313346
"route": "/help/http-shell",
314-
"startTime": 1602238674617,
347+
"startTime": 1603990807370,
315348
"command": "help http-shell",
316349
"evaluatorOptions": {
350+
"usage": {
351+
"title": "HTTP Shell",
352+
"header": "Commands to execute HTTP Shell requests",
353+
"available": [
354+
{
355+
"command": "h set auth",
356+
"docs": "sets the basic authentication credentials"
357+
},
358+
{
359+
"command": "h set url",
360+
"docs": "sets the base-url"
361+
},
362+
{
363+
"command": "h get url",
364+
"docs": "prints the base-url"
365+
},
366+
{
367+
"command": "h get <uri>",
368+
"docs": "executes the GET request to url=<base-url>+<uri>"
369+
},
370+
{
371+
"command": "h post <uri> <file>",
372+
"docs": "executes the POST request to url=<base-url>+<uri>"
373+
}
374+
]
375+
},
317376
"plugin": "plugin-http-shell"
318377
},
319-
"execType": 0,
320-
"execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199"
378+
"execType": 3,
379+
"execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199",
380+
"execOptions": {
381+
"echo": true,
382+
"type": 3,
383+
"execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199",
384+
"history": 11,
385+
"env": {}
386+
},
387+
"echo": true
321388
},
322389
"completeEvent": {
323-
"execType": 0,
324-
"completeTime": 1602238674736,
390+
"execType": 3,
391+
"completeTime": 1603990807411,
325392
"command": "help http-shell",
326393
"argvNoOptions": [
327394
"help",
328-
"help-shell"
395+
"http-shell"
329396
],
330397
"parsedOptions": {
331398
"_": [
332399
"help",
333-
"help-shell"
400+
"http-shell"
334401
]
335402
},
336403
"execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199",
337404
"cancelled": false,
405+
"echo": true,
338406
"evaluatorOptions": {
339407
"plugin": "plugin-http-shell"
340408
},
341409
"execOptions": {
342-
"type": 0,
343-
"language": "it",
410+
"echo": true,
411+
"type": 3,
344412
"execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199",
345-
"history": 251,
413+
"history": 11,
346414
"env": {}
347415
},
348416
"response": {
349-
"metadata": {
350-
"name": "HTTP Shell Help"
351-
},
352-
"kind": "Top",
353-
"modes": [
417+
"apiVersion": "kui-shell/v1",
418+
"kind": "NavResponse",
419+
"breadcrumbs": [
354420
{
355-
"mode": "Available commands",
356-
"content": "\n| command | description | example\n|---|---|---|\n| set auth <id> <password> | sets the basic authentication credentials to use in further requests | > set auth admin secret |\n| get auth | prints the basic authentication credentials | > get auth |\n| set url <url> | sets the base url to use in further requests | > set url http://127.0.0.1:8080 |\n| get url | prints the base url | > get url |\n| get <uri> | executes the GET request to url=<base-url>+<uri> | > get /collection |\n| edit <file> | opens <file> for editing | > edit body.json |\n| post <uri> <file> | executes the request POST <base-url>+<uri>, sending the content of <file> as the request body | > post /collection body.json |\n| put <uri> <file> | executes the request PUT <base-url>+<uri>, sending the content of <file> as the request body | > put /collection body.json |\n| patch <uri> <file> | executes the request PATCH <base-url>+<uri>, sending the content of <file> as the request body | > patch /collection body.json |\n| delete <uri> | executes the DELETE request to url=<base-url>+<uri> | > delete /collection |\n| set header <name> <value> | set the header <name> to <value> | > set header If-Match 5f7f35efcb800f2502f95cb5 |\n| get headers | prints the current set headers | > get headers |\n| clear headers | clears the headers | > clear headers |\n\n",
357-
"contentType": "text/markdown"
421+
"label": "Help"
422+
},
423+
{
424+
"label": "HTTP Shell"
425+
}
426+
],
427+
"menus": [
428+
{
429+
"label": "Available commands",
430+
"items": [
431+
{
432+
"mode": "Authentication",
433+
"contentType": "text/markdown",
434+
"content": "\n#### set auth\nOpens a dialog to sets the basic authentication credentials to use in further requests\n> e.g. [`h set auth`](#kuiexec?command=h%20set%20auth)\n\n#### reset auth\nClear the basic authentication credentials\n> e.g. [`h reset auth`](#kuiexec?command=h%20reset%20auth)\n"
435+
},
436+
{
437+
"mode": "Configuration",
438+
"contentType": "text/markdown",
439+
"content": "\n#### set url <url>\nSets the base url to use in further requests. If <url> does not include the protocol, http is assumed. If <url> only specifies the port (e.g. :8080), localhost is assumed\n> e.g. [`h set url http://127.0.0.1:8080`](#kuiexec?command=h%20set%20url%20http%3A%2F%2F127.0.0.1%3A8080)\n\n#### [get url](#kuiexec?command=h%20get%20url)\nPrints the base url\n\n#### edit <file>\nOpens <file> for editing. Tip, hit key F1 for list of editor commands\n> e.g. [`edit body.json`](#kuiexec?command=edit%20body.json)\n"
440+
},
441+
{
442+
"mode": "Access Methods",
443+
"contentType": "text/markdown",
444+
"content": "\n#### get <uri>\nExecutes the GET request to url=<base-url>+<uri>\n> e.g. [`h get /messages`](#kuiexec?command=h%20get%20/messages)\n​\n#### post <uri> <file>\nExecutes the request POST <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h post /messages msg.json`](#kuiexec?command=h%20post%20%2Fmessages%20msg.json)\n​\n#### put <uri> <file>\nExecutes the request PUT <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h put /messages/foo msg.json`](#kuiexec?command=h%20put%20%2Fmessages%2Ffoo%20msg.json)\n​\n#### patch <uri> <file>\nExecutes the request PATCH <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h patch /messages msg.json`](#kuiexec?command=h%20patch%20%2Fmessages%20msg.json)\n\n#### delete <uri>\nExecutes the DELETE request to url=<base-url>+<uri>\n​\n#### set header <name> <value>\nSet the header <name> to <value>\n> e.g. [`h set header Authorization \"Bearer 5f7f35efcb800f2502f95cb5\"`](#kuiexec?command=h%20set%20header%20Authorization%20\"Bearer%205f7f35efcb800f2502f95cb5\")\n​\n#### [get headers](#kuiexec?command=h%20get%20headers)\nPrints the current set headers\n> e.g. [`h get headers`](#kuiexec?command=h%20get%20headers)\n​\n#### [reset headers](#kuiexec?command=h%20reset%20headers)\nClears the headers\n> e.g. [`h reset headers`](#kuiexec?command=h%20reset%20headers)\n"
445+
}
446+
]
358447
}
359448
]
360449
},
361-
"responseType": "MultiModalResponse",
362-
"historyIdx": 251
450+
"responseType": "NavResponse",
451+
"historyIdx": 11
363452
},
364453
"isExperimental": false,
365454
"isReplay": true,
366455
"execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199",
367-
"startTime": 1602238674617,
368-
"prefersTerminalPresentation": false,
456+
"startTime": 1603990807370,
369457
"outputOnly": false,
370458
"state": "valid-response"
371459
}

0 commit comments

Comments
 (0)