From d416781110da48f1e409d90e2dce601d5dc83481 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 11 Oct 2012 14:56:30 +0100 Subject: [PATCH] More tw5dropbox updates --- tw5dropbox/mainwiki/plugins/dropbox-main.js | 4 ++++ .../tiddlers/TiddlyWiki5 in the Sky with Dropbox.tid | 8 +++++++- tw5dropbox/mainwiki/tiddlers/WikiTemplate.tid | 8 +------- tw5dropbox/plugins/dropbox.js | 3 ++- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/tw5dropbox/mainwiki/plugins/dropbox-main.js b/tw5dropbox/mainwiki/plugins/dropbox-main.js index 9c73faa1a..1e134f38a 100644 --- a/tw5dropbox/mainwiki/plugins/dropbox-main.js +++ b/tw5dropbox/mainwiki/plugins/dropbox-main.js @@ -12,9 +12,13 @@ Startup the Dropbox main app /*global $tw: false */ "use strict"; +var titleLoadedWikis = "$:/plugins/dropbox/LoadedWikis"; + exports.startup = function() { + $tw.wiki.addTiddler({title: titleLoadedWikis, text: "no"},true); // Load tiddlers $tw.plugins.dropbox.loadWikiFiles("/",function() { + $tw.wiki.addTiddler({title: titleLoadedWikis, text: "yes"},true); console.log("Loaded all wikis",$tw.wiki.tiddlers); }); }; diff --git a/tw5dropbox/mainwiki/tiddlers/TiddlyWiki5 in the Sky with Dropbox.tid b/tw5dropbox/mainwiki/tiddlers/TiddlyWiki5 in the Sky with Dropbox.tid index 493ad15e6..b61968302 100644 --- a/tw5dropbox/mainwiki/tiddlers/TiddlyWiki5 in the Sky with Dropbox.tid +++ b/tw5dropbox/mainwiki/tiddlers/TiddlyWiki5 in the Sky with Dropbox.tid @@ -2,9 +2,15 @@ title: TiddlyWiki5 in the Sky with Dropbox Welcome to TiddlyWiki5 in the Sky with Dropbox. +<< +Loading your wikis from Dropbox +>> + +<< ! Your ~TiddlyWikis -((( [tag[wiki]] ))(WikiTemplate)) +<> +>> ! Create new ~TiddlyWiki diff --git a/tw5dropbox/mainwiki/tiddlers/WikiTemplate.tid b/tw5dropbox/mainwiki/tiddlers/WikiTemplate.tid index 641be1e10..2bcbaf1df 100644 --- a/tw5dropbox/mainwiki/tiddlers/WikiTemplate.tid +++ b/tw5dropbox/mainwiki/tiddlers/WikiTemplate.tid @@ -1,10 +1,4 @@ title: WikiTemplate -
-
-<> -
-
-<> -
+
<> - <> <>
diff --git a/tw5dropbox/plugins/dropbox.js b/tw5dropbox/plugins/dropbox.js index b02870634..f94bc3d70 100644 --- a/tw5dropbox/plugins/dropbox.js +++ b/tw5dropbox/plugins/dropbox.js @@ -86,7 +86,8 @@ $tw.plugins.dropbox.loadWikiFiles = function(path,callback) { for(var s=0; s