mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 08:14:50 +00:00
Hide the dropbox system tiddlers as shadow tiddlers
This commit is contained in:
parent
149216ff7d
commit
b48cbb8673
@ -26,7 +26,7 @@ exports.startup = function() {
|
||||
}
|
||||
if(wikiName) {
|
||||
$tw.plugins.dropbox.wikiName = wikiName;
|
||||
$tw.wiki.addTiddler({title: titleWikiName, text: $tw.plugins.dropbox.wikiName});
|
||||
$tw.wiki.addTiddler({title: titleWikiName, text: $tw.plugins.dropbox.wikiName},true);
|
||||
// Load tiddlers
|
||||
$tw.plugins.dropbox.loadTiddlerFiles("/" + $tw.plugins.dropbox.wikiName + "/tiddlers",function() {
|
||||
console.log("Loaded all tiddlers",$tw.wiki.tiddlers);
|
||||
|
@ -37,7 +37,7 @@ $tw.plugins.dropbox.login = function() {
|
||||
return $tw.plugins.dropbox.showError(error);
|
||||
}
|
||||
// Mark us as logged in
|
||||
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "yes"});
|
||||
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "yes"},true);
|
||||
// Get user information
|
||||
$tw.plugins.dropbox.getUserInfo(function() {
|
||||
// Invoke any dropbox-startup modules
|
||||
@ -58,7 +58,7 @@ $tw.plugins.dropbox.getUserInfo = function(callback) {
|
||||
}
|
||||
$tw.plugins.dropbox.userInfo = userInfo;
|
||||
// Save the username
|
||||
$tw.wiki.addTiddler({title: titleUserName, text: userInfo.name});
|
||||
$tw.wiki.addTiddler({title: titleUserName, text: userInfo.name},true);
|
||||
callback();
|
||||
});
|
||||
};
|
||||
@ -71,7 +71,7 @@ $tw.plugins.dropbox.logout = function() {
|
||||
}
|
||||
// Mark us as logged out
|
||||
$tw.wiki.deleteTiddler(titleUserName);
|
||||
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"});
|
||||
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"},true);
|
||||
});
|
||||
};
|
||||
|
||||
@ -217,7 +217,7 @@ exports.startup = function() {
|
||||
return;
|
||||
}
|
||||
// Mark us as not logged in
|
||||
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"});
|
||||
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"},true);
|
||||
// Initialise Dropbox for sandbox access
|
||||
$tw.plugins.dropbox.client = new Dropbox.Client({key: apiKey, sandbox: true});
|
||||
// Use the basic redirection authentication driver
|
||||
|
Loading…
Reference in New Issue
Block a user