mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-03-08 00:39:51 +00:00
Improve demo
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"tiddlers": [
|
||||
{
|
||||
"file": "../../../tw5.com/tiddlers/demonstrations/Alice in Wonderland.tid",
|
||||
"isTiddlerFile": true
|
||||
}
|
||||
]
|
||||
}
|
||||
38
editions/externalpipesdemo/tiddlers/system/HelloThere.tid
Normal file
38
editions/externalpipesdemo/tiddlers/system/HelloThere.tid
Normal 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}}
|
||||
@@ -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"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user