mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-05 17:16:49 +00:00
Rename "shadow" tiddlers to "system" tiddlers
What we have at the moment isn't really the same as TiddlyWiki classic's shadow tiddlers, it's a much simpler system for excluding tiddlers. We'll use the term "shadow" instead to refer to the way that tiddlers in plugins behave, which is exactly like TiddlyWiki classic's shadow tiddlers.
This commit is contained in:
@@ -26,7 +26,7 @@ $tw.plugins.dropbox = {
|
||||
client: null, // Dropbox.js client object
|
||||
fileInfo: {}, // Hashmap of each filename as retrieved from Dropbox (including .meta files): {versionTag:,title:}
|
||||
titleInfo: {}, // Hashmap of each tiddler title retrieved from Dropbox to filename
|
||||
// Titles of various shadow tiddlers used by the plugin
|
||||
// Titles of various system tiddlers used by the plugin
|
||||
titleIsLoggedIn: "$:/plugins/dropbox/IsLoggedIn",
|
||||
titleUserName: "$:/plugins/dropbox/UserName",
|
||||
titlePublicAppUrl: "$:/plugins/dropbox/PublicAppUrl",
|
||||
@@ -385,11 +385,11 @@ Save the index file
|
||||
*/
|
||||
$tw.plugins.dropbox.saveTiddlerIndex = function(path,callback) {
|
||||
// Get the tiddler index information
|
||||
var index = {tiddlers: [],shadows: [], fileInfo: $tw.plugins.dropbox.fileInfo};
|
||||
var index = {tiddlers: [],systemTiddlers: [], fileInfo: $tw.plugins.dropbox.fileInfo};
|
||||
// First all the tiddlers
|
||||
$tw.wiki.forEachTiddler(function(title,tiddler) {
|
||||
if(tiddler.isShadow) {
|
||||
index.shadows.push(tiddler.fields);
|
||||
if(tiddler.isSystem) {
|
||||
index.systemTiddlers.push(tiddler.fields);
|
||||
} else {
|
||||
index.tiddlers.push(tiddler.fields);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user