mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Rename "tw-*" messages to "tm-*"
This commit is contained in:
parent
db40ac85c2
commit
2f69ea362c
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/Download
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Download changes
|
||||
footer: <$button message="tw-close-tiddler">Close</$button>
|
||||
footer: <$button message="tm-close-tiddler">Close</$button>
|
||||
help: http://tiddlywiki.com/static/DownloadingChanges.html
|
||||
|
||||
Your browser only supports manual saving.
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/SaveInstructions
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Save your work
|
||||
footer: <$button message="tw-close-tiddler">Close</$button>
|
||||
footer: <$button message="tm-close-tiddler">Close</$button>
|
||||
help: http://tiddlywiki.com/static/SavingChanges.html
|
||||
|
||||
Your changes to this wiki need to be saved as a ~TiddlyWiki HTML file.
|
||||
|
@ -62,13 +62,13 @@ function SaverHandler(options) {
|
||||
}
|
||||
// Install the save action handlers
|
||||
if($tw.browser) {
|
||||
$tw.rootWidget.addEventListener("tw-save-wiki",function(event) {
|
||||
$tw.rootWidget.addEventListener("tm-save-wiki",function(event) {
|
||||
self.saveWiki({
|
||||
template: event.param,
|
||||
downloadType: "text/plain"
|
||||
});
|
||||
});
|
||||
$tw.rootWidget.addEventListener("tw-download-file",function(event) {
|
||||
$tw.rootWidget.addEventListener("tm-download-file",function(event) {
|
||||
self.saveWiki({
|
||||
method: "download",
|
||||
template: event.param,
|
||||
|
@ -19,7 +19,7 @@ exports.after = ["startup"];
|
||||
exports.synchronous = true;
|
||||
|
||||
exports.startup = function() {
|
||||
$tw.rootWidget.addEventListener("tw-set-password",function(event) {
|
||||
$tw.rootWidget.addEventListener("tm-set-password",function(event) {
|
||||
$tw.passwordPrompt.createPrompt({
|
||||
serviceName: "Set a new password for this TiddlyWiki",
|
||||
noUserName: true,
|
||||
@ -33,7 +33,7 @@ exports.startup = function() {
|
||||
}
|
||||
});
|
||||
});
|
||||
$tw.rootWidget.addEventListener("tw-clear-password",function(event) {
|
||||
$tw.rootWidget.addEventListener("tm-clear-password",function(event) {
|
||||
$tw.crypto.setPassword(null);
|
||||
});
|
||||
// Ensure that $:/isEncrypted is maintained properly
|
||||
|
@ -22,22 +22,22 @@ exports.synchronous = true;
|
||||
exports.startup = function() {
|
||||
// Install the modal message mechanism
|
||||
$tw.modal = new $tw.utils.Modal($tw.wiki);
|
||||
$tw.rootWidget.addEventListener("tw-modal",function(event) {
|
||||
$tw.rootWidget.addEventListener("tm-modal",function(event) {
|
||||
$tw.modal.display(event.param);
|
||||
});
|
||||
// Install the notification mechanism
|
||||
$tw.notifier = new $tw.utils.Notifier($tw.wiki);
|
||||
$tw.rootWidget.addEventListener("tw-notify",function(event) {
|
||||
$tw.rootWidget.addEventListener("tm-notify",function(event) {
|
||||
$tw.notifier.display(event.param);
|
||||
});
|
||||
// Install the scroller
|
||||
$tw.pageScroller = new $tw.utils.PageScroller();
|
||||
$tw.rootWidget.addEventListener("tw-scroll",function(event) {
|
||||
$tw.rootWidget.addEventListener("tm-scroll",function(event) {
|
||||
$tw.pageScroller.handleEvent(event);
|
||||
});
|
||||
var fullscreen = $tw.utils.getFullScreenApis();
|
||||
if(fullscreen) {
|
||||
$tw.rootWidget.addEventListener("tw-full-screen",function(event) {
|
||||
$tw.rootWidget.addEventListener("tm-full-screen",function(event) {
|
||||
if(document[fullscreen._fullscreenElement]) {
|
||||
document[fullscreen._exitFullscreen]();
|
||||
} else {
|
||||
@ -48,7 +48,7 @@ exports.startup = function() {
|
||||
// If we're being viewed on a data: URI then give instructions for how to save
|
||||
if(document.location.protocol === "data:") {
|
||||
$tw.rootWidget.dispatchEvent({
|
||||
type: "tw-modal",
|
||||
type: "tm-modal",
|
||||
param: "$:/language/Modals/SaveInstructions"
|
||||
});
|
||||
}
|
||||
|
@ -49,27 +49,27 @@ exports.startup = function() {
|
||||
openStartupTiddlers({defaultToCurrentStory: true});
|
||||
}
|
||||
},false)
|
||||
// Listen for the tw-browser-refresh message
|
||||
$tw.rootWidget.addEventListener("tw-browser-refresh",function(event) {
|
||||
// Listen for the tm-browser-refresh message
|
||||
$tw.rootWidget.addEventListener("tm-browser-refresh",function(event) {
|
||||
window.location.reload(true);
|
||||
});
|
||||
// Listen for the tw-home message
|
||||
$tw.rootWidget.addEventListener("tw-home",function(event) {
|
||||
// Listen for the tm-home message
|
||||
$tw.rootWidget.addEventListener("tm-home",function(event) {
|
||||
window.location.hash = "";
|
||||
var storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE),
|
||||
storyList = $tw.wiki.filterTiddlers(storyFilter);
|
||||
$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: "", list: storyList},$tw.wiki.getModificationFields());
|
||||
});
|
||||
// Listen for the tw-permalink message
|
||||
$tw.rootWidget.addEventListener("tw-permalink",function(event) {
|
||||
// Listen for the tm-permalink message
|
||||
$tw.rootWidget.addEventListener("tm-permalink",function(event) {
|
||||
updateLocationHash({
|
||||
updateAddressBar: "permalink",
|
||||
updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,"no").trim(),
|
||||
targetTiddler: event.param || event.tiddlerTitle
|
||||
});
|
||||
});
|
||||
// Listen for the tw-permaview message
|
||||
$tw.rootWidget.addEventListener("tw-permaview",function(event) {
|
||||
// Listen for the tm-permaview message
|
||||
$tw.rootWidget.addEventListener("tm-permaview",function(event) {
|
||||
updateLocationHash({
|
||||
updateAddressBar: "permaview",
|
||||
updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,"no").trim(),
|
||||
|
@ -26,7 +26,7 @@ ClassicStoryView.prototype.navigateTo = function(historyInfo) {
|
||||
var listItemWidget = this.listWidget.children[listElementIndex],
|
||||
targetElement = listItemWidget.findFirstDomNode();
|
||||
// Scroll the node into view
|
||||
this.listWidget.dispatchEvent({type: "tw-scroll", target: targetElement});
|
||||
this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement});
|
||||
};
|
||||
|
||||
ClassicStoryView.prototype.insert = function(widget) {
|
||||
|
@ -24,7 +24,7 @@ PopStoryView.prototype.navigateTo = function(historyInfo) {
|
||||
var listItemWidget = this.listWidget.children[listElementIndex],
|
||||
targetElement = listItemWidget.findFirstDomNode();
|
||||
// Scroll the node into view
|
||||
this.listWidget.dispatchEvent({type: "tw-scroll", target: targetElement});
|
||||
this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement});
|
||||
};
|
||||
|
||||
PopStoryView.prototype.insert = function(widget) {
|
||||
|
@ -48,13 +48,13 @@ function Syncer(options) {
|
||||
return confirmationMessage;
|
||||
});
|
||||
// Listen out for login/logout/refresh events in the browser
|
||||
$tw.rootWidget.addEventListener("tw-login",function() {
|
||||
$tw.rootWidget.addEventListener("tm-login",function() {
|
||||
self.handleLoginEvent();
|
||||
});
|
||||
$tw.rootWidget.addEventListener("tw-logout",function() {
|
||||
$tw.rootWidget.addEventListener("tm-logout",function() {
|
||||
self.handleLogoutEvent();
|
||||
});
|
||||
$tw.rootWidget.addEventListener("tw-server-refresh",function() {
|
||||
$tw.rootWidget.addEventListener("tm-server-refresh",function() {
|
||||
self.handleRefreshEvent();
|
||||
});
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ Modal.prototype.display = function(title,options) {
|
||||
attributes: {
|
||||
message: {
|
||||
type: "string",
|
||||
value: "tw-close-tiddler"
|
||||
value: "tm-close-tiddler"
|
||||
}
|
||||
},
|
||||
children: [{
|
||||
@ -152,12 +152,12 @@ Modal.prototype.display = function(title,options) {
|
||||
document.body.removeChild(wrapper);
|
||||
}
|
||||
},duration);
|
||||
// Don't let anyone else handle the tw-close-tiddler message
|
||||
// Don't let anyone else handle the tm-close-tiddler message
|
||||
return false;
|
||||
};
|
||||
headerWidgetNode.addEventListener("tw-close-tiddler",closeHandler,false);
|
||||
bodyWidgetNode.addEventListener("tw-close-tiddler",closeHandler,false);
|
||||
footerWidgetNode.addEventListener("tw-close-tiddler",closeHandler,false);
|
||||
headerWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
|
||||
bodyWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
|
||||
footerWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
|
||||
// Set the initial styles for the message
|
||||
$tw.utils.setStyle(modalBackdrop,[
|
||||
{opacity: "0"}
|
||||
|
@ -13,7 +13,7 @@ Module that creates a $tw.utils.Scroller object prototype that manages scrolling
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
Event handler for when the `tw-scroll` event hits the document body
|
||||
Event handler for when the `tm-scroll` event hits the document body
|
||||
*/
|
||||
var PageScroller = function() {
|
||||
this.idRequestFrame = null;
|
||||
@ -44,7 +44,7 @@ PageScroller.prototype.cancelScroll = function() {
|
||||
Handle an event
|
||||
*/
|
||||
PageScroller.prototype.handleEvent = function(event) {
|
||||
if(event.type === "tw-scroll") {
|
||||
if(event.type === "tm-scroll") {
|
||||
return this.scrollIntoView(event.target);
|
||||
}
|
||||
return true;
|
||||
|
@ -40,7 +40,7 @@ BrowseWidget.prototype.render = function(parent,nextSibling) {
|
||||
// Add a click event handler
|
||||
domNode.addEventListener("change",function (event) {
|
||||
self.wiki.readFiles(event.target.files,function(tiddlerFieldsArray) {
|
||||
self.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
|
||||
self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
|
||||
});
|
||||
return false;
|
||||
},false);
|
||||
|
@ -101,7 +101,7 @@ ButtonWidget.prototype.isPoppedUp = function() {
|
||||
ButtonWidget.prototype.navigateTo = function(event) {
|
||||
var bounds = this.domNodes[0].getBoundingClientRect();
|
||||
this.dispatchEvent({
|
||||
type: "tw-navigate",
|
||||
type: "tm-navigate",
|
||||
navigateTo: this.to,
|
||||
navigateFromTitle: this.getVariable("storyTiddler"),
|
||||
navigateFromNode: this,
|
||||
|
@ -97,7 +97,7 @@ DropZoneWidget.prototype.handleDropEvent = function(event) {
|
||||
$tw.utils.removeClass(this.domNodes[0],"tc-dragover");
|
||||
// Import any files in the drop
|
||||
var numFiles = this.wiki.readFiles(dataTransfer.files,function(tiddlerFieldsArray) {
|
||||
self.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
|
||||
self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
|
||||
});
|
||||
// Try to import the various data types we understand
|
||||
if(numFiles === 0) {
|
||||
@ -122,7 +122,7 @@ DropZoneWidget.prototype.importData = function(dataTransfer) {
|
||||
if(!tiddlerFields.title) {
|
||||
tiddlerFields.title = this.wiki.generateNewTitle("Untitled");
|
||||
}
|
||||
this.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify([tiddlerFields])});
|
||||
this.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify([tiddlerFields])});
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -188,7 +188,7 @@ DropZoneWidget.prototype.handlePasteEvent = function(event) {
|
||||
if(item.kind === "file") {
|
||||
// Import any files
|
||||
this.wiki.readFile(item.getAsFile(),function(tiddlerFieldsArray) {
|
||||
self.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
|
||||
self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
|
||||
});
|
||||
} else if(item.kind === "string") {
|
||||
// Create tiddlers from string items
|
||||
@ -199,7 +199,7 @@ DropZoneWidget.prototype.handlePasteEvent = function(event) {
|
||||
text: str,
|
||||
type: type
|
||||
};
|
||||
self.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify([tiddlerFields])});
|
||||
self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify([tiddlerFields])});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -17,10 +17,10 @@ var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
||||
var FieldManglerWidget = function(parseTreeNode,options) {
|
||||
this.initialise(parseTreeNode,options);
|
||||
this.addEventListeners([
|
||||
{type: "tw-remove-field", handler: "handleRemoveFieldEvent"},
|
||||
{type: "tw-add-field", handler: "handleAddFieldEvent"},
|
||||
{type: "tw-remove-tag", handler: "handleRemoveTagEvent"},
|
||||
{type: "tw-add-tag", handler: "handleAddTagEvent"}
|
||||
{type: "tm-remove-field", handler: "handleRemoveFieldEvent"},
|
||||
{type: "tm-add-field", handler: "handleAddFieldEvent"},
|
||||
{type: "tm-remove-tag", handler: "handleRemoveTagEvent"},
|
||||
{type: "tm-add-tag", handler: "handleAddTagEvent"}
|
||||
]);
|
||||
};
|
||||
|
||||
|
@ -110,7 +110,7 @@ LinkWidget.prototype.handleClickEvent = function (event) {
|
||||
// Send the click on it's way as a navigate event
|
||||
var bounds = this.domNodes[0].getBoundingClientRect();
|
||||
this.dispatchEvent({
|
||||
type: "tw-navigate",
|
||||
type: "tm-navigate",
|
||||
navigateTo: this.to,
|
||||
navigateFromTitle: this.getVariable("storyTiddler"),
|
||||
navigateFromNode: this,
|
||||
|
@ -17,7 +17,7 @@ var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
||||
var LinkCatcherWidget = function(parseTreeNode,options) {
|
||||
this.initialise(parseTreeNode,options);
|
||||
this.addEventListeners([
|
||||
{type: "tw-navigate", handler: "handleNavigateEvent"}
|
||||
{type: "tm-navigate", handler: "handleNavigateEvent"}
|
||||
]);
|
||||
};
|
||||
|
||||
@ -63,7 +63,7 @@ LinkCatcherWidget.prototype.refresh = function(changedTiddlers) {
|
||||
};
|
||||
|
||||
/*
|
||||
Handle a tw-navigate event
|
||||
Handle a tm-navigate event
|
||||
*/
|
||||
LinkCatcherWidget.prototype.handleNavigateEvent = function(event) {
|
||||
if(this.catchTo) {
|
||||
|
@ -19,17 +19,17 @@ var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
||||
var NavigatorWidget = function(parseTreeNode,options) {
|
||||
this.initialise(parseTreeNode,options);
|
||||
this.addEventListeners([
|
||||
{type: "tw-navigate", handler: "handleNavigateEvent"},
|
||||
{type: "tw-edit-tiddler", handler: "handleEditTiddlerEvent"},
|
||||
{type: "tw-delete-tiddler", handler: "handleDeleteTiddlerEvent"},
|
||||
{type: "tw-save-tiddler", handler: "handleSaveTiddlerEvent"},
|
||||
{type: "tw-cancel-tiddler", handler: "handleCancelTiddlerEvent"},
|
||||
{type: "tw-close-tiddler", handler: "handleCloseTiddlerEvent"},
|
||||
{type: "tw-close-all-tiddlers", handler: "handleCloseAllTiddlersEvent"},
|
||||
{type: "tw-close-other-tiddlers", handler: "handleCloseOtherTiddlersEvent"},
|
||||
{type: "tw-new-tiddler", handler: "handleNewTiddlerEvent"},
|
||||
{type: "tw-import-tiddlers", handler: "handleImportTiddlersEvent"},
|
||||
{type: "tw-perform-import", handler: "handlePerformImportEvent"}
|
||||
{type: "tm-navigate", handler: "handleNavigateEvent"},
|
||||
{type: "tm-edit-tiddler", handler: "handleEditTiddlerEvent"},
|
||||
{type: "tm-delete-tiddler", handler: "handleDeleteTiddlerEvent"},
|
||||
{type: "tm-save-tiddler", handler: "handleSaveTiddlerEvent"},
|
||||
{type: "tm-cancel-tiddler", handler: "handleCancelTiddlerEvent"},
|
||||
{type: "tm-close-tiddler", handler: "handleCloseTiddlerEvent"},
|
||||
{type: "tm-close-all-tiddlers", handler: "handleCloseAllTiddlersEvent"},
|
||||
{type: "tm-close-other-tiddlers", handler: "handleCloseOtherTiddlersEvent"},
|
||||
{type: "tm-new-tiddler", handler: "handleNewTiddlerEvent"},
|
||||
{type: "tm-import-tiddlers", handler: "handleImportTiddlersEvent"},
|
||||
{type: "tm-perform-import", handler: "handlePerformImportEvent"}
|
||||
]);
|
||||
};
|
||||
|
||||
@ -140,7 +140,7 @@ NavigatorWidget.prototype.addToHistory = function(title,fromPageRect) {
|
||||
};
|
||||
|
||||
/*
|
||||
Handle a tw-navigate event
|
||||
Handle a tm-navigate event
|
||||
*/
|
||||
NavigatorWidget.prototype.handleNavigateEvent = function(event) {
|
||||
this.addToStory(event.navigateTo,event.navigateFromTitle);
|
||||
@ -310,7 +310,7 @@ NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {
|
||||
));
|
||||
}
|
||||
if(!isRename && !this.wiki.isDraftModified(title)) {
|
||||
event.type = "tw-cancel-tiddler";
|
||||
event.type = "tm-cancel-tiddler";
|
||||
this.dispatchEvent(event);
|
||||
} else if(isConfirmed) {
|
||||
// Save the draft tiddler as the real tiddler
|
||||
|
@ -18,7 +18,7 @@ var ScrollableWidget = function(parseTreeNode,options) {
|
||||
this.initialise(parseTreeNode,options);
|
||||
this.scaleFactor = 1;
|
||||
this.addEventListeners([
|
||||
{type: "tw-scroll", handler: "handleScrollEvent"}
|
||||
{type: "tm-scroll", handler: "handleScrollEvent"}
|
||||
]);
|
||||
if($tw.browser) {
|
||||
this.requestAnimationFrame = window.requestAnimationFrame ||
|
||||
|
@ -2,7 +2,7 @@ title: $:/core/ui/AlertTemplate
|
||||
|
||||
<div class="tc-alert">
|
||||
<div class="tc-alert-toolbar">
|
||||
<$button message="tw-delete-tiddler" class="tc-btn-invisible">
|
||||
<$button message="tm-delete-tiddler" class="tc-btn-invisible">
|
||||
{{$:/core/images/delete-button}}</$button>
|
||||
</div>
|
||||
<div class="tc-alert-subtitle">
|
||||
|
@ -11,7 +11,7 @@ caption: {{$:/language/ControlPanel/Tools/Caption}}
|
||||
|
||||
! <<lingo Export/Heading>>
|
||||
|
||||
<$button message="tw-download-file" param="$:/core/templates/alltiddlers.template.html" class="tc-btn-big-green"><<lingo Export/AllAsStaticHTML/Caption>> {{$:/core/images/save-button}}</$button>
|
||||
<$button message="tm-download-file" param="$:/core/templates/alltiddlers.template.html" class="tc-btn-big-green"><<lingo Export/AllAsStaticHTML/Caption>> {{$:/core/images/save-button}}</$button>
|
||||
|
||||
! <<lingo Encryption/Heading>>
|
||||
|
||||
|
@ -5,8 +5,8 @@ tc-tiddler-frame tc-tiddler-edit-frame $(missingTiddlerClass)$ $(shadowTiddlerCl
|
||||
\end
|
||||
<div class=<<frame-classes>>>
|
||||
<$set name="storyTiddler" value=<<currentTiddler>>>
|
||||
<$keyboard key="escape" message="tw-cancel-tiddler">
|
||||
<$keyboard key="ctrl+enter" message="tw-save-tiddler">
|
||||
<$keyboard key="escape" message="tm-cancel-tiddler">
|
||||
<$keyboard key="ctrl+enter" message="tm-save-tiddler">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]" variable="listItem">
|
||||
<$transclude tiddler=<<listItem>>/>
|
||||
</$list>
|
||||
|
@ -21,7 +21,7 @@ $:/config/EditTemplateFields/Visibility/$(currentField)$
|
||||
<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>
|
||||
</td>
|
||||
<td class="tc-edit-field-remove">
|
||||
<$button message="tw-remove-field" param=<<currentField>> class="tc-btn-invisible">{{$:/core/images/delete-button}}</$button>
|
||||
<$button message="tm-remove-field" param=<<currentField>> class="tc-btn-invisible">{{$:/core/images/delete-button}}</$button>
|
||||
</td>
|
||||
</tr>
|
||||
</$list>
|
||||
@ -36,7 +36,7 @@ $:/config/EditTemplateFields/Visibility/$(currentField)$
|
||||
</em> <span class="tc-edit-field-add-name">
|
||||
<$edit-text tiddler="$:/temp/newfieldname" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} class="tc-edit-texteditor"/>
|
||||
</span> <span class="tc-edit-field-add-button">
|
||||
<$button message="tw-add-field" param={{$:/temp/newfieldname}} set="$:/temp/newfieldname" setTo="" class="">
|
||||
<$button message="tm-add-field" param={{$:/temp/newfieldname}} set="$:/temp/newfieldname" setTo="" class="">
|
||||
<<lingo Fields/Add/Button>>
|
||||
</$button>
|
||||
</span>
|
||||
|
@ -9,7 +9,7 @@ background-color:$(backgroundColor)$;
|
||||
<$fieldmangler>
|
||||
<$list filter="[all[current]tags[]sort[title]]" storyview="pop"><$set name="backgroundColor" value={{!!color}}><span style=<<tag-styles>> class="tc-tag-label">
|
||||
<$view field="title" format="text" />
|
||||
<$button message="tw-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">×</$button></span>
|
||||
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">×</$button></span>
|
||||
</$set>
|
||||
</$list>
|
||||
|
||||
@ -17,7 +17,7 @@ background-color:$(backgroundColor)$;
|
||||
<span class="tc-add-tag-name">
|
||||
<$edit-text tiddler="$:/temp/NewTagName" tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-edit-texteditor"/>
|
||||
</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <span class="tc-add-tag-button">
|
||||
<$button message="tw-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class="">
|
||||
<$button message="tm-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class="">
|
||||
<<lingo Tags/Add/Button>>
|
||||
</$button>
|
||||
</span>
|
||||
@ -29,7 +29,7 @@ background-color:$(backgroundColor)$;
|
||||
|
||||
<div class="tc-block-dropdown">
|
||||
|
||||
<$linkcatcher set="$:/temp/NewTagName" setTo="" message="tw-add-tag">
|
||||
<$linkcatcher set="$:/temp/NewTagName" setTo="" message="tm-add-tag">
|
||||
<$list filter="[!is[shadow]tags[]search{$:/temp/NewTagName}sort[title]]">
|
||||
<$link>
|
||||
<$set name="backgroundColor" value={{!!color}}>
|
||||
|
@ -2,7 +2,7 @@ title: $:/core/ui/EditTemplate/type
|
||||
tags: $:/tags/EditTemplate
|
||||
|
||||
\define lingo-base() $:/language/EditTemplate/
|
||||
<p><$fieldmangler><em class="tc-edit"><<lingo Type/Prompt>></em> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tc-edit-typeeditor"/> <$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <$button message="tw-remove-field" param="type" class="tc-btn-invisible tc-btn-icon">{{$:/core/images/delete-button}}</$button></$fieldmangler></p>
|
||||
<p><$fieldmangler><em class="tc-edit"><<lingo Type/Prompt>></em> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tc-edit-typeeditor"/> <$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <$button message="tm-remove-field" param="type" class="tc-btn-invisible tc-btn-icon">{{$:/core/images/delete-button}}</$button></$fieldmangler></p>
|
||||
|
||||
<div class="tc-block-dropdown-wrapper">
|
||||
<$reveal state=<<qualify "$:/state/popup/type-dropdown">> type="nomatch" text="" default="">
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditToolbar
|
||||
caption: {{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}
|
||||
description: {{$:/language/Buttons/Cancel/Hint}}
|
||||
|
||||
<$button message="tw-cancel-tiddler" title={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-cancel-tiddler" title={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/cancel-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditToolbar
|
||||
caption: {{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}
|
||||
description: {{$:/language/Buttons/Delete/Hint}}
|
||||
|
||||
<$button message="tw-delete-tiddler" title={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-delete-tiddler" title={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/delete-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditToolbar
|
||||
caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}
|
||||
description: {{$:/language/Buttons/Save/Hint}}
|
||||
|
||||
<$button message="tw-save-tiddler" title={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-save-tiddler" title={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/done-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}
|
||||
description: {{$:/language/Buttons/CloseAll/Hint}}
|
||||
|
||||
<$button message="tw-close-all-tiddlers" title={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-close-all-tiddlers" title={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/close-all-button}}
|
||||
</$list>
|
||||
|
@ -4,7 +4,7 @@ caption: {{$:/core/images/locked-padlock}} {{$:/language/Buttons/Encryption/Capt
|
||||
description: {{$:/language/Buttons/Encryption/Hint}}
|
||||
|
||||
<$reveal type="match" state="$:/isEncrypted" text="yes">
|
||||
<$button message="tw-clear-password" title={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-clear-password" title={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/locked-padlock}}
|
||||
</$list>
|
||||
@ -14,7 +14,7 @@ description: {{$:/language/Buttons/Encryption/Hint}}
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
||||
<$button message="tw-set-password" title={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-set-password" title={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/unlocked-padlock}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}
|
||||
description: {{$:/language/Buttons/FullScreen/Hint}}
|
||||
|
||||
<$button message="tw-full-screen" title={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-full-screen" title={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/full-screen-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}
|
||||
description: {{$:/language/Buttons/Home/Hint}}
|
||||
|
||||
<$button message="tw-home" title={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-home" title={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/home-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}
|
||||
description: {{$:/language/Buttons/NewTiddler/Hint}}
|
||||
|
||||
<$button message="tw-new-tiddler" title={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-new-tiddler" title={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/new-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}
|
||||
description: {{$:/language/Buttons/Refresh/Hint}}
|
||||
|
||||
<$button message="tw-browser-refresh" title={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-browser-refresh" title={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/refresh-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}
|
||||
description: {{$:/language/Buttons/SaveWiki/Hint}}
|
||||
|
||||
<$button message="tw-save-wiki" param={{$:/config/SaveWikiButton/Template}} title={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-save-wiki" param={{$:/config/SaveWikiButton/Template}} title={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<span class="tc-dirty-indicator">
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/save-button}}
|
||||
|
@ -5,8 +5,8 @@ caption: {{$:/language/SideBar/Open/Caption}}
|
||||
\define lingo-base() $:/language/CloseAll/
|
||||
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
|
||||
|
||||
<$button message="tw-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/></$link>
|
||||
<$button message="tm-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/></$link>
|
||||
|
||||
</$list>
|
||||
|
||||
<$button message="tw-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>
|
||||
<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>
|
||||
|
@ -11,8 +11,8 @@ tags: $:/tags/ViewTemplate
|
||||
|
||||
{{||$:/core/ui/ImportListing}}
|
||||
|
||||
<$button message="tw-delete-tiddler" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button>
|
||||
<$button message="tw-perform-import" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button>
|
||||
<$button message="tm-delete-tiddler" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button>
|
||||
<$button message="tm-perform-import" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}
|
||||
description: {{$:/language/Buttons/Clone/Hint}}
|
||||
|
||||
<$button message="tw-new-tiddler" param=<<currentTiddler>> title={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-new-tiddler" param=<<currentTiddler>> title={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/clone-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}
|
||||
description: {{$:/language/Buttons/CloseOthers/Hint}}
|
||||
|
||||
<$button message="tw-close-other-tiddlers" param=<<currentTiddler>> title={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-close-other-tiddlers" param=<<currentTiddler>> title={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/close-others-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}
|
||||
description: {{$:/language/Buttons/Close/Hint}}
|
||||
|
||||
<$button message="tw-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/close-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}
|
||||
description: {{$:/language/Buttons/Edit/Hint}}
|
||||
|
||||
<$button message="tw-edit-tiddler" title={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-edit-tiddler" title={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/edit-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}
|
||||
description: {{$:/language/Buttons/Permalink/Hint}}
|
||||
|
||||
<$button message="tw-permalink" title={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-permalink" title={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/permalink-button}}
|
||||
</$list>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/ViewToolbar $:/tags/PageControls
|
||||
caption: {{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}
|
||||
description: {{$:/language/Buttons/Permaview/Hint}}
|
||||
|
||||
<$button message="tw-permaview" title={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$button message="tm-permaview" title={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tw-config-toolbar-class>>>
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/permaview-button}}
|
||||
</$list>
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: $:/snippets/download-wiki-button
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Tools/Download/
|
||||
<$button message="tw-download-file" param="$:/core/save/all" class="tc-btn-big-green"><<lingo Full/Caption>> {{$:/core/images/save-button}}</$button>
|
||||
<$button message="tm-download-file" param="$:/core/save/all" class="tc-btn-big-green"><<lingo Full/Caption>> {{$:/core/images/save-button}}</$button>
|
@ -3,10 +3,10 @@ title: $:/snippets/encryptionstatus
|
||||
\define lingo-base() $:/language/ControlPanel/Tools/Encryption/
|
||||
<$reveal type="match" state="$:/isEncrypted" text="yes">
|
||||
<<lingo Enabled/Prompt>>
|
||||
<$button message="tw-clear-password"><<lingo ClearPassword/Button>></$button>
|
||||
<$button message="tw-set-password"><<lingo ChangePassword/Button>></$button>
|
||||
<$button message="tm-clear-password"><<lingo ClearPassword/Button>></$button>
|
||||
<$button message="tm-set-password"><<lingo ChangePassword/Button>></$button>
|
||||
</$reveal>
|
||||
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
||||
<<lingo Disabled/Prompt>>
|
||||
<$button message="tw-set-password"><<lingo SetPassword/Button>></$button>
|
||||
<$button message="tm-set-password"><<lingo SetPassword/Button>></$button>
|
||||
</$reveal>
|
@ -10,14 +10,14 @@ title: $:/snippets/paletteeditor
|
||||
|
||||
<$list filter="[all[current]is[shadow]is[tiddler]]" variable="listItem">
|
||||
<<lingo Prompt/Modified>>
|
||||
<$button message="tw-delete-tiddler" param={{$:/palette}}><<lingo Reset/Caption>></$button>
|
||||
<$button message="tm-delete-tiddler" param={{$:/palette}}><<lingo Reset/Caption>></$button>
|
||||
</$list>
|
||||
|
||||
<$list filter="[all[current]is[shadow]!is[tiddler]]" variable="listItem">
|
||||
<<lingo Clone/Prompt>>
|
||||
</$list>
|
||||
|
||||
<$button message="tw-new-tiddler" param={{$:/palette}}><<lingo Clone/Caption>></$button>
|
||||
<$button message="tm-new-tiddler" param={{$:/palette}}><<lingo Clone/Caption>></$button>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
|
@ -2,5 +2,5 @@ title: HelloThere
|
||||
|
||||
This is an experimental edition of TiddlyWiki5 for use with [[Tahoe-LAFS|https://tahoe-lafs.org/]]. At this point it is largely for experimentation by @zooko. Click the ''save changes'' button to PUT the updated TiddlyWiki HTML file back to the server.
|
||||
|
||||
<$button message="tw-new-tiddler">New Tiddler</$button>
|
||||
<$button message="tw-save-wiki">Save Changes</$button>
|
||||
<$button message="tm-new-tiddler">New Tiddler</$button>
|
||||
<$button message="tm-save-wiki">Save Changes</$button>
|
||||
|
@ -5,7 +5,7 @@ title: Features
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define alert-demo()
|
||||
<$fieldmangler tiddler="SampleAlert"><$set name="currentTiddler" value="SampleAlert"><$button message="tw-add-tag" param="$:/tags/Alert">alerts</$button></$set></$fieldmangler>
|
||||
<$fieldmangler tiddler="SampleAlert"><$set name="currentTiddler" value="SampleAlert"><$button message="tm-add-tag" param="$:/tags/Alert">alerts</$button></$set></$fieldmangler>
|
||||
\end
|
||||
* The ability to save changes on almost any desktop HTML5 compatible-browser, with custom apps to enable [[Saving on iPad/iPhone]] and [[Android|Saving on Android]], and a cross-platform [[Firefox extension|Saving with TiddlyFox]] that even runs on Android
|
||||
* Support for pluggable themes and colour palettes (see the [[control panel|$:/ControlPanel]])
|
||||
@ -15,11 +15,11 @@ type: text/vnd.tiddlywiki
|
||||
* Integrated [[AES encryption|Saving with Encryption]]
|
||||
* TiddlyWiki isn't just a wiki - you can build custom applications with it like this TaskManagementExample
|
||||
* Full internationalization support, with TiddlyWiki itself available in several languages (see the [[control panel|$:/ControlPanel]])
|
||||
* Familiar user interface elements like <<alert-demo>>, <$button message="tw-modal" param="SampleWizard">wizards</$button> and <$button message="tw-notify" param="SampleNotification">notifications</$button>
|
||||
* Familiar user interface elements like <<alert-demo>>, <$button message="tm-modal" param="SampleWizard">wizards</$button> and <$button message="tm-notify" param="SampleNotification">notifications</$button>
|
||||
* Easily [[import|ImportTiddlers]] content via drag and drop, copy and paste, or browsing for local files
|
||||
* Clone existing tiddlers (for example, <$button message="tw-new-tiddler" param=<<currentTiddler>>>clone this tiddler</$button>)
|
||||
* Clone existing tiddlers (for example, <$button message="tm-new-tiddler" param=<<currentTiddler>>>clone this tiddler</$button>)
|
||||
* TiddlyWiki is [[surprisingly scalable|Scalability]] to many thousands of tiddlers and megabytes of content
|
||||
* Try out the <$button message="tw-full-screen">full screen support</$button>
|
||||
* Try out the <$button message="tm-full-screen">full screen support</$button>
|
||||
* Explore the [[D3.js visualisation plugin|http://tiddlywiki.com/d3demo.html]]
|
||||
* [[CodeMirror support via a plugin|http://tiddlywiki.com/codemirrordemo.html]]
|
||||
* [[Markdown support via a plugin|http://tiddlywiki.com/markdowndemo.html]]
|
||||
|
@ -14,7 +14,7 @@ This is version <<version-link>> of ~TiddlyWiki, a major reboot designed [[for t
|
||||
|
||||
<div class="tc-message-box">
|
||||
|
||||
<a class="tw-message-icon" href="http://tiddlywiki.com/" target="_blank">{{TiddlyWiki Classic.png}}</a>
|
||||
<a class="tc-message-icon" href="http://tiddlywiki.com/" target="_blank">{{TiddlyWiki Classic.png}}</a>
|
||||
|
||||
!! TiddlyWikiClassic
|
||||
|
||||
|
@ -183,30 +183,30 @@ $body$
|
||||
">>
|
||||
## <<toc-heading "Widget Messages" "
|
||||
## WidgetMessages
|
||||
## [[tw-cancel-tiddler|WidgetMessage: tw-cancel-tiddler]]
|
||||
## [[tw-clear-password|WidgetMessage: tw-clear-password]]
|
||||
## [[tw-close-all-tiddlers|WidgetMessage: tw-close-all-tiddlers]]
|
||||
## [[tw-close-other-tiddlers|WidgetMessage: tw-close-other-tiddlers]]
|
||||
## [[tw-close-tiddler|WidgetMessage: tw-close-tiddler]]
|
||||
## [[tw-delete-tiddler|WidgetMessage: tw-delete-tiddler]]
|
||||
## [[tw-download-file|WidgetMessage: tw-download-file]]
|
||||
## [[tw-edit-tiddler|WidgetMessage: tw-edit-tiddler]]
|
||||
## [[tw-full-screen|WidgetMessage: tw-full-screen]]
|
||||
## [[tw-home|WidgetMessage: tw-home]]
|
||||
## [[tw-import-tiddlers|WidgetMessage: tw-import-tiddlers]]
|
||||
## [[tw-login|WidgetMessage: tw-login]]
|
||||
## [[tw-logout|WidgetMessage: tw-logout]]
|
||||
## [[tw-modal|WidgetMessage: tw-modal]]
|
||||
## [[tw-navigate|WidgetMessage: tw-navigate]]
|
||||
## [[tw-new-tiddler|WidgetMessage: tw-new-tiddler]]
|
||||
## [[tw-notify|WidgetMessage: tw-notify]]
|
||||
## [[tw-perform-import|WidgetMessage: tw-perform-import]]
|
||||
## [[tw-permalink|WidgetMessage: tw-permalink]]
|
||||
## [[tw-permaview|WidgetMessage: tw-permaview]]
|
||||
## [[tw-save-tiddler|WidgetMessage: tw-save-tiddler]]
|
||||
## [[tw-save-wiki|WidgetMessage: tw-save-wiki]]
|
||||
## [[tw-server-refresh|WidgetMessage: tw-server-refresh]]
|
||||
## [[tw-set-password|WidgetMessage: tw-set-password]]
|
||||
## [[tm-cancel-tiddler|WidgetMessage: tm-cancel-tiddler]]
|
||||
## [[tm-clear-password|WidgetMessage: tm-clear-password]]
|
||||
## [[tm-close-all-tiddlers|WidgetMessage: tm-close-all-tiddlers]]
|
||||
## [[tm-close-other-tiddlers|WidgetMessage: tm-close-other-tiddlers]]
|
||||
## [[tm-close-tiddler|WidgetMessage: tm-close-tiddler]]
|
||||
## [[tm-delete-tiddler|WidgetMessage: tm-delete-tiddler]]
|
||||
## [[tm-download-file|WidgetMessage: tm-download-file]]
|
||||
## [[tm-edit-tiddler|WidgetMessage: tm-edit-tiddler]]
|
||||
## [[tm-full-screen|WidgetMessage: tm-full-screen]]
|
||||
## [[tm-home|WidgetMessage: tm-home]]
|
||||
## [[tm-import-tiddlers|WidgetMessage: tm-import-tiddlers]]
|
||||
## [[tm-login|WidgetMessage: tm-login]]
|
||||
## [[tm-logout|WidgetMessage: tm-logout]]
|
||||
## [[tm-modal|WidgetMessage: tm-modal]]
|
||||
## [[tm-navigate|WidgetMessage: tm-navigate]]
|
||||
## [[tm-new-tiddler|WidgetMessage: tm-new-tiddler]]
|
||||
## [[tm-notify|WidgetMessage: tm-notify]]
|
||||
## [[tm-perform-import|WidgetMessage: tm-perform-import]]
|
||||
## [[tm-permalink|WidgetMessage: tm-permalink]]
|
||||
## [[tm-permaview|WidgetMessage: tm-permaview]]
|
||||
## [[tm-save-tiddler|WidgetMessage: tm-save-tiddler]]
|
||||
## [[tm-save-wiki|WidgetMessage: tm-save-wiki]]
|
||||
## [[tm-server-refresh|WidgetMessage: tm-server-refresh]]
|
||||
## [[tm-set-password|WidgetMessage: tm-set-password]]
|
||||
">>
|
||||
## <<toc-heading "Filter Operators" "
|
||||
## FilterOperators
|
||||
|
@ -16,7 +16,7 @@ Click this link to get started: HelloThere
|
||||
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
|
||||
<div>
|
||||
|
||||
! <$button message="tw-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
||||
! <$button message="tm-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
||||
|
||||
<$transclude/>
|
||||
</div>
|
||||
@ -34,7 +34,7 @@ Click this link to get started: HelloThere
|
||||
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
|
||||
<div>
|
||||
|
||||
! <$button message="tw-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
||||
! <$button message="tm-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
||||
|
||||
<$transclude/>
|
||||
|
||||
|
@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
|
||||
|
||||
Alerts are displayed as yellow boxes overlaying the main TiddlyWiki window. Each one corresponds to a tiddler with the tag [[$:/tags/Alert]]. Clicking the delete icon on an alert deletes the corresponding tiddler.
|
||||
|
||||
Here's a demo <$fieldmangler tiddler="SampleAlert"><$set name="currentTiddler" value="SampleAlert"><$button message="tw-add-tag" param="$:/tags/Alert">alert</$button></$set></$fieldmangler>.
|
||||
Here's a demo <$fieldmangler tiddler="SampleAlert"><$set name="currentTiddler" value="SampleAlert"><$button message="tm-add-tag" param="$:/tags/Alert">alert</$button></$set></$fieldmangler>.
|
||||
|
||||
Alert tiddlers should have the following fields:
|
||||
|
||||
|
@ -8,9 +8,9 @@ Several features work in concert to give the desired behaviour for draft tiddler
|
||||
|
||||
* The ListWidget can optionally render draft tiddlers through a different template
|
||||
* The NavigatorWidget incorporates handlers for the following events:
|
||||
** `tw-new-tiddler` for creating a new tiddler in draft mode
|
||||
** `tw-edit-tiddler` for moving a tiddler into edit mode
|
||||
** `tw-cancel-tiddler` for cancelling a tiddler out of edit mode
|
||||
** `tw-save-tiddler` for saving a draft tiddler
|
||||
** `tm-new-tiddler` for creating a new tiddler in draft mode
|
||||
** `tm-edit-tiddler` for moving a tiddler into edit mode
|
||||
** `tm-cancel-tiddler` for cancelling a tiddler out of edit mode
|
||||
** `tm-save-tiddler` for saving a draft tiddler
|
||||
* Draft tiddlers are automatically excluded from search operations
|
||||
|
||||
|
@ -12,7 +12,7 @@ The EncryptionMechanism is implemented with the following elements:
|
||||
|
||||
* A PasswordVault within the BootMechanism that holds the current encryption password
|
||||
* The ability of the BootMechanism to read a block of encrypted tiddlers from the TiddlyWiki file, to prompt the user for a password, and to decrypt the tiddlers
|
||||
* Handlers for the messages [[WidgetMessage: tw-set-password]] and [[WidgetMessage: tw-clear-password]] that handle the user interface for password changes
|
||||
* Handlers for the messages [[WidgetMessage: tm-set-password]] and [[WidgetMessage: tm-clear-password]] that handle the user interface for password changes
|
||||
* The EncryptWidget within the main file template that encrypts a filtered list of tiddlers with the currently held password
|
||||
* The [[$:/isEncrypted]] tiddler that contains "yes" or "no" according to whether there is a password in the password vault
|
||||
** The availability of this tiddler allows the RevealWidget to be used to selectively display user interface elements according to whether encryption is in force
|
||||
|
@ -13,7 +13,7 @@ The history list also maintains the field ''current-tiddler'' that contains the
|
||||
```
|
||||
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
|
||||
|
||||
<$button message="tw-close-tiddler" class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$reveal></$link>
|
||||
<$button message="tm-close-tiddler" class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$reveal></$link>
|
||||
|
||||
</$list>
|
||||
```
|
||||
@ -22,6 +22,6 @@ Which renders the same as the "Open" sidebar tab, with the addition of a tick ag
|
||||
|
||||
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
|
||||
|
||||
<$button message="tw-close-tiddler" class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$reveal></$link>
|
||||
<$button message="tm-close-tiddler" class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$reveal></$link>
|
||||
|
||||
</$list>
|
||||
|
@ -28,7 +28,7 @@ Note how this approach makes the ''open'' tab in the sidebar very easy to implem
|
||||
|
||||
```
|
||||
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
|
||||
<$button message="tw-close-tiddler" class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/></$link>
|
||||
<$button message="tm-close-tiddler" class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/></$link>
|
||||
</$list>
|
||||
```
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
created: 20140819110529062
|
||||
modified: 20140826110529062
|
||||
tags: message
|
||||
title: WidgetMessage: tw-browser-refresh
|
||||
title: WidgetMessage: tm-browser-refresh
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-browser-refresh` message refreshes the page, causing the re-initialisation of any plugin tiddlers. It does not require any properties on the `event` object.
|
||||
The `tm-browser-refresh` message refreshes the page, causing the re-initialisation of any plugin tiddlers. It does not require any properties on the `event` object.
|
||||
|
||||
The refresh message is usually generated with the ButtonWidget and is handled by the core.
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140226193622350
|
||||
modified: 20140226193906089
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-cancel-tiddler
|
||||
title: WidgetMessage: tm-cancel-tiddler
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-cancel-tiddler` message abandons the changes in a draft tiddler. It requires the following properties on the `event` object:
|
||||
The `tm-cancel-tiddler` message abandons the changes in a draft tiddler. It requires the following properties on the `event` object:
|
||||
|
||||
|!Name |!Description |
|
||||
|param |Title of the tiddler that is being cancelled out of edit mode |
|
||||
|
@ -1,9 +1,9 @@
|
||||
created: 20140226084018038
|
||||
modified: 20140226084916556
|
||||
tags: message
|
||||
title: WidgetMessage: tw-clear-password
|
||||
title: WidgetMessage: tm-clear-password
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-clear-password` message clears the current password from the password vault, clearing the [[$:/isEncrypted]] tiddler. See EncryptionMechanism for details.
|
||||
The `tm-clear-password` message clears the current password from the password vault, clearing the [[$:/isEncrypted]] tiddler. See EncryptionMechanism for details.
|
||||
|
||||
This message is typically generated with the ButtonWidget, and is handled by the core itself.
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140226194242809
|
||||
modified: 20140226194341303
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-close-all-tiddlers
|
||||
title: WidgetMessage: tm-close-all-tiddlers
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The close all tiddlers message empties the story list.
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140302183306544
|
||||
modified: 20140302183352966
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-close-other-tiddlers
|
||||
title: WidgetMessage: tm-close-other-tiddlers
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-close-other-tiddlers` message removes all but a specified tiddler from the story list. It requires the following properties on the `event` object:
|
||||
The `tm-close-other-tiddlers` message removes all but a specified tiddler from the story list. It requires the following properties on the `event` object:
|
||||
|
||||
|!Name |!Description |
|
||||
|param |Title of the tiddler that is not to be closed |
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140226193940778
|
||||
modified: 20140226194227227
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-close-tiddler
|
||||
title: WidgetMessage: tm-close-tiddler
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-close-tiddler` message removes a specified tiddler from the story list. It requires the following properties on the `event` object:
|
||||
The `tm-close-tiddler` message removes a specified tiddler from the story list. It requires the following properties on the `event` object:
|
||||
|
||||
|!Name |!Description |
|
||||
|param |Title of the tiddler that is to be closed |
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140226090324129
|
||||
modified: 20140226090441236
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-delete-tiddler
|
||||
title: WidgetMessage: tm-delete-tiddler
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-delete-tiddler` message deletes the specified tiddler and removes it from the current story. If the tiddler is a draft then it also deletes the tiddler specified in the `draft.of` field. The delete tiddler message requires the following properties on the `event` object:
|
||||
The `tm-delete-tiddler` message deletes the specified tiddler and removes it from the current story. If the tiddler is a draft then it also deletes the tiddler specified in the `draft.of` field. The delete tiddler message requires the following properties on the `event` object:
|
||||
|
||||
|!Name |!Description |
|
||||
|param |Title of the tiddler that is to be deleted |
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140811112201235
|
||||
modified: 20140811115140378
|
||||
tags: message
|
||||
title: WidgetMessage: tw-download-file
|
||||
title: WidgetMessage: tm-download-file
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The download file message causes the current saver module to prompt the user to download the result of parsing a specified template tiddler as a file. It requires the following properties on the `event` object:
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140226085529797
|
||||
modified: 20140226090641987
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-edit-tiddler
|
||||
title: WidgetMessage: tm-edit-tiddler
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-edit-tiddler` message replaces the specified tiddler in the current story with a draft version of itself. It requires the following properties on the `event` object:
|
||||
The `tm-edit-tiddler` message replaces the specified tiddler in the current story with a draft version of itself. It requires the following properties on the `event` object:
|
||||
|
||||
|!Name |!Description |
|
||||
|param |Title of the tiddler that is being switched to edit mode |
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140811112400855
|
||||
modified: 20140811113627373
|
||||
tags: message
|
||||
title: WidgetMessage: tw-full-screen
|
||||
title: WidgetMessage: tm-full-screen
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The fullscreen message toggles the "fullscreen" mode of the browser, if it supports it.
|
||||
|
@ -1,9 +1,9 @@
|
||||
created: 20140819110529062
|
||||
modified: 20140819110529062
|
||||
tags: message
|
||||
title: WidgetMessage: tw-home
|
||||
title: WidgetMessage: tm-home
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-home` message closes any open tiddlers and re-opens the default tiddlers set in [[$:/DefaultTiddlers]]. It also remove any [[permalink|PermaLinks]] from the browser address bar. It does not require any properties on the `event` object.
|
||||
The `tm-home` message closes any open tiddlers and re-opens the default tiddlers set in [[$:/DefaultTiddlers]]. It also remove any [[permalink|PermaLinks]] from the browser address bar. It does not require any properties on the `event` object.
|
||||
|
||||
The home message is usually generated with the ButtonWidget and is handled by the core.
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140716084658099
|
||||
modified: 20140716195055502
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-import-tiddlers
|
||||
title: WidgetMessage: tm-import-tiddlers
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-import-tiddlers` message inserts a list of tiddlers into the pending import tiddler [[$:/Import]]. It also applies any active ''upgrader'' modules to each tiddler as it arrives (see the UpgradeMechanism for more details).
|
||||
The `tm-import-tiddlers` message inserts a list of tiddlers into the pending import tiddler [[$:/Import]]. It also applies any active ''upgrader'' modules to each tiddler as it arrives (see the UpgradeMechanism for more details).
|
||||
|
||||
|!Name |!Description |
|
||||
|param |JSON text of the array of tiddlers to be imported |
|
||||
@ -13,7 +13,7 @@ The import tiddlers message is usually generated with the DropzoneWidget or the
|
||||
|
||||
! Configuration Variables
|
||||
|
||||
The variable `tw-auto-open-on-import` controls whether the `tw-import-tiddlers` message automatically triggers the display of the pending import tiddler [[$:/Import]]:
|
||||
The variable `tw-auto-open-on-import` controls whether the `tm-import-tiddlers` message automatically triggers the display of the pending import tiddler [[$:/Import]]:
|
||||
|
||||
* ''no'': The pending import tiddler is not opened in the story
|
||||
* ''yes'': The pending import tiddler is opened in th story. This is the default
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140811112445887
|
||||
modified: 20140811113336694
|
||||
tags: message
|
||||
title: WidgetMessage: tw-login
|
||||
title: WidgetMessage: tm-login
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The login message prompts the user for a username and password and attempts to login to the current serverside host. The tiddler [[$:/status/IsLoggedIn]] reflects the current login status with the values "yes" or "no", and [[$:/status/UserName]] reflects the current username.
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140811112457311
|
||||
modified: 20140811113344084
|
||||
tags: message
|
||||
title: WidgetMessage: tw-logout
|
||||
title: WidgetMessage: tm-logout
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The logout message attempts to log the user out of the current serverside host. The tiddler [[$:/status/IsLoggedIn]] reflects the current login status with the values "yes" or "no", and [[$:/status/UserName]] reflects the current username.
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140811112133701
|
||||
modified: 20140811120203685
|
||||
tags: message
|
||||
title: WidgetMessage: tw-modal
|
||||
title: WidgetMessage: tm-modal
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The modal message displays a specified tiddler in a modal overlay that dims the main page. It requires the following properties on the `event` object:
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140226085215941
|
||||
modified: 20140226085454346
|
||||
tags: message
|
||||
title: WidgetMessage: tw-navigate
|
||||
title: WidgetMessage: tm-navigate
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-navigate` message inserts the specified tiddler into the story and puts it at the top of the history stack. If the tiddler is not already present in the story then it will be positioned immediately after the tiddler specified in `event.navigateFromTitle`.
|
||||
The `tm-navigate` message inserts the specified tiddler into the story and puts it at the top of the history stack. If the tiddler is not already present in the story then it will be positioned immediately after the tiddler specified in `event.navigateFromTitle`.
|
||||
|
||||
The navigate message requires the following properties on the `event` object:
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140226194405353
|
||||
modified: 20140724194729158
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-new-tiddler
|
||||
title: WidgetMessage: tm-new-tiddler
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The new tiddler message creates a new draft tiddler and adds it to the current story. It requires the following properties on the `event` object:
|
||||
@ -17,5 +17,5 @@ The new tiddler message is usually generated with the LinkWidget or the ButtonWi
|
||||
To make a button that creates new tiddlers tagged "task", create a tiddler called "TaskTemplate" with that tag, and then make your button like this:
|
||||
|
||||
```
|
||||
<$button message="tw-new-tiddler" param="TaskTemplate">New Task</$button>
|
||||
<$button message="tm-new-tiddler" param="TaskTemplate">New Task</$button>
|
||||
```
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140811112304772
|
||||
modified: 20140811120248738
|
||||
tags: message
|
||||
title: WidgetMessage: tw-notify
|
||||
title: WidgetMessage: tm-notify
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The notify message briefly displays a specified tiddler as a small alert in the upper right corner of the page. It requires the following properties on the `event` object:
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140716084242809
|
||||
modified: 20140716084341303
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-perform-import
|
||||
title: WidgetMessage: tm-perform-import
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The perform import message copies tiddlers from a specified plugin into the main store. See the UpgradeMechanism for an overview of how it is used by the core.
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140723103751357
|
||||
modified: 20140723103751357
|
||||
tags: message
|
||||
title: WidgetMessage: tw-permalink
|
||||
title: WidgetMessage: tm-permalink
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-permalink` message changes the browser address bar to form a [[permalink|PermaLinks]] to a specified tiddler, defaulting to the current tiddler.
|
||||
The `tm-permalink` message changes the browser address bar to form a [[permalink|PermaLinks]] to a specified tiddler, defaulting to the current tiddler.
|
||||
|
||||
The permalink message supports the following properties on the `event` object:
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140723103751357
|
||||
modified: 20140723103751357
|
||||
tags: message
|
||||
title: WidgetMessage: tw-permaview
|
||||
title: WidgetMessage: tm-permaview
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-permaview` message changes the browser address bar to form a [[permaview|PermaLinks]] that specifies all the open tiddlers in the main story river, and the tiddler to be navigated, defaulting to the current tiddler.
|
||||
The `tm-permaview` message changes the browser address bar to form a [[permaview|PermaLinks]] that specifies all the open tiddlers in the main story river, and the tiddler to be navigated, defaulting to the current tiddler.
|
||||
|
||||
The permaview message supports the following properties on the `event` object:
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20140226090544323
|
||||
modified: 20140226090729828
|
||||
tags: message navigator-message
|
||||
title: WidgetMessage: tw-save-tiddler
|
||||
title: WidgetMessage: tm-save-tiddler
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-save-tiddler` message is applied to draft tiddlers. It saves the draft over the tiddler identified in the `draft.of` field and then deletes the draft. The save tiddler message requires the following properties on the `event` object:
|
||||
The `tm-save-tiddler` message is applied to draft tiddlers. It saves the draft over the tiddler identified in the `draft.of` field and then deletes the draft. The save tiddler message requires the following properties on the `event` object:
|
||||
|
||||
|!Name |!Description |
|
||||
|param |Title of the tiddler that is being switched out of edit mode |
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140811112325641
|
||||
modified: 20140811115149288
|
||||
tags: message
|
||||
title: WidgetMessage: tw-save-wiki
|
||||
title: WidgetMessage: tm-save-wiki
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The save wiki message causes the current saver module to perform a full save operation. The save operation can involve user interaction.
|
||||
|
@ -1,7 +1,7 @@
|
||||
created: 20140811112435281
|
||||
modified: 20140811113453568
|
||||
tags: message
|
||||
title: WidgetMessage: tw-server-refresh
|
||||
title: WidgetMessage: tm-server-refresh
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The server refresh message attempts to synchronise the latest changes to the current serverside host.
|
||||
|
@ -1,9 +1,9 @@
|
||||
created: 20140226084623977
|
||||
modified: 20140226085200323
|
||||
tags: message
|
||||
title: WidgetMessage: tw-set-password
|
||||
title: WidgetMessage: tm-set-password
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The `tw-set-password` message prompts the user for a new password and stores it in the password vault, replacing any existing password. It also sets the [[$:/isEncrypted]] tiddler. See EncryptionMechanism for details.
|
||||
The `tm-set-password` message prompts the user for a new password and stores it in the password vault, replacing any existing password. It also sets the [[$:/isEncrypted]] tiddler. See EncryptionMechanism for details.
|
||||
|
||||
This message is typically generated with the ButtonWidget, and is handled by the core itself.
|
||||
|
@ -1,10 +1,10 @@
|
||||
title: SampleWizard
|
||||
tags: demo
|
||||
subtitle: I'm a modal wizard
|
||||
footer: <$button message="tw-close-tiddler">Close</$button>
|
||||
footer: <$button message="tm-close-tiddler">Close</$button>
|
||||
|
||||
This is a modal wizard dialogue, stored in the tiddler SampleWizard.
|
||||
|
||||
{{Motovun Jack.jpg}}
|
||||
|
||||
You can <$button message="tw-modal" param="SampleWizard2">nest wizards</$button>.
|
||||
You can <$button message="tm-modal" param="SampleWizard2">nest wizards</$button>.
|
||||
|
@ -1,8 +1,8 @@
|
||||
title: SampleWizard2
|
||||
tags: demo
|
||||
subtitle: I'm another modal wizard
|
||||
footer: <$button message="tw-close-tiddler">Close</$button>
|
||||
footer: <$button message="tm-close-tiddler">Close</$button>
|
||||
|
||||
This is another modal wizard dialogue, stored in the tiddler SampleWizard2.
|
||||
|
||||
You can <$button message="tw-modal" param="SampleWizard">nest wizards</$button>.
|
||||
You can <$button message="tm-modal" param="SampleWizard">nest wizards</$button>.
|
||||
|
@ -1,3 +1,3 @@
|
||||
title: $:/editions/tw5.com/snippets/download-empty-button
|
||||
|
||||
<$button message="tw-download-file" param="$:/editions/tw5.com/download-empty" class="tc-btn-big-green">Download Empty {{$:/core/images/save-button}}</$button>
|
||||
<$button message="tm-download-file" param="$:/editions/tw5.com/download-empty" class="tc-btn-big-green">Download Empty {{$:/core/images/save-button}}</$button>
|
@ -5,7 +5,7 @@ tags: widget
|
||||
|
||||
! Introduction
|
||||
|
||||
The browse widget displays an HTML file browser button that allows the user to choose one or more files to import. It sends a [[WidgetMessage: tw-import-tiddlers]] carrying a JSON representation of the tiddlers imported from the files up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
|
||||
The browse widget displays an HTML file browser button that allows the user to choose one or more files to import. It sends a [[WidgetMessage: tm-import-tiddlers]] carrying a JSON representation of the tiddlers imported from the files up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
|
||||
|
||||
! Content and Attributes
|
||||
|
||||
|
@ -7,7 +7,7 @@ tags: widget
|
||||
|
||||
The dropzone widget creates an area into which the user can drag files and other objects. It also supports pasting via the clipboard, although browser support is currently limited.
|
||||
|
||||
It sends a [[WidgetMessage: tw-import-tiddlers]] carrying a JSON representation of the tiddlers to be imported up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
|
||||
It sends a [[WidgetMessage: tm-import-tiddlers]] carrying a JSON representation of the tiddlers to be imported up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
|
||||
|
||||
! Content and Attributes
|
||||
|
||||
|
@ -9,10 +9,10 @@ type: text/vnd.tiddlywiki
|
||||
The field mangler widget manipulates the fields and tags of a tiddler. It does so in response to the following WidgetMessages:
|
||||
|
||||
|!Message |!Description |
|
||||
|''tw-remove-field'' |Remove the field specified in `event.param` |
|
||||
|''tw-add-field'' |Add the field specified in `event.param` |
|
||||
|''tw-remove-tag'' |Remove the tag specified in `event.param` |
|
||||
|''tw-add-tag'' |Add the tag specified in `event.param` |
|
||||
|''tm-remove-field'' |Remove the field specified in `event.param` |
|
||||
|''tm-add-field'' |Add the field specified in `event.param` |
|
||||
|''tm-remove-tag'' |Remove the tag specified in `event.param` |
|
||||
|''tm-add-tag'' |Add the tag specified in `event.param` |
|
||||
|
||||
! Content and Attributes
|
||||
|
||||
|
@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
|
||||
|
||||
! Introduction
|
||||
|
||||
The link catcher widget traps [[WidgetMessage: tw-navigate]] dispatched within its child content by performing any or all of these actions:
|
||||
The link catcher widget traps [[WidgetMessage: tm-navigate]] dispatched within its child content by performing any or all of these actions:
|
||||
|
||||
* sending a different widget message
|
||||
* setting a tiddler to the title of the navigated tiddler
|
||||
|
@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
|
||||
|
||||
! Introduction
|
||||
|
||||
The scrollable widget wraps its content in a scrollable frame. The user can scroll the contents with the mouse or with touch gestures. Code can use the [[WidgetMessage: tw-scroll]] to programmatically scroll specific DOM nodes into view.
|
||||
The scrollable widget wraps its content in a scrollable frame. The user can scroll the contents with the mouse or with touch gestures. Code can use the [[WidgetMessage: tm-scroll]] to programmatically scroll specific DOM nodes into view.
|
||||
|
||||
! Content and Attributes
|
||||
|
||||
@ -16,7 +16,7 @@ The content of the `<$scrollable>` widget is displayed within a pair of wrapper
|
||||
|class |The CSS class(es) to be applied to the outer DIV |
|
||||
|fallthrough |See below |
|
||||
|
||||
If a scrollable widget can't handle the `tw-scroll` message because the inner DIV fits within the outer DIV, then by default the message falls through to the parent widget. Setting the ''fallthrough'' attribute to `no` prevents this behaviour.
|
||||
If a scrollable widget can't handle the `tm-scroll` message because the inner DIV fits within the outer DIV, then by default the message falls through to the parent widget. Setting the ''fallthrough'' attribute to `no` prevents this behaviour.
|
||||
|
||||
! Examples
|
||||
|
||||
|
@ -7,7 +7,7 @@ type: text/vnd.tiddlywiki
|
||||
Widgets provide rich functionality within WikiText. They have the same syntax as [[HTML elements|HTML in WikiText]], but the tag name always starts with `$`. For example:
|
||||
|
||||
```
|
||||
<$button message="tw-close-tiddler">Close Me!</$button>
|
||||
<$button message="tm-close-tiddler">Close Me!</$button>
|
||||
```
|
||||
|
||||
Note that widgets inherit all the features of [[HTML in WikiText]]:
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/Download
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Änderungen Speichern
|
||||
footer: <$button message="tw-close-tiddler">Schließen</$button>
|
||||
footer: <$button message="tm-close-tiddler">Schließen</$button>
|
||||
help: http://tiddlywiki.com/static/DownloadingChanges.html
|
||||
|
||||
Ihr Browser unterstützt nur manuelles Speichern.
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/SaveInstructions
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Aktuellen Stand speichern
|
||||
footer: <$button message="tw-close-tiddler">Schließen</$button>
|
||||
footer: <$button message="tm-close-tiddler">Schließen</$button>
|
||||
help: http://tiddlywiki.com/static/SavingChanges.html
|
||||
|
||||
Ihre Änderungen sollen als ~TiddlyWiki HTML Datei gespeichert werden.
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/Download
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Télécharger vos modifications
|
||||
footer: <$button message="tw-close-tiddler">Fermer</$button>
|
||||
footer: <$button message="tm-close-tiddler">Fermer</$button>
|
||||
help: http://tiddlywiki.com/static/DownloadingChanges.html
|
||||
|
||||
Votre navigateur ne supporte que l'enregistrement manuel.
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/SaveInstructions
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Enregistrez votre travail
|
||||
footer: <$button message="tw-close-tiddler">Fermer</$button>
|
||||
footer: <$button message="tm-close-tiddler">Fermer</$button>
|
||||
help: http://tiddlywiki.com/static/SavingChanges.html
|
||||
|
||||
Les modifications effectuées dans ce wiki doivent être sauvegardées sous forme de fichier ~TiddlyWiki HTML.
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/Download
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Download changes
|
||||
footer: <$button message="tw-close-tiddler">Chiudi</$button>
|
||||
footer: <$button message="tm-close-tiddler">Chiudi</$button>
|
||||
help: http://tiddlywiki.com/static/DownloadingChanges.html
|
||||
|
||||
Il tuo browser supporta solo il salvataggio manuale.
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/SaveInstructions
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Save your work
|
||||
footer: <$button message="tw-close-tiddler">Chiudi</$button>
|
||||
footer: <$button message="tm-close-tiddler">Chiudi</$button>
|
||||
help: http://tiddlywiki.com/static/SavingChanges.html
|
||||
|
||||
Le modifiche a questo wiki devono essere salvate come un file ~TiddlyWiki HTML.
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/Download
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: 変更のダウンロード
|
||||
footer: <$button message="tw-close-tiddler">閉じる</$button>
|
||||
footer: <$button message="tm-close-tiddler">閉じる</$button>
|
||||
help: http://tiddlywiki.com/static/DownloadingChanges.html
|
||||
|
||||
このブラウザは手動での保存しかできません。
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/SaveInstructions
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: 作業内容を保存する
|
||||
footer: <$button message="tw-close-tiddler">閉じる</$button>
|
||||
footer: <$button message="tm-close-tiddler">閉じる</$button>
|
||||
help: http://tiddlywiki.com/static/SavingChanges.html
|
||||
|
||||
この wiki への変更内容を ~TiddlyWiki HTML ファイルとして保存する必要があります。
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/Download
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Download changes
|
||||
footer: <$button message="tw-close-tiddler">关闭</$button>
|
||||
footer: <$button message="tm-close-tiddler">关闭</$button>
|
||||
help: http://tiddlywiki.com/
|
||||
|
||||
您的浏览器只支援手动保存。
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/language/Modals/SaveInstructions
|
||||
type: text/vnd.tiddlywiki
|
||||
subtitle: Save your work
|
||||
footer: <$button message="tw-close-tiddler">关闭</$button>
|
||||
footer: <$button message="tm-close-tiddler">关闭</$button>
|
||||
help: http://tiddlywiki.com/static/SavingChanges.html
|
||||
|
||||
您对此 wiki 的变更需被保存为 ~TiddlyWiki HTML 文件。
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user