From a2d3778465c23b14c4e066ea7fbf0ced3cc5d003 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 14 Oct 2018 18:35:07 +0100 Subject: [PATCH] Improve demo --- .../Alice in Wolderland/tiddlywiki.files | 8 ++++ .../tiddlers/system/HelloThere.tid | 38 +++++++++++++++++++ editions/externalpipesdemo/tiddlywiki.info | 13 ++++--- 3 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 editions/externalpipesdemo/tiddlers/Alice in Wolderland/tiddlywiki.files create mode 100644 editions/externalpipesdemo/tiddlers/system/HelloThere.tid diff --git a/editions/externalpipesdemo/tiddlers/Alice in Wolderland/tiddlywiki.files b/editions/externalpipesdemo/tiddlers/Alice in Wolderland/tiddlywiki.files new file mode 100644 index 000000000..33190fc28 --- /dev/null +++ b/editions/externalpipesdemo/tiddlers/Alice in Wolderland/tiddlywiki.files @@ -0,0 +1,8 @@ +{ + "tiddlers": [ + { + "file": "../../../tw5.com/tiddlers/demonstrations/Alice in Wonderland.tid", + "isTiddlerFile": true + } + ] +} \ No newline at end of file diff --git a/editions/externalpipesdemo/tiddlers/system/HelloThere.tid b/editions/externalpipesdemo/tiddlers/system/HelloThere.tid new file mode 100644 index 000000000..b1c6f6a83 --- /dev/null +++ b/editions/externalpipesdemo/tiddlers/system/HelloThere.tid @@ -0,0 +1,38 @@ +title: HelloThere + +! External Pipe Demos + +Status: {{JobStatus}} {{JobStatus!!message}} <$button message="tm-server-refresh">Refresh + +<$button> +<$action-sendmessage $message="tm-execute-job" commands="--version" statusTitle="JobStatus"/> +Job! + + +<$button> +<$action-sendmessage $message="tm-execute-job" commands="--versionitis" statusTitle="JobStatus"/> +Illegal command + + +<$button> +<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="mimic" 3="[[Alice in Wonderland]]" 4="5" 5="5000" statusTitle="JobStatus"/> +Mimic + + +<$button> +<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="stats" 3="[[Alice in Wonderland]]" statusTitle="JobStatus"/> +Stats + + +This demo requires the example task `reverser.js 8081` to be running in a separate command window. + +<$button> +<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="reverser" 3="[[Alice in Wonderland]]" statusTitle="JobStatus"/> +Reverser + + +!! Demo Output + +The output generated by the demos appears here: + +{{PipeOutput}} diff --git a/editions/externalpipesdemo/tiddlywiki.info b/editions/externalpipesdemo/tiddlywiki.info index 062dc3deb..7e065d941 100644 --- a/editions/externalpipesdemo/tiddlywiki.info +++ b/editions/externalpipesdemo/tiddlywiki.info @@ -1,14 +1,15 @@ { "description": "Edition demonstrating external pipes", "plugins": [ + "tiddlywiki/tiddlyweb" ], "themes": [ "tiddlywiki/vanilla", "tiddlywiki/snowwhite" ], - "includeWikis": [ - "../tw5.com" - ], + "config": { + "allow-remote-commands": true + }, "external-pipes": { "reverser": { "type": "socket", @@ -20,7 +21,7 @@ "output": { "format": "text", "tiddler": { - "title": "HelloThere", + "title": "PipeOutput", "type": "text/plain" } }, @@ -41,7 +42,7 @@ "error": { "format": "text", "tiddler": { - "title": "HelloThere", + "title": "PipeOutput", "type": "text/plain", "result": "error" } @@ -61,7 +62,7 @@ "output": { "format": "text", "tiddler": { - "title": "HelloThere", + "title": "PipeOutput", "type": "text/plain" } },