1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-03-08 00:39:51 +00:00

Improve demo

This commit is contained in:
Jermolene
2018-10-14 18:35:07 +01:00
parent f2917c3355
commit a2d3778465
3 changed files with 53 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
{
"tiddlers": [
{
"file": "../../../tw5.com/tiddlers/demonstrations/Alice in Wonderland.tid",
"isTiddlerFile": true
}
]
}

View File

@@ -0,0 +1,38 @@
title: HelloThere
! External Pipe Demos
Status: {{JobStatus}} {{JobStatus!!message}} <$button message="tm-server-refresh">Refresh</$button>
<$button>
<$action-sendmessage $message="tm-execute-job" commands="--version" statusTitle="JobStatus"/>
Job!
</$button>
<$button>
<$action-sendmessage $message="tm-execute-job" commands="--versionitis" statusTitle="JobStatus"/>
Illegal command
</$button>
<$button>
<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="mimic" 3="[[Alice in Wonderland]]" 4="5" 5="5000" statusTitle="JobStatus"/>
Mimic
</$button>
<$button>
<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="stats" 3="[[Alice in Wonderland]]" statusTitle="JobStatus"/>
Stats
</$button>
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
</$button>
!! Demo Output
The output generated by the demos appears here:
{{PipeOutput}}

View File

@@ -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"
}
},