<$button> Save Plugin to Server
<$action-websocketmessage $type='savePluginFolder' pluginName='$:/plugins/Your/Plugin'/>
</$button>
syncer-browser-tiddlyweb - 15:31:55 23 10 2018
XMLHttpRequest error code: 404
syncer-browser-tiddlyweb - 15:31:56 23 10 2018
Sync error while processing '$:/StoryList':
XMLHttpRequest error code: 404
syncer-browser-tiddlyweb - 15:31:56 23 10 2018
Sync error while processing '$:/plugins/OokTech/Bob/Unsent':
XMLHttpRequest error code: 404
Error: WebExtension context not found! ExtensionParent.jsm:1014:13
we are insidehttp://127.0.0.1:8081/Recipes logsimple.js:15:3
Error: Could not establish connection. Receiving end does not exist. Browser.js:3:1937
moz-extension://3175b0c3-efc9-4241-8dff-066790403f8d/background.html: chrome tabs query did not return a result while changing window focus
Log.js:3:3828
TiddlyWebAdaptor: Getting status $:/core/modules/utils/logger.js:33:10
Logging system initialised at Tue Oct 23 2018 15:31:55 GMT-0700 (PDT) common.js:206:17
syncer-browser-tiddlyweb: XMLHttpRequest error code: 404 $:/core/modules/utils/logger.js:33:10
Opened socket $:/plugins/OokTech/Bob/BrowserWebSocketsSetup.js:77:7
[Show/hide message details.] tempTab is undefined background.js:662
XML Parsing Error: no root element found
Location: http://127.0.0.1:8081/status
Line Number 1, Column 1: status:1:1
XML Parsing Error: no root element found
Location: http://127.0.0.1:8081/Recipes
Line Number 1, Column 1: Recipes:1:1
syncer-browser-tiddlyweb: Dispatching 'save' task: $:/StoryList $:/core/modules/utils/logger.js:33:10
syncer-browser-tiddlyweb: Sync error while processing '$:/StoryList':
XMLHttpRequest error code: 404 $:/core/modules/utils/logger.js:33:10
syncer-browser-tiddlyweb: Dispatching 'save' task: $:/plugins/OokTech/Bob/Unsent $:/core/modules/utils/logger.js:33:10
XML Parsing Error: no root element found
Location: http://127.0.0.1:8081/recipes/undefined/tiddlers/%24%3A%2FStoryList
Line Number 1, Column 1: $:/StoryList:1:1
syncer-browser-tiddlyweb: Sync error while processing '$:/plugins/OokTech/Bob/Unsent':
XMLHttpRequest error code: 404 $:/core/modules/utils/logger.js:33:10
XML Parsing Error: no root element found
Location: http://127.0.0.1:8081/recipes/undefined/tiddlers/%24%3A%2Fplugins%2FOokTech%2FBob%2FUnsent
Line Number 1, Column 1: $:/plugins/OokTech/Bob/Unsent:1:120 years ago I spent a lot of time on the original c2 wiki. I ran one of its sister sites, GreenCheese, edited about 2000 pages of the original WardsWiki, and built the first open source clone of it, “CvWiki". So I saw most of the heat-death of c2 up close and personal. I was one of the dozen folk Ward picked as stewards to try to defend it form the trolls … unsuccessfully …
Right now I'm running the “free and open source agile” community at http://xscalealliance.org . We have a TW at http://xscale.wiki but most of our communications are going via slack. I see slack as very inferior to the wiki way and I’m keen to open up xscale.wiki to multiple users. But given the broad potential community I think I need git integration to do it.
I had been thinking that we’d just let practitioners use TW's single user node.js server to edit, and then submit pull requests in the usual git way. I probably don’t need to tell you that’s clunky …
What I’m hoping for is a multi-user mode where users are able to make a number of local edits on their local copy of the wiki, then when they press "save" we would have a pull-request generated automagically along with a little form for them to fill in the purpose of their edits. After that, normal github-flow should be sufficient for the community to police its own development.
Though I think we might also want the “Recents” tab to be improved to change the river to reflect the recently changed tiddlers. RecentChanges was the beating pulse of c2 … to the point that back in the day many of us made it our browser’s homepage. We called ourselves "RecentChangesJunkies" ...
No worries if you meant something completely different by this but I thought it might save us a lot of duplicated effort if you’re going down this path and I'm enormously impressed with the progress you've made on Bob to date!
Cheers,
Pete
I have no idea what 'virtual addresses' are supposed to be ...
[img[./f/bm/img/Funny-Sheep-Facts.jpg]]C:\bag\PortableApps\twBOB\ext\bm\img\Funny-Sheep-Facts.jpg
I had to add the fileURLPrefix (undocumented) before it would work.
Having to serve images from one location is a bit limiting, when you may have Wikis in multiple locations.
I just created sub-folders inside the folder I identified as my filePath so that I can keep the images for a given wiki separate from the others.
What I am wondering is whether when you create a new Wiki you can be prompted to define a "shorthand ID" for it to ensure you never forget the base address you need for files so you don't get in a mess? This comes from concern some of my wiki have many images associated with them.
Why is setting a "shorthand ID" useful? You can use it as a variable that is invoked in a Bob script passed to the OS that tells its where to copy the files from and where to. Also a problem arises if you don't because, if you change the name of the wiki, it becomes unclear where to find them. Basically I (personally) think a set shorthand ID could be useful.
Mark S. wrote:I had to add the fileURLPrefix (undocumented) before it would work.
It's semi-documented. It was documented enough for me to know it was important.
Having to serve images from one location is a bit limiting, when you may have Wikis in multiple locations.
Its easy to create subordinate levels within the "files" folder so that files can be segregated as needed.
@TiddlyTweeter wrote:
It's semi-documented. It was documented enough for me to know it was important.
Where exactly is it "semi-documented" ?
But having to have all your images in one location, no matter how you divvy that location up, is what's limiting.
With plain TW, or TW with tiddlyserver, your files can be somewhere in respect to your TW location, no matter where it is. That way you can zip up the contents of a directory and have all the information that's required to make a complete TW-eco system.
On the other hand Bob scripts can ameliorate the issue somewhat (like quite easy "copy" via OS from and to). But the "virtual" addressing in the wiki itself still needs fixing (i.e. "./f/img/fred.jpg" -> "./img/fred.jpg") when you export to singular.
I don't understand why it needs fileURLPrefix . It means automatically that any existing media tiddlers you have will have to have their path names changed.
The server Bob uses a web server that can serve multiple wikis, when the server gets a request it has to determine what the url is supposed to point to, if you don't have a prefix for files than requests to the server can be ambiguous about if they are supposed to be a served file or a wiki and you get inconsistent behaviour. When you have inconsistent behaviour is almost always a security risk.
The reasons are the same as why until 5.1.18 comes out the node version didn't have a static file server and that the static file server with the server in 5.1.18 does the same thing: