diff --git a/.gitignore b/.gitignore index 0ab5b300f..412759161 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ node_modules/ /test-results/ /playwright-report/ /playwright/.cache/ +$__StoryList.tid diff --git a/boot/boot.js b/boot/boot.js index 1965efb5c..d993499b6 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -177,6 +177,7 @@ document: defaults to current document eventListeners: array of event listeners (this option won't work until $tw.utils.addEventListeners() has been loaded) */ $tw.utils.domMaker = function(tag,options) { + var options = options || {}; var doc = options.document || document; var element = doc.createElementNS(options.namespace || "http://www.w3.org/1999/xhtml",tag); if(options["class"]) { @@ -218,9 +219,34 @@ $tw.utils.error = function(err) { heading = dm("h1",{text: errHeading}), prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}), message = dm("div",{text: err, "class":"tc-error-message"}), - button = dm("div",{children: [dm("button",{text: ( $tw.language == undefined ? "close" : $tw.language.getString("Buttons/Close/Caption") )})], "class": "tc-error-prompt"}), - form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"}); + closeButton = dm("div",{children: [dm("button",{text: ( $tw.language == undefined ? "close" : $tw.language.getString("Buttons/Close/Caption") )})], "class": "tc-error-prompt"}), + downloadButton = dm("div",{children: [dm("button",{text: ( $tw.language == undefined ? "download tiddlers" : $tw.language.getString("Buttons/EmergencyDownload/Caption") )})], "class": "tc-error-prompt"}), + form = dm("form",{children: [heading,prompt,downloadButton,message,closeButton], "class": "tc-error-form"}); document.body.insertBefore(form,document.body.firstChild); + downloadButton.addEventListener("click",function(event) { + if($tw && $tw.wiki) { + var tiddlers = []; + $tw.wiki.each(function(tiddler,title) { + tiddlers.push(tiddler.fields); + }); + var link = dm("a"), + text = JSON.stringify(tiddlers); + if(Blob !== undefined) { + var blob = new Blob([text], {type: "text/html"}); + link.setAttribute("href", URL.createObjectURL(blob)); + } else { + link.setAttribute("href","data:text/html," + encodeURIComponent(text)); + } + link.setAttribute("download","emergency-tiddlers-" + (new Date()) + ".json"); + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + } else { + alert("Emergency tiddler download is not available"); + } + event.preventDefault(); + return false; + },true); form.addEventListener("submit",function(event) { document.body.removeChild(form); event.preventDefault(); @@ -786,6 +812,7 @@ $tw.utils.Crypto = function() { } return outputText; }; + $tw.sjcl = sjcl; this.setPassword = function(newPassword) { currentPassword = newPassword; this.updateCryptoStateTiddler(); @@ -1967,10 +1994,10 @@ $tw.loadTiddlersFromSpecification = function(filepath,excludeRegExp) { var value = tiddler[name]; switch(fieldInfo.source) { case "subdirectories": - value = path.relative(rootPath, filename).split('/').slice(0, -1); + value = path.relative(rootPath, filename).split(path.sep).slice(0, -1); break; case "filepath": - value = path.relative(rootPath, filename); + value = path.relative(rootPath, filename).split(path.sep).join('/'); break; case "filename": value = path.basename(filename); @@ -2453,8 +2480,12 @@ $tw.boot.initStartup = function(options) { $tw.utils.registerFileType("text/x-markdown","utf8",[".md",".markdown"]); $tw.utils.registerFileType("application/enex+xml","utf8",".enex"); $tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.wordprocessingml.document","base64",".docx"); + $tw.utils.registerFileType("application/msword","base64",".doc"); $tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","base64",".xlsx"); + $tw.utils.registerFileType("application/excel","base64",".xls"); + $tw.utils.registerFileType("application/vnd.ms-excel","base64",".xls"); $tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.presentationml.presentation","base64",".pptx"); + $tw.utils.registerFileType("application/mspowerpoint","base64",".ppt"); $tw.utils.registerFileType("text/x-bibtex","utf8",".bib",{deserializerType:"application/x-bibtex"}); $tw.utils.registerFileType("application/x-bibtex","utf8",".bib"); $tw.utils.registerFileType("application/epub+zip","base64",".epub"); diff --git a/core/images/default-layout.tid b/core/images/default-layout.tid new file mode 100644 index 000000000..4e5295d76 --- /dev/null +++ b/core/images/default-layout.tid @@ -0,0 +1,7 @@ +title: $:/core/images/default-layout +tags: $:/tags/Image + +\parameters (size:"22pt") +> height=<> class="tc-image-default-layout tc-image-button" viewBox="0 0 128 128"> + + \ No newline at end of file diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index fa769d117..3ee898b4f 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -28,6 +28,7 @@ Encryption/ClearPassword/Caption: clear password Encryption/ClearPassword/Hint: Clear the password and save this wiki without encryption Encryption/SetPassword/Caption: set password Encryption/SetPassword/Hint: Set a password for saving this wiki with encryption +EmergencyDownload/Caption: download tiddlers as json ExportPage/Caption: export all ExportPage/Hint: Export all tiddlers ExportTiddler/Caption: export tiddler diff --git a/core/language/en-GB/Docs/ModuleTypes.multids b/core/language/en-GB/Docs/ModuleTypes.multids index 9a03d8887..5d5902c76 100644 --- a/core/language/en-GB/Docs/ModuleTypes.multids +++ b/core/language/en-GB/Docs/ModuleTypes.multids @@ -9,7 +9,7 @@ config: Data to be inserted into `$tw.config`. filteroperator: Individual filter operator methods. global: Global data to be inserted into `$tw`. info: Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin. -isfilteroperator: Operands for the ''is'' filter operator. +isfilteroperator: Parameters for the ''is'' filter operator. library: Generic module type for general purpose JavaScript modules. macro: JavaScript macro definitions. parser: Parsers for different content types. diff --git a/core/language/en-GB/Misc.multids b/core/language/en-GB/Misc.multids index 2c10d1acb..b5e6e2374 100644 --- a/core/language/en-GB/Misc.multids +++ b/core/language/en-GB/Misc.multids @@ -30,7 +30,7 @@ Error/DeserializeOperator/UnknownDeserializer: Filter Error: Unknown deserialize Error/Filter: Filter error Error/FilterSyntax: Syntax error in filter expression Error/FilterRunPrefix: Filter Error: Unknown prefix for filter run -Error/IsFilterOperator: Filter Error: Unknown operand for the 'is' filter operator +Error/IsFilterOperator: Filter Error: Unknown parameter for the 'is' filter operator Error/FormatFilterOperator: Filter Error: Unknown suffix for the 'format' filter operator Error/LoadingPluginLibrary: Error loading plugin library Error/NetworkErrorAlert: `

''Network Error''

It looks like the connection to the server has been lost. This may indicate a problem with your network connection. Please attempt to restore network connectivity before continuing.

''Any unsaved changes will be automatically synchronised when connectivity is restored''.` diff --git a/core/modules/commands/listen.js b/core/modules/commands/listen.js index 3c5f6a63a..ca6e6e076 100644 --- a/core/modules/commands/listen.js +++ b/core/modules/commands/listen.js @@ -18,7 +18,7 @@ exports.info = { name: "listen", synchronous: true, namedParameterMode: true, - mandatoryParameters: [], + mandatoryParameters: [] }; var Command = function(params,commander,callback) { diff --git a/core/modules/filters/backtranscludes.js b/core/modules/filters/backtranscludes.js new file mode 100644 index 000000000..7d4215073 --- /dev/null +++ b/core/modules/filters/backtranscludes.js @@ -0,0 +1,26 @@ +/*\ +title: $:/core/modules/filters/backtranscludes.js +type: application/javascript +module-type: filteroperator + +Filter operator for returning all the backtranscludes from a tiddler + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +/* +Export our filter function +*/ +exports.backtranscludes = function(source,operator,options) { + var results = []; + source(function(tiddler,title) { + $tw.utils.pushTop(results,options.wiki.getTiddlerBacktranscludes(title)); + }); + return results; +}; + +})(); diff --git a/core/modules/filters/crypto.js b/core/modules/filters/crypto.js index 24f1a0df9..cfb524d06 100644 --- a/core/modules/filters/crypto.js +++ b/core/modules/filters/crypto.js @@ -14,12 +14,9 @@ Filter operators for cryptography, using the Stanford JavaScript library exports.sha256 = function(source,operator,options) { var results = [], - length = parseInt(operator.operand,10) || 20, - sha256 = function(text) { - return sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(text)).substr(0,length); - }; + length = parseInt(operator.operand,10) || 20; source(function(tiddler,title) { - results.push(sha256(title)); + results.push($tw.utils.sha256(title,{length: length})); }); return results; }; diff --git a/core/modules/filters/transcludes.js b/core/modules/filters/transcludes.js new file mode 100644 index 000000000..bd618296b --- /dev/null +++ b/core/modules/filters/transcludes.js @@ -0,0 +1,26 @@ +/*\ +title: $:/core/modules/filters/transcludes.js +type: application/javascript +module-type: filteroperator + +Filter operator for returning all the transcludes from a tiddler + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +/* +Export our filter function +*/ +exports.transcludes = function(source,operator,options) { + var results = new $tw.utils.LinkedList(); + source(function(tiddler,title) { + results.pushTop(options.wiki.getTiddlerTranscludes(title)); + }); + return results.toArray(); +}; + +})(); diff --git a/core/modules/indexers/back-indexer.js b/core/modules/indexers/back-indexer.js new file mode 100644 index 000000000..609d62bfc --- /dev/null +++ b/core/modules/indexers/back-indexer.js @@ -0,0 +1,119 @@ +/*\ +title: $:/core/modules/indexers/back-indexer.js +type: application/javascript +module-type: indexer + +By parsing the tiddler text, indexes the tiddlers' back links, back transclusions, block level back links. + +\*/ +function BackIndexer(wiki) { + this.wiki = wiki; +} + +BackIndexer.prototype.init = function() { + this.subIndexers = { + link: new BackSubIndexer(this,"extractLinks"), + transclude: new BackSubIndexer(this,"extractTranscludes"), + }; +}; + +BackIndexer.prototype.rebuild = function() { + $tw.utils.each(this.subIndexers,function(subIndexer) { + subIndexer.rebuild(); + }); +}; + +BackIndexer.prototype.update = function(updateDescriptor) { + $tw.utils.each(this.subIndexers,function(subIndexer) { + subIndexer.update(updateDescriptor); + }); +}; +function BackSubIndexer(indexer,extractor) { + this.wiki = indexer.wiki; + this.indexer = indexer; + this.extractor = extractor; + /** + * { + * [target title, e.g. tiddler title being linked to]: + * { + * [source title, e.g. tiddler title that has link syntax in its text]: true + * } + * } + */ + this.index = null; +} + +BackSubIndexer.prototype.init = function() { + // lazy init until first lookup + this.index = null; +} + +BackSubIndexer.prototype._init = function() { + this.index = Object.create(null); + var self = this; + this.wiki.forEachTiddler(function(sourceTitle,tiddler) { + var newTargets = self._getTarget(tiddler); + $tw.utils.each(newTargets, function(target) { + if(!self.index[target]) { + self.index[target] = Object.create(null); + } + self.index[target][sourceTitle] = true; + }); + }); +} + +BackSubIndexer.prototype.rebuild = function() { + this.index = null; +} + +/* +* Get things that is being referenced in the text, e.g. tiddler names in the link syntax. +*/ +BackSubIndexer.prototype._getTarget = function(tiddler) { + var parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {}); + if(parser) { + return this.wiki[this.extractor](parser.tree); + } + return []; +} + +BackSubIndexer.prototype.update = function(updateDescriptor) { + // lazy init/update until first lookup + if(!this.index) { + return; + } + var newTargets = [], + oldTargets = [], + self = this; + if(updateDescriptor.old.exists) { + oldTargets = this._getTarget(updateDescriptor.old.tiddler); + } + if(updateDescriptor.new.exists) { + newTargets = this._getTarget(updateDescriptor.new.tiddler); + } + + $tw.utils.each(oldTargets,function(target) { + if(self.index[target]) { + delete self.index[target][updateDescriptor.old.tiddler.fields.title]; + } + }); + $tw.utils.each(newTargets,function(target) { + if(!self.index[target]) { + self.index[target] = Object.create(null); + } + self.index[target][updateDescriptor.new.tiddler.fields.title] = true; + }); +} + +BackSubIndexer.prototype.lookup = function(title) { + if(!this.index) { + this._init(); + } + if(this.index[title]) { + return Object.keys(this.index[title]); + } else { + return []; + } +} + +exports.BackIndexer = BackIndexer; diff --git a/core/modules/indexers/backlinks-index.js b/core/modules/indexers/backlinks-index.js deleted file mode 100644 index 5902e2829..000000000 --- a/core/modules/indexers/backlinks-index.js +++ /dev/null @@ -1,86 +0,0 @@ -/*\ -title: $:/core/modules/indexers/backlinks-indexer.js -type: application/javascript -module-type: indexer - -Indexes the tiddlers' backlinks - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global modules: false */ -"use strict"; - - -function BacklinksIndexer(wiki) { - this.wiki = wiki; -} - -BacklinksIndexer.prototype.init = function() { - this.index = null; -} - -BacklinksIndexer.prototype.rebuild = function() { - this.index = null; -} - -BacklinksIndexer.prototype._getLinks = function(tiddler) { - var parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {}); - if(parser) { - return this.wiki.extractLinks(parser.tree); - } - return []; -} - -BacklinksIndexer.prototype.update = function(updateDescriptor) { - if(!this.index) { - return; - } - var newLinks = [], - oldLinks = [], - self = this; - if(updateDescriptor.old.exists) { - oldLinks = this._getLinks(updateDescriptor.old.tiddler); - } - if(updateDescriptor.new.exists) { - newLinks = this._getLinks(updateDescriptor.new.tiddler); - } - - $tw.utils.each(oldLinks,function(link) { - if(self.index[link]) { - delete self.index[link][updateDescriptor.old.tiddler.fields.title]; - } - }); - $tw.utils.each(newLinks,function(link) { - if(!self.index[link]) { - self.index[link] = Object.create(null); - } - self.index[link][updateDescriptor.new.tiddler.fields.title] = true; - }); -} - -BacklinksIndexer.prototype.lookup = function(title) { - if(!this.index) { - this.index = Object.create(null); - var self = this; - this.wiki.forEachTiddler(function(title,tiddler) { - var links = self._getLinks(tiddler); - $tw.utils.each(links, function(link) { - if(!self.index[link]) { - self.index[link] = Object.create(null); - } - self.index[link][title] = true; - }); - }); - } - if(this.index[title]) { - return Object.keys(this.index[title]); - } else { - return []; - } -} - -exports.BacklinksIndexer = BacklinksIndexer; - -})(); diff --git a/core/modules/macros/csvtiddlers.js b/core/modules/macros/csvtiddlers.js index 7b34ce04d..a492fd81c 100644 --- a/core/modules/macros/csvtiddlers.js +++ b/core/modules/macros/csvtiddlers.js @@ -35,9 +35,11 @@ exports.run = function(filter,format) { // Collect all the fields for(t=0;t 0 ? 1 : -1; @@ -935,7 +944,7 @@ exports.strEndsWith = function(str,ending,position) { if(str.endsWith) { return str.endsWith(ending,position); } else { - if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > str.length) { + if(typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > str.length) { position = str.length; } position -= ending.length; diff --git a/core/modules/widgets/draggable.js b/core/modules/widgets/draggable.js index 22fdc37e9..97e795ae4 100644 --- a/core/modules/widgets/draggable.js +++ b/core/modules/widgets/draggable.js @@ -119,7 +119,7 @@ DraggableWidget.prototype.refresh = function(changedTiddlers) { return true; } else { if(changedAttributes["class"]) { - this.assignDomNodeClasses(); + this.updateDomNodeClasses(); } this.assignAttributes(this.domNodes[0],{ changedAttributes: changedAttributes, @@ -132,4 +132,4 @@ DraggableWidget.prototype.refresh = function(changedTiddlers) { exports.draggable = DraggableWidget; -})(); \ No newline at end of file +})(); diff --git a/core/modules/widgets/importvariables.js b/core/modules/widgets/importvariables.js index a8bb483b6..3e1ac3fc6 100644 --- a/core/modules/widgets/importvariables.js +++ b/core/modules/widgets/importvariables.js @@ -49,7 +49,7 @@ ImportVariablesWidget.prototype.execute = function(tiddlerList) { this.tiddlerList = tiddlerList || this.wiki.filterTiddlers(this.filter,this); // Accumulate the <$set> widgets from each tiddler $tw.utils.each(this.tiddlerList,function(title) { - var parser = widgetPointer.wiki.parseTiddler(title,{parseAsInline:true, configTrimWhiteSpace:true}); + var parser = widgetPointer.wiki.parseTiddler(title,{parseAsInline:true, configTrimWhiteSpace:false}); if(parser) { var parseTreeNode = parser.tree[0]; while(parseTreeNode && ["setvariable","set","parameters"].indexOf(parseTreeNode.type) !== -1) { diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 430c46466..96e40a708 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -534,8 +534,8 @@ Return an array of tiddler titles that link to the specified tiddler */ exports.getTiddlerBacklinks = function(targetTitle) { var self = this, - backlinksIndexer = this.getIndexer("BacklinksIndexer"), - backlinks = backlinksIndexer && backlinksIndexer.lookup(targetTitle); + backIndexer = this.getIndexer("BackIndexer"), + backlinks = backIndexer && backIndexer.subIndexers.link.lookup(targetTitle); if(!backlinks) { backlinks = []; @@ -549,6 +549,68 @@ exports.getTiddlerBacklinks = function(targetTitle) { return backlinks; }; + +/* +Return an array of tiddler titles that are directly transcluded within the given parse tree + */ +exports.extractTranscludes = function(parseTreeRoot) { + // Count up the transcludes + var transcludes = [], + checkParseTree = function(parseTree, parentNode) { + for(var t=0; tget[text]] }}}/> \end - \whitespace trim <> - - <$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$set name="resultCount" value="<$count filter={{$:/temp/advancedsearch}}/>">
-<> +

<>

<$list filter={{$:/temp/advancedsearch}}> addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}> <$transclude tiddler="$:/core/ui/ListItemTemplate"/> diff --git a/core/ui/AdvancedSearch/Standard.tid b/core/ui/AdvancedSearch/Standard.tid index 0690130e4..e6ed18a7a 100644 --- a/core/ui/AdvancedSearch/Standard.tid +++ b/core/ui/AdvancedSearch/Standard.tid @@ -54,17 +54,18 @@ caption: {{$:/language/Search/Standard/Caption}} variable="listItem"> <$vars userInput={{{ [[$:/temp/advancedsearch]get[text]] }}} - configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} + configTiddler={{{ [[$:/state/advancedsearch/standard/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} searchListState="$:/temp/advancedsearch/selected-item"> -<$list - filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" - emptyMessage="<$list filter='[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]'><$transclude/>"> +<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]"> <$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}} actions="<$action-setfield $tiddler='$:/state/advancedsearch/standard/currentTab' text=<>/>" explicitState="$:/state/tab/search-results/advancedsearch" /> +<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]] :else[[]]"> +<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]"><$transclude mode="block"/> + diff --git a/core/ui/ControlPanel/Saving/DownloadSaver.tid b/core/ui/ControlPanel/Saving/DownloadSaver.tid index 42e4dc3a9..be658a1ff 100644 --- a/core/ui/ControlPanel/Saving/DownloadSaver.tid +++ b/core/ui/ControlPanel/Saving/DownloadSaver.tid @@ -2,10 +2,19 @@ title: $:/core/ui/ControlPanel/Saving/DownloadSaver tags: $:/tags/ControlPanel/Saving caption: {{$:/language/ControlPanel/Saving/DownloadSaver/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/ +
>> + <> -!! <$link to="$:/config/DownloadSaver/AutoSave"><> +!!.tc-control-panel-accent <$link to="$:/config/DownloadSaver/AutoSave"><> -<$checkbox tiddler="$:/config/DownloadSaver/AutoSave" field="text" checked="yes" unchecked="no" default="no"> <> +<$checkbox tiddler="$:/config/DownloadSaver/AutoSave" + field="text" checked="yes" unchecked="no" default="no" + class="tc-control-panel-item" +> + <> + +
\ No newline at end of file diff --git a/core/ui/ControlPanel/Saving/General.tid b/core/ui/ControlPanel/Saving/General.tid index d1b096281..38c3f34fb 100644 --- a/core/ui/ControlPanel/Saving/General.tid +++ b/core/ui/ControlPanel/Saving/General.tid @@ -3,14 +3,22 @@ tags: $:/tags/ControlPanel/Saving caption: {{$:/language/ControlPanel/Saving/General/Caption}} list-before: +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/ +
>> + {{$:/language/ControlPanel/Saving/General/Hint}} -!! <$link to="$:/config/AutoSave"><> +!!.tc-control-panel-accent <$link to="$:/config/AutoSave"><> <> -<$radio tiddler="$:/config/AutoSave" value="yes"> <> +<$radio tiddler="$:/config/AutoSave" value="yes"> + <> + -<$radio tiddler="$:/config/AutoSave" value="no"> <> +<$radio tiddler="$:/config/AutoSave" value="no"> + <> + +
\ No newline at end of file diff --git a/core/ui/ControlPanel/Settings/CamelCase.tid b/core/ui/ControlPanel/Settings/CamelCase.tid index 36377bb85..3feace84b 100644 --- a/core/ui/ControlPanel/Settings/CamelCase.tid +++ b/core/ui/ControlPanel/Settings/CamelCase.tid @@ -2,7 +2,16 @@ title: $:/core/ui/ControlPanel/Settings/CamelCase tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/CamelCase/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/CamelCase/ + <> -<$checkbox tiddler="$:/config/WikiParserRules/Inline/wikilink" field="text" checked="enable" unchecked="disable" default="enable"> <$link to="$:/config/WikiParserRules/Inline/wikilink"><> +<$checkbox tiddler="$:/config/WikiParserRules/Inline/wikilink" + field="text" checked="enable" unchecked="disable" default="enable" + class="tc-control-panel-item" +> + <$link to="$:/config/WikiParserRules/Inline/wikilink" class="tc-tiny-gap-left"> + <> + + diff --git a/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab.tid b/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab.tid index 47f277bd4..c3ad60aac 100644 --- a/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab.tid +++ b/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab.tid @@ -2,13 +2,18 @@ caption: {{$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption}} tags: $:/tags/ControlPanel/Settings title: $:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab -\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/ \whitespace trim +\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/ -<$link to="$:/config/DefaultMoreSidebarTab"><> +<$link to="$:/config/DefaultMoreSidebarTab" class="tc-control-panel-item"> + <> + -<$select tiddler="$:/config/DefaultMoreSidebarTab"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]"> - - +<$select tiddler="$:/config/DefaultMoreSidebarTab" class="tc-select"> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]"> + + diff --git a/core/ui/ControlPanel/Settings/DefaultSidebarTab.tid b/core/ui/ControlPanel/Settings/DefaultSidebarTab.tid index acd3421c7..1f4c5fc7b 100644 --- a/core/ui/ControlPanel/Settings/DefaultSidebarTab.tid +++ b/core/ui/ControlPanel/Settings/DefaultSidebarTab.tid @@ -5,10 +5,16 @@ title: $:/core/ui/ControlPanel/Settings/DefaultSidebarTab \define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/ \whitespace trim -<$link to="$:/config/DefaultSidebarTab"><> +<$link to="$:/config/DefaultSidebarTab" class="tc-control-panel-item"> + <> + -<$select tiddler="$:/config/DefaultSidebarTab"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]"> - - +<$select tiddler="$:/config/DefaultSidebarTab" class="tc-select"> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]"> + + diff --git a/core/ui/ControlPanel/Settings/EditorToolbar.tid b/core/ui/ControlPanel/Settings/EditorToolbar.tid index aa142bf62..ad7384568 100644 --- a/core/ui/ControlPanel/Settings/EditorToolbar.tid +++ b/core/ui/ControlPanel/Settings/EditorToolbar.tid @@ -2,8 +2,15 @@ title: $:/core/ui/ControlPanel/Settings/EditorToolbar tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/EditorToolbar/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/ <> -<$checkbox tiddler="$:/config/TextEditor/EnableToolbar" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/TextEditor/EnableToolbar"><> - +<$checkbox tiddler="$:/config/TextEditor/EnableToolbar" + field="text" checked="yes" unchecked="no" default="yes" + class="tc-control-panel-item" +> + <$link to="$:/config/TextEditor/EnableToolbar" class="tc-tiny-gap-left"> + <> + + diff --git a/core/ui/ControlPanel/Settings/InfoPanelMode.tid b/core/ui/ControlPanel/Settings/InfoPanelMode.tid index 371b6d61b..e539b8f82 100644 --- a/core/ui/ControlPanel/Settings/InfoPanelMode.tid +++ b/core/ui/ControlPanel/Settings/InfoPanelMode.tid @@ -2,9 +2,17 @@ title: $:/core/ui/ControlPanel/Settings/InfoPanelMode tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/InfoPanelMode/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/ -<$link to="$:/config/TiddlerInfo/Mode"><> -<$radio tiddler="$:/config/TiddlerInfo/Mode" value="popup"> <> +<$link to="$:/config/TiddlerInfo/Mode" class="tc-control-panel-item"> + <> + -<$radio tiddler="$:/config/TiddlerInfo/Mode" value="sticky"> <> +<$radio tiddler="$:/config/TiddlerInfo/Mode" value="popup"> + <> + + +<$radio tiddler="$:/config/TiddlerInfo/Mode" value="sticky"> + <> + diff --git a/core/ui/ControlPanel/Settings/LinkToBehaviour.tid b/core/ui/ControlPanel/Settings/LinkToBehaviour.tid index 92d46601e..dc98b1ae6 100644 --- a/core/ui/ControlPanel/Settings/LinkToBehaviour.tid +++ b/core/ui/ControlPanel/Settings/LinkToBehaviour.tid @@ -2,21 +2,25 @@ title: $:/core/ui/ControlPanel/Settings/LinkToBehaviour tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/LinkToBehaviour/Caption}} -\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/ \whitespace trim +\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/ -<$link to="$:/config/Navigation/openLinkFromInsideRiver"><> +<$link to="$:/config/Navigation/openLinkFromInsideRiver" class="tc-control-panel-item"> + <> + -<$select tiddler="$:/config/Navigation/openLinkFromInsideRiver"> - - - - +<$select tiddler="$:/config/Navigation/openLinkFromInsideRiver" class="tc-select"> + + + + -<$link to="$:/config/Navigation/openLinkFromOutsideRiver"><> +<$link to="$:/config/Navigation/openLinkFromOutsideRiver" class="tc-control-panel-item"> + <> + -<$select tiddler="$:/config/Navigation/openLinkFromOutsideRiver"> - - +<$select tiddler="$:/config/Navigation/openLinkFromOutsideRiver" class="tc-select"> + + diff --git a/core/ui/ControlPanel/Settings/MissingLinks.tid b/core/ui/ControlPanel/Settings/MissingLinks.tid index 4a7ba5f2e..e0149c9a1 100644 --- a/core/ui/ControlPanel/Settings/MissingLinks.tid +++ b/core/ui/ControlPanel/Settings/MissingLinks.tid @@ -2,8 +2,12 @@ title: $:/core/ui/ControlPanel/Settings/MissingLinks tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/MissingLinks/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/ <> -<$checkbox tiddler="$:/config/MissingLinks" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/MissingLinks"><> - +<$checkbox tiddler="$:/config/MissingLinks" field="text" checked="yes" unchecked="no" default="yes"> + <$link to="$:/config/MissingLinks" class="tc-control-panel-item"> + <> + + diff --git a/core/ui/ControlPanel/Settings/NavigationAddressBar.tid b/core/ui/ControlPanel/Settings/NavigationAddressBar.tid index 4a123ba99..f35f8a1f1 100644 --- a/core/ui/ControlPanel/Settings/NavigationAddressBar.tid +++ b/core/ui/ControlPanel/Settings/NavigationAddressBar.tid @@ -2,12 +2,21 @@ title: $:/core/ui/ControlPanel/Settings/NavigationAddressBar tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/NavigationAddressBar/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/ -<$link to="$:/config/Navigation/UpdateAddressBar"><> +<$link to="$:/config/Navigation/UpdateAddressBar" class="tc-control-panel-item"> + <> + -<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="permaview"> <> +<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="permaview"> + <> + -<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="permalink"> <> +<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="permalink"> + <> + -<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="no"> <> +<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="no"> + <> + diff --git a/core/ui/ControlPanel/Settings/NavigationHistory.tid b/core/ui/ControlPanel/Settings/NavigationHistory.tid index af63de1ee..bd118a103 100644 --- a/core/ui/ControlPanel/Settings/NavigationHistory.tid +++ b/core/ui/ControlPanel/Settings/NavigationHistory.tid @@ -2,9 +2,17 @@ title: $:/core/ui/ControlPanel/Settings/NavigationHistory tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/NavigationHistory/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/ -<$link to="$:/config/Navigation/UpdateHistory"><> -<$radio tiddler="$:/config/Navigation/UpdateHistory" value="yes"> <> +<$link to="$:/config/Navigation/UpdateHistory" class="tc-control-panel-item"> + <> + -<$radio tiddler="$:/config/Navigation/UpdateHistory" value="no"> <> +<$radio tiddler="$:/config/Navigation/UpdateHistory" value="yes"> + <> + + +<$radio tiddler="$:/config/Navigation/UpdateHistory" value="no"> + <> + diff --git a/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode.tid b/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode.tid index 5a496d5e1..6c15936e7 100644 --- a/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode.tid +++ b/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode.tid @@ -2,9 +2,24 @@ title: $:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/ <> -<$checkbox tiddler="$:/config/Navigation/Permalinkview/CopyToClipboard" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Navigation/Permalinkview/CopyToClipboard"><> +<$checkbox tiddler="$:/config/Navigation/Permalinkview/CopyToClipboard" + field="text" checked="yes" unchecked="no" default="yes" + class="tc-control-panel-item" +> + <$link to="$:/config/Navigation/Permalinkview/CopyToClipboard" class="tc-tiny-gap-left"> + <> + + -<$checkbox tiddler="$:/config/Navigation/Permalinkview/UpdateAddressBar" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Navigation/Permalinkview/UpdateAddressBar"><> +<$checkbox tiddler="$:/config/Navigation/Permalinkview/UpdateAddressBar" + field="text" checked="yes" unchecked="no" default="yes" + class="tc-control-panel-item" +> + <$link to="$:/config/Navigation/Permalinkview/UpdateAddressBar" class="tc-tiny-gap-left"> + <> + + diff --git a/core/ui/ControlPanel/Settings/PerformanceInstrumentation.tid b/core/ui/ControlPanel/Settings/PerformanceInstrumentation.tid index b3d1d9763..1ea9061ae 100644 --- a/core/ui/ControlPanel/Settings/PerformanceInstrumentation.tid +++ b/core/ui/ControlPanel/Settings/PerformanceInstrumentation.tid @@ -2,7 +2,15 @@ title: $:/core/ui/ControlPanel/Settings/PerformanceInstrumentation tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/ <> -<$checkbox tiddler="$:/config/Performance/Instrumentation" field="text" checked="yes" unchecked="no" default="no"> <$link to="$:/config/Performance/Instrumentation"><> +<$checkbox tiddler="$:/config/Performance/Instrumentation" + field="text" checked="yes" unchecked="no" default="no" + class="tc-control-panel-item" +> + <$link to="$:/config/Performance/Instrumentation" class="tc-tiny-gap-left"> + <> + + diff --git a/core/ui/ControlPanel/Settings/TitleLinks.tid b/core/ui/ControlPanel/Settings/TitleLinks.tid index c1acdc7bd..1620dfe39 100644 --- a/core/ui/ControlPanel/Settings/TitleLinks.tid +++ b/core/ui/ControlPanel/Settings/TitleLinks.tid @@ -2,9 +2,17 @@ title: $:/core/ui/ControlPanel/Settings/TitleLinks tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/TitleLinks/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/ -<$link to="$:/config/Tiddlers/TitleLinks"><> -<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="yes"> <> +<$link to="$:/config/Tiddlers/TitleLinks" class="tc-control-panel-item"> + <> + -<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="no"> <> +<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="yes"> + <> + + +<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="no"> + <> + diff --git a/core/ui/ControlPanel/Settings/ToolbarButtonStyle.tid b/core/ui/ControlPanel/Settings/ToolbarButtonStyle.tid index a25b2a39e..c02d653d7 100644 --- a/core/ui/ControlPanel/Settings/ToolbarButtonStyle.tid +++ b/core/ui/ControlPanel/Settings/ToolbarButtonStyle.tid @@ -2,12 +2,15 @@ title: $:/core/ui/ControlPanel/Settings/ToolbarButtonStyle tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption}} -\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/ \whitespace trim -<$link to="$:/config/Toolbar/ButtonClass"><> +\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/ -<$select tiddler="$:/config/Toolbar/ButtonClass"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]"> - - +<$link to="$:/config/Toolbar/ButtonClass" class="tc-control-panel-item"> + <> + + +<$select tiddler="$:/config/Toolbar/ButtonClass" class="tc-select"> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]"> + + diff --git a/core/ui/ControlPanel/Settings/ToolbarButtons.tid b/core/ui/ControlPanel/Settings/ToolbarButtons.tid index 00bdb191e..d76394ee8 100644 --- a/core/ui/ControlPanel/Settings/ToolbarButtons.tid +++ b/core/ui/ControlPanel/Settings/ToolbarButtons.tid @@ -2,9 +2,24 @@ title: $:/core/ui/ControlPanel/Settings/ToolbarButtons tags: $:/tags/ControlPanel/Settings caption: {{$:/language/ControlPanel/Settings/ToolbarButtons/Caption}} +\whitespace trim \define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/ <> -<$checkbox tiddler="$:/config/Toolbar/Icons" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Toolbar/Icons"><> +<$checkbox tiddler="$:/config/Toolbar/Icons" + field="text" checked="yes" unchecked="no" default="yes" + class="tc-control-panel-item" +> + <$link to="$:/config/Toolbar/Icons" class="tc-tiny-gap-left"> + <> + + -<$checkbox tiddler="$:/config/Toolbar/Text" field="text" checked="yes" unchecked="no" default="no"> <$link to="$:/config/Toolbar/Text"><> +<$checkbox tiddler="$:/config/Toolbar/Text" + field="text" checked="yes" unchecked="no" default="no" + class="tc-control-panel-item" +> + <$link to="$:/config/Toolbar/Text" class="tc-tiny-gap-left"> + <> + + diff --git a/core/ui/ControlPanel/TiddlyWiki.tid b/core/ui/ControlPanel/TiddlyWiki.tid index 40be32139..ca3c88831 100644 --- a/core/ui/ControlPanel/TiddlyWiki.tid +++ b/core/ui/ControlPanel/TiddlyWiki.tid @@ -9,9 +9,9 @@ list-before: <$list filter="[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]"> -
+
> style="border-top:1px solid #eee;"> -!! <$link><$transclude field="caption"/> +!!.tc-control-panel-accent <$link><$transclude field="caption"/> <$transclude/> diff --git a/core/ui/EditTemplate/body/default.tid b/core/ui/EditTemplate/body/default.tid index 04cc64436..d004032f1 100644 --- a/core/ui/EditTemplate/body/default.tid +++ b/core/ui/EditTemplate/body/default.tid @@ -1,5 +1,9 @@ title: $:/core/ui/EditTemplate/body/default +\function edit-preview-state() +[{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[] +[get[text]] :else[[no]] +\end + \define config-visibility-title() $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ \end @@ -10,12 +14,13 @@ $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ \whitespace trim <$let - editPreviewStateTiddler={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[] }}} + qualified-preview-state=<> + editPreviewStateTiddler={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[] }}} importTitle=<> importState=<> > <$dropzone importTitle=<> autoOpenOnImport="no" contentTypesFilter={{$:/config/Editor/ImportContentTypesFilter}} class="tc-dropzone-editor" enable={{{ [{$:/config/DragAndDrop/Enable}match[no]] :else[subfilter{$:/config/Editor/EnableImportFilter}then[yes]else[no]] }}} filesOnly="yes" actions=<> >
-
get[text]match[yes]then[tc-tiddler-preview]else[tc-tiddler-preview-hidden]] [[tc-tiddler-editor]] +[join[ ]] }}}> +
match[yes]then[tc-tiddler-preview]else[tc-tiddler-preview-hidden]] [[tc-tiddler-editor]] +[join[ ]] }}}> <$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/> diff --git a/core/ui/EditTemplate/tags.tid b/core/ui/EditTemplate/tags.tid index 5084478b4..c8d4131fe 100644 --- a/core/ui/EditTemplate/tags.tid +++ b/core/ui/EditTemplate/tags.tid @@ -3,39 +3,63 @@ tags: $:/tags/EditTemplate \whitespace trim -\define lingo-base() $:/language/EditTemplate/ +\procedure lingo-base() $:/language/EditTemplate/ -\define tag-styles() -background-color:$(backgroundColor)$; -fill:$(foregroundColor)$; -color:$(foregroundColor)$; +\procedure tag-body-inner(colour,fallbackTarget,colourA,colourB,icon,tagField:"tags") +<$wikify name="foregroundColor" + text="""<$macrocall $name="contrastcolour" + target=<> + fallbackTarget=<> + colourA=<> + colourB=<>/> + """ +> + <$let backgroundColor=<> > + > + style.color=<> + style.fill=<> + style.background-color=<> + > + <$transclude tiddler=<>/> + <$view field="title" format="text"/> + <$button class="tc-btn-invisible tc-remove-tag-button" + style.fill=<> + > + <$action-listops $tiddler=<> $field=<> $subfilter="-[{!!title}]"/> + {{$:/core/images/close-button}} + + + + \end -\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon,tagField:"tags") -\whitespace trim -<$vars foregroundColor=<> backgroundColor="""$colour$"""> -> class="tc-tag-label tc-tag-list-item tc-small-gap-right" data-tag-title=<>> -<$transclude tiddler="""$icon$"""/><$view field="title" format="text"/> -<$button class="tc-btn-invisible tc-remove-tag-button" style=<>><$action-listops $tiddler=<> $field=<<__tagField__>> $subfilter="-[{!!title}]"/>{{$:/core/images/close-button}} - - +\procedure tag-body(colour,palette,icon,tagField:"tags") +<$macrocall $name="tag-body-inner" + colour=`$(colour)$` + colourA={{{ [getindex[foreground]] }}} + colourB={{{ [getindex[background]] }}} + fallbackTarget={{{ [getindex[tag-background]] }}} + icon=<> + tagField=<> +/> \end -\define tag-body(colour,palette,icon,tagField:"tags") -<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon="""$icon$""" tagField=<<__tagField__>>/> -\end - -\define edit-tags-template(tagField:"tags") -\whitespace trim +\procedure edit-tags-template(tagField:"tags")
-<$list filter="[list[!!$tagField$]sort[title]]" storyview="pop"> -<$macrocall $name="tag-body" colour={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}} palette={{$:/palette}} icon={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}} tagField=<<__tagField__>>/> - -<$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups="yes"> -<$macrocall $name="tag-picker" tagField=<<__tagField__>>/> - + <$list filter="[getenlist-input[]sort[title]]" storyview="pop"> + <$macrocall $name="tag-body" + colour={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}} + palette={{$:/palette}} + icon={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}} + tagField=<> + /> + + <$let tabIndex={{$:/config/EditTabIndex}} cancelPopups="yes"> + <$macrocall $name="tag-picker" tagField=<>/> +
\end -<$set name="saveTiddler" value=<>> -<$macrocall $name="edit-tags-template" tagField=<>/> - +<$let saveTiddler=<>> + <$macrocall $name="edit-tags-template" tagField=<>/> + diff --git a/core/ui/EditorToolbar/preview.tid b/core/ui/EditorToolbar/preview.tid index ea49c971a..d5c63eb5f 100644 --- a/core/ui/EditorToolbar/preview.tid +++ b/core/ui/EditorToolbar/preview.tid @@ -10,7 +10,7 @@ shortcuts: ((preview)) \whitespace trim - <$transclude $tiddler={{{ [get[text]match[yes]then[$:/core/images/preview-open]else[$:/core/images/preview-closed]] }}} /> + <$transclude $tiddler={{{ [match[yes]then[$:/core/images/preview-open]else[$:/core/images/preview-closed]] }}} /> <$action-setfield $tiddler=<> $value={{{ [get[text]toggle[yes],[no]] }}} /> -<$action-sendmessage $message="tm-edit-text-operation" $param="focus-editor"/> \ No newline at end of file +<$action-sendmessage $message="tm-edit-text-operation" $param="focus-editor"/> diff --git a/core/ui/PageTemplate.tid b/core/ui/PageTemplate.tid index 20891e35d..7e78f1e20 100644 --- a/core/ui/PageTemplate.tid +++ b/core/ui/PageTemplate.tid @@ -1,7 +1,7 @@ title: $:/core/ui/PageTemplate name: {{$:/language/PageTemplate/Name}} description: {{$:/language/PageTemplate/Description}} -icon: $:/core/images/layout-button +icon: $:/core/images/default-layout code-body: yes \whitespace trim diff --git a/core/wiki/macros/CSS.tid b/core/wiki/macros/CSS.tid index 9e6239e90..2aca2c363 100644 --- a/core/wiki/macros/CSS.tid +++ b/core/wiki/macros/CSS.tid @@ -1,76 +1,69 @@ title: $:/core/macros/CSS -tags: $:/tags/Macro +tags: $:/tags/Macro $:/tags/Global -\define colour(name) -<$transclude tiddler={{$:/palette}} index="$name$"><$transclude tiddler="$:/palettes/Vanilla" index="$name$"><$transclude tiddler="$:/config/DefaultColourMappings/$name$"/> +\procedure colour(name) +\whitespace trim +<$transclude $tiddler={{$:/palette}} $index=`$(name)$`> + <$transclude $tiddler="$:/palettes/Vanilla" $index=`$(name)$`> + <$transclude $tiddler=`$:/config/DefaultColourMappings/$(name)$`/> + + \end -\define color(name) -<> +\procedure color(name) +<$macrocall $name=colour name=`$(name)$`/> \end -\define box-shadow(shadow) -`` - -webkit-box-shadow: $shadow$; - -moz-box-shadow: $shadow$; - box-shadow: $shadow$; -`` +\function box-shadow(shadow) +[[ -webkit-box-shadow: $(shadow)$; + -moz-box-shadow: $(shadow)$; + box-shadow: $(shadow)$;]substitute[]] \end -\define filter(filter) -`` - -webkit-filter: $filter$; - -moz-filter: $filter$; - filter: $filter$; -`` +\function filter(filter) +[[ -webkit-filter: $(filter)$; + -moz-filter: $(filter)$; + filter: $(filter)$;]substitute[]] \end -\define transition(transition) -`` - -webkit-transition: $transition$; - -moz-transition: $transition$; - transition: $transition$; -`` +\function transition(transition) +[[ -webkit-transition: $(transition)$; + -moz-transition: $(transition)$; + transition: $(transition)$;]substitute[]] \end -\define transform-origin(origin) -`` - -webkit-transform-origin: $origin$; - -moz-transform-origin: $origin$; - transform-origin: $origin$; -`` +\function transform-origin(origin) +[[ -webkit-transform-origin: $(origin)$; + -moz-transform-origin: $(origin)$; + transform-origin: $(origin)$;]substitute[]] \end -\define background-linear-gradient(gradient) -`` -background-image: linear-gradient($gradient$); -background-image: -o-linear-gradient($gradient$); -background-image: -moz-linear-gradient($gradient$); -background-image: -webkit-linear-gradient($gradient$); -background-image: -ms-linear-gradient($gradient$); -`` +\function background-linear-gradient(gradient) +[[ background-image: linear-gradient($(gradient)$); + background-image: -o-linear-gradient($(gradient)$); + background-image: -moz-linear-gradient($(gradient)$); + background-image: -webkit-linear-gradient($(gradient)$); + background-image: -ms-linear-gradient($(gradient)$);]substitute[]] \end -\define column-count(columns) -`` --moz-column-count: $columns$; --webkit-column-count: $columns$; -column-count: $columns$; -`` +\function column-count(columns) +[[-moz-column-count: $(columns)$; + -webkit-column-count: $(columns)$; + column-count: $(columns)$;]substitute[]] \end -\define datauri(title) -<$macrocall $name="makedatauri" type={{$title$!!type}} text={{$title$}} _canonical_uri={{$title$!!_canonical_uri}}/> +\procedure datauri(title) +<$macrocall $name="makedatauri" type={{{ [get[type]] }}} text={{{ [<title>get[text]] }}} _canonical_uri={{{ [<title>get[_canonical_uri]] }}}/> \end -\define if-sidebar(text) -<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes">$text$</$reveal> +\procedure if-sidebar(text) +<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes"><<text>></$reveal> \end -\define if-no-sidebar(text) -<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal> +\procedure if-no-sidebar(text) +<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes"><<text>></$reveal> \end -\define if-background-attachment(text) -<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text="">$text$</$reveal> +\procedure if-background-attachment(text) +<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text=""><<text>></$reveal> \end diff --git a/core/wiki/macros/copy-to-clipboard.tid b/core/wiki/macros/copy-to-clipboard.tid index 910e955a9..c0d177d7e 100644 --- a/core/wiki/macros/copy-to-clipboard.tid +++ b/core/wiki/macros/copy-to-clipboard.tid @@ -1,20 +1,26 @@ title: $:/core/macros/copy-to-clipboard -tags: $:/tags/Macro +tags: $:/tags/Macro $:/tags/Global -\define copy-to-clipboard(src,class:"tc-btn-invisible",style) \whitespace trim -<$button class=<<__class__>> style=<<__style__>> message="tm-copy-to-clipboard" param=<<__src__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}> -{{$:/core/images/copy-clipboard}} - -<$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/> + +\procedure copy-to-clipboard(src,class:"tc-btn-invisible",style) +<$button message="tm-copy-to-clipboard" + param=<<src>> + class=<<class>> + style=<<style>> + tooltip={{$:/language/Buttons/CopyToClipboard/Hint}} +> + {{$:/core/images/copy-clipboard}} + <span class="tc-tiny-gap-left"> + <$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/> + </span> </$button> \end -\define copy-to-clipboard-above-right(src,class:"tc-btn-invisible",style) -\whitespace trim +\procedure copy-to-clipboard-above-right(src,class:"tc-btn-invisible",style) <div style="position: relative;"> -<div style="position: absolute; bottom: 0; right: 0;"> -<$macrocall $name="copy-to-clipboard" src=<<__src__>> class=<<__class__>> style=<<__style__>>/> -</div> + <div style="position: absolute; bottom: 0; right: 0;"> + <$macrocall $name="copy-to-clipboard" src=<<src>> class=<<class>> style=<<style>>/> + </div> </div> \end diff --git a/core/wiki/macros/diff.tid b/core/wiki/macros/diff.tid index 36564d084..ed7ebfcf9 100644 --- a/core/wiki/macros/diff.tid +++ b/core/wiki/macros/diff.tid @@ -1,37 +1,37 @@ title: $:/core/macros/diff -tags: $:/tags/Macro +tags: $:/tags/Macro $:/tags/Global -\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle) \whitespace trim -<$set name="source" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>>> -<$set name="dest" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>>> -<$diff-text source=<<source>> dest=<<dest>>/> -</$set> + +\procedure compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle) +<$set name="source" tiddler=<<sourceTiddlerTitle>> subtiddler=<<sourceSubTiddlerTitle>>> + <$set name="dest" tiddler=<<destTiddlerTitle>> subtiddler=<<destSubTiddlerTitle>>> + <$diff-text source=<<source>> dest=<<dest>>/> + </$set> </$set> \end -\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude) -\whitespace trim +\procedure compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude) <table class="tc-diff-tiddlers"> -<tbody> -<$set name="sourceFields" filter="[<__sourceTiddlerTitle__>fields[]sort[]]"> -<$set name="destFields" filter="[<__destSubTiddlerTitle__>subtiddlerfields<__destTiddlerTitle__>sort[]]"> -<$list filter="[enlist<sourceFields>] [enlist<destFields>] -[enlist<__exclude__>] +[sort[]]" variable="fieldName"> -<tr> -<th> -<$text text=<<fieldName>>/> -</th> -<td> -<$set name="source" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>> field=<<fieldName>>> -<$set name="dest" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>> field=<<fieldName>>> -<$diff-text source=<<source>> dest=<<dest>>> </$diff-text> -</$set> -</$set> -</td> -</tr> -</$list> -</$set> -</$set> -</tbody> + <tbody> + <$set name="sourceFields" filter="[<sourceTiddlerTitle>fields[]sort[]]"> + <$set name="destFields" filter="[<destSubTiddlerTitle>subtiddlerfields<destTiddlerTitle>sort[]]"> + <$list filter="[enlist<sourceFields>] [enlist<destFields>] -[enlist<exclude>] +[sort[]]" variable="fieldName"> + <tr> + <th> + <$text text=<<fieldName>>/> + </th> + <td> + <$set name="source" tiddler=<<sourceTiddlerTitle>> subtiddler=<<sourceSubTiddlerTitle>> field=<<fieldName>>> + <$set name="dest" tiddler=<<destTiddlerTitle>> subtiddler=<<destSubTiddlerTitle>> field=<<fieldName>>> + <$diff-text source=<<source>> dest=<<dest>>> </$diff-text> + </$set> + </$set> + </td> + </tr> + </$list> + </$set> + </$set> + </tbody> </table> \end diff --git a/core/wiki/macros/tag-picker.tid b/core/wiki/macros/tag-picker.tid index ede53ec26..80086e4d3 100644 --- a/core/wiki/macros/tag-picker.tid +++ b/core/wiki/macros/tag-picker.tid @@ -1,32 +1,33 @@ title: $:/core/macros/tag-picker -tags: $:/tags/Macro +tags: $:/tags/Macro $:/tags/Global first-search-filter: [tags[]!is[system]search:title<userInput>sort[]] second-search-filter: [tags[]is[system]search:title<userInput>sort[]] -\define get-tagpicker-focus-selector() [data-tiddler-title="$(currentTiddlerCSSEscaped)$"] .tc-add-tag-name input +\procedure get-tagpicker-focus-selector() +\function currentTiddlerCSSEscaped() [<saveTiddler>escapecss[]] +[data-tiddler-title=`$(currentTiddlerCSSEscaped)$`] .tc-add-tag-name input +\end -\define delete-tag-state-tiddlers() <$action-deletetiddler $filter="[<newTagNameTiddler>] [<storeTitle>] [<tagSelectionState>]"/> +\procedure delete-tag-state-tiddlers() <$action-deletetiddler $filter="[<newTagNameTiddler>] [<storeTitle>] [<tagSelectionState>]"/> -\define add-tag-actions(actions,tagField:"tags") +\procedure add-tag-actions() \whitespace trim -<$set name="tag" value={{{ [<__tiddler__>get[text]] }}}> - <$list - filter="[<saveTiddler>!contains:$tagField$<tag>!match[]]" - variable="ignore" - emptyMessage="<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter='-[<tag>]'/>" - > - <$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter="[<tag>trim[]]"/> - <$transclude $variable="__actions__"/> - </$list> -</$set> +<$let tag=<<tag>>> +<$action-listops $tiddler=<<saveTiddler>> $field=<<tagField>> $subfilter='+[toggle<tag>trim[]]'/> +<$list + filter="[<tag>] :intersection[<saveTiddler>get<tagField>enlist-input[]]" + variable="ignore" + emptyMessage="<<actions>>" +/> +</$let> <<delete-tag-state-tiddlers>> <$action-setfield $tiddler=<<refreshTitle>> text="yes"/> \end -\define clear-tags-actions-inner() +\procedure clear-tags-actions-inner() \whitespace trim <$list - filter="[<storeTitle>has[text]] [<newTagNameTiddler>has[text]]" + filter="[<storeTitle>has[text]] ~[<newTagNameTiddler>has[text]]" variable="ignore" emptyMessage="<<cancel-delete-tiddler-actions 'cancel'>>" > @@ -34,144 +35,133 @@ second-search-filter: [tags[]is[system]search:title<userInput>sort[]] </$list> \end -\define clear-tags-actions() +\procedure clear-tags-actions() \whitespace trim -<$set name="userInput" value={{{ [<storeTitle>get[text]] }}}> - <$list filter="[<newTagNameTiddler>get[text]!match<userInput>]" emptyMessage="<<clear-tags-actions-inner>>"> - <$action-setfield $tiddler=<<newTagNameTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text="yes"/> +<$let userInput=<<userInput>>> + <$list + filter="[<newTagNameTiddler>get[text]!match<userInput>]" + emptyMessage="<<clear-tags-actions-inner>>" + > + <$action-setfield $tiddler=<<newTagNameTiddler>> text=<<userInput>>/> + <$action-setfield $tiddler=<<refreshTitle>> text="yes"/> </$list> -</$set> +</$let> \end -\define tag-picker-inner(actions,tagField:"tags") +\procedure add-button-actions() +<$action-listops $tiddler=<<saveTiddler>> $field=<<tagField>> $subfilter="[<tag>trim[]]"/> +<<actions>> +<<delete-tag-state-tiddlers>> +<$action-sendmessage $message="tm-focus-selector" $param=<<get-tagpicker-focus-selector>>/> +\end + +\procedure list-tags(filter, suffix) \whitespace trim -<$vars +<$list + filter="[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]" + emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem" +> + <$list filter=<<filter>> variable="tag"> + <$let + button-classes=`tc-btn-invisible ${ [<tag>addsuffix<suffix>] -[<tagSelectionState>get[text]] :then[[]] ~tc-tag-button-selected }$` + currentTiddler=<<tag>> + > + {{||$:/core/ui/TagPickerTagTemplate}} + </$let> + </$list> +</$list> +\end + +\procedure tag-picker-inner() +\whitespace trim +<$let newTagNameInputTiddlerQualified=<<qualify "$:/temp/NewTagName/input">> newTagNameSelectionTiddlerQualified=<<qualify "$:/temp/NewTagName/selected-item">> - fallbackTarget={{$(palette)$##tag-background}} - colourA={{$(palette)$##foreground}} - colourB={{$(palette)$##background}} + fallbackTarget={{{ [<palette>getindex[tag-background]] }}} + colourA={{{ [<palette>getindex[foreground]] }}} + colourB={{{ [<palette>getindex[background]] }}} + + storeTitle={{{ [<newTagNameInputTiddler>!match[]] ~[<newTagNameInputTiddlerQualified>] }}} + tagSelectionState={{{ [<newTagNameSelectionTiddler>!match[]] ~[<newTagNameSelectionTiddlerQualified>] }}} + tagAutoComplete=<<qualify "$:/state/popup/tags-auto-complete">> + + refreshTitle=<<qualify "$:/temp/NewTagName/refresh">> + nonSystemTagsFilter="[tags[]!is[system]search:title<userInput>sort[]]" + systemTagsFilter="[tags[]is[system]search:title<userInput>sort[]]" > - <$vars - storeTitle={{{ [<newTagNameInputTiddler>!match[]] ~[<newTagNameInputTiddlerQualified>] }}} - tagSelectionState={{{ [<newTagNameSelectionTiddler>!match[]] ~[<newTagNameSelectionTiddlerQualified>] }}} - > - <$vars - refreshTitle=<<qualify "$:/temp/NewTagName/refresh">> - nonSystemTagsFilter="[tags[]!is[system]search:title<userInput>sort[]]" - systemTagsFilter="[tags[]is[system]search:title<userInput>sort[]]" - > - <div class="tc-edit-add-tag"> - <div> - <span class="tc-add-tag-name tc-small-gap-right"> - <$macrocall - $name="keyboard-driven-input" - tiddler=<<newTagNameTiddler>> - storeTitle=<<storeTitle>> - refreshTitle=<<refreshTitle>> - selectionStateTitle=<<tagSelectionState>> - inputAcceptActions="<$macrocall $name='add-tag-actions' actions=<<__actions__>> tagField=<<__tagField__>>/>" - inputCancelActions=<<clear-tags-actions>> - tag="input" - placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} - focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> - class="tc-edit-texteditor tc-popup-handle" - tabindex=<<tabIndex>> - focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}} - filterMinLength={{$:/config/Tags/MinLength}} - cancelPopups=<<cancelPopups>> - configTiddlerFilter="[[$:/core/macros/tag-picker]]" - /> - </span> - <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> - class="tc-btn-invisible tc-btn-dropdown" - tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} - aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}} + <div class="tc-edit-add-tag"> + <div> + <span class="tc-add-tag-name tc-small-gap-right"> + <$transclude + $variable="keyboard-driven-input" + tiddler=<<newTagNameTiddler>> + storeTitle=<<storeTitle>> + refreshTitle=<<refreshTitle>> + selectionStateTitle=<<tagSelectionState>> + inputAcceptActions=<<add-tag-actions>> + inputCancelActions=<<clear-tags-actions>> + tag="input" + placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} + focusPopup=<<tagAutoComplete>> + class="tc-edit-texteditor tc-popup-handle" + tabindex=<<tabIndex>> + focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}} + filterMinLength={{$:/config/Tags/MinLength}} + cancelPopups=<<cancelPopups>> + configTiddlerFilter="[[$:/core/macros/tag-picker]]" + /> + </span> + <$button popup=<<tagAutoComplete>> + class="tc-btn-invisible tc-btn-dropdown" + tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} + aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}} + > + {{$:/core/images/down-arrow}} + </$button> + <$reveal state=<<storeTitle>> type="nomatch" text=""> + <$button actions=<<delete-tag-state-tiddlers>> + class="tc-btn-invisible tc-small-gap tc-btn-dropdown" + tooltip={{$:/language/EditTemplate/Tags/ClearInput/Hint}} + aria-label={{$:/language/EditTemplate/Tags/ClearInput/Caption}} + > + {{$:/core/images/close-button}} + </$button> + </$reveal> + <span class="tc-add-tag-button tc-small-gap-left"> + <$let tag=<<tag>>> + <$button set=<<newTagNameTiddler>> setTo="" + actions=<<add-button-actions>> > - {{$:/core/images/down-arrow}} + {{$:/language/EditTemplate/Tags/Add/Button}} </$button> - <$reveal state=<<storeTitle>> type="nomatch" text=""> - <$button class="tc-btn-invisible tc-small-gap tc-btn-dropdown" - tooltip={{$:/language/EditTemplate/Tags/ClearInput/Hint}} - aria-label={{$:/language/EditTemplate/Tags/ClearInput/Caption}} - > - {{$:/core/images/close-button}}<<delete-tag-state-tiddlers>> - </$button> - </$reveal> - <span class="tc-add-tag-button tc-small-gap-left"> - <$set name="tag" value={{{ [<newTagNameTiddler>get[text]] }}}> - <$button set=<<newTagNameTiddler>> setTo="" class=""> - <$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter="[<tag>trim[]]"/> - <$transclude $variable="__actions__"/> - <$set name="currentTiddlerCSSEscaped" value={{{ [<saveTiddler>escapecss[]] }}}> - <<delete-tag-state-tiddlers>><$action-sendmessage $message="tm-focus-selector" $param=<<get-tagpicker-focus-selector>>/> - </$set> - {{$:/language/EditTemplate/Tags/Add/Button}} - </$button> - </$set> - </span> + </$let> + </span> + </div> + <div class="tc-block-dropdown-wrapper"> + <$reveal state=<<tagAutoComplete>> type="nomatch" text=""> + <div class="tc-block-dropdown tc-block-tags-dropdown"> + <$let userInput=<<userInput>>> + <$transclude $variable="list-tags" filter=<<nonSystemTagsFilter>> suffix="-primaryList" /> + <hr> + <$transclude $variable="list-tags" filter=<<systemTagsFilter>> suffix="-secondaryList" /> + </$let> </div> - <div class="tc-block-dropdown-wrapper"> - <$reveal state=<<qualify "$:/state/popup/tags-auto-complete">> type="nomatch" text="" default=""> - <div class="tc-block-dropdown tc-block-tags-dropdown"> - <$set name="userInput" value={{{ [<storeTitle>get[text]] }}}> - <$list - filter="[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]" - emptyMessage="<div class='tc-search-results' - > - {{$:/language/Search/Search/TooShort}}</div>" variable="listItem"> - <$list filter=<<nonSystemTagsFilter>> variable="tag"> - <$list - filter="[<tag>addsuffix[-primaryList]] -[<tagSelectionState>get[text]]" - emptyMessage="<$vars button-classes='tc-btn-invisible tc-tag-button-selected' actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>" - > - <$vars button-classes="tc-btn-invisible" - actions=<<__actions__>> - tagField=<<__tagField__>> - currentTiddler=<<tag>> - > - {{||$:/core/ui/TagPickerTagTemplate}} - </$vars> - </$list> - </$list> - </$list> - <hr> - <$list filter="[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="<div class='tc-search-results'> - {{$:/language/Search/Search/TooShort}}</div>" variable="listItem"> - <$list filter=<<systemTagsFilter>> variable="tag"> - <$list filter="[<tag>addsuffix[-secondaryList]] -[<tagSelectionState>get[text]]" - emptyMessage="<$vars button-classes='tc-btn-invisible tc-tag-button-selected' actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>" - > - <$vars button-classes="tc-btn-invisible" - actions=<<__actions__>> - tagField=<<__tagField__>> - currentTiddler=<<tag>> - > - {{||$:/core/ui/TagPickerTagTemplate}} - </$vars> - </$list> - </$list> - </$list> - </$set> - </div> - </$reveal> - </div> - </div> - </$vars> - </$vars> -</$vars> + </$reveal> + </div> + </div> +</$let> \end -\define tag-picker(actions,tagField:"tags") +\procedure tag-picker(actions, tagField:"tags") +\function userInput() [<storeTitle>get[text]] +\function tag() [<newTagNameTiddler>get[text]] \whitespace trim -<$vars saveTiddler=<<currentTiddler>> palette={{$:/palette}}> - <$list - filter="[<newTagNameTiddler>match[]]" - emptyMessage="<$macrocall $name='tag-picker-inner' actions=<<__actions__>> tagField=<<__tagField__>>/>" - > - <$set name="newTagNameTiddler" value=<<qualify "$:/temp/NewTagName">>> - <$macrocall $name="tag-picker-inner" actions=<<__actions__>> tagField=<<__tagField__>>/> - </$set> - </$list> -</$vars> +<$let + saveTiddler=<<currentTiddler>> + palette={{$:/palette}} + qualified=<<qualify "$:/temp/NewTagName">> + newTagNameTiddler={{{ [<newTagNameTiddler>!match[]] ~[<qualified>] }}} +> + <$transclude $variable="tag-picker-inner" /> +</$let> \end diff --git a/editions/dev/tiddlers/javascript-widget-tutorial/Javascript Widget Tutorial.tid b/editions/dev/tiddlers/javascript-widget-tutorial/Javascript Widget Tutorial.tid index f6ee01182..3a5d18ed4 100644 --- a/editions/dev/tiddlers/javascript-widget-tutorial/Javascript Widget Tutorial.tid +++ b/editions/dev/tiddlers/javascript-widget-tutorial/Javascript Widget Tutorial.tid @@ -1,5 +1,5 @@ created: 20190202035524804 -modified: 20221029161501848 +modified: 20240302110658300 tags: title: Javascript Widget Tutorial type: text/vnd.tiddlywiki @@ -9,21 +9,23 @@ This tutorial provides step-by-step, interactive examples of how to write code f Intended audience: -# Those who know tiddlywiki well and know programming and javascript and want to write their own widget. I don't make any effort to explain javascript here. For that you will need other resources. +# Those who know tiddlywiki well and know programming and javascript and want to write their own widget. # Those who know tiddlywiki well and don't know javascript, but want to understand more about how tiddlywiki works. You should be able to skim through and interact with the demos and learn something. -!The tutorial -*[[Undefined widget tutorial]] -*[[Do nothing widget tutorial]] -*[[Hello World widget tutorial]] -*[[Widget refresh tutorial part I]] -*[[Widget refresh tutorial part II]] -*[[Widget refresh tutorial part III]] -*[[Widget attributes tutorial part I]] -*[[Widget attributes tutorial part II]] -*[[Child widgets tutorial]] +We don't make any effort to explain javascript here. For that you will need other resources, like [[MDN|https://developer.mozilla.org/en-US/docs/Web/JavaScript]]. -! Notes +!! The tutorial +* [[Undefined widget tutorial]] +* [[Do nothing widget tutorial]] +* [[Hello World widget tutorial]] +* [[Widget refresh tutorial part I]] +* [[Widget refresh tutorial part II]] +* [[Widget refresh tutorial part III]] +* [[Widget attributes tutorial part I]] +* [[Widget attributes tutorial part II]] +* [[Child widgets tutorial]] + +!! Notes tiddlywiki doesn't support dynamically reloading javascript. If you change a javascript tiddler, then you need to save and reload the wiki before the changes will take affect. @@ -31,7 +33,11 @@ To avoid the need for such reloads, the excellent [[innerwiki plugin|https://tid Without the need for reloads, a tiddlywiki instance with the [[innerwiki plugin|https://tiddlywiki.com/prerelease/plugins/tiddlywiki/innerwiki/]] installed works great as a playground for interacting with tiddlywiki javascript. -! Other documentation on writing TW widgets +!! Other documentation on writing TW widgets -*WidgetModules -*[[Widgets]] \ No newline at end of file +* WidgetModules +* [[Widgets]] + +!! Full API doc + +[[Github Pages of TW5-Typed|https://tiddly-gittly.github.io/TW5-Typed/api/classes/modules_widgets.widget]] diff --git a/editions/dev/tiddlers/new/Using ES2016 for Writing Plugins.tid b/editions/dev/tiddlers/new/Using ES2016 for Writing Plugins.tid index f89a90f8f..ab447bc2e 100644 --- a/editions/dev/tiddlers/new/Using ES2016 for Writing Plugins.tid +++ b/editions/dev/tiddlers/new/Using ES2016 for Writing Plugins.tid @@ -1,5 +1,5 @@ -modified: 20160305222940000 created: 20160111034749658 +modified: 20240302110735646 title: Using ES2016 for Writing Plugins type: text/vnd.tiddlywiki @@ -7,7 +7,15 @@ With the advent of ES2015 (also known as ES6) and the availability of [[Babel.js Please understand how the PluginMechanism works since this is all about writing a plugin using Babel to compile the output that will be included in the final TiddlyWiki (for example [[TiddlyWiki on Node.js]]). -!! Installing and Configuring Babel +!! Use a framework + +It is recommended to use develop toolkit managed by community. For example, + +# [[Modern.TiddlyDev|https://tiddly-gittly.github.io/Modern.TiddlyDev/]] + +They are known as "~JavaScript Meta-Framework". With them, you can start developing in a few minutes, without hours of configuration and debugging the build steps. + +!! Installing and Configuring Babel by yourself You can install Babel using @@ -33,7 +41,9 @@ Inside your plugin project edit the file `.babelrc` and enter the following: <<.tip "I found it easier to manage my plugins as if they were ''npm'' modules complete with a `package.json` that compiles the output via `npm run build`. See [[npm-scripts documentation|https://docs.npmjs.com/misc/scripts]] for details.">> -!! Compiling the Output +Another benefit of using such a "Meta-Framework" is that you can easily maintain your configuration, you will find it difficult to upgrade those config files after several months. + +!!! Compiling the Output Pick a folder to store the ES2015 JavaScript and a folder to output the TiddlyWiki ready JavaScript. In this example I will use `src` and `lib` respectively. With Babel installed and working I can compile all the JavaScript in the `src` folder to the `lib` folder by running this command: @@ -43,7 +53,7 @@ $ babel src -d lib <<.warning "Babel will //not// copy over non-JavaScript files. It is up to the developer to include all the supporting files themselves. Babel only converts the ~JavaScript files (ending in `.js`) from the `src` folder to the `lib` folder.">> -!! Imports and Exports +!!! Imports and Exports In a plugin written pre-ES2015 one would `require` a module through TiddlyWiki like so: @@ -71,7 +81,7 @@ export { MyWidget as mywidget }; It is important to understand that in ES2016 the ''default'' export is not supported in TiddlyWiki. This is mostly because the core code expects specific properties to be attached to the `exports` variable. Bable's `export` conversion plays well with this //except// with the default export. -!! Classes +!!! Classes In the example of a widget ES2016 plays well with class inheritance. To contrast the typical Widget definition would look something like this: @@ -104,7 +114,7 @@ class NameWidget extends Widget { } ``` -!!! Non Class Modules +!!!! Non Class Modules For non class modules you can use the `export` keyword. Here is a simple [[Startup Module|ModuleType]]: @@ -122,11 +132,11 @@ export const params = {}; export function run() {…} ``` -!! Polyfills +!!! Polyfills ES2015 comes with some features that are part of the JavaScript core objects. These are not supported by all browsers. To use these features in [[most browsers|BrowserCompatibility]] you will need a <<.def "polyfill">>. Babel has a polyfill package that you can include. See [[Adding Babel Polyfill to TiddlyWiki]] for how to accomplish this. -!! Example +!!! Example Here is an example ES2015 plugin/widget that will show the time and update it: diff --git a/editions/es-ES/tiddlers/$__StoryList.tid b/editions/es-ES/tiddlers/$__StoryList.tid deleted file mode 100644 index 523878d1e..000000000 --- a/editions/es-ES/tiddlers/$__StoryList.tid +++ /dev/null @@ -1,6 +0,0 @@ -created: 20160511060801385 -list: Reference JSONTiddlers -modified: 20160511060801385 -title: $:/StoryList -type: text/vnd.tiddlywiki - diff --git a/editions/full/tiddlywiki.info b/editions/full/tiddlywiki.info index e5dc0b0f9..130d61dfe 100644 --- a/editions/full/tiddlywiki.info +++ b/editions/full/tiddlywiki.info @@ -47,6 +47,7 @@ "it-IT", "ja-JP", "ko-KR", + "mk-MK", "nl-NL", "pa-IN", "pt-PT", diff --git a/editions/introduction/tiddlers/slides/CecilyMap.tid b/editions/introduction/tiddlers/slides/CecilyMap.tid index 01e969cad..3318198f0 100644 --- a/editions/introduction/tiddlers/slides/CecilyMap.tid +++ b/editions/introduction/tiddlers/slides/CecilyMap.tid @@ -4,17 +4,17 @@ type: application/json { "newTiddlerPosition": {"x": 360,"y": 100}, "positions": { - " ": {"x": 30,"y": 17,"w": 140,"h": 140, "r": -2}, - "Tiddlers": {"x": 60,"y": 15,"w": 140,"h": 140, "r": 10}, - "Links": {"x": 90,"y": 13,"w": 140,"h": 140, "r": -7}, - "Formatting": {"x": 120,"y": 18,"w": 140,"h": 140, "r": 5}, - "Images": {"x": 150,"y": 12,"w": 140,"h": 140, "r": -11}, - "Audio": {"x": 180,"y": 14,"w": 140,"h": 140, "r": 16}, - "Tags": {"x": 210,"y": 15,"w": 140,"h": 140, "r": 20}, - "Transclusion": {"x": 240,"y": 16,"w": 140,"h": 140, "r": -4}, - "Lists": {"x": 275,"y": 13,"w": 140,"h": 140, "r": 6}, - "Customisation": {"x": 310,"y": 19,"w": 140,"h": 140, "r": -5}, - "Plugins": {"x": 350,"y": 12,"w": 140,"h": 140, "r": 10}, - "Translations": {"x": 390,"y": 15,"w": 140,"h": 140, "r": 8} + " ": {"x": 30,"y": 17,"w": 120,"h": 120, "r": -2}, + "Tiddlers": {"x": 60,"y": 15,"w": 120,"h": 120, "r": 10}, + "Links": {"x": 90,"y": 13,"w": 120,"h": 120, "r": -7}, + "Formatting": {"x": 120,"y": 18,"w": 120,"h": 120, "r": 5}, + "Images": {"x": 150,"y": 12,"w": 120,"h": 120, "r": -11}, + "Audio": {"x": 180,"y": 14,"w": 120,"h": 120, "r": 16}, + "Tags": {"x": 210,"y": 15,"w": 120,"h": 120, "r": 20}, + "Transclusion": {"x": 240,"y": 16,"w": 120,"h": 120, "r": -4}, + "Lists": {"x": 275,"y": 13,"w": 120,"h": 120, "r": 6}, + "Customisation": {"x": 310,"y": 19,"w": 120,"h": 120, "r": -5}, + "Plugins": {"x": 350,"y": 12,"w": 120,"h": 120, "r": 10}, + "Translations": {"x": 390,"y": 15,"w": 120,"h": 120, "r": 8} } } \ No newline at end of file diff --git a/editions/introduction/tiddlers/slides/blank.json b/editions/introduction/tiddlers/slides/blank.json index 6d507401f..e523d48d4 100644 --- a/editions/introduction/tiddlers/slides/blank.json +++ b/editions/introduction/tiddlers/slides/blank.json @@ -1,3 +1,3 @@ [ -{"title": " ", "text": "TiddlyWiki"} +{"title": " ", "text": "[[TiddlyWiki]]"} ] diff --git a/editions/prerelease/tiddlers/system/configPerformanceInstrumentation.tid b/editions/prerelease/tiddlers/system/configPerformanceInstrumentation.tid new file mode 100644 index 000000000..e4220f287 --- /dev/null +++ b/editions/prerelease/tiddlers/system/configPerformanceInstrumentation.tid @@ -0,0 +1,2 @@ +title: $:/config/Performance/Instrumentation +text: yes diff --git a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid index 23fa58c57..b3ef64d7d 100644 --- a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid +++ b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid @@ -12,6 +12,7 @@ title: Output + title: Definitions +\whitespace trim <$set name="one" value="elephant"> <$set name="two" value="giraffe"> </$set> diff --git a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid index eaa81f38c..282896c88 100644 --- a/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid +++ b/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid @@ -14,6 +14,7 @@ title: Output + title: Definitions +\whitespace trim \define name() Bugs Bunny \procedure address() Bunny Hill diff --git a/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace2.tid b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace2.tid new file mode 100644 index 000000000..e6cd673bc --- /dev/null +++ b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace2.tid @@ -0,0 +1,25 @@ +title: Transclude/Procedures/Whitespace2 +description: Procedures should inherit whitespace settings from definition site +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +\procedure testproc() +This is a sentence +\end + +\define testmacro() +This is a sentence +\end +This is a sentence +[<<testproc>>] +[<<testmacro>>] + ++ +title: ExpectedResult + +<p>This is a sentence +[This is a sentence ] +[This is a sentence ] +</p> \ No newline at end of file diff --git a/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace3.tid b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace3.tid new file mode 100644 index 000000000..b043bceda --- /dev/null +++ b/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace3.tid @@ -0,0 +1,30 @@ +title: Transclude/Procedures/Whitespace3 +description: Procedures should inherit whitespace settings from definition site +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +\import Definitions + +This is a sentence +[<<testproc>>] +[<<testmacro>>] + ++ +title: Definitions + +\procedure testproc() +This is a sentence +\end + +\define testmacro() +This is a sentence +\end ++ +title: ExpectedResult + +<p>This is a sentence +[This is a sentence ] +[This is a sentence ] +</p> \ No newline at end of file diff --git a/editions/test/tiddlers/tests/test-backtranscludes.js b/editions/test/tiddlers/tests/test-backtranscludes.js new file mode 100644 index 000000000..8ef997566 --- /dev/null +++ b/editions/test/tiddlers/tests/test-backtranscludes.js @@ -0,0 +1,148 @@ +/*\ +title: test-backtranscludes.js +type: application/javascript +tags: $:/tags/test-spec + +Tests the backtranscludes mechanism. + +\*/ +(function(){ +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +describe('Backtranscludes tests', function() { + describe('a tiddler with no transcludes to it', function() { + var wiki = new $tw.Wiki(); + + wiki.addTiddler({ + title: 'TestIncoming', + text: ''}); + + it('should have no backtranscludes', function() { + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe(''); + }); + }); + + describe('A tiddler added to the wiki with a transclude to it', function() { + var wiki = new $tw.Wiki(); + + wiki.addTiddler({ + title: 'TestIncoming', + text: 'something'}); + + wiki.addTiddler({ + title: 'TestOutgoing', + text: 'A transclude to {{TestIncoming}}'}); + + it('should have a backtransclude', function() { + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe('TestOutgoing'); + }); + }); + + describe('A tiddler transclude with template will still use the tiddler as result.', function() { + var wiki = new $tw.Wiki(); + + wiki.addTiddler({ + title: 'TestIncoming', + text: 'something'}); + + wiki.addTiddler({ + title: 'TestOutgoing', + text: 'A transclude to {{TestIncoming||$:/core/ui/TagTemplate}}'}); + + it('should have a backtransclude', function() { + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe('TestOutgoing'); + }); + }); + + describe('A tiddler that has a transclude added to it later', function() { + it('should have an additional backtransclude', function() { + var wiki = new $tw.Wiki(); + + wiki.addTiddler({ + title: 'TestIncoming', + text: ''}); + + wiki.addTiddler({ + title: 'TestOutgoing', + text: 'A transclude to {{TestIncoming}}'}); + + wiki.addTiddler({ + title: 'TestOutgoing2', + text: 'Nothing yet!'}); + + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe('TestOutgoing'); + + wiki.addTiddler({ + title: 'TestOutgoing2', + text: 'Updated with transclude to {{TestIncoming}}'}); + + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe('TestOutgoing,TestOutgoing2'); + }); + }); + + describe('A tiddler that has a transclude remove from it later', function() { + var wiki = new $tw.Wiki(); + + wiki.addTiddler({ + title: 'TestIncoming', + text: ''}); + + wiki.addTiddler({ + title: 'TestOutgoing', + text: 'A transclude to {{TestIncoming}}'}); + + it('should have one fewer backtransclude', function() { + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe('TestOutgoing'); + + wiki.addTiddler({ + title: 'TestOutgoing', + text: 'No transclude to ~TestIncoming'}); + + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe(''); + }); + }); + + describe('A tiddler transcludeing to another that gets renamed', function() { + var wiki = new $tw.Wiki(); + + wiki.addTiddler({ + title: 'TestIncoming', + text: ''}); + + wiki.addTiddler({ + title: 'TestOutgoing', + text: 'A transclude to {{TestIncoming}}'}); + + it('should have its name changed in the backtranscludes', function() { + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe('TestOutgoing'); + + wiki.renameTiddler('TestOutgoing', 'TestExtroverted'); + + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe('TestExtroverted'); + }); + }); + + describe('A tiddler transcludeing to another that gets deleted', function() { + var wiki = new $tw.Wiki(); + + wiki.addTiddler({ + title: 'TestIncoming', + text: ''}); + + wiki.addTiddler({ + title: 'TestOutgoing', + text: 'A transclude to {{TestIncoming}}'}); + + it('should be removed from backtranscludes', function() { + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe('TestOutgoing'); + + wiki.deleteTiddler('TestOutgoing'); + + expect(wiki.filterTiddlers('TestIncoming +[backtranscludes[]]').join(',')).toBe(''); + }); + }); +}); + +})(); diff --git a/editions/translators/tiddlywiki.info b/editions/translators/tiddlywiki.info index b2cc4f7ba..087a6a1f1 100644 --- a/editions/translators/tiddlywiki.info +++ b/editions/translators/tiddlywiki.info @@ -22,6 +22,7 @@ "it-IT", "ja-JP", "ko-KR", + "mk-MK", "nl-NL", "pa-IN", "pl-PL", diff --git a/editions/tw.org/tiddlers/$__StoryList.tid b/editions/tw.org/tiddlers/$__StoryList.tid deleted file mode 100644 index 55e7524f2..000000000 --- a/editions/tw.org/tiddlers/$__StoryList.tid +++ /dev/null @@ -1,3 +0,0 @@ -list: HelloThere -title: $:/StoryList -type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/$__StoryList.tid b/editions/tw5.com/tiddlers/$__StoryList.tid deleted file mode 100644 index 37ea75152..000000000 --- a/editions/tw5.com/tiddlers/$__StoryList.tid +++ /dev/null @@ -1,5 +0,0 @@ -created: 20220728145919904 -list: Brackets Base64 HelloThere GettingStarted Community -modified: 20220728145919904 -title: $:/StoryList -type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/about/Developers.tid b/editions/tw5.com/tiddlers/about/Developers.tid index 9b24b0c36..51c123ee7 100644 --- a/editions/tw5.com/tiddlers/about/Developers.tid +++ b/editions/tw5.com/tiddlers/about/Developers.tid @@ -8,6 +8,7 @@ There are several resources for developers to learn more about TiddlyWiki and to * [[tiddlywiki.com/dev|https://tiddlywiki.com/dev]] is the official developer documentation * Get involved in the [[development on GitHub|https://github.com/Jermolene/TiddlyWiki5]] +** [img[https://repobeats.axiom.co/api/embed/5a3bb51fd1ebe84a2da5548f78d2d74e456cebf3.svg]] ** [[Discussions|https://github.com/Jermolene/TiddlyWiki5/discussions]] are for Q&A and open-ended discussion ** [[Issues|https://github.com/Jermolene/TiddlyWiki5/issues]] are for raising bug reports and proposing specific, actionable new ideas * The older ~TiddlyWikiDev Google Group is now closed in favour of [[GitHub Discussions|https://github.com/Jermolene/TiddlyWiki5/discussions]] but remains a useful archive: https://groups.google.com/group/TiddlyWikiDev diff --git a/editions/tw5.com/tiddlers/community/plugins/Disqus comments plugin by bimlas.tid b/editions/tw5.com/tiddlers/community/plugins/Disqus comments plugin by bimlas.tid index 873398fbf..2e2362c61 100644 --- a/editions/tw5.com/tiddlers/community/plugins/Disqus comments plugin by bimlas.tid +++ b/editions/tw5.com/tiddlers/community/plugins/Disqus comments plugin by bimlas.tid @@ -3,7 +3,7 @@ modified: 20210106151027439 tags: [[Community Plugins]] title: Disqus comments plugin by bimlas type: text/vnd.tiddlywiki -url: https://bimlas.gitlab.io/tw5-disqus/ +url: https://bimlas.github.io/tw5-disqus/ Use this plugin to give your visitors the opportunity to comment on your tiddlers without changing the wiki itself. diff --git a/editions/tw5.com/tiddlers/community/plugins/Kin filter operator by bimlas.tid b/editions/tw5.com/tiddlers/community/plugins/Kin filter operator by bimlas.tid index 9d924d540..8bb2ed457 100644 --- a/editions/tw5.com/tiddlers/community/plugins/Kin filter operator by bimlas.tid +++ b/editions/tw5.com/tiddlers/community/plugins/Kin filter operator by bimlas.tid @@ -3,7 +3,7 @@ modified: 20210106151027488 tags: [[Community Plugins]] title: Kin filter operator by bimlas type: text/vnd.tiddlywiki -url: https://bimlas.gitlab.io/tw5-kin-filter/ +url: https://bimlas.github.io/tw5-kin-filter/ The purpose of the kin operator with examples: diff --git a/editions/tw5.com/tiddlers/community/plugins/Locator plugin by bimlas.tid b/editions/tw5.com/tiddlers/community/plugins/Locator plugin by bimlas.tid index 93b8aa4a7..b8ef9d9bf 100644 --- a/editions/tw5.com/tiddlers/community/plugins/Locator plugin by bimlas.tid +++ b/editions/tw5.com/tiddlers/community/plugins/Locator plugin by bimlas.tid @@ -3,7 +3,7 @@ modified: 20210106151027508 tags: [[Community Plugins]] title: Locator plugin by bimlas type: text/vnd.tiddlywiki -url: https://bimlas.gitlab.io/tw5-locator/ +url: https://bimlas.github.io/tw5-locator/ For those who use many tags or store many different topics in a common wiki the Locator plugin is a table of contents widget and an enhanced search engine that gives you the opportunity to filter results by related tags. Unlike table of contents, standard search and list of tags, this plugin offers these features in an organic, collaborative way. diff --git a/editions/tw5.com/tiddlers/community/themes/Notebook theme by Nicolas Petton.tid b/editions/tw5.com/tiddlers/community/themes/Notebook theme by Nicolas Petton.tid index c31316239..4f86181d3 100644 --- a/editions/tw5.com/tiddlers/community/themes/Notebook theme by Nicolas Petton.tid +++ b/editions/tw5.com/tiddlers/community/themes/Notebook theme by Nicolas Petton.tid @@ -1,9 +1,9 @@ created: 20210101154635213 -modified: 20210110210929321 +modified: 20240131143350890 tags: [[Community Themes]] title: "Notebook theme" by Nicolas Petton type: text/vnd.tiddlywiki -url: https://nicolas.petton.fr/tw/notebook.html +url: https://saqimtiaz.github.io/sq-tw/notebook.html Notebook is a clean, uncluttered theme for ~TiddlyWiki. diff --git a/editions/tw5.com/tiddlers/concepts/Bags and Recipes.tid b/editions/tw5.com/tiddlers/concepts/Bags and Recipes.tid new file mode 100644 index 000000000..19c4f6149 --- /dev/null +++ b/editions/tw5.com/tiddlers/concepts/Bags and Recipes.tid @@ -0,0 +1,42 @@ +created: 20240309135835396 +modified: 20240309142156125 +tags: Concepts +title: Bags and Recipes +type: text/vnd.tiddlywiki + +The bags and recipes model is a reference architecture for how tiddlers can be shared between multiple wikis. It was first introduced by TiddlyWeb in 2008. + +The principles of bags and recipes can be simply stated: + +# Tiddlers are stored in named "bags" +# Bags have access controls that determines which users can read or write to them +# Recipes are named lists of bags, ordered from lowest priority to highest +# The tiddlers within a recipe are accumulated in turn from each bag in the recipe in order of increasing priority. Thus, if there are multiple tiddlers with the same title in different bags then the one from the highest priority bag will be used as the recipe tiddler +# Wikis are composed by splicing the tiddlers from the corresponding recipe into the standard TW5 HTML template + +A very simple example of the recipe/bag model might be for a single user who maintains the following bags: + +* ''recipes'' - tiddlers related to cooking recipes +* ''work'' - tiddlers related to work +* ''app'' - common tiddlers for customising TiddlyWiki + +Those bags would be used with the following recipes: + +* ''recipes'' --> recipes, app - wiki for working with recipes, with common custom components +* ''work'' --> work, app - wiki for working with work, with common custom components +* ''app'' --> app - wiki for maintaining custom components + +All of this will work dynamically, so changes to the app bag will instantly ripple into the affected hosted wikis. + +A more complex example might be for a teacher working with a group of students: + +* ''student-{name}'' bag for each students work +* ''teacher-course'' bag for the coursework, editable by the teacher +* ''teacher-tools'' bag for custom tools used by the teacher + +Those bags would be exposed through the following hosted wikis: + +* ''student-{name}'' hosted wiki for each students work, including the coursework material +* ''teacher-course'' hosted wiki for the coursework, editable by the teacher +* ''teacher'' hosted wiki for the teacher, bringing together all the bags, giving them an overview of all the students work + diff --git a/editions/tw5.com/tiddlers/concepts/Filters.tid b/editions/tw5.com/tiddlers/concepts/Filters.tid index b9fec39fc..3e7c0bd6a 100644 --- a/editions/tw5.com/tiddlers/concepts/Filters.tid +++ b/editions/tw5.com/tiddlers/concepts/Filters.tid @@ -1,7 +1,7 @@ created: 20130827080000000 list: [[Introduction to filter notation]] [[Filter Syntax]] -modified: 20220316145511797 -tags: Reference Concepts +modified: 20230710074511095 +tags: Reference Concepts TableOfContents title: Filters type: text/vnd.tiddlywiki @@ -15,7 +15,7 @@ You can think of TiddlyWiki as a database in which the records are tiddlers. A d A <<.def filter>> is a concise notation for selecting a particular [[set of tiddlers|Title Selection]], known as its <<.def "output">>. Whenever ~TiddlyWiki encounters a filter, it calculates the output. Further work can then be done with just those tiddlers, such as [[counting|CountWidget]] or [[listing|ListWidget]] them. -The following example passes a filter to the <<.mlink list-links>> macro to display a list of all tiddlers whose titles are <<.olink2 tagged tag>> with the word <<.word Filters>>: +The following example passes a filter to the <<.mlink list-links>> macro. It displays a list of all tiddlers using the <<.olink2 tag tag>> <<.word Filters>>: <<wikitext-example-without-html """<<list-links "[tag[Filters]]">>""" >> diff --git a/editions/tw5.com/tiddlers/concepts/Temporary Tiddlers.tid b/editions/tw5.com/tiddlers/concepts/Temporary Tiddlers.tid new file mode 100644 index 000000000..c138bf8a3 --- /dev/null +++ b/editions/tw5.com/tiddlers/concepts/Temporary Tiddlers.tid @@ -0,0 +1,8 @@ +created: 20240202112358997 +modified: 20240202120248326 +tags: Concepts +title: Temporary Tiddlers + +Temporary tiddlers are tiddlers that will be discarded when TiddlyWiki is saved. Under default configuration of the SavingMechanism (more specifically, the filter in [[$:/core/save/all]]), these are tiddlers prefixed with `$:/temp/`. This prefix makes them SystemTiddlers as well. + +One example usage of temporary tiddlers is storing the search queries. The query typed in the [[$:/AdvancedSearch]] is stored in [[$:/temp/advancedsearch]]. \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/concepts/TextReference.tid b/editions/tw5.com/tiddlers/concepts/TextReference.tid index 474149b88..cf2341a97 100644 --- a/editions/tw5.com/tiddlers/concepts/TextReference.tid +++ b/editions/tw5.com/tiddlers/concepts/TextReference.tid @@ -1,5 +1,5 @@ created: 20130827075900000 -modified: 20161216173541948 +modified: 20230321130421587 tags: Concepts title: TextReference type: text/vnd.tiddlywiki @@ -27,7 +27,7 @@ Text references can be used in several places: * As [[indirect parameters|Filter Parameter]] within [[Filters]] (eg, `<$list filter="[tag{MyTag!!name}]"/>`) * As [[indirect attributes|HTML in WikiText]] of an element or widget (eg, `<$widget attrib={{Title!!description}}/>`) -* As the operand of a shortcut transclusion (eg, `{{MyTiddler!!title}}`) +* As the parameter of a shortcut transclusion (eg, `{{MyTiddler!!title}}`) * As the `state` attribute of the RevealWidget and the LinkCatcherWidget <$macrocall $name=".tip" _="""Note the distinction between a text reference such as `foo!!bar` and a transclusion of a text reference such as `{{foo!!bar}}`"""/> diff --git a/editions/tw5.com/tiddlers/definitions/Legacy.tid b/editions/tw5.com/tiddlers/definitions/Legacy.tid new file mode 100644 index 000000000..325f9e809 --- /dev/null +++ b/editions/tw5.com/tiddlers/definitions/Legacy.tid @@ -0,0 +1,9 @@ +created: 20230319131443509 +modified: 20230319132235520 +tags: Definitions +title: Legacy +type: text/vnd.tiddlywiki + +>Legacy code is old computer source code that is no longer supported on the standard hardware and environments, and is a codebase that is in some respect obsolete or supporting something obsolete. Legacy code may be written in programming languages, use frameworks and external libraries, or use architecture and patterns that are no longer considered modern, increasing the mental burden and ramp-up time for software engineers who work on the codebase. +> +>https://en.wikipedia.org/wiki/Legacy_system \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/definitions/TiddlyWeb.tid b/editions/tw5.com/tiddlers/definitions/TiddlyWeb.tid index 02a335d7f..c3bae2b8a 100644 --- a/editions/tw5.com/tiddlers/definitions/TiddlyWeb.tid +++ b/editions/tw5.com/tiddlers/definitions/TiddlyWeb.tid @@ -2,8 +2,9 @@ created: 201308300841 modified: 20170127221451610 tags: Definitions title: TiddlyWeb +type: text/vnd.tiddlywiki -TiddlyWeb is a reference implementation for an interface to put [[Tiddlers]] on the web. +TiddlyWeb is a reference implementation for an interface to put [[Tiddlers]] on the web using the [[Bags and Recipes]] model. It was created by a team led by Chris Dent at [[Osmosoft]] under [[BT]] from 2008 to 2012. @@ -16,5 +17,3 @@ Other implementations of the API include: * [[TiddlyWiki App Engine Server|https://github.com/rsc/tiddly]], a 300-line Go implementation from Russ Cox * [[TiddlyWiki 5 server module|https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/server.js]], the bare-bones subset of the API implemented in TiddlyWiki version 5 for Node.js * [[tiddly-wiki-server|https://github.com/nathanielknight/tiddly-wiki-server]], an implementation based on Rust and SQLite - -As of early 2017, none is currently as complete as TiddlyWeb itself. diff --git a/editions/tw5.com/tiddlers/definitions/TiddlyWebAdaptor.tid b/editions/tw5.com/tiddlers/definitions/TiddlyWebAdaptor.tid new file mode 100644 index 000000000..74043c438 --- /dev/null +++ b/editions/tw5.com/tiddlers/definitions/TiddlyWebAdaptor.tid @@ -0,0 +1,9 @@ +created: 20240309100338678 +modified: 20240309135821423 +tags: Definitions +title: TiddlyWebAdaptor +type: text/vnd.tiddlywiki + +TiddlyWebAdaptor is a component of [[TiddlyWiki on Node.js]]. It provides the means to synchronise changes to tiddlers from the browser to a server, and from the server to the browser. It can be found in the plugin [[$:/plugins/tiddlywiki/tiddlyweb]]. + +TiddlyWebAdaptor was designed to be compatible both with TiddlyWeb and with TiddlyWiki's own built-in server mechanism. The [[Bags and Recipes]] model is fully supported by [[TiddlyWeb]], but TiddlyWiki's built-in server only supports a simplified model with a single bag and a single recipe. diff --git a/editions/tw5.com/tiddlers/filters/Conditional Operators.tid b/editions/tw5.com/tiddlers/filters/Conditional Operators.tid index 6d21e0864..a8dc5a1b2 100644 --- a/editions/tw5.com/tiddlers/filters/Conditional Operators.tid +++ b/editions/tw5.com/tiddlers/filters/Conditional Operators.tid @@ -1,10 +1,10 @@ created: 20190802113703788 -modified: 20230501175143648 +modified: 20230711082337975 tags: Filters title: Conditional Operators type: text/vnd.tiddlywiki -<<.from-version "5.1.20">>The conditional filter operators allow for ''if-then-else'' logic to be expressed within filters. +<<.from-version "5.1.20">> The conditional filter operators allow ''if-then-else'' logic to be expressed within filters. The foundation is the convention that an empty list can be used to represent the Boolean value <<.value false>> and a list with at one (or more) entries to represent <<.value true>>. @@ -25,6 +25,8 @@ The <<.olink else>> operator can be used to apply a defaults for missing values. <<.operator-example 2 "[[HelloThere]get[custom-field]else[default-value]]">> -! Filter Run Prefixes +''Filter Run Prefixes'' -The [[:then|:then Filter Run Prefix]] and [[:else|:else Filter Run Prefix]] filter run prefixes serve a similar purpose as the conditional operators. Refer to their documentation for more information. \ No newline at end of file +The [[:then|Then Filter Run Prefix]] and [[:else|Else Filter Run Prefix]] named filter run prefixes serve a similar purpose as the conditional operators. + +Also see: [[Named Filter Run Prefix]] diff --git a/editions/tw5.com/tiddlers/filters/Filter Operators.tid b/editions/tw5.com/tiddlers/filters/Filter Operators.tid index 0738c7103..35d80607f 100644 --- a/editions/tw5.com/tiddlers/filters/Filter Operators.tid +++ b/editions/tw5.com/tiddlers/filters/Filter Operators.tid @@ -1,5 +1,6 @@ +breadcrumbs: [[Filter Step]] created: 20140410103123179 -modified: 20211217141224284 +modified: 20230410114132501 tags: Filters title: Filter Operators type: text/vnd.tiddlywiki @@ -18,13 +19,19 @@ type: text/vnd.tiddlywiki <tr class="doc-table-subheading"><th colspan="5" align="center">$_$</th></tr> \end -A <<.def "filter operator">> is a predefined keyword attached to an individual [[step|Filter Step]] of a [[filter|Filters]]. It defines the particular action of that step. +A <<.def "filter operator">> is a predefined keyword attached to an individual step of a [[filter|Filters]]. It defines the particular action of that step. -''Important:'' Each first [[step|Filter Step]] of a [[filter run|Filter Run]] not given any input titles receives the output of <$link to="all Operator">[all[tiddlers]]</$link> as its input. +''Important:'' In general, each first [[filter step|Filter Step]] of a [[filter run|Filter Run]] not given any input titles receives the output of <$link to="all Operator">[all[tiddlers]]</$link> as its input. -The following table lists all core operators, the most common ones marked ✓. The `!` column indicates whether an operator allows ''negation'' using the <$link to="Filter Step"><code>!</code> prefix</$link>. For specifics as to each operator's negated output please refer to its documentation. -Most steps process the [[selection of titles|Title Selection]] that are supplied as their input, but a few [[construct an entirely new selection|Selection Constructors]] instead, as indicated by the last column. A `C?` indicates it might construct a new selection, depending on usage. For specifics as to each operator's selection creation please refer to its documentation. +''Table legend:'' + +|tc-table-no-border tc-first-col-min-width|k +|^ ✓|^... |,Used to mark the most common ones | +|^ `!`|^... |,The column indicates whether an operator allows ''negation'' using the <$link to="Filter Step"><code>!</code> prefix</$link>.<br>For specifics as to each operator's negated output please refer to its documentation | +|^ `C`|^... |,Most steps process the [[selection of titles|Title Selection]] that are supplied as their input, but a few [[construct an entirely new selection|Selection Constructors]] instead, as indicated by the last column.<br>A `C?` indicates it might construct a new selection, depending on usage. For specifics as to each operator's selection creation please refer to its documentation | + +The following table lists all core operators: <table> <tr> @@ -49,6 +56,6 @@ Most steps process the [[selection of titles|Title Selection]] that are supplied <<.operator-rows "[tag[Filter Operators]!tag[Order Operators]!tag[Mathematics Operators]!tag[String Operators]!tag[Tag Operators]tag[Special Operators]sort[]]">> </table> -A typical step is written as `[operator[parameter]]`, although not all of the operators need a [[parameter|Filter Parameter]]. +A typical step is written as `[operator[parameter]]`, although not all of the operators need a [[parameter|Filter Parameter]]. For the exact rules, see [[Filter Syntax]]. \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid b/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid index 94f89a267..4c0160b90 100644 --- a/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid +++ b/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid @@ -1,5 +1,5 @@ created: 20190206140446821 -modified: 20220330133748666 +modified: 20230321133008898 tags: Filters title: Mathematics Operators type: text/vnd.tiddlywiki @@ -22,7 +22,7 @@ The mathematics operators take three different forms: ** <<.inline-operator-example "=1 =2 =3 =4 +[negate[]]">> ** <<.inline-operator-example "=1.2 =2.4 =3.6 =4.8 +[trunc[]]">> ** <<.inline-operator-example "=1.2 =2.4 =3.6 =4.8 +[round[]]">> -* ''Binary operators'' apply an operation and operand to each number in the input list (e.g. add, multiply, remainder) +* ''Binary operators'' apply an operation and parameter to each number in the input list (e.g. add, multiply, remainder) ** <<.inline-operator-example "=1 =2 =3 =4 +[add[3]]">> ** <<.inline-operator-example "=1 =2 =3 =4 +[multiply[8]]">> * ''Reducing operators'' apply an operation to all of the numbers in the input list, returning a single result (e.g. sum, product) diff --git a/editions/tw5.com/tiddlers/filters/add.tid b/editions/tw5.com/tiddlers/filters/add.tid index 3bed37537..e808ced7c 100644 --- a/editions/tw5.com/tiddlers/filters/add.tid +++ b/editions/tw5.com/tiddlers/filters/add.tid @@ -1,11 +1,11 @@ caption: add created: 20190206140446821 -modified: 20190611125053329 +modified: 20230321130647487 op-input: a [[selection of titles|Title Selection]] op-output: the input as numbers, but with <<.place N>> added to each one op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, add to each the numeric value of the operand +op-purpose: treating each input title as a number, add to each the numeric value of the parameter tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: add Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/all.tid b/editions/tw5.com/tiddlers/filters/all.tid index 21b65e651..5d65ca6ab 100644 --- a/editions/tw5.com/tiddlers/filters/all.tid +++ b/editions/tw5.com/tiddlers/filters/all.tid @@ -1,6 +1,6 @@ caption: all created: 20140410103123179 -modified: 20211217135719266 +modified: 20230321131457669 op-input: ignored, unless the parameter is empty op-output: the titles that belong to all the specified categories op-parameter: zero or more categories @@ -9,10 +9,14 @@ tags: [[Filter Operators]] [[Common Operators]] [[Selection Constructors]] [[Sel title: all Operator type: text/vnd.tiddlywiki -The parameter specifies zero or more fundamental categories using the following syntax: +The parameter specifies zero or more fundamental categories using the following [[filter step|Filter Step]] syntax: <$railroad text=""" -[{: ("current" | "missing" |: "orphans" | "shadows" | "tags" | "tiddlers" ) +"+" }] +\start none +\end none +<-"all"-> ( "[" | "<" | "{" ) + [{: ("current" | "missing" |: "orphans" | "shadows" | "tags" | "tiddlers" ) +"+" }] + ( "]" | ">" | "}" ) """/> |!Category |!Members |!Sorted | @@ -25,7 +29,7 @@ The parameter specifies zero or more fundamental categories using the following If the parameter specifies more than one category, they are processed from left to right. The overall output is initially empty, and each category's output is [[dominantly appended|Dominant Append]] to it in turn. Unrecognised categories contribute nothing to the output. -As a special case, if the parameter is empty, the output is simply a copy of the input. This can be useful when the parameter is [[soft|Filter Parameter]]. +As a special case, if the parameter is empty, the output is simply a copy of the input. This can be useful when the parameter is a [[soft parameter|Filter Parameter]]. The <<.olink is>> operator is similar, but its scope is restricted to its input. diff --git a/editions/tw5.com/tiddlers/filters/append.tid b/editions/tw5.com/tiddlers/filters/append.tid index 881dfc257..840206aae 100644 --- a/editions/tw5.com/tiddlers/filters/append.tid +++ b/editions/tw5.com/tiddlers/filters/append.tid @@ -1,9 +1,9 @@ caption: append created: 20151017145358368 -modified: 20151108051540981 +modified: 20230321131631510 op-input: a list of items -op-neg-output: a list with items appended from the tail of the operand array -op-output: a list with items appended from the head of the operand array +op-neg-output: a list with items appended from the tail of the parameter array +op-output: a list with items appended from the head of the parameter array op-parameter: the array of items to be appended to the tail of the list op-parameter-name: list op-purpose: append a range of items from an array to the list diff --git a/editions/tw5.com/tiddlers/filters/backtranscludes.tid b/editions/tw5.com/tiddlers/filters/backtranscludes.tid new file mode 100644 index 000000000..91a00f5f4 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/backtranscludes.tid @@ -0,0 +1,13 @@ +created: 20211002204500000 +tags: [[Filter Operators]] +title: backtranscludes Operator +type: text/vnd.tiddlywiki +caption: backtranscludes +op-purpose: find the titles that transcludes to each input title +op-input: a [[selection of titles|Title Selection]] +op-parameter: none +op-output: any non-[[system|SystemTiddlers]] titles that contain [[transclusion|Transclusion]] to the input titles + +Each input title is processed in turn. The corresponding tiddler's list of backtranscludes is generated, sorted alphabetically by title, and then [[dominantly appended|Dominant Append]] to the operator's overall output. + +<<.operator-examples "backtranscludes">> diff --git a/editions/tw5.com/tiddlers/filters/charcode.tid b/editions/tw5.com/tiddlers/filters/charcode.tid index 3cb82bc68..2b64536b0 100644 --- a/editions/tw5.com/tiddlers/filters/charcode.tid +++ b/editions/tw5.com/tiddlers/filters/charcode.tid @@ -2,7 +2,7 @@ caption: charcode created: 20210622214425635 modified: 20210622214425635 op-input: ignored -op-output: a string formed from concatenating the characters specified by the numeric codes given in the operand(s) +op-output: a string formed from concatenating the characters specified by the numeric codes given in the parameter(s) op-parameter: numeric character code op-parameter-name: C op-purpose: generates string characters from their numeric character codes @@ -12,6 +12,6 @@ type: text/vnd.tiddlywiki <<.from-version "5.2.0">> -This operator returns a string formed from concatenating the characters specified by the numeric codes given in one or more operands. It is useful for generating special characters such as tab (`charcode[9]`) or new line (`charcode[13],[10]`). +This operator returns a string formed from concatenating the characters specified by the numeric codes given in one or more parameters. It is useful for generating special characters such as tab (`charcode[9]`) or new line (`charcode[13],[10]`). <<.operator-examples "charcode">> diff --git a/editions/tw5.com/tiddlers/filters/compare Operator.tid b/editions/tw5.com/tiddlers/filters/compare Operator.tid index 95bdce2a9..debf09ead 100644 --- a/editions/tw5.com/tiddlers/filters/compare Operator.tid +++ b/editions/tw5.com/tiddlers/filters/compare Operator.tid @@ -4,7 +4,7 @@ tags: [[Filter Operators]] [[Mathematics Operators]] [[String Operators]] [[Nega title: compare Operator type: text/vnd.tiddlywiki caption: compare -op-purpose: filter the input by comparing each item against the operand +op-purpose: filter the input by comparing each item against the parameter op-input: a [[selection of titles|Title Selection]] op-suffix: the <<.op compare>> operator uses a rich suffix, see below for details op-parameter: the value to compare @@ -16,7 +16,7 @@ op-neg-output: those input titles <<.em not>> matching the specified comparison The <<.op compare>> operator uses an extended syntax to specify all the options: ``` -[compare:<type>:<mode>[<operand>]] +[compare:<type>:<mode>[<parameter>]] ``` The ''type'' can be: diff --git a/editions/tw5.com/tiddlers/filters/cycle Operator.tid b/editions/tw5.com/tiddlers/filters/cycle Operator.tid index f54316f29..7cf76c28d 100644 --- a/editions/tw5.com/tiddlers/filters/cycle Operator.tid +++ b/editions/tw5.com/tiddlers/filters/cycle Operator.tid @@ -4,7 +4,7 @@ modified: 20201118192136472 op-input: a list of items op-output: the input list with the titles specified in the parameter toggled in a cyclical manner op-parameter: the <<.op cycle>> operator accepts 1 or 2 parameters, see below for details -op-purpose: toggle in the input, the titles specified in the first operand in a cyclical manner +op-purpose: toggle the titles specified in the first parameter in a cyclical manner tags: [[Filter Operators]] [[Listops Operators]] [[Order Operators]] title: cycle Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/divide Operator.tid b/editions/tw5.com/tiddlers/filters/divide Operator.tid index 9218c9a99..b8b357861 100644 --- a/editions/tw5.com/tiddlers/filters/divide Operator.tid +++ b/editions/tw5.com/tiddlers/filters/divide Operator.tid @@ -5,7 +5,7 @@ op-input: a [[selection of titles|Title Selection]] op-output: the input as numbers, but with each one divided by <<.place N>> op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, divide them by the numeric value of the operand +op-purpose: treating each input title as a number, divide it by the numeric value of the parameter tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: divide Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/enlist Operator.tid b/editions/tw5.com/tiddlers/filters/enlist Operator.tid index e45e97c2a..a23a30e64 100644 --- a/editions/tw5.com/tiddlers/filters/enlist Operator.tid +++ b/editions/tw5.com/tiddlers/filters/enlist Operator.tid @@ -7,14 +7,14 @@ op-neg-output: those input titles that are <<.em not>> listed in <<.place L>> op-output: the titles stored as a [[title list|Title List]] at <<.place L>> op-parameter: a [[title list|Title List]] op-parameter-name: L -op-purpose: select titles from the operand interpreted as a [[title list|Title List]] +op-purpose: select titles from the parameter interpreted as a [[title list|Title List]] op-suffix: <<.from-version "5.1.20">> `dedupe` (the default) to remove duplicates, `raw` to leave duplicates untouched op-suffix-name: D tags: [[Filter Operators]] [[Field Operators]] [[Selection Constructors]] [[Negatable Operators]] title: enlist Operator type: text/vnd.tiddlywiki -<<.tip """Literal filter operands cannot contain square brackets but you can work around the issue by using a variable. ''Learn more at:'' [[SetWidget]] documentation under the heading "Filtered List Variable Assignment" """>> +<<.tip """Literal filter parameters cannot contain square brackets but you can work around the issue by using a variable. ''Learn more at:'' [[SetWidget]] documentation under the heading "Filtered List Variable Assignment" """>> ``` <$set name="myList" value="first [[second with a space]] third"> diff --git a/editions/tw5.com/tiddlers/filters/enlist-input Operator.tid b/editions/tw5.com/tiddlers/filters/enlist-input Operator.tid index 386723b51..aa35f8f1c 100644 --- a/editions/tw5.com/tiddlers/filters/enlist-input Operator.tid +++ b/editions/tw5.com/tiddlers/filters/enlist-input Operator.tid @@ -12,7 +12,7 @@ type: text/vnd.tiddlywiki <<.from-version "5.1.23">> -<<.tip " Compare with [[enlist|enlist Operator]] operator that interprets its operand as a title list">> +<<.tip " Compare with [[enlist|enlist Operator]] operator that interprets its parameter as a title list">> ``` <$vars days={{{ [[Days of the Week]get[list]] }}}> diff --git a/editions/tw5.com/tiddlers/filters/examples/backtransclude.tid b/editions/tw5.com/tiddlers/filters/examples/backtransclude.tid new file mode 100644 index 000000000..e70648576 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/backtransclude.tid @@ -0,0 +1,7 @@ +tags: [[backtranscludes Operator]] [[Operator Examples]] +title: backtranscludes Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[Motovun Jack.jpg]backtranscludes[]]">> + +<<.operator-example 2 "[[Transclusion]backtranscludes[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/prepend.tid b/editions/tw5.com/tiddlers/filters/examples/prepend.tid index 0c66d1002..57f73fc6f 100644 --- a/editions/tw5.com/tiddlers/filters/examples/prepend.tid +++ b/editions/tw5.com/tiddlers/filters/examples/prepend.tid @@ -1,5 +1,5 @@ created: 20151017151508135 -modified: 20151108051743531 +modified: 20230321130446467 tags: [[Operator Examples]] [[prepend Operator]] title: prepend Operator (Examples) type: text/vnd.tiddlywiki @@ -10,6 +10,6 @@ The operator may be used to prepend a number of items to the list. <<.operator-example 1 "[list[Days of the Week]prepend[Yesterday Today Tomorrow]]">> -The operand may list only items without spaces -- to include items with spaces, use a reference to an array e.g. prepend the last three short days of the week to the list +The parameter may list only items without spaces -- to include items with spaces, use a reference to an array, e.g. prepend the last three short days of the week to the list <<.operator-example 2 "[list[Days of the Week]!prepend:3{Days of the Week!!short}]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/sha256 Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/sha256 Operator (Examples).tid new file mode 100644 index 000000000..98a2576c4 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/sha256 Operator (Examples).tid @@ -0,0 +1,9 @@ +created: 20240308122813807 +modified: 20240308122916812 +tags: [[Operator Examples]] [[sha256 Operator]] +title: sha256 Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[test]sha256[]]">> + +<<.operator-example 2 "[[test]sha256[64]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/subfilter Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/subfilter Operator (Examples).tid index eac8828a3..2ebe37db2 100644 --- a/editions/tw5.com/tiddlers/filters/examples/subfilter Operator (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/examples/subfilter Operator (Examples).tid @@ -9,7 +9,7 @@ type: text/vnd.tiddlywiki ''<$text text=<<__name__>>/>'': <code><$text text={{{ [<__name__>getvariable[]] }}}/></code> \end -Literal filter operands can be used, but such cases are better rewritten without using <<.op subfilter>>: +Literal filter parameters can be used, but such cases are better rewritten without using <<.op subfilter>>: <<.operator-example 1 "[subfilter[one two three]addsuffix[!]]" "same as `one two three +[addsuffix[!]]`">> The <<.op subfilter>> operator can be used to dynamically define parts of a [[filter run|Filter Run]]. This is useful for sharing a common pieces of a filter across multiple filters. diff --git a/editions/tw5.com/tiddlers/filters/examples/transclude.tid b/editions/tw5.com/tiddlers/filters/examples/transclude.tid new file mode 100644 index 000000000..eefea2a57 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/transclude.tid @@ -0,0 +1,5 @@ +tags: [[transcludes Operator]] [[Operator Examples]] +title: transcludes Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[Images in WikiText]transcludes[]]">> diff --git a/editions/tw5.com/tiddlers/filters/field.tid b/editions/tw5.com/tiddlers/filters/field.tid index 901f22feb..4f2f243e9 100644 --- a/editions/tw5.com/tiddlers/filters/field.tid +++ b/editions/tw5.com/tiddlers/filters/field.tid @@ -1,23 +1,23 @@ +caption: field created: 20140410103123179 -modified: 20150203184718000 +modified: 20230316111901766 +op-input: a [[selection of titles|Title Selection]] +op-neg-output: those input tiddlers in which field <<.place F>> does <<.em not>> have the value <<.place S>> +op-output: those input tiddlers in which field <<.place F>> has the value <<.place S>> +op-parameter: a possible value of field <<.place F>> +op-parameter-name: S +op-purpose: filter the input by field +op-suffix: the name of a [[field|TiddlerFields]] +op-suffix-name: F tags: [[Filter Operators]] [[Common Operators]] [[Field Operators]] [[Negatable Operators]] title: field Operator type: text/vnd.tiddlywiki -caption: field -op-purpose: filter the input by field -op-input: a [[selection of titles|Title Selection]] -op-suffix: the name of a [[field|TiddlerFields]] -op-suffix-name: F -op-parameter: a possible value of field <<.place F>> -op-parameter-name: S -op-output: those input tiddlers in which field <<.place F>> has the value <<.place S>> -op-neg-output: those input tiddlers in which field <<.place F>> does <<.em not>> have the value <<.place S>> If <<.place S>> is empty, <<.op field>> will match both of the following: * tiddlers that don't contain field <<.place F>> * tiddlers in which field <<.place F>> exists but has an empty value -The syntax of a [[filter step|Filter Step]] treats any unrecognised [[filter operator|Filter Operators]] as if it was the suffix to the <<.op field>> operator. See the <<.operator-examples "field" "examples">>. +The syntax of a [[filter step|Filter Step]] treats any unrecognised [[filter operator|Filter Operators]] as if it was the suffix to the <<.op field>> operator. <<.operator-examples "field">> diff --git a/editions/tw5.com/tiddlers/filters/format.tid b/editions/tw5.com/tiddlers/filters/format.tid index d62a82169..7d650ed0a 100644 --- a/editions/tw5.com/tiddlers/filters/format.tid +++ b/editions/tw5.com/tiddlers/filters/format.tid @@ -1,6 +1,6 @@ caption: format created: 20201020100834443 -modified: 20220611104737314 +modified: 20230321132245053 op-input: a [[selection of titles|Title Selection]] op-output: input strings formatted according to the specified suffix <<.place B>> op-parameter: optional format string for the formats @@ -16,11 +16,11 @@ type: text/vnd.tiddlywiki The suffix <<.place B>> is one of the following supported string formats: -|!Format |!Description | -|^`date` |The input string is interpreted as a UTC date and displayed according to the DateFormat specified in the optional operator operand. (Defaults to "YYYY MM DD 0hh:0mm") | -|^`json` |<<.from-version "5.2.4">> The input string is interpreted as JSON and displayed with standard formatting. The optional operator operand specifies the number of spaces to use for indenting, or a string to use for indenting. Nothing is returned if the input string is not valid JSON | -|^`relativedate` |The input string is interpreted as a UTC date and displayed as the interval from the present instant. Any operator parameters are ignored | -|^`timestamp` |<<.from-version "5.3.0">> The input string is interpreted as number of milliseconds since the [[ECMAScript epoch|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#the_ecmascript_epoch_and_timestamps]], 1 January 1970, and displayed according to the DateFormat specified in the optional operator operand. (Defaults to "[UTC]YYYY0MM0DD0hh0mm0ss0XXX") | +|Format |Description |h +|^`date` |The input string is interpreted as a UTC date and displayed according to the DateFormat specified in the optional parameter <<.place C>>. (Defaults to "YYYY MM DD 0hh:0mm") | +|^`json` |<<.from-version "5.2.4">> The input string is interpreted as JSON and displayed with standard formatting. The optional parameter <<.place C>> specifies the number of spaces to use for indenting, or a string to use for indenting. Nothing is returned if the input string is not valid JSON | +|^`relativedate` |The input string is interpreted as a UTC date and displayed as the interval from the present instant. Any operator parameters <<.place C>> are ignored | +|^`timestamp` |<<.from-version "5.3.0">> The input string is interpreted as number of milliseconds since the [[ECMAScript epoch|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#the_ecmascript_epoch_and_timestamps]], 1 January 1970, and displayed according to the DateFormat specified in the optional operator parameter. (Defaults to "[UTC]YYYY0MM0DD0hh0mm0ss0XXX") | |^`titlelist` |<<.from-version "5.2.0">> The input string wrapped in double square brackets if it contains a space. Appropriate for use in a [[title list|Title List]]. | Invalid input strings are dropped by the <<.op format>> operator. diff --git a/editions/tw5.com/tiddlers/filters/jsonextract.tid b/editions/tw5.com/tiddlers/filters/jsonextract.tid index 27724205f..a899ac6e6 100644 --- a/editions/tw5.com/tiddlers/filters/jsonextract.tid +++ b/editions/tw5.com/tiddlers/filters/jsonextract.tid @@ -43,7 +43,7 @@ Properties within a JSON object are identified by a sequence of indexes. In the The following examples assume that this JSON data is contained in a variable called `jsondata`. -The <<.op jsonextract>> operator uses multiple operands to specify the indexes of the property to retrieve. Values are returned as literal JSON strings: +The <<.op jsonextract>> operator uses multiple parameters to specify the indexes of the property to retrieve. Values are returned as literal JSON strings: ``` [<jsondata>jsonextract[a]] --> "one" @@ -67,7 +67,7 @@ Indexes can be dynamically composed from variables and transclusions: [<jsondata>jsonextract<variable>,{!!field},[0]] ``` -A subtlety is that the special case of a single blank operand is used to identify the root object. Thus: +A subtlety is that the special case of a single blank parameter is used to identify the root object. Thus: ``` [<jsondata>jsonextract[]] --> {"a":"one","b":"","c":"three","d":{"e":"four","f":["five","six",true,false,null],"g":{"x":"max","y":"may","z":"maize"}}} diff --git a/editions/tw5.com/tiddlers/filters/jsonget.tid b/editions/tw5.com/tiddlers/filters/jsonget.tid index c50cbd6f2..b1db4e308 100644 --- a/editions/tw5.com/tiddlers/filters/jsonget.tid +++ b/editions/tw5.com/tiddlers/filters/jsonget.tid @@ -43,7 +43,7 @@ Properties within a JSON object are identified by a sequence of indexes. In the The following examples assume that this JSON data is contained in a variable called `jsondata`. -The <<.op jsonget>> operator uses multiple operands to specify the indexes of the property to retrieve: +The <<.op jsonget>> operator uses multiple parameters to specify the indexes of the property to retrieve: ``` [<jsondata>jsonget[a]] --> "one" @@ -94,7 +94,7 @@ If the object or array contains nested child objects or arrays then the values a [<jsondata>jsonget[d]] --> "four","five","six","true","false","null","max","may","maize" ``` -A subtlety is that the special case of a single blank operand is used to identify the root object. Thus: +A subtlety is that the special case of a single blank parameter is used to identify the root object. Thus: ``` [<jsondata>jsonindexes[]] --> "a", "b", "c", "d" diff --git a/editions/tw5.com/tiddlers/filters/jsonindexes.tid b/editions/tw5.com/tiddlers/filters/jsonindexes.tid index 605936a2f..3b9962b5f 100644 --- a/editions/tw5.com/tiddlers/filters/jsonindexes.tid +++ b/editions/tw5.com/tiddlers/filters/jsonindexes.tid @@ -43,7 +43,7 @@ Properties within a JSON object are identified by a sequence of indexes. In the The following examples assume that this JSON data is contained in a variable called `jsondata`. -The <<.op jsonindexes>> operator uses multiple operands to specify the indexes of the property to retrieve: +The <<.op jsonindexes>> operator uses multiple parameters to specify the indexes of the property to retrieve: ``` [<jsondata>jsonindexes[d],[f]] --> "0", "1", "2", "3", "4" @@ -58,7 +58,7 @@ Indexes can be dynamically composed from variables and transclusions: Retrieving the indexes of JSON properties that are not objects or arrays will return nothing. -A subtlety is that the special case of a single blank operand is used to identify the root object. Thus: +A subtlety is that the special case of a single blank parameter is used to identify the root object. Thus: ``` [<jsondata>jsonindexes[]] --> "a", "b", "c", "d" diff --git a/editions/tw5.com/tiddlers/filters/jsontype.tid b/editions/tw5.com/tiddlers/filters/jsontype.tid index 6bff01914..d4561f0f5 100644 --- a/editions/tw5.com/tiddlers/filters/jsontype.tid +++ b/editions/tw5.com/tiddlers/filters/jsontype.tid @@ -52,7 +52,7 @@ Properties within a JSON object are identified by a sequence of indexes. In the The following examples assume that this JSON data is contained in a variable called `jsondata`. -The <<.op jsontype>> operator uses multiple operands to specify the indexes of the property whose type is to be retrieved: +The <<.op jsontype>> operator uses multiple parameters to specify the indexes of the property whose type is to be retrieved: ``` [<jsondata>jsontype[a]] --> "string" @@ -75,7 +75,7 @@ Indexes can be dynamically composed from variables and transclusions: [<jsondata>jsontype<variable>,{!!field},[0]] ``` -A subtlety is that the special case of a single blank operand is used to identify the root object. Thus: +A subtlety is that the special case of a single blank parameter is used to identify the root object. Thus: ``` [<jsondata>jsontype[]] --> "object" diff --git a/editions/tw5.com/tiddlers/filters/log Operator.tid b/editions/tw5.com/tiddlers/filters/log Operator.tid index bfca18853..bea10c539 100644 --- a/editions/tw5.com/tiddlers/filters/log Operator.tid +++ b/editions/tw5.com/tiddlers/filters/log Operator.tid @@ -5,7 +5,7 @@ op-input: a [[selection of titles|Title Selection]] op-output: the logarithm of each input title as numbers, with base <<.place N>> if specified otherwise base `e` op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, return its logarithm with base equal to the numeric value of the operand if specified, otherwise base `e` +op-purpose: treating each input title as a number, return its logarithm with base equal to the numeric value of the parameter if specified, otherwise base `e` tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: log Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/match Operator.tid b/editions/tw5.com/tiddlers/filters/match Operator.tid index 6e9997d3f..46b6e04f3 100644 --- a/editions/tw5.com/tiddlers/filters/match Operator.tid +++ b/editions/tw5.com/tiddlers/filters/match Operator.tid @@ -1,11 +1,11 @@ caption: match created: 20190731080209404 -modified: 20190731081047732 +modified: 20230711082432865 op-input: a [[selection of titles|Title Selection]] -op-neg-output: each item in the input list that does not match the operand string -op-output: each item in the input list that matches the operand string (potentially including duplicates) +op-neg-output: each item in the input list that does not match the parameter string +op-output: each item in the input list that matches the parameter string (potentially including duplicates) op-parameter: the string to be matched -op-purpose: returns each item in the list that matches the operand string +op-purpose: returns each item in the list that matches the parameter string op-suffix: the <<.op match>> operator uses a rich suffix, see below for details tags: [[Filter Operators]] title: match Operator @@ -16,11 +16,10 @@ type: text/vnd.tiddlywiki The <<.op match>> operator uses an extended syntax that permits multiple flags to be passed: ``` -[match:<flag list>[<operand>]] +[match:<flag list>[<parameter>]] ``` * ''flag list'': a comma delimited list of flags -* ''operand'': filter operand The available flags are: diff --git a/editions/tw5.com/tiddlers/filters/max Operator.tid b/editions/tw5.com/tiddlers/filters/max Operator.tid index 837c456ce..5d92b44cf 100644 --- a/editions/tw5.com/tiddlers/filters/max Operator.tid +++ b/editions/tw5.com/tiddlers/filters/max Operator.tid @@ -1,11 +1,11 @@ caption: max created: 20190611130631390 -modified: 20190611131047026 +modified: 20230321133057297 op-input: a [[selection of titles|Title Selection]] op-output: the input as numbers, with any that are less than <<.place N>> being replaced by <<.place N>> op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, take the maximum of its value and the numeric value of the operand +op-purpose: treating each input title as a number, take the maximum of its value and the numeric value of the parameter tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: max Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/min Operator.tid b/editions/tw5.com/tiddlers/filters/min Operator.tid index 097cf376e..f9c569a3b 100644 --- a/editions/tw5.com/tiddlers/filters/min Operator.tid +++ b/editions/tw5.com/tiddlers/filters/min Operator.tid @@ -5,7 +5,7 @@ op-input: a [[selection of titles|Title Selection]] op-output: the input as numbers, with any that are greater than <<.place N>> being replaced by <<.place N>> op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, take the minimum of its value and the numeric value of the operand +op-purpose: treating each input title as a number, take the minimum of its value and the numeric value of the parameter tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: min Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/moduleproperty Operator.tid b/editions/tw5.com/tiddlers/filters/moduleproperty Operator.tid index 2ee4071d6..a62ddf4a5 100644 --- a/editions/tw5.com/tiddlers/filters/moduleproperty Operator.tid +++ b/editions/tw5.com/tiddlers/filters/moduleproperty Operator.tid @@ -2,7 +2,7 @@ caption: modulesproperty created: 20210919201126246 modified: 20210919201347702 op-input: a [[selection|Title Selection]] of modules -op-output: the value of the module property as specified in the operand +op-output: the value of the module property as specified in the parameter op-parameter: module property to retrieve op-purpose: retrieve a module property tags: [[Filter Operators]] [[Special Operators]] diff --git a/editions/tw5.com/tiddlers/filters/modules.tid b/editions/tw5.com/tiddlers/filters/modules.tid index fdc7f5cbe..3b42bc5d7 100644 --- a/editions/tw5.com/tiddlers/filters/modules.tid +++ b/editions/tw5.com/tiddlers/filters/modules.tid @@ -9,6 +9,6 @@ tags: [[Filter Operators]] [[Special Operators]] title: modules Operator type: text/vnd.tiddlywiki -<<.from-version "5.2.0">>The <<.op modules>> filter allows two optional operands. When both are specified, it returns the modules with the module property specified in the first operand which has the value in the second operand. +<<.from-version "5.2.0">>The <<.op modules>> filter allows two optional parameters. When both are specified, it returns the modules with the module property specified in the first parameter which has the value in the second parameter. <<.operator-examples "modules">> diff --git a/editions/tw5.com/tiddlers/filters/multiply Operator.tid b/editions/tw5.com/tiddlers/filters/multiply Operator.tid index 6eb92b7ad..bc91f9f27 100644 --- a/editions/tw5.com/tiddlers/filters/multiply Operator.tid +++ b/editions/tw5.com/tiddlers/filters/multiply Operator.tid @@ -5,7 +5,7 @@ op-input: a [[selection of titles|Title Selection]] op-output: the input as numbers, but with each one multiplied by <<.place N>> op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, multiply it by the numeric value of the operand +op-purpose: treating each input title as a number, multiply it by the numeric value of the parameter tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: multiply Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/power Operator.tid b/editions/tw5.com/tiddlers/filters/power Operator.tid index d4afb67ce..2611049dc 100644 --- a/editions/tw5.com/tiddlers/filters/power Operator.tid +++ b/editions/tw5.com/tiddlers/filters/power Operator.tid @@ -5,7 +5,7 @@ op-input: a [[selection of titles|Title Selection]] op-output: the input as numbers, but with each one raised to the power of <<.place N>> op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, raise it to the power of the numeric value of the operand +op-purpose: treating each input title as a number, raise it to the power of the numeric value of the parameter tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: power Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/prefix.tid b/editions/tw5.com/tiddlers/filters/prefix.tid index b96cdc599..6e2633f2d 100644 --- a/editions/tw5.com/tiddlers/filters/prefix.tid +++ b/editions/tw5.com/tiddlers/filters/prefix.tid @@ -1,27 +1,26 @@ +caption: prefix created: 20140410103123179 -modified: 20220218023400000 +modified: 20230711082821266 +op-input: a [[selection of titles|Title Selection]] +op-neg-output: those input tiddlers that do <<.em not>> start with <<.place S>> +op-output: those input titles that start with <<.place S>> +op-parameter: a string of characters +op-parameter-name: S +op-purpose: filter the input titles by how they start +op-suffix: the <<.op prefix>> operator uses a rich suffix, see below for details tags: [[Filter Operators]] [[String Operators]] [[Negatable Operators]] title: prefix Operator type: text/vnd.tiddlywiki -caption: prefix -op-purpose: filter the input titles by how they start -op-input: a [[selection of titles|Title Selection]] -op-parameter: a string of characters -op-parameter-name: S -op-output: those input titles that start with <<.place S>> -op-neg-output: those input tiddlers that do <<.em not>> start with <<.place S>> -op-suffix: the <<.op prefix>> operator uses a rich suffix, see below for details <<.from-version "5.2.2">> The <<.op prefix>> operator uses an extended syntax that permits multiple flags to be passed: ``` -[prefix:<flag list>[<operand>]] +[prefix:<flag list>[<parameter>] ``` * ''flag list'': a comma delimited list of flags -* ''operand'': filter operand The available flags are: diff --git a/editions/tw5.com/tiddlers/filters/prepend.tid b/editions/tw5.com/tiddlers/filters/prepend.tid index 5f6cc102d..bd16c78d9 100644 --- a/editions/tw5.com/tiddlers/filters/prepend.tid +++ b/editions/tw5.com/tiddlers/filters/prepend.tid @@ -2,8 +2,8 @@ caption: prepend created: 20151017145439292 modified: 20151108051701587 op-input: a list of items -op-neg-output: a list with items prepended from the tail of the operand array -op-output: a list with items prepended from the head of the operand array +op-neg-output: a list with items prepended from the tail of the parameter array +op-output: a list with items prepended from the head of the parameter array op-parameter: the array of items to be prepended to the head of the list op-parameter-name: list op-purpose: prepend a range of items from an array to the list diff --git a/editions/tw5.com/tiddlers/filters/range.tid b/editions/tw5.com/tiddlers/filters/range.tid index 12813a5b9..48dfa2366 100644 --- a/editions/tw5.com/tiddlers/filters/range.tid +++ b/editions/tw5.com/tiddlers/filters/range.tid @@ -1,15 +1,15 @@ +caption: range created: 20171221184734665 -modified: 20210907170339891 +modified: 20230321133838310 +op-input: ignored +op-neg-output: a series of evenly spaced numbers ranging from `<begin>` to `<end>` in reverse order +op-output: a series of evenly spaced numbers ranging from `<begin>` to `<end>` +op-parameter: a range specification, like `[1],[5]` +op-parameter-name: N +op-purpose: generate a range of numbers tags: [[Filter Operators]] [[Negatable Operators]] [[Selection Constructors]] title: range Operator type: text/vnd.tiddlywiki -caption: range -op-purpose: generate a range of numbers -op-input: ignored -op-parameter: a range specification, like `[1],[5]` -op-parameter-name: N -op-output: a series of evenly spaced numbers ranging from `<begin>` to `<end>` -op-neg-output: a series of evenly spaced numbers ranging from `<begin>` to `<end>` in reverse order \define range_example(range) ``` @@ -21,7 +21,7 @@ op-neg-output: a series of evenly spaced numbers ranging from `<begin>` to `<end The `range` operator produces a list of numbers counting up or down. It is useful for counting and numbering. -<<.from-version "5.2.0">> The range operator has been updated to use multiple operands to specify its parameters. Prior to this version, the range operator only had one operand, with the three parts delimited by `,`, `;` or `:`. +<<.from-version "5.2.0">> The range operator has been updated to use multiple parameters. Prior to this version, the range operator only had one parameter, with the three parts delimited by `,`, `;` or `:`. ``` [range[<begin>]] @@ -29,7 +29,7 @@ The `range` operator produces a list of numbers counting up or down. It is usef [range[<begin>],[<end>],[<step>]] ``` -The behaviour depends on the number of operands: +The behaviour depends on the number of parameters: |Parameter |Output |h |`<end>` |Whole numbers up to `<end>` | @@ -47,7 +47,7 @@ Each part must be a number, and works as follows: ** Cannot be zero. ** We always count from `<begin>` toward `<end>`, whether `<step>` is positive or negative. -The number of decimal points in the output is fixed, and based on the operand with the //most// decimal points. +The number of decimal points in the output is fixed, and based on the parameter with the //most// decimal points. To prevent the browser from freezing, `range` is currently limited to 10,000 values. diff --git a/editions/tw5.com/tiddlers/filters/reduce.tid b/editions/tw5.com/tiddlers/filters/reduce.tid index 66b62a8b0..06c28825c 100644 --- a/editions/tw5.com/tiddlers/filters/reduce.tid +++ b/editions/tw5.com/tiddlers/filters/reduce.tid @@ -1,6 +1,6 @@ caption: reduce created: 20201004154131193 -modified: 20210522162536854 +modified: 20230321133918020 op-input: a [[selection of titles|Title Selection]] passed as input to the filter op-output: the final result of running the subfilter <<.place S>> op-parameter: a [[filter expression|Filter Expression]]. Optional second parameter for initial value for accumulator @@ -25,7 +25,7 @@ The following variables are available within the subfilter: If the <<.op reduce>> operator receives no input, its output will be empty. The [[else Operator]] can be useful in such cases. -<<.tip "Literal filter operands cannot contain square brackets but you can work around the issue by using a variable:">> +<<.tip "Literal filter parameters cannot contain square brackets but you can work around the issue by using a variable:">> ``` <$set name="sum-input" value="[add<accumulator>]"> diff --git a/editions/tw5.com/tiddlers/filters/remainder Operator.tid b/editions/tw5.com/tiddlers/filters/remainder Operator.tid index ede8b314c..40ca29b9a 100644 --- a/editions/tw5.com/tiddlers/filters/remainder Operator.tid +++ b/editions/tw5.com/tiddlers/filters/remainder Operator.tid @@ -5,7 +5,7 @@ op-input: a [[selection of titles|Title Selection]] op-output: the input as numbers, but with each replaced by the remainder when dividing it by <<.place N>> op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, return the remainder when divided by the numeric value of the operand +op-purpose: treating each input title as a number, return the remainder when divided by the numeric value of the parameter tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: remainder Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/remove.tid b/editions/tw5.com/tiddlers/filters/remove.tid index ed41c3db4..8c0b5afa3 100644 --- a/editions/tw5.com/tiddlers/filters/remove.tid +++ b/editions/tw5.com/tiddlers/filters/remove.tid @@ -2,12 +2,12 @@ caption: remove created: 20151017144531676 modified: 20170125200005000 op-input: a list of items -op-neg-output: items removed from current list that appear at the tail of the operand array -op-output: items removed from current list that appear at the head of the operand array +op-neg-output: items removed from current list that appear at the tail of the parameter array +op-output: items removed from current list that appear at the head of the parameter array op-parameter: an array of items to remove op-parameter-name: array op-prefix: causes N items from the end of the array to be removed -op-purpose: remove a list of titles specified in the operand from the input +op-purpose: remove a list of titles specified in the parameter from the input op-suffix: an integer N, defaulting to all tags: [[Filter Operators]] [[Order Operators]] [[Listops Operators]] title: remove Operator diff --git a/editions/tw5.com/tiddlers/filters/removeprefix.tid b/editions/tw5.com/tiddlers/filters/removeprefix.tid index 0b6156052..9fc2fd399 100644 --- a/editions/tw5.com/tiddlers/filters/removeprefix.tid +++ b/editions/tw5.com/tiddlers/filters/removeprefix.tid @@ -1,15 +1,15 @@ +caption: removeprefix created: 20140410103123179 -modified: 20220218023400000 +modified: 20230711082842515 +op-input: a [[selection of titles|Title Selection]] +op-output: those input titles that start with <<.place S>>, but with those characters discarded +op-parameter: a string of characters +op-parameter-name: S +op-purpose: filter the input titles by how they start, deleting that prefix +op-suffix: the <<.op removeprefix>> operator uses a rich suffix, see below for details tags: [[Filter Operators]] [[String Operators]] title: removeprefix Operator type: text/vnd.tiddlywiki -caption: removeprefix -op-purpose: filter the input titles by how they start, deleting that prefix -op-input: a [[selection of titles|Title Selection]] -op-parameter: a string of characters -op-parameter-name: S -op-output: those input titles that start with <<.place S>>, but with those characters discarded -op-suffix: the <<.op removeprefix>> operator uses a rich suffix, see below for details <<.tip " This filters out input titles that do not start with S. For removing S without filtering out input titles that don't start with S, see [[trim|trim Operator]].">> @@ -18,11 +18,10 @@ op-suffix: the <<.op removeprefix>> operator uses a rich suffix, see below for d The <<.op removeprefix>> operator uses an extended syntax that permits multiple flags to be passed: ``` -[removeprefix:<flag list>[<operand>]] +[removeprefix:<flag list>[<parameter>]] ``` * ''flag list'': a comma delimited list of flags -* ''operand'': filter operand The available flags are: diff --git a/editions/tw5.com/tiddlers/filters/removesuffix.tid b/editions/tw5.com/tiddlers/filters/removesuffix.tid index 4a1812ae0..bde911d06 100644 --- a/editions/tw5.com/tiddlers/filters/removesuffix.tid +++ b/editions/tw5.com/tiddlers/filters/removesuffix.tid @@ -1,15 +1,15 @@ +caption: removesuffix created: 20140828133830424 -modified: 20220218023400000 +modified: 20230711082859816 +op-input: a [[selection of titles|Title Selection]] +op-output: those input titles that end with <<.place S>>, but with those characters discarded +op-parameter: a string of characters +op-parameter-name: S +op-purpose: filter the input titles by how they end, deleting that suffix +op-suffix: the <<.op removesuffix>> operator uses a rich suffix, see below for details tags: [[Filter Operators]] [[String Operators]] title: removesuffix Operator type: text/vnd.tiddlywiki -caption: removesuffix -op-purpose: filter the input titles by how they end, deleting that suffix -op-input: a [[selection of titles|Title Selection]] -op-parameter: a string of characters -op-parameter-name: S -op-output: those input titles that end with <<.place S>>, but with those characters discarded -op-suffix: the <<.op removesuffix>> operator uses a rich suffix, see below for details <<.tip " This filters out input titles that do not end with S. For removing S without filtering out input titles that don't end with S, see [[trim|trim Operator]].">> @@ -18,11 +18,10 @@ op-suffix: the <<.op removesuffix>> operator uses a rich suffix, see below for d The <<.op removesuffix>> operator uses an extended syntax that permits multiple flags to be passed: ``` -[removesuffix:<flag list>[<operand>]] +[removesuffix:<flag list>[<parameter>]] ``` * ''flag list'': a comma delimited list of flags -* ''operand'': filter operand The available flags are: diff --git a/editions/tw5.com/tiddlers/filters/search.tid b/editions/tw5.com/tiddlers/filters/search.tid index 6a6438b9f..79d323a93 100644 --- a/editions/tw5.com/tiddlers/filters/search.tid +++ b/editions/tw5.com/tiddlers/filters/search.tid @@ -1,6 +1,6 @@ caption: search created: 20140410103123179 -modified: 20211129120739275 +modified: 20230711084359603 op-input: a [[selection of titles|Title Selection]] op-neg-output: those input tiddlers in which <<.em not>> all of the search terms can be found op-output: those input tiddlers in which <<.em all>> of the search terms can be found in the value of field <<.place F>> @@ -16,7 +16,7 @@ type: text/vnd.tiddlywiki The <<.op search>> operator uses an extended syntax that permits multiple fields and flags to be passed: ``` -[search:<field list>:<flag list>[<operand>]] +[search:<field list>:<flag list>[<parameter>]] ``` * ''field list'': a comma delimited list of field names to restrict the search @@ -24,7 +24,7 @@ The <<.op search>> operator uses an extended syntax that permits multiple fields ** an asterisk `*` instead of the field list causes the search to be performed across all fields available on each tiddler ** preceding the list with a minus sign `-` reverses the order so that the search is performed on all fields except the listed fields * ''flag list'': a comma delimited list of flags (defaults to `words` if blank) -* ''operand'': filter operand +* ''parameter'': filter parameter This example searches the fields <<.field title>> and <<.field caption>> for a case-sensitive match for the literal string <<.op-word "The first">>: diff --git a/editions/tw5.com/tiddlers/filters/sortby.tid b/editions/tw5.com/tiddlers/filters/sortby.tid index d6555ae4d..773c6a598 100644 --- a/editions/tw5.com/tiddlers/filters/sortby.tid +++ b/editions/tw5.com/tiddlers/filters/sortby.tid @@ -5,7 +5,7 @@ op-input: a list of items op-output: all items sorted by lookup list op-parameter: a list specifying the order in which to sort the current list op-parameter-name: order -op-purpose: sort the current list in the order of the list referenced in the operand +op-purpose: sort the current list in the order of the list referenced in the parameter tags: [[Filter Operators]] [[Order Operators]] [[Listops Operators]] title: sortby Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/subfilter Operator.tid b/editions/tw5.com/tiddlers/filters/subfilter Operator.tid index aaf7b731c..096560ae2 100644 --- a/editions/tw5.com/tiddlers/filters/subfilter Operator.tid +++ b/editions/tw5.com/tiddlers/filters/subfilter Operator.tid @@ -7,14 +7,14 @@ op-neg-output: those input titles that are <<.em not>> returned from the subfilt op-output: the [[selection of titles|Title Selection]] returned from the subfilter <<.place S>> op-parameter: a [[filter expression|Filter Expression]] op-parameter-name: S -op-purpose: select titles from the operand interpreted as a [[filter expression|Filter Expression]] +op-purpose: select titles from the parameter interpreted as a [[filter expression|Filter Expression]] tags: [[Filter Operators]] [[Field Operators]] [[Selection Constructors]] [[Negatable Operators]] [[Selection Constructors: Conditional]] title: subfilter Operator type: text/vnd.tiddlywiki <<.from-version "5.1.18">> Note that the <<.op subfilter>> operator was introduced in version 5.1.18 and is not available in earlier versions. -<<.tip " Literal filter operands cannot contain square brackets but you can work around the issue by using a variable:">> +<<.tip " Literal filter parameters cannot contain square brackets but you can work around the issue by using a variable:">> ``` <$set name="myFilter" value="[tag[one]]"> @@ -24,6 +24,6 @@ type: text/vnd.tiddlywiki <<.tip "Compare with the similar [[filter|filter Operator]] operator which runs a subfilter against each title, returning those titles that return a non-empty list (and discards the results of the subfilter)">> -The <<.op subfilter>> operator will act as a [[constructor|Selection Constructors]] whenever the filter defined by its operand is a [[constructor|Selection Constructors]]. Otherwise, it will act as a [[modifier|Selection Constructors]]. +The <<.op subfilter>> operator will act as a [[constructor|Selection Constructors]] whenever the filter defined by its parameter is a [[constructor|Selection Constructors]]. Otherwise, it will act as a [[modifier|Selection Constructors]]. <<.operator-examples "subfilter">> diff --git a/editions/tw5.com/tiddlers/filters/subtract Operator.tid b/editions/tw5.com/tiddlers/filters/subtract Operator.tid index c386b90ff..30bd28fa2 100644 --- a/editions/tw5.com/tiddlers/filters/subtract Operator.tid +++ b/editions/tw5.com/tiddlers/filters/subtract Operator.tid @@ -5,7 +5,7 @@ op-input: a [[selection of titles|Title Selection]] op-output: the input as numbers, but with <<.place N>> subtracted from each one op-parameter: a number op-parameter-name: N -op-purpose: treating each input title as a number, subtract from each the numeric value of the operand +op-purpose: treating each input title as a number, subtract from each the numeric value of the parameter tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: subtract Operator type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/suffix.tid b/editions/tw5.com/tiddlers/filters/suffix.tid index 1c1a7bb9b..a7ff4eabb 100644 --- a/editions/tw5.com/tiddlers/filters/suffix.tid +++ b/editions/tw5.com/tiddlers/filters/suffix.tid @@ -1,27 +1,26 @@ +caption: suffix created: 20140828133830424 -modified: 20220218023400000 +modified: 20230711083049169 +op-input: a [[selection of titles|Title Selection]] +op-neg-output: those input tiddlers that do <<.em not>> end with <<.place S>> +op-output: those input titles that end with <<.place S>> +op-parameter: a string of characters +op-parameter-name: S +op-purpose: filter the input titles by how they end +op-suffix: the <<.op suffix>> operator uses a rich suffix, see below for details tags: [[Filter Operators]] [[String Operators]] [[Negatable Operators]] title: suffix Operator type: text/vnd.tiddlywiki -caption: suffix -op-purpose: filter the input titles by how they end -op-input: a [[selection of titles|Title Selection]] -op-parameter: a string of characters -op-parameter-name: S -op-output: those input titles that end with <<.place S>> -op-neg-output: those input tiddlers that do <<.em not>> end with <<.place S>> -op-suffix: the <<.op suffix>> operator uses a rich suffix, see below for details <<.from-version "5.2.2">> The <<.op suffix>> operator uses an extended syntax that permits multiple flags to be passed: ``` -[suffix:<flag list>[<operand>]] +[suffix:<flag list>[<parameter>]] ``` * ''flag list'': a comma delimited list of flags -* ''operand'': filter operand The available flags are: diff --git a/editions/tw5.com/tiddlers/filters/syntax/All Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/All Filter Run Prefix.tid new file mode 100644 index 000000000..b1f123f82 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/syntax/All Filter Run Prefix.tid @@ -0,0 +1,18 @@ +created: 20230316150731234 +from-version: 5.1.23 +modified: 20230711084644541 +rp-input: all titles from previous filter runs +rp-output: output titles are appended to the output of previous filter runs without de-duplication. +rp-purpose: union of sets without de-duplication +tags: [[Named Filter Run Prefix]] +title: All Filter Run Prefix +type: text/vnd.tiddlywiki + +<$railroad text=""" +\start none +\end none +( ":all" | - ) +[[run|"Filter Run"]] +"""/> + +This prefix has an optional [[shortcut syntax|Shortcut Filter Run Prefix]] symbol `=run` \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/And Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/And Filter Run Prefix.tid new file mode 100644 index 000000000..ee76ed636 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/syntax/And Filter Run Prefix.tid @@ -0,0 +1,18 @@ +created: 20230318142752854 +from-version: 5.1.23 +modified: 20230711084712170 +op-purpose: accumulation of filter steps +rp-input: the filter output of all previous runs so far +rp-output: output titles replace the output of previous filter runs +tags: [[Named Filter Run Prefix]] +title: And Filter Run Prefix +type: text/vnd.tiddlywiki + +<$railroad text=""" +\start none +\end none +( ":and" | - ) +[[run|"Filter Run"]] +"""/> + +This prefix has an optional [[shortcut syntax|Shortcut Filter Run Prefix]] symbol `+run` \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid b/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid index d64ef3a5e..ef8ca679c 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid @@ -2,8 +2,8 @@ created: 20211130114857532 filter1: [prefix[ca]then[ca]] filter2: [suffix[at]then[at]] filter3: other -modified: 20211204010918504 -tags: [[Filter Run Prefix Examples]] [[Filter Syntax]] [[Cascade Filter Run Prefix]] +modified: 20230305125250563 +tags: [[Cascade Filter Run Prefix]] title: Cascade Filter Run Prefix (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix.tid index 3e6f48cb0..72d66c463 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix.tid @@ -1,20 +1,25 @@ created: 20211130114043280 -modified: 20211130121544118 -tags: [[Filter Syntax]] [[Filter Run Prefix]] +from-version: 5.2.1 +modified: 20230710073343947 +rp-input: the filter output of all previous runs so far +rp-output: the input titles as modified by the filters returned by this filter run +rp-purpose: modify input titles by successively evaluating a list of filters and applying the first result +tags: [[Named Filter Run Prefix]] title: Cascade Filter Run Prefix type: text/vnd.tiddlywiki -<<.from-version "5.2.1">> - -|''purpose'' |modify input titles by evaluating in turn a list of filters - as returned by the filter expression for this run - for each input title. | -|''input'' |all titles from previous filter runs | -|''output''|the input titles as modified by the filters returned by this filter run | +<$railroad text=""" +\start none +\end none +( ":cascade" | - ) +[[run|"Filter Run"]] +"""/> The [[filter expression|Filter Expression]] for this [[filter run|Filter Run]] is evaluated to return a list of filters. Each input title is then evaluated against each of the filters in turn, and the input title is replaced with the first result of the first filter that returns a non-empty list. If none of the filters return a result for an input title, it is replaced with an empty string. The following variables are available within the filter run: * <<.var currentTiddler>> - the input title -* <<.var ..currentTiddler>> - the value of the variable `currentTiddler` outside the filter run. +* <<.var ..currentTiddler>> - the value of the variable <<.var currentTiddler>> outside the filter run. -[[Examples|Cascade Filter Run Prefix (Examples)]] +[[Cascade Filter Run Prefix (Examples)]] diff --git a/editions/tw5.com/tiddlers/filters/syntax/Else Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Else Filter Run Prefix.tid new file mode 100644 index 000000000..dee5fc7be --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/syntax/Else Filter Run Prefix.tid @@ -0,0 +1,18 @@ +created: 20230318142408662 +from-version: 5.1.23 +modified: 20230322140756821 +rp-input: all titles from previous filter runs +rp-output: if the filter output so far is an empty list then the output titles of the run are [[dominantly appended|Dominant Append]] to the filter's output.<br>if the filter output so far is not an empty list then the run is ignored. +rp-purpose: the filter run is only evaluated if the filter output of all previous runs so far is an empty list +tags: [[Named Filter Run Prefix]] +title: Else Filter Run Prefix +type: text/vnd.tiddlywiki + +<$railroad text=""" +\start none +\end none +( ":else" | - ) +[[run|"Filter Run"]] +"""/> + +This prefix has a [[Shortcut Filter Run Prefix]] symbol `~run` \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/Except Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Except Filter Run Prefix.tid new file mode 100644 index 000000000..aa28c7f8f --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/syntax/Except Filter Run Prefix.tid @@ -0,0 +1,18 @@ +created: 20230318142056008 +from-version: 5.1.23 +modified: 20230322140643066 +rp-input: all titles from previous filter runs +rp-output: output titles are removed from the filter's output (if such tiddlers exist) +rp-purpose: if output titles of this filter run are contained in the output of previous filter runs, they are removed, and otherwise ignored +tags: [[Named Filter Run Prefix]] +title: Except Filter Run Prefix +type: text/vnd.tiddlywiki + +<$railroad text=""" +\start none +\end none +( ":except" | - ) +[[run|"Filter Run"]] +"""/> + +This prefix has a [[Shortcut Filter Run Prefix]] symbol `-run` \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Expression.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Expression.tid index 8521859ac..739be62bf 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Expression.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Expression.tid @@ -1,73 +1,21 @@ created: 20150124182421000 -modified: 20211129014550442 +modified: 20230710074507466 tags: [[Filter Syntax]] title: Filter Expression type: text/vnd.tiddlywiki +A <<.def "filter expression">> is the outermost level of the [[filter syntax|Filter Syntax]]. It consists of [[filter runs|Filter Run]] with optional [[filter run prefixes|Filter Run Prefix]]. Multiple filter runs are separated by [[whitespace|Filter Whitespace]]. + <$railroad text=""" -[{: - [: [[whitespace|"Filter Whitespace"]] ] - ("+"|"~"|:-|"-"|"="|":"[[named-prefix|"Named Filter Run Prefix"]]) +{ ( + - | + : [[<"prefix">|"Filter Run Prefix"]] + ) [[run|"Filter Run"]] -}] + + [[whitespace|"Filter Whitespace"]] +} """/> -A <<.def "filter expression">> is the outermost level of the [[filter syntax|Filter Syntax]]. It consists of one or more [[runs|Filter Run]]. +<<.tip """If the diagram has a single start and end line, as shown above, it means there is more info in the linked level above. The breadcrumbs can be used to navigate""">> -If a run has: - -* no prefix, its output titles are [[dominantly appended|Dominant Append]] to the filter's output -* the prefix `=`, output titles are appended to the filter's output without de-duplication. <<.from-version "5.1.20">> -* the prefix `-`, output titles are <<.em removed>> from the filter's output (if such tiddlers exist) -* the prefix `+`, it receives the filter output so far as its input; its output then <<.em "replaces">> all filter output so far and forms the input for the next run -* the prefix `~`, if the filter output so far is an empty list then the output titles of the run are [[dominantly appended|Dominant Append]] to the filter's output. If the filter output so far is not an empty list then the run is ignored. <<.from-version "5.1.18">> -* named prefixes for filter runs are available. <<.from-version "5.1.23">> -* named prefix `:filter`, it receives the filter output so far as its input. The next run is evaluated for each title of the input, removing every input title for which the output is an empty list. <<.from-version "5.1.23">> -** See [[Filter Filter Run Prefix]]. -* named prefix `:intersection` replaces all filter output so far with titles that are present in the output of this run, as well as the output from previous runs. Forms the input for the next run. <<.from-version "5.1.23">> -** See [[Intersection Filter Run Prefix]]. -* named prefix `:reduce` replaces all filter output so far with a single item by repeatedly applying a formula to each input title. A typical use is to add up the values in a given field of each input title. <<.from-version "5.1.23">> -** See [[Reduce Filter Run Prefix]]. -* named prefix `:sort` sorts all filter output so far by applying this run to each input title and sorting according to that output. <<.from-version "5.2.0">> -** See [[Sort Filter Run Prefix]]. -* named prefix `:map` transforms all filter output so far by applying this run to each input title and replacing the input title with the output of this run for that title. -** See [[Map Filter Run Prefix]]. <<.from-version "5.2.0">> - - -<<.tip "Compare named filter run prefix `:filter` with [[filter Operator]] which applies a subfilter to every input title, removing the titles that return an empty result from the subfilter">> - -<<.tip "Compare named filter run prefix `:reduce` with [[reduce Operator]] which is used to used to flatten a list of items down to a single item by repeatedly applying a subfilter.">> - -<<.tip """Within the filter runs prefixed with `:reduce`, `:sort`, `:map` and `:filter`, the "currentTiddler" variable is set to the title of the tiddler being processed. The value of currentTiddler outside the subfilter is available in the variable "..currentTiddler".<<.from-version "5.2.0">>""" >> - -In technical / logical terms: - -|!Run |!Equivalent named prefix |!Interpretation |!Output | -|`run` |`:or[run]` |de-duplicated union of sets |... OR run | -|`=run` |`:all[run]` |union of sets without de-duplication |... OR run | -|`+run` |`:and[run]` |accumulation of filter steps |... AND run | -|`-run` |`:except[run]` |difference of sets |... AND NOT run | -|`~run` |`:else[run]` |else |... ELSE run | -||`:intersection`|intersection of sets|| - -For the difference between `+` and `:intersection`, see [[Intersection Filter Run Prefix (Examples)]]. - -The input of a run is normally a list of all the non-[[shadow|ShadowTiddlers]] tiddler titles in the wiki (in no particular order). But the `+` prefix can change this: - -|Prefix|Input|h -|`-`, `~`, `=`, `:intersection` or none| <$link to="all Operator">`[all[]]`</$link> tiddler titles, unless otherwise determined by the first [[filter operator|Filter Operators]]| -|`+`, `:filter`, `:reduce`,`:sort`|the filter output of all previous runs so far| - -Precisely because of varying inputs, be aware that both prefixes `-` and `+` do not behave inverse to one another! - -For example, in both of the following, `$:/baz` will only be removed if it actually exists: - -* <$link to="is Operator"> `foo bar $:/baz -[is[system]]`</$link> -* <$link to="prefix Operator">`foo bar $:/baz -[prefix[$:/]]`</$link> - -To understand why, consider the input for both final runs with their `-` prefix. - -In order to remove `$:/baz` in any case, existing or not, simply use the `+` prefix with [[negated filter operators|Filter Operators]]: - -* <$link to="is Operator">`foo bar $:/baz +[!is[system]]`</$link> -* <$link to="prefix Operator">`foo bar $:/baz +[!prefix[$:/]]`</$link> +<<.tip """If the diagram has no start and no end, as used in lower levels, it means that higher level syntax elements have been removed, to increase readability and simplicity. The breadcrumbs can be used to navigate""">> diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix (Examples).tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix (Examples).tid index dd1e98e63..2e3272ff9 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix (Examples).tid @@ -1,6 +1,6 @@ created: 20211129022707404 -modified: 20211204154839890 -tags: [[Filter Syntax]] [[Filter Run Prefix Examples]] [[Filter Filter Run Prefix]] +modified: 20230305125338118 +tags: [[Filter Filter Run Prefix]] title: Filter Filter Run Prefix (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix.tid index f8eb66847..88eaedc42 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix.tid @@ -1,27 +1,32 @@ created: 20211129022455873 -modified: 20211129022550425 -tags: [[Filter Syntax]] [[Filter Run Prefix]] +from-version: 5.1.23 +modified: 20230710073334078 +rp-input: the filter output of all previous runs so far +rp-output: the input titles for which the filter run is not empty +rp-purpose: remove every input title for which the filter run output is an empty list +tags: [[Named Filter Run Prefix]] title: Filter Filter Run Prefix type: text/vnd.tiddlywiki -<<.from-version "5.1.23">> - -|''purpose'' |remove every input title for which the filter run output is an empty list | -|''input'' |all titles from previous filter runs | -|''output''|the input titles for which the filter run is not empty | +<$railroad text=""" +\start none +\end none +( ":filter" | - ) +[[run|"Filter Run"]] +"""/> It receives the filter output so far as its input. The next run is evaluated for each title of the input, removing every input title for which the output is an empty list. -Note that within the filter run, the "currentTiddler" variable is set to the title of the tiddler being processed. This permits filter runs like `:filter[{!!price}multiply{!!cost}compare:integer:gteq[5]]` to be used for computation. The value of currentTiddler outside the run is available in the variable "..currentTiddler". +Note that within the filter run, the <<.var currentTiddler>> variable is set to the title of the tiddler being processed. This permits filter runs like `:filter[{!!price}multiply{!!cost}compare:integer:gteq[5]]` to be used for computation. The value of currentTiddler outside the run is available in the variable <<.var ..currentTiddler>>. The following variables are available within the filter run: -* ''currentTiddler'' - the input title -* ''..currentTiddler'' - the value of the variable `currentTiddler` outside the filter run. -* ''index'' - <<.from-version "5.2.1">> the numeric index of the current list item (with zero being the first item in the list). -* ''revIndex'' - <<.from-version "5.2.1">> the reverse numeric index of the current list item (with zero being the last item in the list). -* ''length'' - <<.from-version "5.2.1">> the total length of the input list. +* <<.var currentTiddler>> - the input title +* <<.var ..currentTiddler>> - the value of the variable `currentTiddler` outside the filter run. +* <<.var index>> - <<.from-version "5.2.1">> the numeric index of the current list item (with zero being the first item in the list). +* <<.var revIndex>> - <<.from-version "5.2.1">> the reverse numeric index of the current list item (with zero being the last item in the list). +* <<.var length>> - <<.from-version "5.2.1">> the total length of the input list. <<.tip "Compare named filter run prefix `:filter` with [[filter Operator]] which applies a subfilter to every input title, removing the titles that return an empty result from the subfilter">> -[[Examples|Filter Filter Run Prefix (Examples)]] +[[Filter Filter Run Prefix (Examples)]] diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid index d394f1900..9334fd069 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid @@ -1,15 +1,17 @@ created: 20150220152540000 -modified: 20210629215024053 -tags: [[Filter Syntax]] +modified: 20230710074423650 +tags: [[Filter Step]] title: Filter Parameter type: text/vnd.tiddlywiki <$railroad text=""" -( "[" [:{/"anything but ]"/}] "]" +\start none +\end none +( "[" [: <-"hard"-> /"anything but ]"/] "]" | - "{" [:{/"anything but }"/}] "}" + "{" [: <-"indirect"-> /"anything but }"/] "}" | - "<" [:{/"anything but >"/}] ">" + "<" [: <-"variable"-> /"anything but >"/] ">" ) """/> @@ -24,9 +26,11 @@ The parameter to a [[filter operator|Filter Operators]] can be: :: The parameter is the text indicated by the [[text reference|TextReference]] whose name appears between the curly brackets, i.e. a [[field|TiddlerFields]] of a specified tiddler, or the value of a property of a specified [[data tiddler|DataTiddlers]]. : <<.def variable>> :: `<like this>` -:: The parameter is the current value of the [[variable|Variables]] whose name appears between the angle brackets. Macro parameters are <<.em not>> supported up to and including ~TiddlyWiki v5.1.23. +:: The parameter is the current value of the [[variable|Variables]] whose name appears between the angle brackets. Macro parameters are <<.em not>> supported up to v5.2.0 ::<<.from-version "5.2.0">> Literal macro parameters are supported. For example: `[<now [UTC]YYYY0MM0DD0hh0mm0ssXXX>]`. -<<.from-version "5.1.23">> Filter operators support multiple parameters which are separated by a ` , ` character. +--- + +<<.from-version "5.1.23">> [[Filter Step]]s support multiple parameters which are separated by a `,` character. For example: `[param1],[param2]` or `<param1>,{param2}` diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix (Examples).tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix (Examples).tid index dc39c948d..ddbb94c5c 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix (Examples).tid @@ -1,6 +1,6 @@ created: 20201117073343969 -modified: 20211129032537195 -tags: [[Filter Syntax]] [[Filter Run Prefix Examples]] +modified: 20230315152812472 +tags: title: Filter Run Prefix (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix.tid new file mode 100644 index 000000000..4387ba9cb --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix.tid @@ -0,0 +1,18 @@ +created: 20230305130600148 +modified: 20230711090913687 +tags: [[Filter Expression]] +title: Filter Run Prefix +type: text/vnd.tiddlywiki + +There are 2 types of filter run prefixes that are interchangeable. Named prefixes and shortcut prefixes. + +<$railroad text=""" +\start none +\end none +( + - | +: [[<":named prefix"> /"starting with v5.1.23"/ |"Named Filter Run Prefix"]] | + [[<"shortcut prefix"> /"prior to v5.1.23"/ |"Shortcut Filter Run Prefix"]] +) +[[run|"Filter Run"]] +"""/> diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Run.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Run.tid index e3843b492..c5e9c8a34 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Run.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Run.tid @@ -1,11 +1,13 @@ created: 20150124182117000 -modified: 20150129133716000 -tags: [[Filter Syntax]] +modified: 20230710074357002 +tags: [[Filter Expression]] title: Filter Run type: text/vnd.tiddlywiki <$railroad text=""" -( "[" { [[step|"Filter Step"]] } "]" +\start none +\end none +( "[" { [[<"Filter Step">|"Filter Step"]] } "]" | [:{/"anything but [ ] or whitespace"/}] | @@ -19,7 +21,6 @@ A <<.def run>> consists of [[steps|Filter Step]], and it outputs a [[selection|T The steps are processed from left to right. The input to the first step is same as the input to the run. For each subsequent step, the input is the output of the previous step. -{{Selection Constructors}} The lower three options in the diagram match syntax like `HelloThere`, `"HelloThere"`, `'HelloThere'` and `"Filter Operators"`. They are short for `[title[...]]`. diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Step.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Step.tid index b569ec4d6..73b58524a 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Step.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Step.tid @@ -1,23 +1,35 @@ created: 20150124182127000 -modified: 20201103111044922 -tags: [[Filter Syntax]] +modified: 20230710074414361 +tags: [[Filter Run]] title: Filter Step type: text/vnd.tiddlywiki +A <<.def "filter step">> represents a single operation within a <<.def "filter run">>. + +In programming terms, it is akin to a function call to which the step's input is passed as a parameter. A step's output is a [[title selection|Title Selection]] that contributes to a [[filter run|Filter Run]] and hence to the entire [[filter expression|Filter Expression]] that contains it. + <$railroad text=""" +\start none +\end none [:"!"] -[: [[operator|"Filter Operators"]] [:":" suffix] ] -[[parameter|"Filter Parameter"]] +( / "if omitted, defaults to: title" /|: +( - | :[[operator|"Filter Operators"]] ) +{ [:":" [[suffix|"Filter Operators"]] ] } ) +{ [[parameter|"Filter Parameter"]] + "," } """/> -A <<.def step>> represents a single operation within a [[filter|Filter Syntax]]. +The step's <<.def operator>> is drawn from a list of predefined keywoards which are known as [[filter operators|Filter Operators]]. -In programming terms, it is akin to a function call to which [[the step's input|Filter Run]] is passed as an implicit parameter. A step's output is a [[selection|Title Selection]] that contributes to a [[run|Filter Run]] and hence to the entire [[filter expression|Filter Expression]] that contains it. - -The step's <<.def operator>> is drawn from a list of [[predefined keywords|Filter Operators]], which can be extended by plugins. Any unrecognised operator is treated as if it was the suffix to the <<.olink field>> operator. If a step's operator is omitted altogether, it defaults to `title`. +Many steps require an explicit <<.def parameter>>, that further defines what the step is to do. The <<.def suffix>> is additional text, often the name of a [[field|TiddlerFields]], that extends the meaning of certain operators. -Many steps require an explicit <<.def parameter>> value, also known as an <<.def operand>>, that further defines what the step is to do. +If a step's <<.def operator>> and <<.def suffix>> are //omitted// altogether, it defaults to the [[title|title Operator]] operator. -<<.from-version "5.1.23">> Some steps accept multiple parameters which are separated by a ` , ` character. +<<.from-version "5.1.23">> Some steps accept multiple <<.def parameter>>s which are separated by a `,` character. + +Any unrecognised operator is treated as if it was the suffix to the <<.olink field>> operator. + +Filter operators can be extended by plugins. + +{{Selection Constructors}} diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Syntax.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Syntax.tid index 0190aabab..58a03aa20 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Syntax.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Syntax.tid @@ -1,18 +1,24 @@ created: 20140210141217955 -modified: 20150124184229000 +list: [[Filter Expression]] [[Filter Run]] [[Filter Step]] [[Filter Parameter]] [[Filter Whitespace]] +modified: 20230710074340943 tags: Filters title: Filter Syntax type: text/vnd.tiddlywiki -list: [[Filter Expression]] [[Filter Run]] [[Filter Step]] [[Filter Parameter]] [[Filter Whitespace]] <<.preamble """[[Filters]] follow a grammar that is presented here, using [[railroad diagrams|Railroad Diagrams]], for those who find formal syntax descriptions helpful. However, you can [[learn to write filters|Introduction to filter notation]] without needing to understand this group of tiddlers.""">> -A <<.def filter>> is a pipeline for transforming an <<.def input>> into an <<.def output>>. Both the input and the output are [[ordered sets of titles|Title Selection]] of things like tiddlers and fields. +A <<.def filter>> is a pipeline for transforming an <<.def input>> into an <<.def output>>. Both the input and the output are [[ordered sets of titles|Title Selection]] of tiddlers and fields. -Filters are [[expressions|Filter Expression]] constructed from smaller building blocks, called [[runs|Filter Run]] and [[steps|Filter Step]], each of which also transforms an input to an output. +Filters are ''expressions'' constructed from smaller building blocks, called ''runs'', which are built using ''steps''. Eeach of which also transforms an input to an output. A filter starts with an empty output. Its runs are processed from left to right, progressively modifying the output. -Here are details of the various building blocks involved: +The "Filter Syntax" description starts with: -<<list-links "[tag[Filter Syntax]]">> +<$railroad text=""" +\start double +\end double +[[<"Filter Expression">|"Filter Expression"]] +"""/> + +<<.tip "The railroad boxes as the one above can be used to navigate">> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Whitespace.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Whitespace.tid index f31422b3d..f33092e9c 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Whitespace.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Whitespace.tid @@ -1,11 +1,13 @@ created: 20150124182304000 -modified: 20150125105243000 -tags: [[Filter Syntax]] +modified: 20230710074447240 +tags: [[Filter Expression]] title: Filter Whitespace type: text/vnd.tiddlywiki <$railroad text=""" +\start none +\end none {( "space" | "tab" | "linefeed" | "return" | "vertical tab" | "formfeed" )} """/> -Whitespace characters can appear between each [[run|Filter Run]] of a [[filter expression|Filter Expression]]. +Whitespace characters can appear between each run of a [[filter expression|Filter Expression]]. diff --git a/editions/tw5.com/tiddlers/filters/syntax/Interchangeable Filter Run Prefixes.tid b/editions/tw5.com/tiddlers/filters/syntax/Interchangeable Filter Run Prefixes.tid new file mode 100644 index 000000000..0313f543a --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/syntax/Interchangeable Filter Run Prefixes.tid @@ -0,0 +1,44 @@ +created: 20230316151518640 +modified: 20230327130626715 +tags: [[Filter Run Prefix]] +title: Interchangeable Filter Run Prefixes +type: text/vnd.tiddlywiki + +!! Interchangeable Filter Run Prefixes + +In technical / logical terms: + +|!Run |!Equivalent named prefix |!Interpretation |!Output | +|`[run]` |`:or[run]` |de-duplicated union of sets |... OR run | +|`+[run]` |`:and[run]` |accumulation of filter steps |... AND run | +|`-[run]` |`:except[run]` |difference of sets |... AND NOT run | +|`~[run]` |`:else[run]` |else |... ELSE run | +|`=[run]` |`:all[run]` |union of sets without de-duplication |... OR run | + +The input of a run is normally a list of all the non-[[shadow|ShadowTiddlers]] tiddler titles in the wiki (in no particular order).<br>But the `+` prefix can change this: + +|Prefix|Input|h +|`-`, `~`, `=`, `:intersection` or none| <$link to="all Operator">`[all[]]`</$link> tiddler titles, unless otherwise determined by the first [[filter operator|Filter Operators]]| +|`+`, `:filter`, `:map`, `:reduce`,`:sort` |the filter output of all previous runs so far| + +Precisely because of varying inputs, be aware that both prefixes `-` and `+` do not behave inverse to one another! + +For example, in both of the following, `$:/baz` will only be removed if it actually exists: + +* <$link to="is Operator"> `foo bar $:/baz -[is[system]]`</$link> +* <$link to="prefix Operator">`foo bar $:/baz -[prefix[$:/]]`</$link> + +To understand why, consider the input for both final runs with their `-` prefix. + +In order to remove `$:/baz` in any case, existing or not, simply use the `+` prefix with [[negated filter operators|Filter Operators]]: + +* <$link to="is Operator">`foo bar $:/baz +[!is[system]]`</$link> +* <$link to="prefix Operator">`foo bar $:/baz +[!prefix[$:/]]`</$link> + +!! Difference between + and intersection + +For the difference between `+` and `:intersection`, see [[Intersection Filter Run Prefix (Examples)]]. + +!! For Developers + +To create a new filter run prefix, create a [[Javascript module|Modules]] with a [[module-type|ModuleType]] of `filterrunprefix`. diff --git a/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix (Examples).tid b/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix (Examples).tid index d074eb247..fa9bba322 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix (Examples).tid @@ -1,6 +1,6 @@ created: 20211128212902292 -modified: 20211128233320674 -tags: [[Filter Syntax]] [[Filter Run Prefix Examples]] [[Intersection Filter Run Prefix]] +modified: 20230305125354209 +tags: [[Intersection Filter Run Prefix]] title: Intersection Filter Run Prefix (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix.tid index 2fc8dd40f..2f2f718b3 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix.tid @@ -1,15 +1,20 @@ created: 20211128212902292 -modified: 20211128212904721 -tags: [[Filter Syntax]] [[Filter Run Prefix]] +from-version: 5.1.23 +modified: 20230710073322863 +rp-input: all titles from previous filter runs +rp-output: the titles that are present in both the result of this filter run and the output from previous runs +rp-purpose: find the intersection of titles from previous runs with titles in this filter +tags: [[Named Filter Run Prefix]] title: Intersection Filter Run Prefix type: text/vnd.tiddlywiki -<<.from-version "5.1.23">> - -|''purpose'' |find the intersection of titles from previous runs with titles in this filter run | -|''input'' |all titles from previous filter runs | -|''output''|the titles that are present in both the result of this filter run and the output from previous runs | +<$railroad text=""" +\start none +\end none +( ":intersection" | - ) +[[run|"Filter Run"]] +"""/> The filter output from previous runs is set aside. The `:intersection` filter run is started with all tiddler titles as input. Once this latest filter run has completed, the latest output is compared to the set-aside output. A new output is produced that contains only titles that appeared in both the set-aside output and the latest output. -[[Examples|Intersection Filter Run Prefix (Examples)]] +[[Intersection Filter Run Prefix (Examples)]] diff --git a/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix (Examples).tid b/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix (Examples).tid index 8d5631983..bd8152ce8 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix (Examples).tid @@ -1,6 +1,6 @@ created: 20210618134753828 -modified: 20220724162340642 -tags: [[Filter Syntax]] [[Filter Run Prefix Examples]] [[Map Filter Run Prefix]] +modified: 20230305125405422 +tags: [[Map Filter Run Prefix]] title: Map Filter Run Prefix (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix.tid index ad36fcade..fdce6ab39 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix.tid @@ -1,28 +1,33 @@ created: 20210618133745003 -modified: 20220720190146771 -tags: [[Filter Syntax]] [[Filter Run Prefix]] +from-version: 5.2.0 +modified: 20230710073315595 +rp-input: the filter output of all previous runs so far +rp-output: the input titles as modified by the result of this filter run +rp-purpose: modify input titles by the result of evaluating this filter run for each item +rp-suffix: <<.from-version "5.2.3">> <<.value flat>> to return all results from the filter run, or omit (default) to return only the first result +tags: [[Named Filter Run Prefix]] title: Map Filter Run Prefix type: text/vnd.tiddlywiki -<<.from-version "5.2.0">> - -|''purpose'' |modify input titles by the result of evaluating this filter run for each item | -|''input'' |all titles from previous filter runs | -|''suffix''|<<.from-version "5.2.3">> `flat` to return all results from the filter run, If omitted (default), only the first result is returned.| -|''output''|the input titles as modified by the result of this filter run | +<$railroad text=""" +\start none +\end none +( ":map" | - ) +[[run|"Filter Run"]] +"""/> Each input title from previous runs is passed to this run in turn. The filter run transforms the input titles and the output of this run replaces the input title. For example, the filter run `[get[caption]else{!!title}]` replaces each input title with its caption field, unless the field does not exist in which case the title is preserved. -Note that within the filter run, the "currentTiddler" variable is set to the title of the tiddler being processed. This permits filter runs like `:map[{!!price}multiply{!!cost}]` to be used for computation. The value of currentTiddler outside the run is available in the variable "..currentTiddler". +Note that within the filter run, the <<.var currentTiddler>> variable is set to the title of the tiddler being processed. This permits filter runs like `:map[{!!price}multiply{!!cost}]` to be used for computation. The following variables are available within the filter run: -* ''currentTiddler'' - the input title -* ''..currentTiddler'' - the value of the variable `currentTiddler` outside the filter run. -* ''index'' - <<.from-version "5.2.1">> the numeric index of the current list item (with zero being the first item in the list). -* ''revIndex'' - <<.from-version "5.2.1">> the reverse numeric index of the current list item (with zero being the last item in the list). -* ''length'' - <<.from-version "5.2.1">> the total length of the input list. +* <<.var currentTiddler>> - the input title +* <<.var ..currentTiddler>> - the value of the variable `currentTiddler` outside the filter run. +* <<.var index>> - <<.from-version "5.2.1">> the numeric index of the current list item (with zero being the first item in the list). +* <<.var revIndex>> - <<.from-version "5.2.1">> the reverse numeric index of the current list item (with zero being the last item in the list). +* <<.var length>> - <<.from-version "5.2.1">> the total length of the input list. -Filter runs used with the `:map` prefix should return at least the same number of items that they are passed. Any missing entries will be treated as an empty string. In particular, when retrieving the value of a field with the [[get Operator]] it is helpful to guard against a missing field value using the [[else Operator]]. For example `[get[myfield]else[default-value]...`. +Filter runs used with the `:map` prefix should return at least the same number of items that they are passed. Input titles for which the filter run returns no output are replaced by an empty string. In particular, when retrieving the value of a field with the [[get Operator]] it is helpful to guard against a missing field value using the [[else Operator]]. For example `[get[myfield]else[default-value]...`. -[[Examples|Map Filter Run Prefix (Examples)]] \ No newline at end of file +[[Map Filter Run Prefix (Examples)]] \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/Named Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Named Filter Run Prefix.tid index 72a4bec8d..ed389b987 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Named Filter Run Prefix.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Named Filter Run Prefix.tid @@ -1,10 +1,36 @@ created: 20201214044413473 -modified: 20211118025845599 -tags: [[Filter Syntax]] +modified: 20230711090833212 +tags: [[Filter Run Prefix]] title: Named Filter Run Prefix +type: text/vnd.tiddlywiki -<$set name="prefixlist" filter="""[all[shadows+tiddlers]has[module-type]module-type[filterrunprefix]trim:prefix[$:/core/modules/filterrunprefixes/]trim:suffix[.js]addprefix["]addsuffix["]join[|]addprefix[(]addsuffix[)]]"""> -<$railroad text=<<prefixlist>>/> -</$set> +In <<.from-version "5.1.23">> the named filter run prefixes where implemented. `:cascade`, `:map` and `:sort` have been added later as shown in the diagrams. -A named filter run prefix can precede any [[run|Filter Run]] of a [[filter expression|Filter Expression]] in place of a single-character prefix (`+`, `-` and so on). To create a new filter run prefix, create a [[Javascript module|Modules]] with a [[module-type|ModuleType]] of `filterrunprefix`. +A named filter run prefix can precede any [[run|Filter Run]] of a [[filter expression|Filter Expression]] in place of a [[shortcut run prefix|Shortcut Filter Run Prefix]]. + +<$railroad text=""" +\start none +\end none +( +[[<":all"> |"All Filter Run Prefix"]] | +[[<":and"> |"And Filter Run Prefix"]] | +[[<":cascade"> /"v5.2.1"/ |"Cascade Filter Run Prefix"]] | +[[<":else"> |"Else Filter Run Prefix"]] | +[[<":except"> |"Except Filter Run Prefix"]] | +[[<":filter"> |"Filter Filter Run Prefix"]] | +[[<":intersection"> |"Intersection Filter Run Prefix"]] | +[[<":map"> /"v5.2.0"/ |"Map Filter Run Prefix"]] | +[[<":or"> |"Or Filter Run Prefix"]] | +[[<":reduce"> |"Reduce Filter Run Prefix"]] | +[[<":sort"> /"v5.2.0"/ |"Sort Filter Run Prefix"]] | +[[<":then"> /"v5.3.0"/ |"Then Filter Run Prefix"]]) [[run|"Filter Run"]] +"""/> + + +<<.tip "Compare named filter run prefix `:filter` with [[filter Operator]] which applies a subfilter to every input title, removing the titles that return an empty result from the subfilter">> + +<<.tip "Compare named filter run prefix `:reduce` with [[reduce Operator]] which is used to used to flatten a list of items down to a single item by repeatedly applying a subfilter">> + +<<.tip """Within the filter runs prefixed with `:reduce`, `:sort`, `:map` and `:filter`, the <<.var currentTiddler>> variable is set to the title of the tiddler being processed.<br>The value of currentTiddler outside the subfilter is available in the variable <<.var "..currentTiddler">> <<.from-version "5.2.0">>""" >> + +Also see: [[Interchangeable Filter Run Prefixes]] diff --git a/editions/tw5.com/tiddlers/filters/syntax/Or Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Or Filter Run Prefix.tid new file mode 100644 index 000000000..4cb9a94ec --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/syntax/Or Filter Run Prefix.tid @@ -0,0 +1,18 @@ +created: 20230318135743766 +from-version: 5.1.23 +modified: 20230322140708372 +rp-input: all titles from previous filter runs +rp-output: output titles are [[dominantly appended|Dominant Append]] to the output of previous filter runs +rp-purpose: de-duplicated union of tiddler sets +tags: [[Named Filter Run Prefix]] +title: Or Filter Run Prefix +type: text/vnd.tiddlywiki + +<$railroad text=""" +\start none +\end none +( ":or" | - ) +[[run|"Filter Run Prefix"]] +"""/> + +The :or prefix is equivalent to using no prefix at all. See `run` at [[Shortcut Filter Run Prefix]] \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix (Examples).tid b/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix (Examples).tid index c88472216..bb17b9c8e 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix (Examples).tid @@ -1,6 +1,6 @@ created: 20211124151912931 -modified: 20211124160747921 -tags: [[Filter Syntax]] [[Reduce Filter Run Prefix]] [[Filter Run Prefix Examples]] +modified: 20230305125430544 +tags: [[Reduce Filter Run Prefix]] title: Reduce Filter Run Prefix (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix.tid index 3a9fd8a82..6799d8e05 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix.tid @@ -1,25 +1,34 @@ created: 20211124151912931 -modified: 20211124170117511 -tags: [[Filter Syntax]] [[Filter Run Prefix]] +from-version: 5.1.23 +modified: 20230710073305239 +rp-input: the filter output of all previous runs so far +rp-output: the accumulated single item +rp-purpose: replaces all filter output so far with a single item by repeatedly applying a filter run to each input title +tags: [[Named Filter Run Prefix]] title: Reduce Filter Run Prefix type: text/vnd.tiddlywiki -<<.from-version "5.1.23">> -|''purpose'' |replaces all filter output so far with a single item by repeatedly applying a filter run to each input title | -|''input'' |all titles from previous filter runs | -|''output''|the accumulated single item | +<$railroad text=""" +\start none +\end none +( ":reduce" | - ) +[[run|"Filter Run"]] +"""/> -Each input title from previous runs is passed to this run in turn. The result of each previous call to this run is made available in the next call via the variable named "accumulator". The result of the last call to this run is returned as the output. A typical use is to add up the values in a given field of each input title. + +Each input title from previous runs is passed to this run in turn. The result of each previous call to this run is made available in the next call via the variable named <<.var accumulator>>. The result of the last call to this run is returned as the output. A typical use is to add up the values in a given field of each input title. + +Replaces all filter output so far with a single item by repeatedly applying a formula, as described above, to each input title. The following variables are available within the filter run: -* ''accumulator'' - the result of the previous filter run -* ''currentTiddler'' - the input title -* ''..currentTiddler'' - the value of the variable `currentTiddler` outside the filter run. <<.from-version "5.2.0">> -* ''index'' - the numeric index of the current list item (with zero being the first item in the list) -* ''revIndex'' - the reverse numeric index of the current list item (with zero being the last item in the list) -* ''length'' - the total length of the input list +* <<.var accumulator>> - the result of the previous filter run +* <<.var currentTiddler>> - the input title +* <<.var ..currentTiddler>> - the value of the variable `currentTiddler` outside the filter run. <<.from-version "5.2.0">> +* <<.var index>> - the numeric index of the current list item (with zero being the first item in the list) +* <<.var revIndex>> - the reverse numeric index of the current list item (with zero being the last item in the list) +* <<.var length>> - the total length of the input list <<.tip "Compare named filter run prefix `:reduce` with [[reduce Operator]] which is used to flatten a list of items down to a single item by repeatedly applying a subfilter.">> @@ -35,4 +44,4 @@ is equivalent to: [tag[shopping]reduce<num-items>] ``` -[[Examples|Reduce Filter Run Prefix (Examples)]] \ No newline at end of file +[[Reduce Filter Run Prefix (Examples)]] \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/Shortcut Filter Run Prefixes.tid b/editions/tw5.com/tiddlers/filters/syntax/Shortcut Filter Run Prefixes.tid new file mode 100644 index 000000000..fa8bc26e1 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/syntax/Shortcut Filter Run Prefixes.tid @@ -0,0 +1,29 @@ +created: 20230305131705188 +modified: 20230710074438655 +tags: [[Filter Run Prefix]] +title: Shortcut Filter Run Prefix +type: text/vnd.tiddlywiki + +Shortcut prefixes are commonly used by advanced users because they are fast to type but they are harder to read by less experienced users. That's why [[named prefixes|Named Filter Run Prefix]] have been created, which are more verbose. Shortcut and named filter run prefixes are interchangeable as shown in the table below. + +<$railroad text=""" +\start none +\end none +(-|:"+"|"-"|"~"|"=") +[[run|"Filter Run"]] +"""/> + +If a run has: + +* no prefix, its output titles are [[dominantly appended|Dominant Append]] to the filter's output + +* the prefix `+`, it receives the filter output so far as its input; its output then <<.em "replaces">> all filter output so far and forms the input for the next run + +* the prefix `-`, output titles are <<.em removed>> from the filter's output (if such tiddlers exist) + +* the prefix `~`, if the filter output so far is an empty list then the output titles of the run are [[dominantly appended|Dominant Append]] to the filter's output. If the filter output so far is not an empty list then the run is ignored. <<.from-version "5.1.18">> + +* the prefix `=`, output titles are appended to the filter's output without de-duplication. <<.from-version "5.1.20">> + + +{{Interchangeable Filter Run Prefixes}} \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix (Examples).tid b/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix (Examples).tid index 73c95643e..16b9c9711 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix (Examples).tid @@ -1,6 +1,6 @@ created: 20210428074912172 -modified: 20210428085746041 -tags: [[Filter Syntax]] [[Sort Filter Run Prefix]] [[Filter Run Prefix Examples]] +modified: 20230315165343329 +tags: [[Sort Filter Run Prefix]] title: Sort Filter Run Prefix (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix.tid index ec5e032dd..0197425ad 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix.tid @@ -1,19 +1,26 @@ created: 20210428083929749 -modified: 20210522162628946 -tags: [[Filter Syntax]] [[Filter Run Prefix]] +from-version: 5.2.0 +modified: 20230322140722470 +rp-input: the filter output of all previous runs so far +rp-output: output titles replace the output of previous filter runs +rp-purpose: sort the input titles by the result of evaluating this filter run for each item +rp-suffix: the <<.op :sort>> filter run prefix uses a rich suffix, see below for details +tags: [[Named Filter Run Prefix]] title: Sort Filter Run Prefix type: text/vnd.tiddlywiki -<<.from-version "5.2.0">> - -|''purpose'' |sort the input titles by the result of evaluating this filter run for each item | -|''input'' |all titles from previous filter runs | -|''suffix'' |the `:sort` filter run prefix uses a rich suffix, see below for details | -|''output''|the sorted result of previous filter runs | +<$railroad text=""" +\start none +\end none +( ":sort" ) +( : ":string" | ":alphanumeric" | ":number" | ":integer" | ":version" | ":date" ) +( : ":casesensitive" /"required for string and alphanumeric"/ | ":caseinsensitive" /"required for string and alphanumeric"/ | ":reverse" /"optional"/ | - ) +[[run|"Filter Run"]] +"""/> Each input title from previous runs is passed to this run in turn. The filter run transforms the input titles into the form needed for sorting. For example, the filter run `[length[]]` transforms each input title in to the number representing its length, and thus sorts the input titles according to their length. -Note that within the filter run, the "currentTiddler" variable is set to the title of the tiddler being processed. This permits filter runs like `:sort:number[{!!value}divide{!!cost}]` to be used for computation. The value of currentTiddler outside the run is available in the variable "..currentTiddler". +Note that within the filter run, the <<.var currentTiddler>> variable is set to the title of the tiddler being processed. This permits filter runs like `:sort:number[{!!value}divide{!!cost}]` to be used for computation. The value of <<.var currentTiddler>> outside the run is available in the variable <<.var "..currentTiddler">>. The `:sort` filter run prefix uses an extended syntax that allows for multiple suffixes, some of which are required: diff --git a/editions/tw5.com/tiddlers/filters/syntax/then Filter Run Prefix.tid b/editions/tw5.com/tiddlers/filters/syntax/then Filter Run Prefix.tid index 2584bd65b..b74000b5a 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/then Filter Run Prefix.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/then Filter Run Prefix.tid @@ -1,45 +1,14 @@ created: 20210618133745003 from-version: 5.3.0 -modified: 20230506172920710 +modified: 20230710074225410 rp-input: <<.olink all>> tiddler titles rp-output: the output of this filter run replaces the output of previous runs unless it is an empty list (see below) rp-purpose: replace any input to this filter run with its output, only evaluating the run when there is any input search: -tags: [[Filter Run Prefix]] [[Filter Syntax]] +tags: [[Named Filter Run Prefix]] title: Then Filter Run Prefix type: text/vnd.tiddlywiki -\define .op-row() -<$macrocall $name=".if" - cond="""$(op-body)$""" - then="""<tr><th align="left">$(op-head)$</th><td><<.op-place>>$(op-body)$</td></tr>""" - else=""/> -\end - -<$list filter="[all[current]has[from-version]]" variable="listItem"> - <$macrocall $name=".from-version" version={{!!from-version}}/> -</$list> -<$let op-head="" op-body="" op-name=""> - <table class="doc-table"> - <!-- purpose --> - <$let op-head="purpose" op-body={{!!rp-purpose}}> - <<.op-row>> - </$let> - <!-- input --> - <$let op-head="[[input|Filter Expression]]" op-body={{!!rp-input}}> - <<.op-row>> - </$let> - <!-- suffix --> - <$let op-head="suffix" op-body={{!!rp-suffix}} op-name={{!!rp-suffix-name}}> - <<.op-row>> - </$let> - <!-- output --> - <$let op-head="output" op-body={{!!rp-output}}> - <<.op-row>> - </$let> - </table> -</$let> - <$railroad text=""" \start none \end none @@ -47,8 +16,6 @@ type: text/vnd.tiddlywiki [[run|"Filter Run"]] """/> -!Introduction - The <<.op :then>> filter run prefix is used to replace the result of all previous filter runs with its output. If the result of all previous runs is an empty list, the <<.op :then>> prefixed filter run is not evaluated. @@ -67,5 +34,5 @@ The major difference between the <<.op then>> operator and a <<.op :then>> prefi |^<<.operator-example m1-1 "[tag[WikiText]] :then[[true]]">>|^<<.operator-example m1-2 "[tag[WikiText]then[true]]">><p>To make them equivalent, additional filter steps may be added:</p> <<.operator-example m1-3 "[tag[WikiText]count[]compare:number:gt[0]then[true]]">>| -! [[Examples|Then Filter Run Prefix (Examples)]] +[[Then Filter Run Prefix (Examples)]] diff --git a/editions/tw5.com/tiddlers/filters/toggle Operator.tid b/editions/tw5.com/tiddlers/filters/toggle Operator.tid index 13e971990..10fbadf2c 100644 --- a/editions/tw5.com/tiddlers/filters/toggle Operator.tid +++ b/editions/tw5.com/tiddlers/filters/toggle Operator.tid @@ -4,7 +4,7 @@ modified: 20201118192155504 op-input: a list of items op-output: the input list with the title specified in the parameter toggled op-parameter: the <<.op toggle>> operator accepts 1 or more parameters, see below for details -op-purpose: toggle the title specified in the operand in the input +op-purpose: toggle the title specified in the parameter in the input tags: [[Filter Operators]] [[Listops Operators]] [[Order Operators]] title: toggle Operator type: text/vnd.tiddlywiki @@ -19,7 +19,7 @@ The <<.op toggle>> operator requires at least one parameter and can accept addit * ''title1'' : a title to toggle in the input list. If it is already present, it is removed. Otherwise, it is added. * ''title2'': (optional). When the second parameter is provided, the operator toggles between the two values in the input list. If neither is present, the first parameter takes precedence is added to the list. -With more than two parameters, the <<.op toggle>> behaves similar to the [[cycle|cycle Operator]] and can be used to cycle through a list of values. Note that all operands should be unique. +With more than two parameters, the <<.op toggle>> behaves similar to the [[cycle|cycle Operator]] and can be used to cycle through a list of values. Note that all parameters should be unique. <$macrocall $name=".tip" _="While the <<.op cycle>> operator interprets its first parameter as a list of titles to cycle through and offers similar functionality, the <<.op toggle>> operator accepts an unlimited number of distinct parameters."/> diff --git a/editions/tw5.com/tiddlers/filters/transcludes.tid b/editions/tw5.com/tiddlers/filters/transcludes.tid new file mode 100644 index 000000000..29b90eb54 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/transcludes.tid @@ -0,0 +1,13 @@ +created: 20211002204500000 +tags: [[Filter Operators]] [[Common Operators]] +title: transcludes Operator +type: text/vnd.tiddlywiki +caption: transcludes +op-purpose: find the titles linked to by each input title +op-input: a [[selection of titles|Title Selection]] +op-parameter: none +op-output: the titles to which the input tiddlers [[transcludes|Transclusion]] + +Each input title is processed in turn. The corresponding tiddler's list of transcludes is generated, in the order in which they appear in the tiddler's text, and [[dominantly appended|Dominant Append]] to the operator's overall output. + +<<.operator-examples "transcludes">> diff --git a/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Firefox.tid b/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Firefox.tid index dbec1fb07..0d580f689 100644 --- a/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Firefox.tid +++ b/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Firefox.tid @@ -1,10 +1,11 @@ caption: Firefox created: 20140811170425199 -modified: 20211114031651878 +modified: 20230803213024843 tags: GettingStarted title: GettingStarted - Firefox type: text/vnd.tiddlywiki -Firefox provides the best user experience for using TiddlyWiki with the TiddlyFox browser extension. +Firefox provides the best user experience for using TiddlyWiki with the following browser extensions: +<<list-links filter:"[tag[Firefox]delivery[Browser Extension]] -[[Saving with TiddlyFox]]">> -{{Saving with TiddlyFox}} +{{Saving with FireFox}} diff --git a/editions/tw5.com/tiddlers/hellothere/HelloThere.tid b/editions/tw5.com/tiddlers/hellothere/HelloThere.tid index 5f8d5fd34..91ee04e2f 100644 --- a/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +++ b/editions/tw5.com/tiddlers/hellothere/HelloThere.tid @@ -5,21 +5,6 @@ tags: TableOfContents title: HelloThere type: text/vnd.tiddlywiki -<div style="border: 2px solid red; background: #ffd; padding: 0 0.5em; border-radius: 8px;"> - - This is a build of ~TiddlyWiki 5 from the branch [[confetti-plugin|https://github.com/Jermolene/TiddlyWiki5/tree/confetti-plugin]]. Despite the name of the branch, it actually introduces two new plugins and brings updates to an existing one: - - * The ''Tour Plugin'' allows interactive learning tours to be created and presented in TiddlyWiki - ** Launch the tour in this wiki with the {{$:/plugins/tiddlywiki/tour/start-tour-button}} button in the sidebar - * The ''Confetti Plugin'' displays animated bursts of confetti - ** See the [[Confetti Plugin readme|$:/plugins/tiddlywiki/confetti/readme]] for examples - * The ''updated Dynannotate Plugin'' gains the ability to highlight screen elements using an animated spotlight effect - ** See the [[Dynannotate Spotlight Demo|$:/plugins/tiddlywiki/dynannotate/examples/spotlight]] - - A standalone demo of the tour functionality is [ext[available here|./tour.html]]. - - </div> - !!.tc-hero-heading ''Welcome to TiddlyWiki, a unique [[non-linear|Philosophy of Tiddlers]] notebook for [[capturing|Creating and editing tiddlers]], [[organising|Structuring TiddlyWiki]] and [[sharing|Sharing your tiddlers with others]] complex information'' Use it to keep your [[to-do list|TaskManagementExample]], to plan an [[essay or novel|"TiddlyWiki for Scholars" by Alberto Molina]], or to organise your wedding. Record every thought that crosses your brain, or build a flexible and responsive website. diff --git a/editions/tw5.com/tiddlers/howtos/Concatenating text and variables using macro substitution.tid b/editions/tw5.com/tiddlers/howtos/Concatenating text and variables using macro substitution.tid index 77090609a..933e1e80e 100644 --- a/editions/tw5.com/tiddlers/howtos/Concatenating text and variables using macro substitution.tid +++ b/editions/tw5.com/tiddlers/howtos/Concatenating text and variables using macro substitution.tid @@ -4,10 +4,16 @@ tags: Learning title: Concatenating text and variables using macro substitution type: text/vnd.tiddlywiki +!! Important + <<.from-version "5.3.0">> It is recommended to use [[substituted attributes|Substituted Attribute Values]] or the [[substitute filter operator|substitute Operator]] to concatenate text and variables. It's a frequent use case in ~TiddlyWiki that you will want to put the results of variables together with various bits of strings of text. This process in some programming languages is often referred to as "concatenating" text. +--- + +!! What is Wrong + You might, for instance want to set up a template for your customer database, where links will automatically refer to additional contact information about your customer. Inside your tiddler, you might try something like this: <<.bad-example "`[[Additional Info|<<currentTiddler>>-Contact]]`">> diff --git a/editions/tw5.com/tiddlers/macros/import/tags-of-current-tiddler.tid b/editions/tw5.com/tiddlers/macros/import/tags-of-current-tiddler.tid index 860ad33db..da7214b0c 100644 --- a/editions/tw5.com/tiddlers/macros/import/tags-of-current-tiddler.tid +++ b/editions/tw5.com/tiddlers/macros/import/tags-of-current-tiddler.tid @@ -1,6 +1,7 @@ code-body: yes created: 20150221145803000 +modified: 20240310124126491 title: $:/editions/tw5.com/macro-examples/tags-of-current-tiddler type: text/vnd.tiddlywiki -\define tags-of-current-tiddler() {{!!tags}} +\procedure tags-of-current-tiddler() {{!!tags}} diff --git a/editions/tw5.com/tiddlers/macros/import/tv-get-export-image-link.tid b/editions/tw5.com/tiddlers/macros/import/tv-get-export-image-link.tid index 56a3b9dd7..ebf879fa9 100644 --- a/editions/tw5.com/tiddlers/macros/import/tv-get-export-image-link.tid +++ b/editions/tw5.com/tiddlers/macros/import/tv-get-export-image-link.tid @@ -1,6 +1,7 @@ +code-body: yes created: 20150228123855000 -modified: 20150228123921000 +modified: 20240310133309881 title: $:/editions/tw5.com/macro-examples/tv-get-export-image-link type: text/vnd.tiddlywiki -\define tv-get-export-image-link(src) https://www.tiddlywiki.com/$src$ +\function tv-get-export-image-link(src) [[https://www.tiddlywiki.com/$(src)$]substitute[]] diff --git a/editions/tw5.com/tiddlers/macros/import/tv-wikilink-tooltip.tid b/editions/tw5.com/tiddlers/macros/import/tv-wikilink-tooltip.tid index 9687f4b15..e4884c95d 100644 --- a/editions/tw5.com/tiddlers/macros/import/tv-wikilink-tooltip.tid +++ b/editions/tw5.com/tiddlers/macros/import/tv-wikilink-tooltip.tid @@ -1,8 +1,9 @@ code-body: yes created: 20150228120252000 +modified: 20240310124217005 title: $:/editions/tw5.com/macro-examples/tv-wikilink-tooltip type: text/vnd.tiddlywiki -\define tv-wikilink-tooltip() +\procedure tv-wikilink-tooltip() <$transclude field="tooltip">(<$transclude field="caption"/>)</$transclude> \end diff --git a/editions/tw5.com/tiddlers/mechanisms/RefreshThrottling.tid b/editions/tw5.com/tiddlers/mechanisms/RefreshThrottling.tid index 344cd0ee7..5ae3d9645 100644 --- a/editions/tw5.com/tiddlers/mechanisms/RefreshThrottling.tid +++ b/editions/tw5.com/tiddlers/mechanisms/RefreshThrottling.tid @@ -12,6 +12,6 @@ The rules governing refresh throttling are: ** Has the field `draft.of` ** Has the field `throttle.refresh` ** Has a title prefixed with `$:/temp/volatile/` -* If the refresh cycle is to be throttled, a timer is set for the internal specified in [[$:/config/Drafts/TypingTimeout|Hidden Setting: Typing Refresh Delay]] (cancelling any preciously set timer) +* If the refresh cycle is to be throttled, a timer is set for the internal specified in [[$:/config/Drafts/TypingTimeout|Hidden Setting: Typing Refresh Delay]] (cancelling any previously set timer) ** When the timer fires, the refresh cycle is triggered, passing the aggregated titles of all the deferred refresh cycles diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Random Dog.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Random Dog.tid index 958c31bae..892b4926f 100644 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Random Dog.tid +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Random Dog.tid @@ -1,5 +1,5 @@ title: WidgetMessage: tm-http-request Example - Random Dog -tags: $:/tags/Global +tags: $:/tags/Macro $:/tags/Global \procedure download-dog(url) diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid index c26eb9895..78a3a0651 100644 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid @@ -1,5 +1,5 @@ title: WidgetMessage: tm-http-request Example - Zotero -tags: $:/tags/Global +tags: $:/tags/Macro $:/tags/Global \procedure select-zotero-group() Specify the Zotero group ID to import diff --git a/editions/tw5.com/tiddlers/nodejs/Naming of System Tiddlers.tid b/editions/tw5.com/tiddlers/nodejs/Naming of System Tiddlers.tid index f677c6cee..ff1a79c78 100644 --- a/editions/tw5.com/tiddlers/nodejs/Naming of System Tiddlers.tid +++ b/editions/tw5.com/tiddlers/nodejs/Naming of System Tiddlers.tid @@ -1,5 +1,5 @@ created: 20140112190154121 -modified: 20140912142655205 +modified: 20240202121048363 tags: SystemTiddlers title: Naming of System Tiddlers type: text/vnd.tiddlywiki @@ -17,11 +17,11 @@ The system tiddlers provided as part of the core are named according to the foll |`$:/core/wiki/*` |lowercase |Metadata about the entire wiki | |`$:/docs/*` |lowercase |Documentation tiddlers | |`$:/messages/*` |~CamelCase |System messages | -|`$:/plugins/*` |lowercase |Plugin tiddlers, and plugin content | +|`$:/plugins/*` |lowercase |[[Plugin|Plugins]] tiddlers, and plugin content | |`$:/snippets/*` |//inconsistent// |Reusable snippets (will be replaced by macros) | -|`$:/state/*` |lowercase |User interface state tiddlers | +|`$:/state/*` |lowercase |User interface state tiddlers (see StateMechanism) | |`$:/tags/*` |~CamelCase |User interface configuration tags | -|`$:/temp/*` |lowercase |Temporary tiddlers that shouldn't be saved | +|`$:/temp/*` |lowercase |[[Temporary tiddlers|Temporary Tiddlers]] that shouldn't be saved | |`$:/themes/*` |lowercase |Theme plugins | In the format column: diff --git a/editions/tw5.com/tiddlers/saving/Saving with FireFox.tid b/editions/tw5.com/tiddlers/saving/Saving with FireFox.tid new file mode 100644 index 000000000..b64f695c4 --- /dev/null +++ b/editions/tw5.com/tiddlers/saving/Saving with FireFox.tid @@ -0,0 +1,17 @@ +caption: Saving with FireFox +created: 20230803205140949 +modified: 20230803213246739 +tags: Saving Firefox +title: Saving with FireFox + +# Restart [[Firefox]] +# [[Download]] an empty TiddlyWiki by clicking this button: +#> {{$:/editions/tw5.com/snippets/download-empty-button}} +# Locate the file you just downloaded +#* You may rename it, but be sure to keep the `.html` or `.htm` extension +# Open the file in [[Firefox]] + +# Try creating a new tiddler using the ''new tiddler'' <<.icon $:/core/images/new-button>> button in the sidebar. Type some content for the tiddler, and click the <<.icon $:/core/images/done-button>> ''ok'' button +# Save your changes by clicking the <<.icon $:/core/images/save-button-dynamic>> ''save changes'' button in the sidebar +#* Look for the yellow notification ''Saved wiki'' at the top right of the window +# Refresh the browser window to verify that your changes have been saved correctly diff --git a/editions/tw5.com/tiddlers/saving/Saving with TiddlyFox.tid b/editions/tw5.com/tiddlers/saving/Saving with TiddlyFox.tid index e944ea19e..86c6a35b5 100644 --- a/editions/tw5.com/tiddlers/saving/Saving with TiddlyFox.tid +++ b/editions/tw5.com/tiddlers/saving/Saving with TiddlyFox.tid @@ -5,26 +5,9 @@ created: 20131221085742684 delivery: Browser Extension description: Browser extension for older versions of Firefox method: save -modified: 20200507105421421 +modified: 20230806001436106 tags: Saving Firefox title: Saving with TiddlyFox type: text/vnd.tiddlywiki -If you're using [[Firefox for Android]], see the instructions for [[Saving with TiddlyFox on Android]]. - -# Ensure you have a version of Firefox before version 57. ~TiddlyFox will not work with Firefox 57 and on. For Firefox 57 and on, consider using the following instead: <<list-links filter:"[tag[Firefox]delivery[Browser Extension]] -[[Saving with TiddlyFox]]">> -# Install the latest release of the TiddlyFox extension from: -#* https://addons.mozilla.org/en-GB/firefox/addon/tiddlyfox/ -# Restart [[Firefox]] -# [[Download]] an empty TiddlyWiki by clicking this button: -#> {{$:/editions/tw5.com/snippets/download-empty-button}} -# Locate the file you just downloaded -#* You may rename it, but be sure to keep the `.html` or `.htm` extension -# Open the file in [[Firefox]] -#* If you are using TiddlyFox v1.x.x, you will need to click ''OK'' in response to the prompt from TiddlyFox that asks whether to enable saving for this file -#* If you are using TiddlyFox v2.x.x you will need to click on the icon of a kitten standing on a blue globe to activate saving. There is no prompt in v2.0.1. -#** For TiddlyFox v2.0.1, you can not be using Private Browsing mode nor can you be using "Never Remember History". -# Try creating a new tiddler using the ''new tiddler'' <<.icon $:/core/images/new-button>> button in the sidebar. Type some content for the tiddler, and click the <<.icon $:/core/images/done-button>> ''ok'' button -# Save your changes by clicking the <<.icon $:/core/images/save-button-dynamic>> ''save changes'' button in the sidebar -#* Look for the yellow notification ''Saved wiki'' at the top right of the window -# Refresh the browser window to verify that your changes have been saved correctly +<<.deprecated-since "FireFox 57" "Saving with FireFox">> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/styleguide/Documentation Macros.tid b/editions/tw5.com/tiddlers/styleguide/Documentation Macros.tid index ac5d4ea19..3c0a113e7 100644 --- a/editions/tw5.com/tiddlers/styleguide/Documentation Macros.tid +++ b/editions/tw5.com/tiddlers/styleguide/Documentation Macros.tid @@ -1,174 +1,199 @@ created: 20150110182600000 -modified: 20230325161424684 +modified: 20240224170607731 tags: [[Improving TiddlyWiki Documentation]] title: Documentation Macros type: text/vnd.tiddlywiki The following macros are used throughout ~TiddlyWiki's documentation. Their names start with a dot to keep them out of the way of names that a user might try experimenting with. -!General +! General -|!Macro |!Used for |!Example | -|.def |the defining instance of a term |<<.def widget>> | -|.em |minor emphasis within a sentence |<<.em not>> | -|.place |a placeholder for the user to fill in |<<.place tagname>> | -|.strong |major emphasis within a tiddler |<<.strong Important!>> | -|.word |a mention of an ordinary word or phrase |<<.word "hello world">> | -|.icon |an icon, sized to match the surrounding text |<<.icon "$:/core/images/globe">> | +|Macro |Used for |Example |Rendered|h +|.def |the defining instance of a term |`<<.def widget>>` |<<.def widget>> | +|.em |minor emphasis within a sentence |`<<.em not>>` |<<.em not>> | +|.place |a placeholder for the user to fill in |`<<.place tagname>>` |<<.place tagname>> | +|.strong |major emphasis within a tiddler |`<<.strong Important!>>` |<<.strong Important!>> | +|.word |a mention of an ordinary word or phrase |`<<.word "hello world">>` |<<.word "hello world">> | +|.icon |an icon, sized to match the surrounding text |`<<.icon "$:/core/images/globe">>` |<<.icon "$:/core/images/globe">> | -!Advice +! Textboxes -|!Macro |!Used for |!Example | -|^.tip |^hints and tips |<<.tip "Turn your screen on, otherwise<br>you won't be able to see much.">> | -|^.warning |^warning advice |<<.warning "Make a backup of your file<br>before you upgrade.">> | +!! Textbox Parameters -!Blocks -|!Macro |!Used for | -|.preamble |an introductory sentence that stands apart from the rest of the tiddler | +; text +: Text to be shown in the box -!Tiddlers and fields +; title +: A title shown as an HTML STRONG element -|!Macro |!Used for |!Example | -|.tid |a tiddler title |<<.tid Example>> | -|.tag |a tag |<<.tag Example>> | -|.field |a field name |<<.field example>> | -|.value |a field value |<<.value "example value">> | -|.op |a filter operator |<<.op backlinks>> | -|.var |a variable or macro name |<<.var currentTiddler>> | -|.wid |a widget name |<<.wid list>> | -|.attr |an attribute name |<<.attr filter>> | -|.param |a macro parameter name |<<.param text>> | -|.tiddler-fields |a list of tiddler fields |<<.tiddler-fields "Monday">> | +; icon +: Core icons can be found at [[Icon Gallery]] + +; class +: An optional custom class can be added to the text block. It will overwrite the defaults. To keep the defaults, ''add them'' to the custom class settings. +: ''.note''-macro defaults to `doc-note` +: ''.tip''-macro defaults to `doc-tip` +: ''.warning''-macro defaults to `doc-warning` + +!! Textbox Examples + +|Macro |Used for |Example |Renderd |h +|^.infoBox |^Text-box with an icon |`<<.infoBox text:"A generic ...">>` |<<.infoBox "A generic text box, with an optional title and a custom icon">> | +|^.note|^Infos with a title |`<<.note text:"Some text ...">>` |<<.note "Some text in a box with a title by default">> | +|^.tip |^hints and tips |`<<.tip text:"Eg: Turn ...">>` |<<.tip "Eg: Turn your screen on, otherwise<br>you won't be able to see much.">> | +|^.warning |^warning advice |`<<.warning text:"Eg: Make a backup ...">>` |<<.warning "Eg: Make a backup of your file<br>before you upgrade.">> | -!Links -|!Macro |!Used for |!Example | -|.link |a link containing WikiText |<<.link "^^an^^ ~~example~~" Example>> | -|.clink |a code link |<<.clink `<$list>` ListWidget>> | -|.dlink |a link on a defining instance of a term |<<.dlink widget Widgets>> | -|.dlink-ex |an external link on a defining instance of a term |<<.dlink-ex Example "http://example.com/">> | -|.flink |a link to a field |<<.flink ListField>> | -|.mlink |a link to a macro |<<.mlink qualify>> | -|.mlink2 |a link to a macro, with specified target |<<.mlink2 foo "Examples of Macros">> | -|.olink |a link to an operator |<<.olink prefix>> | -|.olink2 |a link to an operator, with specified target |<<.olink2 foo prefix>> | -|.vlink |a link to a variable |<<.vlink currentTiddler>> | -|.vlink2 |a link to a variable, with specified target |<<.vlink2 foo "Examples of Variables">> | -|.wlink |a link to a widget |<<.wlink ButtonWidget>> | -|.wlink2 |a link to a widget, with specified text |<<.wlink2 foo ButtonWidget>> | +! Blocks -!Tabs -|!Macro |!Used for |!Example | +|Macro |Example |Used for |h +|.preamble |`<<.preamble "your text comes here">>` |<<.preamble "an introductory sentence that stands apart from the rest of the tiddler">> | + +! Tiddlers and Fields + +|Macro |Used for |Example |Rendered |h +|.tid |a tiddler title |`<<.tid Example>>` |<<.tid Example>> | +|.tag |a tag |`<<.tag Example>>` |<<.tag Example>> | +|.field |a field name |`<<.field example>>` |<<.field example>> | +|.value |a field value |`<<.value "example value">>` |<<.value "example value">> | +|.op |a filter operator |`<<.op backlinks>>` |<<.op backlinks>> | +|.var |a variable or macro name |`<<.var currentTiddler>>` |<<.var currentTiddler>> | +|.wid |a widget name |`<<.wid list>>` |<<.wid list>> | +|.attr |an attribute name |`<<.attr filter>>` |<<.attr filter>> | +|.param |a macro parameter name |`<<.param text>>` |<<.param text>> | +|.tiddler-fields |a list of tiddler fields |`<<.tiddler-fields "Monday">>` |<<.tiddler-fields "Monday">> | + +! Links + +|!Macro |Used for |Example |Renderd |h +|.link |link containing WikiText |`<<.link "^^an^^ ~~example~~" Example>>` |<<.link "^^an^^ ~~example~~" Example>> | +|.clink |code link |``<<.clink `<$list>` ListWidget>>`` |<<.clink `<$list>` ListWidget>> | +|.dlink |definition link for a instance of a term |`<<.dlink widget Widgets>>` |<<.dlink widget Widgets>> | +|.dlink-ex |external link to a defining instance of a term |`<<.dlink-ex Example "http://example.com/">>` |<<.dlink-ex Example "http://example.com/">> | +|.flink |field link |`<<.flink ListField>>` |<<.flink ListField>> | +|.mlink |macro link |`<<.mlink qualify>>` |<<.mlink qualify>> | +|.mlink2 |macro link with a specified target |`<<.mlink2 foo "Examples of Macros">>` |<<.mlink2 foo "Examples of Macros">> | +|.olink |operator link |`<<.olink prefix>>` |<<.olink prefix>> | +|.olink2 |operator link with specified target |`<<.olink2 foo prefix>>` |<<.olink2 foo prefix>> | +|.vlink |variable link |`<<.vlink currentTiddler>>` |<<.vlink currentTiddler>> | +|.vlink2 |variable link with specified target |`<<.vlink2 foo "Examples of Variables">>` |<<.vlink2 foo "Examples of Variables">> | +|.wlink |widget link |`<<.wlink ButtonWidget>>` |<<.wlink ButtonWidget>> | +|.wlink2 |widget link with specified text |`<<.wlink2 foo ButtonWidget>>` |<<.wlink2 foo ButtonWidget>> | + +! Keyboard Shortcuts + +|Macro |Used for |Example |Rendered |h +|.key |a key on the keyboard |`<<.key Escape>>` |<<.key Escape>> | +|.keys |a key combination |`<<.keys Ctrl+Enter>>` |<<.keys Ctrl+Enter>> | + +! Doc-Tabs + +See: [[CheckboxWidget]] + +|Macro |Used for |Example |h |.doc-tabs |showing a tab set in a documentation tiddler | -- | |.doc-tab-link |button to activate a tab | -- | |.widget-attr-link |button with a widget attribute name to activate a tab | -- | +! Sidebar Tabs -!User interface +|Macro |Used for |Example |Rendered |h +|.sidebar-tab |the name of a sidebar tab |`<<.sidebar-tab More>>` |<<.sidebar-tab More>> | +|.more-tab |the name of a subtab of the More tab |`<<.more-tab Shadows>>` |<<.more-tab Shadows>> | +|.info-tab |the name of a tiddler info tab |`<<.info-tab Fields>>` |<<.info-tab Fields>> | +|.controlpanel-tab |the name of a Control Panel tab |`<<.controlpanel-tab Settings>>` |<<.controlpanel-tab Settings>> | +|.advancedsearch-tab |the name of an Advanced Search tab |`<<.advancedsearch-tab Filter>>` |<<.advancedsearch-tab Filter>> | +|.toc-tab |name of the tw5.com TOC tab |`<<.toc-tab>>` |<<.toc-tab>> | +|.example-tab |an example tab name |`<<.example-tab "Notes">>` |<<.example-tab "Notes">> | -|!Macro |!Used for |!Example | -|.key |a key on the keyboard |<<.key Escape>> | -|.keycombo |a key combination |<<.keycombo Ctrl Enter>> | +!! Parameters for .sidebar-tab -!Tabs +|Open |`<<.sidebar-tab Open>>` |<<.sidebar-tab Open>> | +|Recent |`<<.sidebar-tab Recent>>` |<<.sidebar-tab Recent>> | +|Tools |`<<.sidebar-tab Tools>>` |<<.sidebar-tab Tools>> | +|More |`<<.sidebar-tab More>>` |<<.sidebar-tab More>> | -|!Macro |!Used for |!Example | -|.sidebar-tab |the name of a sidebar tab |<<.sidebar-tab More>> | -|.more-tab |the name of a subtab of the More tab |<<.more-tab Shadows>> | -|.info-tab |the name of a tiddler info tab |<<.info-tab Fields>> | -|.controlpanel-tab |the name of a Control Panel tab |<<.controlpanel-tab Settings>> | -|.advancedsearch-tab |the name of an Advanced Search tab |<<.advancedsearch-tab Filter>> | -|.toc-tab |name of the tw5.com TOC tab |<<.toc-tab>> | -|.example-tab |an example tab name |<<.example-tab "Notes">> | +!! Parameters for .more-tab -!!Parameters for .sidebar-tab +|All |`<<.more-tab All>>` |<<.more-tab All>> | +|Recent |`<<.more-tab Recent>>` |<<.more-tab Recent>> | +|Tags |`<<.more-tab Tags>>` |<<.more-tab Tags>> | +|Missing |`<<.more-tab Missing>>` |<<.more-tab Missing>> | +|Drafts |`<<.more-tab Drafts>>` |<<.more-tab Drafts>> | +|Orphans |`<<.more-tab Orphans>>` |<<.more-tab Orphans>> | +|Types |`<<.more-tab Types>>` |<<.more-tab Types>> | +|System |`<<.more-tab System>>` |<<.more-tab System>> | +|Shadows |`<<.more-tab Shadows>>` |<<.more-tab Shadows>> | -|Open |<<.sidebar-tab Open>> | -|Recent |<<.sidebar-tab Recent>> | -|Tools |<<.sidebar-tab Tools>> | -|More |<<.sidebar-tab More>> | +!! Parameters for .info-tab -!!Parameters for .more-tab +|Tools |`<<.info-tab Tools>>` |<<.info-tab Tools>> | +|References |`<<.info-tab References>>` |<<.info-tab References>> | +|Tagging |`<<.info-tab Tagging>>` |<<.info-tab Tagging>> | +|List |`<<.info-tab List>>` |<<.info-tab List>> | +|Listed |`<<.info-tab Listed>>` |<<.info-tab Listed>> | +|Fields |`<<.info-tab Fields>>` |<<.info-tab Fields>> | +|Advanced |`<<.info-tab Advanced>>` |<<.info-tab Advanced>> | -|All |<<.more-tab All>> | -|Recent |<<.more-tab Recent>> | -|Tags |<<.more-tab Tags>> | -|Missing |<<.more-tab Missing>> | -|Drafts |<<.more-tab Drafts>> | -|Orphans |<<.more-tab Orphans>> | -|Types |<<.more-tab Types>> | -|System |<<.more-tab System>> | -|Shadows |<<.more-tab Shadows>> | +!! Parameters for .controlpanel-tab -!!Parameters for .info-tab +|Info |`<<.controlpanel-tab Info>>` |<<.controlpanel-tab Info>> | +|Appearance |`<<.controlpanel-tab Appearance>>` |<<.controlpanel-tab Appearance>> | +|Settings |`<<.controlpanel-tab Settings>>` |<<.controlpanel-tab Settings>> | +|Saving |`<<.controlpanel-tab Saving>>` |<<.controlpanel-tab Saving>> | +|Plugins |`<<.controlpanel-tab Plugins>>` |<<.controlpanel-tab Plugins>> | -|Tools |<<.info-tab Tools>> | -|References |<<.info-tab References>> | -|Tagging |<<.info-tab Tagging>> | -|List |<<.info-tab List>> | -|Listed |<<.info-tab Listed>> | -|Fields |<<.info-tab Fields>> | -|Advanced |<<.info-tab Advanced>> | +!! Parameters for .advancedsearch-tab -!!Parameters for .controlpanel-tab +|Standard |`<<.advancedsearch-tab Standard>>` |<<.advancedsearch-tab Standard>> | +|System |`<<.advancedsearch-tab System>>` |<<.advancedsearch-tab System>> | +|Shadows |`<<.advancedsearch-tab Shadows>>` |<<.advancedsearch-tab Shadows>> | +|Filter |`<<.advancedsearch-tab Filter>>` |<<.advancedsearch-tab Filter>> | -|Info |<<.controlpanel-tab Info>> | -|Appearance |<<.controlpanel-tab Appearance>> | -|Settings |<<.controlpanel-tab Settings>> | -|Saving |<<.controlpanel-tab Saving>> | -|Plugins |<<.controlpanel-tab Plugins>> | +! Buttons -!!Parameters for .advancedsearch-tab +|Macro |Used for |Example |Rendered |h +|.button |a standard button name and icon |`<<.button "new-tiddler">>` |<<.button "new-tiddler">> | -|Standard |<<.advancedsearch-tab Standard>> | -|System |<<.advancedsearch-tab System>> | -|Shadows |<<.advancedsearch-tab Shadows>> | -|Filter |<<.advancedsearch-tab Filter>> | +!! Parameters for .button -!Buttons +!!! Tiddler toolbar -|!Macro |!Used for |!Example | -|.button |a standard button name and icon |<<.button "new-tiddler">> | +|clone |`<<.button "clone">>` |<<.button "clone">> | +|close |`<<.button "close">>` |<<.button "close">> | +|close-others |`<<.button "close-others">>` |<<.button "close-others">> | +|edit |`<<.button "edit">>` |<<.button "edit">> | +|export-tiddler |`<<.button "export-tiddler">>` |<<.button "export-tiddler">> | +|info |`<<.button "info">>` |<<.button "info">> | +|more-tiddler-actions |`<<.button "more-tiddler-actions">>` |<<.button "more-tiddler-actions">> | +|new-here |`<<.button "new-here">>` |<<.button "new-here">> | +|new-journal-here |`<<.button "new-journal-here">>` |<<.button "new-journal-here">> | +|permalink |`<<.button "permalink">>` |<<.button "permalink">> | -!!Parameters for .button +!!! Edit-mode toolbar -!!!Tiddler toolbar +|cancel |`<<.button "cancel">>` |<<.button "cancel">> | +|delete |`<<.button "delete">>` |<<.button "delete">> | +|save |`<<.button "save">>` |<<.button "save">> | -|clone |<<.button "clone">> | -|close |<<.button "close">> | -|close-others |<<.button "close-others">> | -|edit |<<.button "edit">> | -|export-tiddler |<<.button "export-tiddler">> | -|info |<<.button "info">> | -|more-tiddler-actions |<<.button "more-tiddler-actions">> | -|new-here |<<.button "new-here">> | -|new-journal-here |<<.button "new-journal-here">> | -|permalink |<<.button "permalink">> | +!!! Page toolbar -!!!Edit-mode toolbar - -|cancel |<<.button "cancel">> | -|delete |<<.button "delete">> | -|save |<<.button "save">> | - -!!!Page toolbar - -|advanced-search |<<.button "advanced-search">> | -|close-all |<<.button "close-all">> | -|control-panel |<<.button "control-panel">> | -|encryption |<<.button "encryption">> | -|export-page |<<.button "export-page">> | -|full-screen |<<.button "full-screen">> | -|home |<<.button "home">> | -|import |<<.button "import">> | -|language |<<.button "language">> | -|more-page-actions |<<.button "more-page-actions">> | -|new-journal |<<.button "new-journal">> | -|new-tiddler |<<.button "new-tiddler">> | -|permaview |<<.button "permaview">> | -|refresh |<<.button "refresh">> | -|save-wiki |<<.button "save-wiki">> | -|storyview |<<.button "storyview">> | -|tag-manager |<<.button "tag-manager">> | -|theme |<<.button "theme">> | +|advanced-search |`<<.button "advanced-search">>` |<<.button "advanced-search">> | +|close-all |`<<.button "close-all">>` |<<.button "close-all">> | +|control-panel |`<<.button "control-panel">>` |<<.button "control-panel">> | +|encryption |`<<.button "encryption">>` |<<.button "encryption">> | +|export-page |`<<.button "export-page">>` |<<.button "export-page">> | +|full-screen |`<<.button "full-screen">>` |<<.button "full-screen">> | +|home |`<<.button "home">>` |<<.button "home">> | +|import |`<<.button "import">>` |<<.button "import">> | +|language |`<<.button "language">>` |<<.button "language">> | +|more-page-actions |`<<.button "more-page-actions">>` |<<.button "more-page-actions">> | +|new-journal |`<<.button "new-journal">>` |<<.button "new-journal">> | +|new-tiddler |`<<.button "new-tiddler">>` |<<.button "new-tiddler">> | +|permaview |`<<.button "permaview">>` |<<.button "permaview">> | +|refresh |`<<.button "refresh">>` |<<.button "refresh">> | +|save-wiki |`<<.button "save-wiki">>` |<<.button "save-wiki">> | +|storyview |`<<.button "storyview">>` |<<.button "storyview">> | +|tag-manager |`<<.button "tag-manager">>` |<<.button "tag-manager">> | +|theme |`<<.button "theme">>` |<<.button "theme">> | diff --git a/editions/tw5.com/tiddlers/system/Deprecated.tid b/editions/tw5.com/tiddlers/system/Deprecated.tid index 9d85bd185..d363f07ed 100644 --- a/editions/tw5.com/tiddlers/system/Deprecated.tid +++ b/editions/tw5.com/tiddlers/system/Deprecated.tid @@ -1,8 +1,12 @@ created: 20170126143833588 -modified: 20220704174221300 +modified: 20240310123352998 title: $:/deprecated type: text/vnd.tiddlywiki Deprecated features of TiddlyWiki are those that have been superseded by newer, improved ways of doing the same thing. Deprecated features will still work, but are not recommended for new content. + +Tiddlers tagged $:/deprecated: + +<<list-links filter:"[tag[$:/deprecated]]">> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/system/Sources.tid b/editions/tw5.com/tiddlers/system/Sources.tid index c251f7a4f..d28d9fc05 100644 --- a/editions/tw5.com/tiddlers/system/Sources.tid +++ b/editions/tw5.com/tiddlers/system/Sources.tid @@ -1,26 +1,36 @@ title: $:/editions/tw5.com/TiddlerInfo/Sources tags: $:/tags/TiddlerInfo caption: Sources +code-body: yes -\define static-link-base() -https://tiddlywiki.com/static/$(title)$.html +\function static-link-base() [[https://tiddlywiki.com/static/$(title)$.html]substitute[]] + +\function github-link-base() +[[https://github.com/Jermolene/TiddlyWiki5/blob/tiddlywiki-com/editions/tw5.com/tiddlers/$(title)$]substitute[]] \end -\define make-static-link() +\procedure make-static-link() +\whitespace trim <$set name="title" filter="[<currentTiddler>encodeuricomponent[]encodeuricomponent[]]" select="0"> -<a href=<<static-link-base>> class="tc-tiddlylink-external" target="_blank" rel="noopener noreferrer"><$text text=<<static-link-base>>/></a> + <a href=<<static-link-base>> + class="tc-tiddlylink-external" + target="_blank" + rel="noopener noreferrer" + > + <$text text=<<static-link-base>>/> + </a> </$set> \end -\define github-link-base() -https://github.com/Jermolene/TiddlyWiki5/blob/tiddlywiki-com/editions/tw5.com/tiddlers/$(title)$ -\end - -\define make-github-link() -<$set name="title" value={{$:/config/OriginalTiddlerPaths##$(currentTiddler)$}}> -<$set name="title" filter="[<title>encodeuricomponent[]]" select="0"> -<a href=<<github-link-base>> class="tc-tiddlylink-external" target="_blank" rel="noopener noreferrer"><$text text=<<github-link-base>>/></a> -</$set> +\procedure make-github-link() +<$set name="title" value={{{ [[$:/config/OriginalTiddlerPaths]getindex<currentTiddler>] }}}> + <$set name="title" filter="[<title>encodeuricomponent[]]" select="0"> + <a href=<<github-link-base>> + class="tc-tiddlylink-external" + target="_blank" + rel="noopener noreferrer" + >Direct link to <$text text=<<currentTiddler>>/> on github.com</a> + </$set> </$set> \end @@ -30,7 +40,7 @@ A static HTML representation of this tiddler is available at the URL: * <<make-static-link>> -Help us to improve the documentation by sending a ~GitHub pull request for this tiddler: +Help us to improve the documentation by suggesting changes to this tiddler using the [[TiddlyWiki Docs PR Maker|https://saqimtiaz.github.io/tw5-docs-pr-maker/]] * <<make-github-link>> diff --git a/editions/tw5.com/tiddlers/system/TableOfContents.tid b/editions/tw5.com/tiddlers/system/TableOfContents.tid index aada8d741..d22420a9f 100644 --- a/editions/tw5.com/tiddlers/system/TableOfContents.tid +++ b/editions/tw5.com/tiddlers/system/TableOfContents.tid @@ -1,8 +1,8 @@ caption: {{$:/language/SideBar/Contents/Caption}} created: 20140809114010378 -list: HelloThere Learning [[Working with TiddlyWiki]] [[Customise TiddlyWiki]] Features Languages Editions Plugins Platforms Reference Community About +list: HelloThere Learning [[Working with TiddlyWiki]] [[Customise TiddlyWiki]] Features Filters Languages Editions Plugins Platforms Reference Community About list-after: $:/core/ui/SideBar/Open -modified: 20150414070242411 +modified: 20230322150307580 tags: $:/tags/SideBar title: TableOfContents type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/system/doc-macros.tid b/editions/tw5.com/tiddlers/system/doc-macros.tid index e4a425f9a..5f83c75a8 100644 --- a/editions/tw5.com/tiddlers/system/doc-macros.tid +++ b/editions/tw5.com/tiddlers/system/doc-macros.tid @@ -1,81 +1,100 @@ created: 20150117152607000 -modified: 20230325141733992 +modified: 20240229155550000 tags: $:/tags/Macro title: $:/editions/tw5.com/doc-macros +code-body: yes type: text/vnd.tiddlywiki -\define .concat(1,2,3,4,5) $1$$2$$3$$4$$5$ +\whitespace trim -\define .def(_) <dfn class="doc-def">$_$</dfn> -\define .em(_) <em class="doc-em">$_$</em> -\define .strong(_) <strong class="doc-strong">$_$</strong> -\define .place(_) <code class="doc-place">$_$</code> -\define .word(_) "$_$" +\function .concat(1,2,3,4,5) [[$(1)$$(2)$$(3)$$(4)$$(5)$]substitute[]] +\function .word(_) [["]] [<_>] =[["]] +[join[]] -\define .preamble(_) :.doc-preamble $_$ -\define .note(_) -@@.doc-note -;Note -: $_$ -@@ +\procedure .def(_) <dfn class="doc-def"><<_>></dfn> +\procedure .em(_) <em class="doc-em"><<_>></em> +\procedure .strong(_) <strong class="doc-strong"><<_>></strong> +\procedure .place(_) <code class="doc-place"><<_>></code> +\procedure .preamble(_) <dl><dd class="doc-preamble"><<_>></dd></dl> + +\procedure .tid(_) <code class="doc-tiddler"><<_>></code> +\procedure .tag(_) <code class="doc-tag"><<_>></code> +\procedure .field(_) <code class="doc-field"><<_>></code> +\procedure .value(_) <code class="doc-value"><<_>></code> +\procedure .op(_) <code class="doc-operator"><<_>></code> +\procedure .var(_) <code class="doc-var"><<_>></code> +\procedure .wid(_) <code class="doc-widget"><$macrocall $name=".concat" 1="$" 2=<<_>>/></code> +\procedure .attr(_) <code class="doc-attr"><<_>></code> +\procedure .param(_) <code class="doc-param"><<_>></code> + +\procedure .tiddler-fields(tiddler) +<$tiddler tiddler=<<tiddler>>> + <div class="doc-tiddler-fields"> + <h2> + <$link> + <span class="tc-tiddler-title-icon">{{||$:/core/ui/TiddlerIcon}}</span><$text text=<<currentTiddler>>/> + </$link> + </h2> + <table class="tc-view-field-table"> + <tbody> + <$list filter="[all[current]fields[]sort[title]] -title" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/> + </tbody> + </table> + </div> +</$tiddler> \end -\define .tid(_) <code class="doc-tiddler">$_$</code> -\define .tag(_) <code class="doc-tag">$_$</code> -\define .field(_) <code class="doc-field">$_$</code> -\define .value(_) <code class="doc-value">$_$</code> -\define .op(_) <code class="doc-operator">$_$</code> -\define .var(_) <code class="doc-var">$_$</code> -\define .wid(_) <code class="doc-widget">$$_$</code> -\define .attr(_) <code class="doc-attr">$_$</code> -\define .param(_) <code class="doc-param">$_$</code> +\function .mtitle(_) [<_>] Macro +[join[ ]] +\function .otitle(_) [<_>] Operator +[join[ ]] +\function .vtitle(_) [<_>] Variable +[join[ ]] -\define .mtitle(_) $_$ Macro -\define .otitle(_) $_$ Operator -\define .vtitle(_) $_$ Variable +\procedure .link(_,to) <$link to=<<to>> ><<_>></$link> +\procedure .clink(_,to) <span class="doc-clink"><$link to=<<to>>><<_>></$link></span> -\define .link(_,to) <$link to="$to$">$_$</$link> -\define .clink(_,to) <span class="doc-clink"><<.link """$_$""" "$to$">></span> -\define .dlink(_,to) <$macrocall $name=".link" _=<<.def "$_$">> to="$to$">/> -\define .dlink-ex(_,to) <a href="$to$" class="tc-tiddlylink-external" target="_blank" rel="noopener noreferrer"><<.def "$_$">></a> -\define .flink(to) <$macrocall $name=".link" _=<<.field {{$to$!!caption}}>> to="$to$"/> -\define .mlink(_,to) <$macrocall $name=".link" _=<<.var "$_$">> to=<<.mtitle "$_$">>/> -\define .mlink2(_,to) <$macrocall $name=".link" _=<<.var "$_$">> to="$to$"/> -\define .olink(_) <$macrocall $name=".link" _=<<.op "$_$">> to=<<.otitle "$_$">>/> -\define .olink2(_,to) <$macrocall $name=".link" _=<<.op "$_$">> to=<<.otitle "$to$">>/> -\define .vlink(_,to) <$macrocall $name=".link" _=<<.var "$_$">> to=<<.vtitle "$_$">>/> -\define .vlink2(_,to) <$macrocall $name=".link" _=<<.var "$_$">> to="$to$"/> -\define .wlink(to) <$macrocall $name=".link" _=<<.wid {{$to$!!caption}}>> to="$to$"/> -\define .wlink2(_,to) <$macrocall $name=".link" _="$_$" to="$to$"/> +\procedure .dlink(_,to) <$link to=<<to>>><$macrocall $name=".def" _=<<_>>/></$link> -\define .key(_) <span class="doc-key">$_$</span> -\define .combokey(_) <$macrocall $name=".if" cond="$_$" then=<<.key '$_$'>>/> -\define .keycombo(1,2,3,4) <<.combokey "$1$">><<.if "$2$" +>><<.combokey "$2$">><<.if "$3$" +>><<.combokey "$3$">><<.if "$4$" +>><<.combokey "$4$">> +\procedure .dlink-ex(_,to) <a href=<<to>> class="tc-tiddlylink-external" target="_blank" rel="noopener noreferrer"><$macrocall $name=".def" _=<<_>>/></a> +\procedure .flink(to) <$macrocall $name=".link" _=`<<.field {{$(to)$!!caption}}>>` to=<<to>>/> -\define .tab(_) <span class="doc-tab">{{$_$!!caption}}</span> -\define .sidebar-tab(_) <<.tab "$:/core/ui/SideBar/$_$">> -\define .more-tab(_) <<.tab "$:/core/ui/MoreSideBar/$_$">> -\define .info-tab(_) <<.tab "$:/core/ui/TiddlerInfo/$_$">> -\define .controlpanel-tab(_) <<.tab "$:/core/ui/ControlPanel/$_$">> -\define .advancedsearch-tab(_) <<.tab "$:/core/ui/AdvancedSearch/$_$">> -\define .toc-tab() <<.tab "TableOfContents">> -\define .example-tab(_) <span class="doc-tab">$_$</span> +\procedure .mlink(_) <$link to={{{ [.mtitle<_>] }}}><$macrocall $name=".var" _=<<_>>/> </$link> +\procedure .mlink2(_,to) <$link to=<<to>>><$macrocall $name=".var" _=<<_>>/> </$link> -\define .doc-tabs() +\procedure .olink(_) <$link to={{{ [.otitle<_>] }}}><$macrocall $name=".op" _=<<_>>/> </$link> +\procedure .olink2(_,to) <$link to={{{ [.otitle<to>] }}}><$macrocall $name=".op" _=<<_>>/> </$link> + +\procedure .vlink(_) <$link to={{{ [.vtitle<_>] }}}><$macrocall $name=".var" _=<<_>>/> </$link> +\procedure .vlink2(_,to) <$link to=<<to>>><$macrocall $name=".var" _=<<_>>/></$link> + +\procedure .wlink(to) <$link to=<<to>> > <$macrocall $name=".wid" _={{{ [<to>get[caption]] }}}> </$link> +\procedure .wlink2(_,to) <$link to=<<to>> ><<_>></$link> + +\procedure .key(_) <span class="doc-key"><<_>></span> +\procedure .keys(_) <span class="doc-key"><<_>></span> + +\procedure .tab(_) <span class="doc-tab"><$transclude $tiddler=<<_>> $field=caption ><<_>></$transclude></span> +\procedure .sidebar-tab(_) <$macrocall $name=".tab" _=`$:/core/ui/SideBar/$(_)$`/> +\procedure .more-tab(_) <$macrocall $name=".tab" _=`$:/core/ui/MoreSideBar/$(_)$`/> +\procedure .info-tab(_) <$macrocall $name=".tab" _=`$:/core/ui/TiddlerInfo/$(_)$`/> +\procedure .controlpanel-tab(_) <$macrocall $name=".tab" _=`$:/core/ui/ControlPanel/$(_)$`/> +\procedure .advancedsearch-tab(_) <$macrocall $name=".tab" _=`$:/core/ui/AdvancedSearch/$(_)$`/> +\procedure .toc-tab() <$macrocall $name=".tab" _="TableOfContents"/> +\procedure .example-tab(_) <span class="doc-tab"><<_>></span> + +\procedure .doc-tabs() <$macrocall $name="tabs" - tabsList="[tag<currentTiddler>description[tab]]" - default={{{ [tag<currentTiddler>first[]] }}} - explicitState={{{ [<currentTiddler>addprefix[$:/state/tab/]] }}} - class={{{ [[doc-tabs]] [<currentTiddler>encodeuricomponent[]escapecss[]addprefix[doc-tabs-]] +[join[ ]] }}} /> + tabsList="[tag<currentTiddler>description[tab]]" + default={{{ [tag<currentTiddler>first[]] }}} + explicitState={{{ [<currentTiddler>addprefix[$:/state/tab/]] }}} + class={{{ [[doc-tabs]] [<currentTiddler>encodeuricomponent[]escapecss[]addprefix[doc-tabs-]] +[join[ ]] }}} /> \end -\define .doc-tab-link(text, target, tooltip:"", class:"") + +\procedure .doc-tab-link(text, target, tooltip:"", class:"") <!-- figure out where the addressed doc-tabs are --> <$tiddler tiddler={{{ [<currentTiddler>search:text[.doc-tabs]] :else[<currentTiddler>tags[]search:text[.doc-tabs]first[]] :else[<currentTiddler>] }}} > -<$button class={{{ [[tc-btn-invisible tc-tiddlylink]] [<__class__>] +[join[ ]] }}} - set={{{ [<currentTiddler>addprefix[$:/state/tab/]] }}} - setTo=<<__target__>> - tooltip=<<__tooltip__>>> - <<__text__>> +<$button class={{{ [[tc-btn-invisible tc-tiddlylink]] [<class>] +[join[ ]] }}} + set={{{ [<currentTiddler>addprefix[$:/state/tab/]] }}} + setTo=<<target>> + tooltip=<<tooltip>>> + <<text>> <!-- if tiddler with tabs is open, scroll to tabs, otherwise open that tiddler (relevant from within tab subtiddlers) --> <$list filter="[[$:/StoryList]contains<currentTiddler>]" variable="ignore" emptyMessage="<$action-navigate />"> <$action-sendmessage $message="tm-scroll" selector={{{ [<currentTiddler>encodeuricomponent[]addprefix[.doc-tabs-]] }}} /> @@ -84,136 +103,128 @@ type: text/vnd.tiddlywiki </$button> </$tiddler> \end -\define .widget-attr-link(text, target) + +\procedure .widget-attr-link(text, target) <$macrocall $name=".doc-tab-link" - text={{{ [[<code class="doc-attr">]] [<__text__>] [[</code>]] +[join[]] }}} - class="doc-tab-link" - target=<<__target__>> - tooltip={{{ [[Show more information about the ']] [<__text__>] [[' attribute]] +[join[]] }}} /> + text={{{ [[<code class="doc-attr">]] [<text>] [[</code>]] +[join[]] }}} + class="doc-tab-link" + target=<<target>> + tooltip={{{ [[Show more information about the ']] [<text>] [[' attribute]] +[join[]] }}} /> \end -\define .button(_) <span class="doc-button">{{$:/core/ui/Buttons/$_$!!caption}}</span> +\procedure .button(_) <span class="doc-button"><$transclude $tiddler=`$:/core/ui/Buttons/$(_)$` $field="caption" ><<_>></$transclude></span> -\define .icon(_) <span class="doc-icon">{{$_$}}</span> +\procedure .icon(_) <span class="doc-icon"><$transclude $tiddler=<<_>>/></span> -\define .tip(_) <div class="doc-icon-block"><div class="doc-block-icon">{{$:/core/images/tip}}</div> $_$</div> -\define .warning(_) <div class="doc-icon-block"><div class="doc-block-icon">{{$:/core/images/warning}}</div> $_$</div> +\procedure .infoBox(text:"", title, icon:"$:/core/images/info-button", class, iconSize:"1.4rem") +\function _f.tipClass() [[doc-icon-block]] [<class>!is[blank]then<class>] +[join[ ]] +<div class=<<_f.tipClass>>> + <%if [<title>!is[blank]] %><div>''<<title>>''</div><% endif %> + <div class="doc-block-icon"><$transclude $tiddler=<<icon>> size=<<iconSize>>/></div> + <<text>> +</div> +\end -\define .state-prefix() $:/state/editions/tw5.com/ +\procedure .note(_:"", title:"Note", icon:"$:/core/images/info-button", class:"doc-note", iconSize:"22pt") +<$macrocall $name=".infoBox" text=<<_>> title=<<title>> icon=<<icon>> class=<<class>> iconSize=<<iconSize>>/> +\end -\define .lorem() +\procedure .tip(_:"", title:"Tip" , icon:"$:/core/images/tip", class:"doc-tip", iconSize:"22pt") +<$macrocall $name=".infoBox" text=<<_>> title=<<title>> icon=<<icon>> class=<<class>> iconSize=<<iconSize>>/> +\end + +\procedure .warning(_:"", title:"Warning", icon:"$:/core/images/warning", class:"doc-warning", iconSize:"22pt") +<$macrocall $name=".infoBox" text=<<_>> title=<<title>> icon=<<icon>> class=<<class>> iconSize=<<iconSize>>/> +\end + +\procedure .state-prefix() $:/state/editions/tw5.com/ + +\procedure .lorem() Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \end -\define .toc-lorem() +\procedure .toc-lorem() This is an example tiddler. See [[Table-of-Contents Macros (Examples)]]. <<.lorem>> \end -\define .example(n,eg,egvar:NO-SUCH-VAR) +\procedure .example(n,eg,egvar) +<$let eg={{{ [<egvar>!is[blank]getvariable[]] :else[<eg>] }}}> <div class="doc-example"> -<$reveal default="$egvar$" type="match" text="NO-SUCH-VAR"> - <$macrocall $name="copy-to-clipboard-above-right" src="""$eg$"""/> - <$codeblock code="""$eg$"""/> -</$reveal> -<$reveal default="$egvar$" type="nomatch" text="NO-SUCH-VAR"> - <!-- allow an example to contain """ --> - <$macrocall $name="copy-to-clipboard-above-right" src=<<$egvar$>>/> - <$codeblock code=<<$egvar$>>/> -</$reveal> -<$list filter="[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix[$n$]]" variable=".state"> -<$reveal state=<<.state>> type="nomatch" text="show"> - <dl> - <dd><$button set=<<.state>> setTo="show">Try it</$button></dd> - </dl> -</$reveal> -<$reveal state=<<.state>> type="match" text="show"> - <dl> - <dd><$button set=<<.state>> setTo="">Hide</$button></dd> - </dl> - <blockquote class="doc-example-result"> - <$reveal default="$egvar$" type="match" text="NO-SUCH-VAR"> - -$$$text/vnd.tiddlywiki -$eg$ -$$$ - - </$reveal> - <$reveal default="$egvar$" type="nomatch" text="NO-SUCH-VAR"> - <<$egvar$>> - </$reveal> - </blockquote> -</$reveal> -</$list> + <$macrocall $name="copy-to-clipboard-above-right" src=<<eg>>/> + <$codeblock code=<<eg>>/> + <$list filter=`[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix[$(n)$]]` variable=".state"> + <$reveal state=<<.state>> type="nomatch" text="show"> + <dl> + <dd><$button set=<<.state>> setTo="show">Try it</$button></dd> + </dl> + </$reveal> + <$reveal state=<<.state>> type="match" text="show"> + <dl> + <dd><$button set=<<.state>> setTo="">Hide</$button></dd> + </dl> + <blockquote class="doc-example-result"> + <<eg>> + </blockquote> + </$reveal> + </$list> +</div> +</$let> \end -\define .bad-example(eg) +\procedure .bad-example(eg) <table class="doc-bad-example"> -<tbody> -<tr class="evenRow"> -<td><span style="font-size:1.5em;">⚠</span> Warning:<br> Don't do it this way!</td> -<td> - -$eg$ -</td> -</tr> -</tbody> + <tbody> + <tr class="evenRow"> + <td> + <span class="tc-small-gap-right" style="font-size:1.5em;">⚠</span> + Warning:<br> Don't do it this way! + </td> + <td> + <$transclude $variable="eg" $mode="block"/> + </td> + </tr> + </tbody> </table> \end -\define .link-badge(text,link,colour) -<a href=<<__link__>> class="doc-link-badge" style="background-color:$colour$;" target="_blank" rel="noopener noreferrer"><$text text=<<__text__>>/></a> +\procedure .link-badge(text,link,colour) +<a href=<<link>> class="doc-link-badge" style.background-color=<<colour>> target="_blank" rel="noopener noreferrer"> + <$text text=<<text>>/> +</a> \end +<!-- TODO use $:/palette colour settings --> +\procedure .link-badge-added(link,colour:#ffe246) <$macrocall $name=".link-badge" text="added" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-addendum(link,colour:#fcc84a) <$macrocall $name=".link-badge" text="addendum" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-extended(link,colour:#f9a344) <$macrocall $name=".link-badge" text="extended" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-fixed(link,colour:#ffa86d) <$macrocall $name=".link-badge" text="fixed" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-here(link,colour:#d88e63) <$macrocall $name=".link-badge" text="here" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-hide(link,colour:#9d959f) <$macrocall $name=".link-badge" text="hide" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-improved(link,colour:#7593c7) <$macrocall $name=".link-badge" text="improved" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-modified(link,colour:#7f99c9) <$macrocall $name=".link-badge" text="modified" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-removed(link,colour:#a9aabc) <$macrocall $name=".link-badge" text="removed" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-renamed(link,colour:#b4b995) <$macrocall $name=".link-badge" text="renamed" link=<<link>> colour=<<colour>>/> +\procedure .link-badge-updated(link,colour:#91ba66) <$macrocall $name=".link-badge" text="updated" link=<<link>> colour=<<colour>>/> -\define .link-badge-added(link,colour:#ffe246) <<.link-badge "added" """$link$""" """$colour$""">> -\define .link-badge-addendum(link,colour:#fcc84a) <<.link-badge "addendum" """$link$""" """$colour$""">> -\define .link-badge-extended(link,colour:#f9a344) <<.link-badge "extended" """$link$""" """$colour$""">> -\define .link-badge-fixed(link,colour:#ffa86d) <<.link-badge "fixed" """$link$""" """$colour$""">> -\define .link-badge-here(link,colour:#d88e63) <<.link-badge "here" """$link$""" """$colour$""">> -\define .link-badge-hide(link,colour:#9d959f) <<.link-badge "hide" """$link$""" """$colour$""">> -\define .link-badge-improved(link,colour:#7593c7) <<.link-badge "improved" """$link$""" """$colour$""">> -\define .link-badge-modified(link,colour:#7f99c9) <<.link-badge "modified" """$link$""" """$colour$""">> -\define .link-badge-removed(link,colour:#a9aabc) <<.link-badge "removed" """$link$""" """$colour$""">> -\define .link-badge-renamed(link,colour:#b4b995) <<.link-badge "renamed" """$link$""" """$colour$""">> -\define .link-badge-updated(link,colour:#91ba66) <<.link-badge "updated" """$link$""" """$colour$""">> - -\define .tiddler-fields(tiddler) -<$tiddler tiddler=<<__tiddler__>>> -<div class="doc-tiddler-fields"> -<h2> -<$link> -<span class="tc-tiddler-title-icon">{{||$:/core/ui/TiddlerIcon}}</span><$text text=<<currentTiddler>>/> -</$link> -</h2> -<table class="tc-view-field-table"> -<tbody> -<$list filter="[all[current]fields[]sort[title]] -title" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/> -</tbody> -</table> -</div> -</$tiddler> +\procedure .banner-credits(credit,url) +<img src=<<url>> width="140" style="float:left;margin-right:0.5em;"/> +<<credit>> +<div style="clear:both;"/> \end -\define .banner-credits(credit,url) -<img src=<<__url__>> width="140" style="float:left;margin-right:0.5em;"/> - -$credit$ - -<div style="clear:both;"> - -</div> -\end - -\define .contributors(usernames) +\procedure .contributors(usernames) <ol class="doc-github-contributors"> -<$list filter="[enlist<__usernames__>sort[]]" variable="username"> -<li> -<a href={{{ [[https://github.com/]addsuffix<username>] }}} class="tc-tiddlylink-external" target="_blank" rel="noopener noreferrer"><img src={{{ [[https://github.com/]addsuffix<username>addsuffix[.png?size=64]] }}} width="64" height="64"/><span class="doc-github-contributor-username">@<$text text=<<username>>/></span></a> -</li> -</$list> + <$list filter="[enlist<usernames>sort[]]" variable="username"> + <li> + <a href={{{ [[https://github.com/]addsuffix<username>] }}} class="tc-tiddlylink-external" target="_blank" rel="noopener noreferrer"> + <img src={{{ [[https://github.com/]addsuffix<username>addsuffix[.png?size=64]] }}} width="64" height="64"/> + <span class="doc-github-contributor-username"> + @<$text text=<<username>>/> + </span> + </a> + </li> + </$list> </ol> \end - -<pre><$view field="text"/></pre> diff --git a/editions/tw5.com/tiddlers/system/doc-styles.tid b/editions/tw5.com/tiddlers/system/doc-styles.tid index 9ae22868f..2bd2f9ed3 100644 --- a/editions/tw5.com/tiddlers/system/doc-styles.tid +++ b/editions/tw5.com/tiddlers/system/doc-styles.tid @@ -1,5 +1,6 @@ +code-body: yes created: 20150117152612000 -modified: 20230325101137075 +modified: 20240223123123497 tags: $:/tags/Stylesheet title: $:/editions/tw5.com/doc-styles type: text/vnd.tiddlywiki @@ -31,6 +32,7 @@ type: text/vnd.tiddlywiki color: <<color very-muted-foreground>>; font-style: normal; font-weight: bold; + padding: 0; } .doc-button, @@ -85,7 +87,6 @@ td svg { .doc-preamble { border: 2px solid <<colour code-border>>; color: <<colour very-muted-foreground>>; - font-size: 90%; margin-left: 0; padding: 0.5em 0.7em; } @@ -112,7 +113,7 @@ td svg { } .doc-example input[type=search] { - width: 95%; + width: 95%; } .doc-example pre:first-child { margin-top: 0; @@ -138,7 +139,7 @@ td svg { } .doc-bad-example code, .doc-bad-example pre, table.doc-bad-example { - background-color:#ffff80; + background-color:#ffff80; } .doc-table th, .doc-table tr { @@ -164,35 +165,58 @@ tr.doc-table-subheading { } .doc-icon-block { - border-left: 2px solid <<colour code-border>>; - margin-left: 3em; + border-left: 4px solid <<colour blockquote-bar>>; + margin: 15px 0 15px 3em; padding-left: 0.6em; position: relative; } + .doc-block-icon { position: absolute; left: -3em; top: 0.2em; } + +.doc-icon-block.doc-note { + border-left: 4px solid <<colour blockquote-bar>>; + background: <<colour blockquote-bar>>11; +} + +.doc-icon-block.doc-tip { + border-left: 4px solid <<colour primary>>; + background: <<colour primary>>11; +} + +.doc-icon-block.doc-warning { + border-left: 4px solid <<colour alert-highlight>>; + background: <<colour alert-highlight>>11; +} + .doc-block-icon .tc-image-tip { fill: <<colour primary>>; } + .doc-block-icon .tc-image-warning { fill: <<colour alert-highlight>>; } -a.doc-from-version.tc-tiddlylink { - display: inline-block; - border-radius: 1em; - background: <<colour muted-foreground>>; - color: <<colour background>>; - fill: <<colour background>>; - padding: 0 0.4em; - font-size: 0.7em; - text-transform: uppercase; +a.doc-from-version { + background-color: <<colour muted-foreground>>; + color: <$wikify name="background" text="<<colour muted-foreground>>" mode="inline"><$transclude $variable="contrastcolour" target=<<background>> colourA="#000000" colourB="#ffffff" /></$wikify>; + padding: 3px; + border-radius: 4px; font-weight: bold; - line-height: 1.5; - vertical-align: text-bottom; + font-size: 0.75em; +} + +a.doc-from-version.doc-from-version-new { + background-color: <<colour highlight-background>>; + color: <<colour highlight-foreground>>; +} + +a.doc-from-version svg { + fill: currentColor; + vertical-align: sub; } a.doc-deprecated-version.tc-tiddlylink { @@ -241,7 +265,6 @@ a.doc-deprecated-version.tc-tiddlylink { height: 1em; } - .doc-tiddler-fields table, .doc-tiddler-fields h2 { margin: 0.5em 0; @@ -294,13 +317,13 @@ ol.doc-github-contributors li { color: #666; } .doc-tabs.tc-tab-buttons button { - font-size: 1rem; - padding: 0.5em; + font-size: 1rem; + padding: 0.5em; } .doc-tabs button .doc-attr { - background-color: unset; - color: #666; + background-color: unset; + color: #666; } .doc-tab-link .doc-attr { - color: unset; + color: unset; } diff --git a/editions/tw5.com/tiddlers/system/download-empty.tid b/editions/tw5.com/tiddlers/system/download-empty.tid index 055fa2022..f49b9b794 100644 --- a/editions/tw5.com/tiddlers/system/download-empty.tid +++ b/editions/tw5.com/tiddlers/system/download-empty.tid @@ -1,10 +1,10 @@ title: $:/editions/tw5.com/download-empty code-body: yes -\define saveTiddlerFilter() +\procedure saveTiddlerFilter() [[$:/core]] [[$:/isEncrypted]] [[$:/themes/tiddlywiki/snowwhite]] [[$:/themes/tiddlywiki/vanilla]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] \end -\define savingEmpty() -yes -\end + +\procedure savingEmpty() yes + {{$:/core/templates/tiddlywiki5.html}} diff --git a/editions/tw5.com/tiddlers/system/filter-run-template.tid b/editions/tw5.com/tiddlers/system/filter-run-template.tid new file mode 100644 index 000000000..73b4a2510 --- /dev/null +++ b/editions/tw5.com/tiddlers/system/filter-run-template.tid @@ -0,0 +1,50 @@ +code-body: yes +created: 20230316112235083 +list-before: $:/core/ui/ViewTemplate/body +modified: 20240229161432000 +tags: $:/tags/ViewTemplate +title: $:/editions/tw5.com/filter-run-template +type: text/vnd.tiddlywiki + +\whitespace trim + +\procedure .op-place() +<% if [<op-name>!is[blank]] %> + <$macrocall $name=".place" _=<<op-name>> /><span class="tc-tiny-gap">=</span> +<% endif %> +\end + +\procedure .op-row() +<% if [<op-body>!is[blank]] %> + <tr> + <th align="left"><<op-head>></th> + <td><<.op-place>><<op-body>></td> + </tr> +<% endif %> +\end + +<$list filter="[all[current]tag[Named Filter Run Prefix]]"> + <$let op-head="" op-body="" op-name=""> + <table class="doc-table"> + <!-- purpose --> + <$let op-head="purpose" op-body={{!!rp-purpose}}> + <<.op-row>> + </$let> + <!-- input --> + <$let op-head="[[input|Filter Expression]]" op-body={{!!rp-input}}> + <<.op-row>> + </$let> + <!-- suffix --> + <$let op-head="[[suffix|Filter Run Prefix]]" op-body={{!!rp-suffix}} op-name={{!!rp-suffix-name}}> + <<.op-row>> + </$let> + <!-- output --> + <$let op-head="output" op-body={{!!rp-output}}> + <<.op-row>> + </$let> + </table> + <$list filter="[all[current]has[from-version]]" variable="listItem"> + <$macrocall $name=".from-version" version={{!!from-version}}/> + </$list> + </$let> +</$list> diff --git a/editions/tw5.com/tiddlers/system/operator-macros.tid b/editions/tw5.com/tiddlers/system/operator-macros.tid index afa0593b1..2b19d56db 100644 --- a/editions/tw5.com/tiddlers/system/operator-macros.tid +++ b/editions/tw5.com/tiddlers/system/operator-macros.tid @@ -1,52 +1,66 @@ created: 20150117152607000 -modified: 20230617183916622 +modified: 20240229132501000 tags: $:/tags/Macro +code-body: yes title: $:/editions/tw5.com/operator-macros -\define .operator-examples(op,text:"Examples") <$link to="$op$ Operator (Examples)">$text$</$link> + +\whitespace trim + +\procedure .operator-examples(op,text:"Examples") <$link to=`$(op)$ Operator (Examples)`><<text>></$link> \procedure .operator-example-tryit-actions() <$action-setfield $tiddler=<<.state>> text="show" filter=<<eg>>/> + \procedure .operator-example(n,eg,ie) <div class="doc-example"> -<$list filter="[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix<n>]" variable=".state"> -<$reveal state=<<.state>> type="nomatch" text="show"> - <code><$text text=<<eg>>/></code> - <$macrocall $name=".if" cond=<<ie>> then={{{[[<dd>→ ]addsuffix<ie>addsuffix[</dd>]]}}}/> - <dl> - <dd><$button actions=<<.operator-example-tryit-actions>>>Try it</$button></dd> - </dl> -</$reveal> -<$reveal state=<<.state>> type="match" text="show"> - <$edit-text tiddler=<<.state>> field="filter" tag="input" type=search focus="true"/> - <dl> - <dd> - <$button set=<<.state>> setTo="">Hide</$button> - <$reveal stateTitle=<<.state>> stateField="filter" type="nomatch" text=<<eg>>> - <$button actions=<<.operator-example-tryit-actions>>>Reset</$button> - </$reveal> - </dd> - </dl> - <blockquote class="doc-example-result"> - <ul><$list filter={{{[<.state>get[filter]]}}} emptyMessage="(empty)"> - <li><$link><$view field="title"/></$link></li> - </$list></ul> - </blockquote> -</$reveal> -</$list> + <$list filter="[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix<n>]" variable=".state"> + <$reveal state=<<.state>> type="nomatch" text="show"> + <code><$text text=<<eg>>/></code> + <% if [<ie>!is[blank]] %> + <dd>→ <<ie>></dd> + <% endif %> + <dl> + <dd><$button actions=<<.operator-example-tryit-actions>>>Try it</$button></dd> + </dl> + </$reveal> + <$reveal state=<<.state>> type="match" text="show"> + <$edit-text tiddler=<<.state>> field="filter" tag="input" type=search focus="true"/> + <dl> + <dd> + <$button set=<<.state>> setTo="">Hide</$button> + <$reveal stateTitle=<<.state>> stateField="filter" type="nomatch" text=<<eg>>> + <$button actions=<<.operator-example-tryit-actions>>>Reset</$button> + </$reveal> + </dd> + </dl> + <blockquote class="doc-example-result"> + <ul> + <$list filter={{{[<.state>get[filter]]}}} emptyMessage="(empty)"> + <li><$link><$view field="title"/></$link></li> + </$list> + </ul> + </blockquote> + </$reveal> + </$list> +</div> \end -\define .inline-operator-example(eg) -<code><$text text=<<__eg__>>/></code> evaluates to <$list filter=<<__eg__>> emptyMessage="(empty)"> <code><$text text=<<currentTiddler>>/></code> </$list> +\procedure .inline-operator-example(eg) +<code> + <$text text=<<eg>>/> +</code> +<span class="tc-tiny-gap">evaluates to</span> +<$list filter=<<eg>> emptyMessage="(empty)"> + <code class="tc-tiny-gap-left"><$text text=<<currentTiddler>>/></code> +</$list> \end \define .this-is-operator-example() This example tiddler is used to illustrate some of the [[Filter Operators]]. \define .using-days-of-week() These examples make use of the [[Days of the Week]] tiddler. \define .s-matching-is-case-sensitive() In looking for matches for <<.place S>>, capital and lowercase letters are treated as different. -\define .node-only-operator() +\procedure .node-only-operator() <$macrocall $name=".note" _="This operator is <<.em not>> available when ~TiddlyWiki is running in a web browser."/> \end - -<pre><$view field="text"/></pre> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/system/operator-template.tid b/editions/tw5.com/tiddlers/system/operator-template.tid index 4d7abc334..f4f3e08ef 100644 --- a/editions/tw5.com/tiddlers/system/operator-template.tid +++ b/editions/tw5.com/tiddlers/system/operator-template.tid @@ -1,83 +1,64 @@ created: 20150203173506000 +modified: 20240229155612000 list-before: $:/core/ui/ViewTemplate/body -modified: 20230602181119360 tags: $:/tags/ViewTemplate +code-body: yes title: $:/editions/tw5.com/operator-template -\define .op-place() -<$macrocall $name=".if" - cond="""$(op-name)$""" - then="<<.place '$(op-name)$'>> = " - else=""/> +\whitespace trim + +\procedure .op-place() +<% if [<op-name>!is[blank]] %> + <$macrocall $name=".place" _=<<op-name>> /><span class="tc-tiny-gap">=</span> +<% endif %> \end -\define .op-row() -<$macrocall $name=".if" - cond="""$(op-body)$""" - then="""<tr><th align="left">$(op-head)$</th><td><<.op-place>>$(op-body)$</td></tr>""" - else=""/> +\procedure .op-row() +<% if [<op-body>!is[blank]] %> + <tr> + <th align="left"><<op-head>></th><td><<.op-place>><<op-body>></td> + </tr> +<% endif %> \end -<$set name="op-head" value=""> -<$set name="op-body" value=""> -<$set name="op-name" value=""> <$list filter="[all[current]tag[Filter Operators]]"> -<table class="doc-table before-tiddler-body"> -<!-- --> -<$set name="op-head" value="purpose"> -<$set name="op-body" value={{!!op-purpose}}> -<<.op-row>> -</$set> -</$set> -<!-- --> -<$set name="op-head" value="[[input|Filter Syntax]]"> -<$set name="op-body" value={{!!op-input}}> -<<.op-row>> -</$set> -</$set> -<!-- --> -<$set name="op-head" value="`!` input"> -<$set name="op-body" value={{!!op-neg-input}}> -<<.op-row>> -</$set> -</$set> -<!-- --> -<$set name="op-head" value="[[suffix|Filter Step]]"> -<$set name="op-body" value={{!!op-suffix}}> -<$set name="op-name" value={{!!op-suffix-name}}> -<<.op-row>> -</$set> -</$set> -</$set> -<!-- --> -<$set name="op-head" value="[[parameter|Filter Parameter]]"> -<$set name="op-body" value={{!!op-parameter}}> -<$set name="op-name" value={{!!op-parameter-name}}> -<<.op-row>> -</$set> -</$set> -</$set> -<!-- --> -<$set name="op-head" value="output"> -<$set name="op-body" value={{!!op-output}}> -<<.op-row>> -</$set> -</$set> -<!-- --> -<$set name="op-head" value="`!` output"> -<$set name="op-body" value={{!!op-neg-output}}> -<<.op-row>> -</$set> -</$set> -<!-- --> -</table> + <$let op-head="" op-body="" op-name=""> + <table class="doc-table before-tiddler-body"> + <!-- purpose --> + <$let op-head="purpose" op-body={{!!op-purpose}}> + <<.op-row>> + </$let> + <!-- input --> + <$let op-head="[[input|Filter Syntax]]" op-body={{!!op-input}}> + <<.op-row>> + </$let> + <!-- input negated --> + <$let op-head="`!` input" op-body={{!!op-neg-input}}> + <<.op-row>> + </$let> + <!-- suffix --> + <$let op-head="[[suffix|Filter Step]]" op-body={{!!op-suffix}} op-name={{!!op-suffix-name}}> + <<.op-row>> + </$let> + <!-- parameter --> + <$let op-head="[[parameter|Filter Parameter]]" op-body={{!!op-parameter}} op-name={{!!op-parameter-name}}> + <<.op-row>> + </$let> + <!-- output --> + <$let op-head="output" op-body={{!!op-output}}> + <<.op-row>> + </$let> + <!-- output negated --> + <$let op-head="`!` output" op-body={{!!op-neg-output}}> + <<.op-row>> + </$let> + </table> + <p> + [[Learn more about how to use Filters|Filters]] + </p> -<p>[[Learn more about how to use Filters|Filters]]</p> - -<$list filter="[all[current]has[from-version]]" variable="listItem"> -<p><$macrocall $name=".from-version" version={{!!from-version}}/></p> + <$list filter="[all[current]has[from-version]]" variable="listItem"> + <$macrocall $name=".from-version" version={{!!from-version}}/> + </$list> + </$let> </$list> -</$list> -</$set> -</$set> -</$set> diff --git a/editions/tw5.com/tiddlers/system/variable-macros.tid b/editions/tw5.com/tiddlers/system/variable-macros.tid index 313f065af..2abc5d083 100644 --- a/editions/tw5.com/tiddlers/system/variable-macros.tid +++ b/editions/tw5.com/tiddlers/system/variable-macros.tid @@ -1,21 +1,26 @@ created: 20150228114241000 modified: 20220227210136243 tags: $:/tags/Macro +code-body: yes title: $:/editions/tw5.com/variable-macros -\define .variable-examples(v,text:"Examples") <$link to="$v$ Variable (Examples)">$text$</$link> -\define .macro-examples(m,text:"Examples") <$link to="$m$ Macro (Examples)">$text$</$link> -\define .widget-examples(w,text:"Examples") <$link to="$w$ Widget (Examples)">$text$</$link> +\procedure .variable-examples(v,text:"Examples") <$link to=`$(v)$ Variable (Examples)`><<text>></$link> +\procedure .macro-examples(m,text:"Examples") <$link to=`$(m)$ Macro (Examples)`><<text>></$link> +\procedure .widget-examples(w,text:"Examples") <$link to=`$(w)$ Widget (Examples)`><<text>></$link> -\define .js-macro-link(_) [[$_$|https://tiddlywiki.com/dev/index.html#JavaScript%20Macros]] - -\define .this-is-static-link-variable() <<.tip "This variable has no useful effect when ~TiddlyWiki is running in a browser, as the `href` attribute is ignored there -- links between tiddlers are performed by JavaScript instead. The variable comes into play when one is using the [[Node.js configuration|TiddlyWiki on Node.js]] to [[generate a static version|RenderTiddlersCommand]] of a wiki.">> - -\define .this-is-toolbar-config-variable(configTiddler) - -It can be set to <<.value yes>> or <<.value no>> prior to transcluding such a button. - -The standard page template sets it to the value found in [[$configTiddler$]], with the result that this becomes the default for the whole page. The user can adjust this default by using a tickbox on the <<.controlpanel-tab Settings>> tab of the [[Control Panel|$:/ControlPanel]]. +\procedure .js-macro-link(_) +<a href="https://tiddlywiki.com/dev/index.html#JavaScript%20Macros" + class="tc-tiddlylink-external" + target="_blank" + rel="noopener noreferrer" +><$text text=<<_>>/></a> \end -<pre><$view field="text"/></pre> \ No newline at end of file +\procedure .this-is-static-link-variable() <<.note "This variable has no useful effect when ~TiddlyWiki is running in a browser, as the `href` attribute is ignored there -- links between tiddlers are performed by JavaScript instead. The variable comes into play when one is using the [[Node.js configuration|TiddlyWiki on Node.js]] to [[generate a static version|RenderTiddlersCommand]] of a wiki.">> + +\procedure .this-is-toolbar-config-variable(configTiddler) +\whitespace notrim +It can be set to <<.value yes>> or <<.value no>> prior to transcluding such a button. + +The standard page template sets it to the value found in <$link to=<<configTiddler>>><<configTiddler>></$link>, with the result that this becomes the default for the whole page. The user can adjust this default by using a tickbox on the <<.controlpanel-tab Settings>> tab of the [[Control Panel|$:/ControlPanel]]. +\end diff --git a/editions/tw5.com/tiddlers/system/version-macros.tid b/editions/tw5.com/tiddlers/system/version-macros.tid index 0fb7dcf12..55ef03687 100644 --- a/editions/tw5.com/tiddlers/system/version-macros.tid +++ b/editions/tw5.com/tiddlers/system/version-macros.tid @@ -1,14 +1,38 @@ code-body: yes created: 20161008085627406 -modified: 20221007122259593 +modified: 20240229155633000 tags: $:/tags/Macro title: $:/editions/tw5.com/version-macros type: text/vnd.tiddlywiki -\define .from-version(version) -<$link to={{{ [<__version__>addprefix[Release ]] }}} class="doc-from-version">{{$:/core/images/warning}} New in: <$text text=<<__version__>>/></$link> +\whitespace trim + +\function tf.from-version-reference() 5.3.0 + +\procedure .from-version-template(class, text) +<$link to={{{ [<version>addprefix[Release ]] }}} class=<<class>> > + <span class="tc-tiny-gap-right"> + {{$:/core/images/info-button}} + </span> + <<text>><<version>> +</$link> \end -\define .deprecated-since(version, superseded:"TODO-Link") -<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Deprecated since: <$text text=<<__version__>>/></$link> (see <$link to=<<__superseded__>>><$text text=<<__superseded__>>/></$link>) +\procedure .from-version(version) +<% if [<version>compare:version:gteq<tf.from-version-reference>] %> + <<.from-version-template "doc-from-version doc-from-version-new" "New in v">> +<% else %> + <<.from-version-template "doc-from-version" "Introduced in v">> +<% endif %> +\end + +\procedure .deprecated-since(version, superseded:"TODO-Link") +<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible"> + {{$:/core/images/warning}} + <span class="tc-tiny-gap">Deprecated since:</span> + <$text text=<<version>>/> +</$link> +<span class="tc-tiny-gap-left"> + (see <$link class="tc-tiny-gap-left" to=<<superseded>>><$text text=<<superseded>>/></$link>) +</span> \end diff --git a/editions/tw5.com/tiddlers/variables/Variables.tid b/editions/tw5.com/tiddlers/variables/Variables.tid index 65ad96b31..116f3c9a0 100644 --- a/editions/tw5.com/tiddlers/variables/Variables.tid +++ b/editions/tw5.com/tiddlers/variables/Variables.tid @@ -6,11 +6,12 @@ type: text/vnd.tiddlywiki !! Introduction -A <<.def variable>> is a snippet of text that can be accessed by name. The text is referred to as the variable's <<.def value>>. +* A <<.def variable>> is a ''snippet of text'' that can be accessed by name. +* The text is referred to as the variable's <<.def value>>. -Variables are defined by [[widgets|Widgets]]. Several core widgets define variables, the most common being the <<.wlink SetWidget>>, <<.wlink LetWidget>> and <<.wlink ListWidget>> widgets. +Variables are defined by [[widgets|Widgets]]. Several core widgets define variables, the most common being the <<.wlink LetWidget>>, <<.wlink SetWidget>> and <<.wlink ListWidget>> widgets. -The values of variables are available to descendant widgets, including transcluded content. For example, within each tiddler in the main story river the variable "currentTiddler" is set to the title of the tiddler. +The values of variables are available to descendant widgets, including transcluded content. For example, within each tiddler in the main story river the variable <<.var currentTiddler>> is set to the title of the tiddler. Variables can also be overwritten by descendent widgets defining variables of the same name, thus binding a different snippet to that name for the scope of the children of the widget. diff --git a/editions/tw5.com/tiddlers/variables/examples/tv-get-export-image-link.tid b/editions/tw5.com/tiddlers/variables/examples/tv-get-export-image-link.tid index 36e151b44..2cafd8f08 100644 --- a/editions/tw5.com/tiddlers/variables/examples/tv-get-export-image-link.tid +++ b/editions/tw5.com/tiddlers/variables/examples/tv-get-export-image-link.tid @@ -1,11 +1,17 @@ created: 20150228124038000 +modified: 20240310134432122 tags: [[tv-get-export-image-link Variable]] [[Variable Examples]] title: tv-get-export-image-link Variable (Examples) type: text/vnd.tiddlywiki -This example fetches [[the TiddlyWiki icon|https://www.tiddlywiki.com/favicon.ico]]: +This example fetches [[the TiddlyWiki icon|https://www.tiddlywiki.com/favicon.ico]] <$importvariables filter="$:/editions/tw5.com/macro-examples/tv-get-export-image-link"> <$codeblock code={{$:/editions/tw5.com/macro-examples/tv-get-export-image-link}}/> <$macrocall $name=".example" n="1" eg="""[img[favicon.ico]]"""/> </$importvariables> + +Also see: + +* [[substitute Operator]] +* [[Substituted Attribute Values]] diff --git a/editions/tw5.com/tiddlers/variables/tv-filter-export-link Variable.tid b/editions/tw5.com/tiddlers/variables/tv-filter-export-link Variable.tid index f9800b43f..7f3f06c4d 100644 --- a/editions/tw5.com/tiddlers/variables/tv-filter-export-link Variable.tid +++ b/editions/tw5.com/tiddlers/variables/tv-filter-export-link Variable.tid @@ -7,8 +7,6 @@ type: text/vnd.tiddlywiki <<.from-version "5.1.15">> The <<.def tv-filter-export-link>> [[variable|Variables]] controls the value of the `href` attribute on the HTML `a` element generated by the <<.wlink LinkWidget>> widget. If defined, it takes precedence over the [[tv-wikilink-template Variable]]. -<<.this-is-static-link-variable>> - The variable is treated as a filter that is given the target tiddler title as input. The filter is evaluated and the first result is used as the `href` attribute. For example: @@ -18,3 +16,5 @@ For example: ``` See also the <<.vlink tv-get-export-link>> variable, which dominates over this one. + +<<.this-is-static-link-variable>> diff --git a/editions/tw5.com/tiddlers/variables/tv-get-export-image-link.tid b/editions/tw5.com/tiddlers/variables/tv-get-export-image-link.tid index 84837b907..cb7f38e47 100644 --- a/editions/tw5.com/tiddlers/variables/tv-get-export-image-link.tid +++ b/editions/tw5.com/tiddlers/variables/tv-get-export-image-link.tid @@ -1,13 +1,13 @@ -created: 20150228122257000 -modified: 20150228130940000 -title: tv-get-export-image-link Variable -tags: Variables [[Core Variables]] [[Configuration Variables]] -type: text/vnd.tiddlywiki caption: tv-get-export-image-link +created: 20150228122257000 +modified: 20240310133708578 +tags: Variables [[Core Variables]] [[Configuration Variables]] +title: tv-get-export-image-link Variable +type: text/vnd.tiddlywiki The <<.def tv-get-export-image-link>> [[variable|Variables]] controls the value of the `src` attribute on the HTML `img` element generated by the <<.wlink ImageWidget>> widget when the value of its `source` attribute is not the title of a tiddler. -The variable should be a [[macro|Macros]] with the following parameter: +The variable should be a [[function|Functions]] with the following parameter: ;src : The value of the `source` attribute -- equivalent to the image name specified in <$link to="Images in WikiText">the shorthand syntax</$link> `[img[source]]` diff --git a/editions/tw5.com/tiddlers/variables/tv-get-export-link.tid b/editions/tw5.com/tiddlers/variables/tv-get-export-link.tid index 890cf265c..d632aab18 100644 --- a/editions/tw5.com/tiddlers/variables/tv-get-export-link.tid +++ b/editions/tw5.com/tiddlers/variables/tv-get-export-link.tid @@ -1,17 +1,17 @@ +caption: tv-get-export-link created: 20150228114004000 modified: 20150228130943000 -title: tv-get-export-link Variable tags: Variables [[Core Variables]] [[Configuration Variables]] +title: tv-get-export-link Variable type: text/vnd.tiddlywiki -caption: tv-get-export-link The <<.def tv-get-export-link>> [[variable|Variables]] controls the value of the `href` attribute on the HTML `a` element generated by the <<.wlink LinkWidget>> widget. -<<.this-is-static-link-variable>> - The variable should be a [[macro|Macros]] with the following parameter: ;to : The title of the target tiddler of the link, with no escaping See also <<.vlink tv-wikilink-template>>. If both that variable and this one exist, this one dominates. + +<<.this-is-static-link-variable>> diff --git a/editions/tw5.com/tiddlers/variables/tv-wikilink-template.tid b/editions/tw5.com/tiddlers/variables/tv-wikilink-template.tid index 6fdac1410..acb005eec 100644 --- a/editions/tw5.com/tiddlers/variables/tv-wikilink-template.tid +++ b/editions/tw5.com/tiddlers/variables/tv-wikilink-template.tid @@ -7,8 +7,6 @@ type: text/vnd.tiddlywiki The <<.def tv-wikilink-template>> [[variable|Variables]] controls the value of the `href` attribute on the HTML `a` element generated by the <<.wlink LinkWidget>> widget. The <<.vlink tv-filter-export-link>>, if defined, it takes precedence over the <<.vlink tv-wikilink-template>> variable. -<<.this-is-static-link-variable>> - The variable is treated as if it was a [[macro|Macros]] with the following parameters: ;uri_encoded @@ -21,3 +19,5 @@ The variable is treated as if it was a [[macro|Macros]] with the following param The variable defaults to `#$uri_encoded$`. See also the <<.vlink tv-get-export-link>> variable, which dominates over this one. + +<<.this-is-static-link-variable>> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/widgets/ImageWidget.tid b/editions/tw5.com/tiddlers/widgets/ImageWidget.tid index 0f4bd9012..105a71311 100644 --- a/editions/tw5.com/tiddlers/widgets/ImageWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ImageWidget.tid @@ -25,6 +25,38 @@ Any content of the `<$image>` widget is ignored. The width and the height can be specified as pixel values (eg "23" or "23px") or percentages (eg "23%"). They are both optional; if not provided the browser will use CSS rules to size the image. +! Responsive images and `<map>` + +[[Image maps area|https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area]] coordinates are numbers of CSS pixels, therefore they do not scale. If you want to use responsive images, you can use a `svg` and `foreignObject`: + +<svg viewBox="0 0 330 333" xmlns="http://www.w3.org/2000/svg" width="50%"> +<foreignObject width="100%" height="100%"> +[img[Tiddler Fishes.svg]] +</foreignObject> +<g transform="translate(-216 -290)" > +<a href="#:[[Orange fish]]"> +<title>Orange fish + + + +Cyan fish + + + +Purple fish + + + +Green fish + + + +Blue fish + + + + + ! Image Status Classes <> The following CSS classes are automatically added to the `` element to indicate the status of the image. Note that only one of these classes will be added at the same time. diff --git a/editions/tw5.com/tiddlers/Tables in WikiText CSS Utility Classes.tid b/editions/tw5.com/tiddlers/wikitext/Tables in WikiText CSS Utility Classes.tid similarity index 100% rename from editions/tw5.com/tiddlers/Tables in WikiText CSS Utility Classes.tid rename to editions/tw5.com/tiddlers/wikitext/Tables in WikiText CSS Utility Classes.tid diff --git a/editions/tw5.com/tiddlers/wikitext/Transclusion and Substitution.tid b/editions/tw5.com/tiddlers/wikitext/Transclusion and Substitution.tid index 15dd9b4cc..b63d9a0a0 100644 --- a/editions/tw5.com/tiddlers/wikitext/Transclusion and Substitution.tid +++ b/editions/tw5.com/tiddlers/wikitext/Transclusion and Substitution.tid @@ -27,7 +27,7 @@ As described in [[HTML in WikiText]], you can also transclude tiddler field valu <$text text={{MyTiddler}}/> ``` -As described in [[Introduction to filter notation]], you can also transclude tiddler field values as filter operands. For example: +As described in [[Introduction to filter notation]], you can also transclude tiddler field values using the [[filter syntax|Filter Syntax]]. For example: ``` {{{ [tag{TiddlerContainingMyTag}] }}} @@ -47,7 +47,7 @@ As described in [[HTML in WikiText]], you can also transclude a variable as the <$text text=<>/> ``` -As described in [[Introduction to filter notation]], you can also transclude a variable as the value of a filter operand. For example: +As described in [[Introduction to filter notation]], you can also transclude a variable as the value of a filter parameter using the [[filter syntax|Filter Syntax]]. For example: ``` {{{ [tag] }}} diff --git a/editions/tw5.com/tiddlywiki.info b/editions/tw5.com/tiddlywiki.info index 9f9f3aac3..504abac5c 100644 --- a/editions/tw5.com/tiddlywiki.info +++ b/editions/tw5.com/tiddlywiki.info @@ -59,8 +59,8 @@ "--render","$:/core/save/offline-external-js","[[external-]addsuffixaddsuffix[.html]]","text/plain", "--render","$:/core/templates/tiddlywiki5.js","[[tiddlywikicore-]addsuffixaddsuffix[.js]]","text/plain"], "archive":[ - "--render","$:/core/save/all","[[archive/TiddlyWiki-]addsuffixaddsuffix[.html]]","text/plain", - "--render","$:/editions/tw5.com/download-empty","[[archive/Empty-TiddlyWiki-]addsuffixaddsuffix[.html]]","text/plain", + "--render","$:/core/save/all","[[archive/full/TiddlyWiki-]addsuffixaddsuffix[.html]]","text/plain", + "--render","$:/editions/tw5.com/download-empty","[[archive/empty/Empty-TiddlyWiki-]addsuffixaddsuffix[.html]]","text/plain", "--render","[[TiddlyWiki Archive]]","archive/index.html","text/plain","$:/core/templates/static.tiddler.html", "--render","$:/core/templates/static.template.css","archive/static.css","text/plain"] }, diff --git a/languages/mk-MK/Buttons.multids b/languages/mk-MK/Buttons.multids new file mode 100644 index 000000000..a0374dc3a --- /dev/null +++ b/languages/mk-MK/Buttons.multids @@ -0,0 +1,195 @@ +title: $:/language/Buttons/ + +AdvancedSearch/Caption: напредно пребарување +AdvancedSearch/Hint: Напредно пребарување +Bold/Caption: здебелен +Bold/Hint: Здебелен формат на селекција +Cancel/Caption: откажи +Cancel/Hint: Отстрани ги промените +Clear/Caption: исчисти +Clear/Hint: Исчисти ја сликата во еднобојна позадина +Clone/Caption: клонирај +Clone/Hint: Клонирај го овој запис +Close/Caption: затвори +Close/Hint: Затвори запис +CloseAll/Caption: затвори ги сите +CloseAll/Hint: Затвори ги сите записи +CloseOthers/Caption: затвори ги другите +CloseOthers/Hint: Затвори ги сите други записи +ControlPanel/Caption: контролен панел +ControlPanel/Hint: Отвори контролен панел +CopyToClipboard/Caption: копирај до клипборд +CopyToClipboard/Hint: Копирај го овој текст до клипборд +Delete/Caption: избриши +Delete/Hint: Избриши запис +DeleteTiddlers/Caption: избриши записи +DeleteTiddlers/Hint: Избриши записи +Edit/Caption: промени +Edit/Hint: Промени запис +EditorHeight/Caption: димензија на уредник +EditorHeight/Caption/Auto: Автоматски приспособи ја димензијата за да одговара на содржината +EditorHeight/Caption/Fixed: Фиксирана димензија: +EditorHeight/Hint: Одбери димензија за уредникот на текст +Encryption/Caption: шифрирање +Encryption/ClearPassword/Caption: избриши лозинка +Encryption/ClearPassword/Hint: Избриши ја лозинката и зачувај ја оваа википедија без шифрирање +Encryption/Hint: Постави или избриши лозинка за меморирање на оваа википедија +Encryption/SetPassword/Caption: постави лозинка +Encryption/SetPassword/Hint: Постави лозинка за меморирање на оваа википедија со шифрирање +Excise/Caption: проектирај +Excise/Caption/Excise: Изврши проекција +Excise/Caption/MacroName: Име на макро: +Excise/Caption/NewTitle: Наслов на новиот запис: +Excise/Caption/Replace: Карактеристика на проектираниот текст: +Excise/Caption/Replace/Link: линк +Excise/Caption/Replace/Macro: макро +Excise/Caption/Replace/Transclusion: огледало +Excise/Caption/Tag: Означи го новиот запис со насловот од овој запис +Excise/Caption/TiddlerExists: Предупредување: записот веќе постои +Excise/Hint: Проектирај селектиран текст во нов запис +ExportPage/Caption: експортирај сè +ExportPage/Hint: Експортирај ги сите записи +ExportTiddler/Caption: експортирај +ExportTiddler/Hint: Експортирај го овој запис +ExportTiddlers/Caption: експортирај записи +ExportTiddlers/Hint: Експортирај записи +Fold/Caption: превиткај запис +Fold/FoldBar/Caption: превиткана хоризонтала +Fold/FoldBar/Hint: Дополнителна хоризонтала за превиткување и одвиткување на записи +Fold/Hint: Превиткај ја содржината на овој запис +FoldAll/Caption: превиткај ги сите +FoldAll/Hint: Превиткај ги содржините на сите отворени записи +FoldOthers/Caption: превиткај ги другите +FoldOthers/Hint: Превиткај ги содржините на другите отворени записи +FullScreen/Caption: цел-екран +FullScreen/Hint: Вклучи или исклучи режим за цел-екран +Heading1/Caption: наслов 1 +Heading1/Hint: Формат за наслов 1 +Heading2/Caption: наслов 2 +Heading2/Hint: Формат за наслов 2 +Heading3/Caption: наслов 3 +Heading3/Hint: Формат за наслов 3 +Heading4/Caption: наслов 4 +Heading4/Hint: Формат за наслов 4 +Heading5/Caption: наслов 5 +Heading5/Hint: Формат за наслов 5 +Heading6/Caption: наслов 6 +Heading6/Hint: Формат за наслов 6 +Help/Caption: помош +Help/Hint: Прикажи го помошниот панел +HideSideBar/Caption: скриј странично мени +HideSideBar/Hint: Сокри го страничното мени +Home/Caption: почетна +Home/Hint: Отвори ги почетните записи +Import/Caption: импортирај +Import/Hint: Импортирај различни фајлови (текст, слика, ТидлиВики...) +Info/Caption: инфо +Info/Hint: Прикажи повеќе информации за овој запис +Italic/Caption: закосен +Italic/Hint: Закосен формат на селекција +Language/Caption: јазик +Language/Hint: Одбери јазик за интерфејс +LayoutSwitcher/Caption: распоред +LayoutSwitcher/Hint: Отвори го менувачот за распоред +LineWidth/Caption: дебелина +LineWidth/Hint: Дебелина на четка +Link/Caption: линк +Link/Hint: Креирај линк до друг запис +Linkify/Caption: вики-линк +Linkify/Hint: Квадратни загради на селекција +ListBullet/Caption: листа со точки +ListBullet/Hint: Листа со точки +ListNumber/Caption: нумерирана листа +ListNumber/Hint: Нумерирана листа +Manager/Caption: менаџер на записи +Manager/Hint: Отвори го менаџерот на записи +MonoBlock/Caption: еднопростран блок +MonoBlock/Hint: Еднопростран блок +MonoLine/Caption: еднопространи +MonoLine/Hint: Еднопространи карактери +More/Caption: повеќе +More/Hint: Повеќе опции +NetworkActivity/Caption: мрежна активност +NetworkActivity/Hint: Исклучи ги сите мрежни активности +NewHere/Caption: нов запис оттука +NewHere/Hint: Креирај нов запис означен со овој запис +NewImage/Caption: нова слика +NewImage/Hint: Креирај нова слика +NewJournal/Caption: ново во дневник +NewJournal/Hint: Креирај нов запис во дневникот +NewJournalHere/Caption: ново во дневник оттука +NewJournalHere/Hint: Креирај нов запис во дневникот означен со овој запис +NewMarkdown/Caption: нов Markdown запис +NewMarkdown/Hint: Креирај нов Markdown запис +NewTiddler/Caption: нов запис +NewTiddler/Hint: Креирај нов запис +Opacity/Caption: видливост +Opacity/Hint: Видливост на боја +OpenWindow/Caption: отвори во нов прозорец +OpenWindow/Hint: Отвори го записот во нов прозорец +Paint/Caption: палета на бои +Paint/Hint: Одбери боја за цртање +Palette/Caption: палета +Palette/Hint: Одбери палета со бои +Permalink/Caption: директен линк +Permalink/Hint: Копирај ја адресата за директен линк до овој запис +Permaview/Caption: директен приказ +Permaview/Hint: Копирај ја адресата за директен приказ до сите отворени записи +Picture/Caption: слика +Picture/Hint: Вметни слика +Preview/Caption: преглед +Preview/Hint: Прикажи рендер во уредникот +PreviewType/Caption: видови на приказ +PreviewType/Hint: Одбери приказ +Print/Caption: принт +Print/Hint: Испринтај ги отворените записи +Quote/Caption: цитат +Quote/Hint: Цитат +Refresh/Caption: освежи +Refresh/Hint: Целосно освежување на отворената википедија +RotateLeft/Caption: ротирај лево +RotateLeft/Hint: Ротирај ја сликата за 90 степени +Save/Caption: во ред +Save/Hint: Зачувај ги промените +SaveWiki/Caption: зачувај +SaveWiki/Hint: Зачувај ги промените +ShowSideBar/Caption: прикажи странично мени +ShowSideBar/Hint: Прикажи го страничното мени +SidebarSearch/Hint: Избери го полето за пребарување во страничното мени +Size/Caption: димензии на слика +Size/Caption/Height: Висина: +Size/Caption/Resize: Постави димензија +Size/Caption/Width: Должина: +Size/Hint: Промени димензија на слика +Stamp/Caption: печат +Stamp/Caption/New: Додади свој фрагмент +Stamp/Hint: Вметни конфигуриран фрагмент +Stamp/New/Text: Запишете го тука текстот на фрагментот. Не заборавајте да додадете име (caption) подолу. +Stamp/New/Title: Име што ќе биде прикажано во листата на фрагменти +StoryView/Caption: преглед +StoryView/Hint: Одбери визуелен преглед +Strikethrough/Caption: прешкртано +Strikethrough/Hint: Прешкртан формат на селекција +Subscript/Caption: долна-зона +Subscript/Hint: Форматирај текст во долна зона +Superscript/Caption: горна-зона +Superscript/Hint: Форматирај текст во горна зона +TagManager/Caption: менаџер на ознаки +TagManager/Hint: Отвори го менаџерот на ознаки +Theme/Caption: тема +Theme/Hint: Одбери визуелна тема +Timestamp/Caption: време +Timestamp/Hint: Калкулирај го времето додека записите претрпуваат промени +Timestamp/Off/Caption: исклучено време +Timestamp/Off/Hint: Не го ажурирај времето додека записите претрпуваат промени +Timestamp/On/Caption: вклучено време +Timestamp/On/Hint: Ажурирај го времето додека записите претрпуваат промени +ToggleSidebar/Hint: Вклучи / Исклучи видливост на страничното мени +Transcludify/Caption: проекција +Transcludify/Hint: Заокружувачки загради на селекција +Underline/Caption: подвлечено +Underline/Hint: Подвлечен формат на селекција +Unfold/Caption: одвиткај запис +Unfold/Hint: Одвиткај ја содржината на овој запис +UnfoldAll/Caption: одвиткај ги сите +UnfoldAll/Hint: Одвиткај ги содржините на сите затворени записи diff --git a/languages/mk-MK/ControlPanel.multids b/languages/mk-MK/ControlPanel.multids new file mode 100644 index 000000000..d0a0ae096 --- /dev/null +++ b/languages/mk-MK/ControlPanel.multids @@ -0,0 +1,231 @@ +title: $:/language/ControlPanel/ + +Advanced/Caption: Напредно +Advanced/Hint: Системски податоци за вашето ТидлиВики +Appearance/Caption: Изглед +Appearance/Hint: Различни начини за конфигурирање на изгледот +Basics/AnimDuration/Prompt: Времетраење на анимација +Basics/AutoFocus/Prompt: Поле на фокус за нови записи +Basics/Caption: Основно +Basics/DefaultTiddlers/BottomHint: Користете [[двојни квадратни загради]] за наслови со повеќе зборови за да направите линкови кога ќе ги запишете. Или можете да изберете {{запомни ги отворените записи||$:/snippets/retain-story-ordering-button}} доколку преферирате при секое вклучување на вашето ТидлиВики да ги видите веднаш оние записи кои сте ги отвориле претходно. +Basics/DefaultTiddlers/Prompt: Почетни записи +Basics/DefaultTiddlers/TopHint: Одберете кои записи ќе бидат секогаш отворени +Basics/Language/Prompt: Одберете јазик: +Basics/NewJournal/Tags/Prompt: Ознаки за нови записи во дневникот +Basics/NewJournal/Text/Prompt: Содржина за нови записи во дневникот +Basics/NewJournal/Title/Prompt: Наслов за нови записи во дневникот +Basics/NewTiddler/Tags/Prompt: Ознаки за нови записи +Basics/NewTiddler/Title/Prompt: Наслов за нови записи +Basics/OverriddenShadowTiddlers/Prompt: Променливи сенки +Basics/RemoveTags: Ажурирај во моменталниот формат +Basics/RemoveTags/Hint: Ажурирај ги ознаките во најновиот формат +Basics/ShadowTiddlers/Prompt: Сенки +Basics/Subtitle/Prompt: Поднаслов +Basics/SystemTiddlers/Prompt: Системски +Basics/Tags/Prompt: Ознаки +Basics/Tiddlers/Prompt: Записи +Basics/Title/Prompt: Наслов на вашето ТидлиВики +Basics/Username/Prompt: Име за потпис при уредување +Basics/Version/Prompt: ТидлиВики верзија +Cascades/Caption: Каскади +Cascades/Hint: Овие глобални правила се користат за динамичко избирање на шаблони (templates). Каскадите служат како механизам за конструкција и приспособување на самиот интерфејс на ТидлиВики. +Cascades/TagPrompt: Филтери за ознаки <$macrocall $name="tag" tag=<>/> +EditorTypes/Caption: Формати +EditorTypes/Editor/Caption: Формат +EditorTypes/Hint: Овие записи одредуваат кој __формат__ се користи за специфичен __вид__ на запис. +EditorTypes/Type/Caption: Вид +EditTemplateBody/Caption: Содржина +EditTemplateBody/Hint: Овие правила се користат од основниот уредувач за да може динамички да се одреди шаблон за содржината на еден запис. +FieldEditor/Caption: Поле +FieldEditor/Hint: Овие правила се користат за динамичко одбирање на шаблон за рендерирање на поле на запис врз основа на неговото име. Се користи во самиот шаблон за уредување. +Info/Caption: Инфо +Info/Hint: Информации за вашето ТидлиВики +KeyboardShortcuts/Add/Caption: додади +KeyboardShortcuts/Add/Prompt: Напиши комбинација тука +KeyboardShortcuts/Caption: Тастатура +KeyboardShortcuts/Hint: Управување со кратенки за тастатура +KeyboardShortcuts/NoShortcuts/Caption: Нема доделена кратенка за тастатура +KeyboardShortcuts/Platform/All: За сите платформи +KeyboardShortcuts/Platform/Linux: Линукс +KeyboardShortcuts/Platform/Mac: Мекинтош +KeyboardShortcuts/Platform/NonLinux: Платформи кои не се Линукс +KeyboardShortcuts/Platform/NonMac: Платформи кои не се Мекинтош +KeyboardShortcuts/Platform/NonWindows: Платформи кои не се Виндовс +KeyboardShortcuts/Platform/Windows: Виндовс +KeyboardShortcuts/Remove/Hint: избриши кратенка за тастатура +LayoutSwitcher/Caption: Распоред +LoadedModules/Caption: Модули +LoadedModules/Hint: Ова се вчитаните модули за запис кои водат кон своите извори. Доколку кликнете на некој од нив ќе го видите модулот. На сите модули запишани со закосен формат им недостасува извор, обично бидејќи тие биле поставувани додека сè уште траел процесот на подигање на вашето ТидлиВики. +Palette/Caption: Палета +Palette/Editor/Clone/Caption: клонирај +Palette/Editor/Clone/Prompt: Препорачливо е најпрвин да ја клонирате оваа палета пред да ја уредувате. +Palette/Editor/Delete/Hint: избришете го ова од моменталната палета +Palette/Editor/Names/External/Show: Прикажи ги имињата на бои кои не се дел од оваа палета +Palette/Editor/Prompt: Уредување +Palette/Editor/Prompt/Modified: Оваа палета е модифицирана +Palette/Editor/Reset/Caption: ресетирај +Palette/HideEditor/Caption: сокри го уредникот +Palette/Prompt: Моментална палета: +Palette/ShowEditor/Caption: прикажи го уредникот +Parsing/Block/Caption: Правила за блокирачки режим +Parsing/Caption: Правила +Parsing/Hint: Тука можете глобално да вклучите или исклучите правила за ''анализаторот''. За да можат записите да бидат прикажани, [[анализаторот|https://tiddlywiki.com/static/WikiText%2520Parser%2520Modes.html]] ги чита и интерпретира правилата. Постојат три вида на режим во кој анализаторот функционира: прагмантен, внатрешен и блокирачки.
Не заборавајте, за промената што тука ќе ја направите да има ефект треба да кликнете на //Зачувај ги промените// (црвеното копче во страничното мени). Исклучувањето на одредени правила за анализаторот можат да предизвикаат не коректно однесување на <$text text="ТидлиВики"/>. Користете [[безбеден режим|https://tiddlywiki.com/#SafeMode]] за да ги вратите нормалните операции. +Parsing/Inline/Caption: Правила за внатрешен режим +Parsing/Pragma/Caption: Правила за прагмантен режим +Plugins/Add/Caption: Превземете повеќе плагени +Plugins/Add/Hint: Инсталирајте плагени од официјалната библиотека +Plugins/AlreadyInstalled/Hint: Овој плаген е веќе инсталиран со верзија <$text text=<>/> +Plugins/AlsoRequires: Зависи од: +Plugins/Caption: Плагени +Plugins/ClosePluginLibrary: Затвори ја библиотеката +Plugins/Disable/Caption: исклучи +Plugins/Disable/Hint: Исклучи го овој плаген откако следен пат ќе се освежи википедијата +Plugins/Disabled/Status: (исклучено) +Plugins/Downgrade/Caption: врати верзија +Plugins/Empty/Hint: Ништо +Plugins/Enable/Caption: вклучи +Plugins/Enable/Hint: Вклучи го овој плаген откако следен пат ќе се освежи википедијата +Plugins/Install/Caption: инсталирај +Plugins/Installed/Hint: Инсталирани плагени: +Plugins/Languages/Caption: Јазици +Plugins/Languages/Hint: Плагени за јазични пакети +Plugins/NoInfoFound/Hint: Не ''"<$text text=<>/>"'' пронајдено +Plugins/NotInstalled/Hint: Овој плаген не е инсталиран +Plugins/OpenPluginLibrary: Отвори ја библиотеката +Plugins/Plugins/Caption: Плагени +Plugins/Plugins/Hint: Плагени +Plugins/PluginWillRequireReload: (освежи ја википедијата) +Plugins/Reinstall/Caption: реинсталирај +Plugins/SubPluginPrompt: Го има со <> под-плагени +Plugins/Themes/Caption: Теми +Plugins/Themes/Hint: Плагени за теми +Plugins/Update/Caption: ажурирај +Plugins/Updates/Caption: Ажурирања +Plugins/Updates/Hint: Достапни ажурирања за инсталираните плагени +Plugins/Updates/UpdateAll/Caption: Ажурирај <> плагени +Saving/Caption: Меморирање +Saving/DownloadSaver/AutoSave/Description: Дозволи автоматско меморирање за превземање од серверот +Saving/DownloadSaver/AutoSave/Hint: Дозволи Автоматско Меморирање за Превземање од Серверот +Saving/DownloadSaver/Caption: Сервер за превземање +Saving/DownloadSaver/Hint: Овие опции важат за HTML5 компатибилен сервер за превземање +Saving/General/Caption: Генерално +Saving/General/Hint: Овие опции важат за сите вклучени сервери +Saving/GitService/Branch: Таргетирај бранша за меморирање +Saving/GitService/CommitMessage: Зачувано од ТидлиВики +Saving/GitService/Description: Овие опции важат само при меморирање од <> +Saving/GitService/Filename: Име на таргетиран фајл (пр. `индекс.html`) +Saving/GitService/Gitea/Caption: Gitea Сервер +Saving/GitService/Gitea/Password: Токен за личен пристап за API (преку веб-интерфејсот на Gitea: `Settings | Applications | Generate New Token`) +Saving/GitService/GitHub/Caption: ~GitHub Сервер +Saving/GitService/GitHub/Password: Лозинка, OAUTH токен или токен за личен пристап (прочитајте ја [[оваа објава на GitHub|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] за повеќе информации) +Saving/GitService/GitLab/Caption: ~GitLab Сервер +Saving/GitService/GitLab/Password: Токен за личен пристап за API (прочитајте ја [[оваа објава на GitLab|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] за повеќе информации) +Saving/GitService/Path: Насока до таргет датотека (пр. `/вики/`) +Saving/GitService/Repo: Таргетирано репозитори (пр. `Jermolene/TiddlyWiki5`) +Saving/GitService/ServerURL: Сервер API URL +Saving/GitService/UserName: Корисничко име +Saving/Hint: Опции за меморирање на целосното ТидлиВики како еден фајл преку серверски модул +Saving/TiddlySpot/Advanced/Heading: Напредни опции +Saving/TiddlySpot/BackupDir: Датотека за резервни копии (Backup) +Saving/TiddlySpot/Backups: Резервни копии +Saving/TiddlySpot/Caption: ~TiddlySpot Сервер +Saving/TiddlySpot/ControlPanel: ~TiddlySpot Контролен Панел +Saving/TiddlySpot/Description: Овие опции важат само при меморирање до [[TiddlySpot|http://tiddlyspot.com]], [[TiddlyHost|https://tiddlyhost.com]], или компатибилен далечински (remote) сервер. Истражи тука на оваа [[страница|https://github.com/simonbaird/tiddlyhost/wiki/TiddlySpot-Saver-configuration-for-Tiddlyhost-and-Tiddlyspot]] за повеќе информации за меморирање на конфигурација од ~TiddlySpot и ~TiddlyHost. +Saving/TiddlySpot/Filename: Име на фајл за трансвер +Saving/TiddlySpot/Heading: ~TiddlySpot +Saving/TiddlySpot/Hint: //URL на серверот е `http://.tiddlyspot.com/store.cgi` и може да се промени за да се користи посебна серверска адреса, пр. `http://example.com/store.php`.// +Saving/TiddlySpot/Password: Лозинка +Saving/TiddlySpot/ReadOnly: Имајте на ум дека [[TiddlySpot|http://tiddlyspot.com]] повеќе не дозволува создавање на нови страници. За создавање на нови страници можете да го користите [[TiddlyHost|https://tiddlyhost.com]], новиот хостинг оператор кој го заменува ~TiddlySpot. +Saving/TiddlySpot/ServerURL: Сервер URL +Saving/TiddlySpot/UploadDir: Датотека за трансвер +Saving/TiddlySpot/UserName: Име на википедија +Settings/AutoSave/Caption: Автоматско меморирање +Settings/AutoSave/Disabled/Description: Не ги меморирај промените автоматски +Settings/AutoSave/Enabled/Description: Меморирај ги промените автоматски +Settings/AutoSave/Hint: Обиди се да ги зачуваш автоматски промените додека трае уредувањето при користење на соодветен сервер. +Settings/CamelCase/Caption: CamelCase линкови +Settings/CamelCase/Description: Вклучи автоматско ~CamelCase линкување +Settings/CamelCase/Hint: Можете глобално да го вклучите / исклучите автоматското линкување преку ~CamelCase зборови.
Потребно е да ја освежите википедијата за да има ефект. +Settings/Caption: Опции +Settings/DefaultMoreSidebarTab/Caption: Селектирано под-мени во групата Повеќе +Settings/DefaultMoreSidebarTab/Hint: Одберете кое под-мени ќе биде селектирано во групата __Повеќе__ која се наоѓа во страничното мени +Settings/DefaultSidebarTab/Caption: Селектирана група во страничното мени +Settings/DefaultSidebarTab/Hint: Одберете која група ќе биде селектирана во страничното мени +Settings/EditorToolbar/Caption: Алатки за уредување +Settings/EditorToolbar/Description: Прикажи ги алатките за уредување +Settings/EditorToolbar/Hint: Вклучи / Исклучи алатки за уредување +Settings/Hint: Овие опции ви дозволуваат да го приспособите вашето ТидлиВики. +Settings/InfoPanelMode/Caption: Панел за повеќе информации во запис +Settings/InfoPanelMode/Hint: Контролирајте кога панелот за повеќе информации се исклучува: +Settings/InfoPanelMode/Popup/Description: Панелот за повеќе инфо се исклучува автоматски +Settings/InfoPanelMode/Sticky/Description: Панелот за повеќе инфо останува вклучен додека самите не го исклучиме +Settings/LinkToBehaviour/Caption: Начин на отворање на запис +Settings/LinkToBehaviour/InsideRiver/Hint: Од внатрешна навигација во реката со записи +Settings/LinkToBehaviour/OpenAbove: Отвори над моменталниот запис +Settings/LinkToBehaviour/OpenAtBottom: Отвори најдолу во реката со записи +Settings/LinkToBehaviour/OpenAtTop: Отвори најгоре во реката со записи +Settings/LinkToBehaviour/OpenBelow: Отвори под моменталниот запис +Settings/LinkToBehaviour/OutsideRiver/Hint: Од надворешна навигација во реката со записи +Settings/MissingLinks/Caption: Вики линкови +Settings/MissingLinks/Description: Дозволи линкување до непостоечки записи +Settings/MissingLinks/Hint: Одберете дали сакате линкување до записи кои сè уште непостојат +Settings/NavigationAddressBar/Caption: Лента за навигација +Settings/NavigationAddressBar/Hint: Начин на однесување на лентата за навигација на прелистувачот: +Settings/NavigationAddressBar/No/Description: Не ја ажурирај лентата за навигација +Settings/NavigationAddressBar/Permalink/Description: Додадете го таргетираниот запис +Settings/NavigationAddressBar/Permaview/Description: Додадете го таргетираниот запис и моментално отворените записи +Settings/NavigationHistory/Caption: Историска навигација +Settings/NavigationHistory/Hint: Ажурирање на историјата при навигација: +Settings/NavigationHistory/No/Description: Не ја ажурирај историјата +Settings/NavigationHistory/Yes/Description: Ажурирај ја историјата +Settings/NavigationPermalinkviewMode/Caption: Директен линк / Директен приказ +Settings/NavigationPermalinkviewMode/CopyToClipboard/Description: Копирај URL од директен линк / директен приказ до клипборд +Settings/NavigationPermalinkviewMode/Hint: Одбери како се однесува директниот линк / директниот приказ: +Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description: Ажурирај ја лентата за навигација со директниот линк / директниот приказ +Settings/PerformanceInstrumentation/Caption: Приказ на перформанси +Settings/PerformanceInstrumentation/Description: Вклучи приказ на перформанси +Settings/PerformanceInstrumentation/Hint: Прикажи статистика на перформанси во програмерската конзула на прелистувачот.
Потребно е да ја освежите википедијата за да има ефект. +Settings/TitleLinks/Caption: Наслови на записи +Settings/TitleLinks/Hint: Опционално прикажи ги насловите на записите како линкови +Settings/TitleLinks/No/Description: Не ги прикажувај насловите на записите како линкови +Settings/TitleLinks/Yes/Description: Прикажи ги насловите на записите како линкови +Settings/ToolbarButtons/Caption: Алатки +Settings/ToolbarButtons/Hint: Основен приказ на алатките +Settings/ToolbarButtons/Icons/Description: Прикажи икона +Settings/ToolbarButtons/Text/Description: Прикажи текст +Settings/ToolbarButtonStyle/Caption: Изглед на алатки +Settings/ToolbarButtonStyle/Hint: Одбери го изгледот на алатките: +Settings/ToolbarButtonStyle/Styles/Borderless: Без рамка +Settings/ToolbarButtonStyle/Styles/Boxed: Коцкасти +Settings/ToolbarButtonStyle/Styles/Rounded: Тркалезни +StoryTiddler/Caption: Река на записи +StoryTiddler/Hint: Овие правила се користат за динамичко избирање на шаблон за прикажување запис во реката со записи +StoryView/Caption: Преглед +StoryView/Prompt: Моментален изглед: +Stylesheets/Caption: Стил +Stylesheets/Expand/Caption: Отвори ги сите +Stylesheets/Hint: Ова е CSS за стилот на оние записи означени со <> +Stylesheets/Restore/Caption: Врати назад +Theme/Caption: Тема +Theme/Prompt: Моментална тема: +TiddlerColour/Caption: Боја во запис +TiddlerColour/Hint: Овие правила се користат за динамичко избирање на боја во запис (за иконата и пилулата за ознаки). +TiddlerFields/Caption: Полиња +TiddlerFields/Hint: Ова е целата листа на полиња на запис што се користат во ова ТидлиВики (вклучувајќи ги системските записи, но без сенките). +TiddlerIcon/Caption: Икона на запис +TiddlerIcon/Hint: Овие правила се користат за динамичко избирање на икона на запис. +Toolbars/Caption: Алатки +Toolbars/EditorToolbar/Caption: Алатки во уредникот +Toolbars/EditorToolbar/Hint: Изберете кои алатки се прикажуваат во уредникот. Имајте на ум дека некои алатки ќе се прикажат само во одредени видови на записи. Со кликање и повлекување на алатките во оваа листа можете слободно да ги подредите како што сакате. +Toolbars/EditToolbar/Caption: Алатки на записот +Toolbars/EditToolbar/Hint: Изберете кои алатки се прикажуваат на записите при уредување. Со кликање и повлекување на алатките во оваа листа можете слободно да ги подредите како што сакате. +Toolbars/Hint: Селектирајте ги алатките што сакате да бидат прикажани +Toolbars/PageControls/Caption: Глобални алатки +Toolbars/PageControls/Hint: Изберете кои глобални алатки се прикажуваат. Со кликање и повлекување на алатките во оваа листа можете слободно да ги подредите како што сакате. +Toolbars/ViewToolbar/Caption: Видливи алатки +Toolbars/ViewToolbar/Hint: Изберете кои други алатки се прикажуваат на записите додека не ги уредувате. Со кликање и повлекување на алатките во оваа листа можете слободно да ги подредите како што сакате. +Tools/Download/Full/Caption: Превземете ја целата википедија +ViewTemplateBody/Caption: Приказ +ViewTemplateBody/Hint: Овие правила се користат за динамичко избирање на шаблон за приказ кој се користи за прикажување на содржината во записот. +ViewTemplateTitle/Caption: Наслов +ViewTemplateTitle/Hint: Овие правила се користат за динамичко избирање на шаблон за наслов кој се користи за прикажување на насловот на записот. diff --git a/languages/mk-MK/CoreReadMe.tid b/languages/mk-MK/CoreReadMe.tid new file mode 100644 index 000000000..002d66569 --- /dev/null +++ b/languages/mk-MK/CoreReadMe.tid @@ -0,0 +1,8 @@ +title: $:/core/readme + +Овој плаген содржи основни ТидлиВики компоненти кои се состојат од: + +* ЈаваСкрипт модули +* Икони +* Шаблони потребни за креирање на ТидлиВики интерфејс +* Македонски („мк-МК“) преводи на главните локализирани реченици diff --git a/languages/mk-MK/Dates.multids b/languages/mk-MK/Dates.multids new file mode 100644 index 000000000..7e560fd17 --- /dev/null +++ b/languages/mk-MK/Dates.multids @@ -0,0 +1,87 @@ +title: $:/language/ + +Date/DaySuffix/1: ви +Date/DaySuffix/10: ти +Date/DaySuffix/11: ти +Date/DaySuffix/12: ти +Date/DaySuffix/13: ти +Date/DaySuffix/14: ти +Date/DaySuffix/15: ти +Date/DaySuffix/16: ти +Date/DaySuffix/17: ти +Date/DaySuffix/18: ти +Date/DaySuffix/19: ти +Date/DaySuffix/2: ри +Date/DaySuffix/20: ти +Date/DaySuffix/21: ви +Date/DaySuffix/22: ри +Date/DaySuffix/23: ти +Date/DaySuffix/24: ти +Date/DaySuffix/25: ти +Date/DaySuffix/26: ти +Date/DaySuffix/27: ми +Date/DaySuffix/28: ми +Date/DaySuffix/29: ти +Date/DaySuffix/3: ти +Date/DaySuffix/30: ти +Date/DaySuffix/31: ви +Date/DaySuffix/4: ти +Date/DaySuffix/5: ти +Date/DaySuffix/6: ти +Date/DaySuffix/7: ми +Date/DaySuffix/8: ми +Date/DaySuffix/9: ти +Date/Long/Day/0: Недела +Date/Long/Day/1: Понеделник +Date/Long/Day/2: Вторник +Date/Long/Day/3: Среда +Date/Long/Day/4: Четврток +Date/Long/Day/5: Петок +Date/Long/Day/6: Сабота +Date/Long/Month/1: Јануари +Date/Long/Month/10: Октомври +Date/Long/Month/11: Ноември +Date/Long/Month/12: Декември +Date/Long/Month/2: Февруари +Date/Long/Month/3: Март +Date/Long/Month/4: Април +Date/Long/Month/5: Мај +Date/Long/Month/6: Јуни +Date/Long/Month/7: Јули +Date/Long/Month/8: Август +Date/Long/Month/9: Септември +Date/Period/am: am +Date/Period/pm: pm +Date/Short/Day/0: Нед +Date/Short/Day/1: Пон +Date/Short/Day/2: Вто +Date/Short/Day/3: Сре +Date/Short/Day/4: Чет +Date/Short/Day/5: Пет +Date/Short/Day/6: Саб +Date/Short/Month/1: Јан +Date/Short/Month/10: Окт +Date/Short/Month/11: Ное +Date/Short/Month/12: Дек +Date/Short/Month/2: Фев +Date/Short/Month/3: Мар +Date/Short/Month/4: Апр +Date/Short/Month/5: Мај +Date/Short/Month/6: Јун +Date/Short/Month/7: Јул +Date/Short/Month/8: Авг +Date/Short/Month/9: Сеп +RelativeDate/Future/Days: <> дена од сега +RelativeDate/Future/Hours: <> часа од сега +RelativeDate/Future/Minutes: <> минути од сега +RelativeDate/Future/Months: <> месеци од сега +RelativeDate/Future/Second: 1 секунда од сега +RelativeDate/Future/Seconds: <> секунди од сега +RelativeDate/Future/Years: <> години од сега +RelativeDate/Past/Days: пред <> дена +RelativeDate/Past/Hours: пред <> часа +RelativeDate/Past/Minutes: пред <> минути +RelativeDate/Past/Months: пред <> месеци +RelativeDate/Past/Second: пред 1 секунда +RelativeDate/Past/Seconds: пред <> секунди +RelativeDate/Past/Years: пред <> години diff --git a/languages/mk-MK/Docs/ModuleTypes.multids b/languages/mk-MK/Docs/ModuleTypes.multids new file mode 100644 index 000000000..61af72c8b --- /dev/null +++ b/languages/mk-MK/Docs/ModuleTypes.multids @@ -0,0 +1,30 @@ +title: $:/language/Docs/ModuleTypes/ + +allfilteroperator: Под-оператор за филтерот "all" +animation: Анимации што можат да се користат со RevealWidget. +authenticator: Дефинира како барањата се одобрени од вградениот HTTP сервер. +bitmapeditoroperation: Оператор за bitmap уредникот +command: Команди што можат да се извршат преку Node.js. +config: Податоци за вметнување во `$tw.config`. +filteroperator: Индивидуални методи за оператори на филтри. +global: Глобална дата за вметнување во `$tw`. +info: Објавува системски информации преку [[$:/temp/info-plugin]] псевдо-плагенот. +isfilteroperator: Оператори за филтерот "is" +library: Генерички тип на модул за општа намена на ЈаваСкрипт модули. +macro: ЈаваСкрипт макро дефиниции. +parser: Анализатори за различни видови содржина. +route: Дефинира како поединични URL шеми (patterns) се контролираат преку HTTP серверот. +saver: Зачувувачи кои се справуваат со различни методи за меморирање фајлови од прелистувачот. +startup: Стартни функции. +storyview: Преглед на реката со записи за нивна анимација +texteditoroperation: Оператори за уредување текст +tiddlerdeserializer: Конвертира различни видови содржини во записи. +tiddlerfield: Го дефинира значењето на индивидуално поле од записот +tiddlermethod: Додава методи во прототипот `$tw.Tiddler` +upgrader: Ги процесира записите при надградба или импорт. +utils: Додаваат методи во `$tw.utils`. +utils-browser: Додаваат специфични методи за прелистувачот во `$tw.utils`. +utils-node: Додаваат специфични Node.js методи во `$tw.utils`. +widget: Додатоци (widgets) за сумирање на DOM рендерирање и освежување. +wikimethod: Додава методи во `$tw.Wiki`. +wikirule: Индивидуални правила за анализаторот на вики-текст (WikiText). diff --git a/languages/mk-MK/Docs/PaletteColours.multids b/languages/mk-MK/Docs/PaletteColours.multids new file mode 100644 index 000000000..eaae646fb --- /dev/null +++ b/languages/mk-MK/Docs/PaletteColours.multids @@ -0,0 +1,109 @@ +title: $:/language/Docs/PaletteColours/ + +alert-background: Предупредувачка боја +alert-border: Предупредувачка боја на рамка +alert-highlight: Предупредувачка боја на истакнатост +alert-muted-foreground: Предупредувачка мјутирана (muted) боја +background: Генерална боја +blockquote-bar: Боја на вертикалната линија на цитиран текст +button-background: Основна боја на копче +button-border: Основна боја на рамка на копче +button-foreground: Основна боја на текст во копче +code-background: Боја на код +code-border: Боја на рамка на код +code-foreground: Боја на текст во код +dirty-indicator: Боја на индикатор за незачувани промени +download-background: Боја на копче за превземање +download-foreground: Боја на текст во копче за превземање +dragger-background: Боја на влечење +dragger-foreground: Боја на текст при влечење +dropdown-background: Боја на пуштање +dropdown-border: Боја на рамка на пуштање +dropdown-tab-background: Боја на група (таб) на пуштање +dropdown-tab-background-selected: Боја на селектирана група (таб) +dropzone-background: Боја на таргет место за пуштање +external-link-background: Боја за надворешни (други) линкови +external-link-background-hover: Боја при доближување на маусот над надворешен линк +external-link-background-visited: Боја на посетени надворешни линкови +external-link-foreground: Боја на текст во надворешни линкови +external-link-foreground-hover: Боја на текст во надворешен линк при доближување на маусот +external-link-foreground-visited: Боја на текст во посетени надворешни линкови +foreground: Генерална боја на текст +menubar-background: Боја на лента со мени +menubar-foreground: Боја на текст во лента со мени +message-background: Боја на поле за порака +message-border: Боја на рамка на поле за порака +message-foreground: Боја на текст во поле за порака +modal-backdrop: Боја за модална позадина +modal-background: Модална боја +modal-border: Модална рамка +modal-footer-background: Модална боја во долен дел +modal-footer-border: Модална боја на рамка во долен дел +modal-header-border: Модална боја во горен дел +muted-foreground: Генерална мјутирана (muted) боја +notification-background: Боја за нотификација +notification-border: Боја на рамка за нотификација +page-background: Боја на позадина +pre-background: Боја на претходно форматиран код +pre-border: Боја на рамка на претходно форматиран код +primary: Боја на општа вашност +select-tag-background: Боја на `` елемент +sidebar-button-foreground: Боја на текст во копче во страничното мени +sidebar-controls-foreground: Боја на контролери во страничното мени +sidebar-controls-foreground-hover: Боја на текст во контролери во страничното мени +sidebar-foreground: Боја на текст во страничното мени +sidebar-foreground-shadow: Боја на текст во сенка во страничното мени +sidebar-muted-foreground: Мјутирана (muted) боја на текст во страничното мени +sidebar-muted-foreground-hover: Мјутирана (muted) боја на текст при доближување со маусот во страничното мени +sidebar-tab-background: Боја на група (таб) во страничното мени +sidebar-tab-background-selected: Боја на селектирана група (таб) во страничното мени +sidebar-tab-border: Боја на рамка на група (таб) во страничното мени +sidebar-tab-border-selected: Боја на рамка за селектирана група (таб) во страничното мени +sidebar-tab-divider: Боја на разделник во страничното мени +sidebar-tab-foreground: Боја на текст во група (таб) во страничното мени +sidebar-tab-foreground-selected: Боја на текст во селектирана група (таб) во страничното мени +sidebar-tiddler-link-foreground: Боја на текст на линк од запис во страничното мени +sidebar-tiddler-link-foreground-hover: Боја на текст во линк од запис во страничното мени при доближување со маусот +site-title-foreground: Боја на текст на наслов +static-alert-foreground: Боја на текст на статично предупредување +tab-background: Боја на група (таб) +tab-background-selected: Боја на селектирана група (таб) +tab-border: Боја на рамка на група (таб) +tab-border-selected: Боја на рамка на селектирана група (таб) +tab-divider: Боја на разделник на група (таб) +tab-foreground: Боја на текст во група (таб) +tab-foreground-selected: Боја на текст во селектирана група (таб) +table-border: Боја на рамка на табела +table-footer-background: Боја на долниот дел од табелата +table-header-background: Боја на горниот дел од табелата +tag-background: Боја на ознака +tag-foreground: Боја на текст во ознака +tiddler-background: Боја на запис +tiddler-border: Боја на рамка на запис +tiddler-controls-foreground: Боја на текст во контролери на запис +tiddler-controls-foreground-hover: Боја на текст во контролери на запис при доближување со маусот +tiddler-controls-foreground-selected: Боја на текст во селектирани контролери на запис +tiddler-editor-background: Боја на уредникот на запис +tiddler-editor-border: Боја на рамка на уредникот на запис +tiddler-editor-border-image: Боја на рамка во уредникот за слика +tiddler-editor-fields-even: Боја на еднакви полиња во уредникот на запис +tiddler-editor-fields-odd: Боја на различни полиња во уредникот на запис +tiddler-info-background: Боја на инфо панелот на запис +tiddler-info-border: Боја на рамка на инфо панелот на запис +tiddler-info-tab-background: Боја на група (таб) во инфо панелот на запис +tiddler-link-background: Боја за линк на запис +tiddler-link-foreground: Боја за текст во линк на запис +tiddler-subtitle-foreground: Боја на текст во поднаслов на запис +tiddler-title-foreground: Боја на наслов на запис +toolbar-cancel-button: Боја на текст во „откажи“ копчето +toolbar-close-button: Боја на текст во „затвори“ копчето +toolbar-delete-button: Боја на текст во „избриши“ копчето +toolbar-done-button: Боја на текст во „заврши“ копчето +toolbar-edit-button: Боја на текст во „уреди“ копчето +toolbar-info-button: Боја на текст во „инфо“ копчето +toolbar-new-button: Боја на текст во „нов запис“ копчето +toolbar-options-button: Боја на текст во „опции“ копчето +toolbar-save-button: Боја на текст во „зачувај“ копчето +untagged-background: Боја на пилулата за неозначени записи +very-muted-foreground: Многу мјутирана (muted) боја diff --git a/languages/mk-MK/EditTemplate.multids b/languages/mk-MK/EditTemplate.multids new file mode 100644 index 000000000..a909a6905 --- /dev/null +++ b/languages/mk-MK/EditTemplate.multids @@ -0,0 +1,38 @@ +title: $:/language/EditTemplate/ + +Body/External/Hint: Овој запис прикажува содржина зачувана надвор од ТидлиВики фајлот. Можете да ги уредувате ознаките и полињата, но не можете директно да ја уредувате содржината. +Body/Placeholder: Напишете го текстот за овој запис +Body/Preview/Type/DiffCurrent: разлики од претходното +Body/Preview/Type/DiffShadow: разлики од сенката +Body/Preview/Type/Output: излезен приказ +Caption: Уредник +Field/Dropdown/Caption: листа на поле +Field/Dropdown/Hint: Листа на полиња +Field/Remove/Caption: избриши поле +Field/Remove/Hint: Избриши поле +Fields/Add/Button: додади +Fields/Add/Button/Hint: Додади го новото поле на записот +Fields/Add/Dropdown/System: Системски полиња +Fields/Add/Dropdown/User: Кориснички полиња +Fields/Add/Name/Placeholder: име на поле +Fields/Add/Prompt: Додади ново поле: +Fields/Add/Value/Placeholder: содржина на поле +Shadow/OverriddenWarning: Ова е модифицирана сенка. Можете да ја вратите стандардната верзија во плагенот <> со бришење на овој запис +Shadow/Warning: Ова е сенка. Сите промени што ќе ги направите ќе ја обноват (презапишат) стандардната верзија од плагенот <> +Tags/Add/Button: додади +Tags/Add/Button/Hint: додади ознака +Tags/Add/Placeholder: има на ознака +Tags/ClearInput/Caption: очисти +Tags/ClearInput/Hint: Очисти ознака +Tags/Dropdown/Caption: листа на ознаки +Tags/Dropdown/Hint: Листа на ознаки +Title/BadCharacterWarning: Предупредување: избегнувајте да ги користите знаците <> во наслови на записи. +Title/Exists/Prompt: Таргетираниот запис веќе постои +Title/References/Prompt: Следниве референци од овој запис нема автоматски да се ажурираат: +Title/Relink/Prompt: Промени го ''<$text text=<>/>'' во ''<$text text=<>/>'' и во сите други __ознаки__ и __полиња__ +Type/Delete/Caption: избриши го видот на содржина +Type/Delete/Hint: Избриши го видот на содржина +Type/Dropdown/Caption: листа на видови содржина +Type/Dropdown/Hint: Листа на видови содржина +Type/Placeholder: видови содржина +Type/Prompt: Видови: diff --git a/languages/mk-MK/Exporters.multids b/languages/mk-MK/Exporters.multids new file mode 100644 index 000000000..0d7b231ad --- /dev/null +++ b/languages/mk-MK/Exporters.multids @@ -0,0 +1,6 @@ +title: $:/language/Exporters/ + +CsvFile: CSV фајл +JsonFile: JSON фајл +StaticRiver: Статичен HTML +TidFile: TID текст фајл diff --git a/languages/mk-MK/Fields.multids b/languages/mk-MK/Fields.multids new file mode 100644 index 000000000..9dffbc562 --- /dev/null +++ b/languages/mk-MK/Fields.multids @@ -0,0 +1,43 @@ +title: $:/language/Docs/Fields/ + +_canonical_uri: Целосен линк на сликата од надвор +_is_skinny: Доколку е присутен, покажува дека полето за текст во записот мора да биде вчитано од страна на серверот +author: Име на авторот на записот +bag: Име на фиока од која потекнува записот +caption: Текст што ќе се прикаже на копче или група (tab) +code-body: Шаблонот за приказ ќе го прикаже записот како код +color: CSS бојата поврзана со записот +component: Име на компонентата одговорна за [[alert tiddler|AlertMechanism]] +core-version: Доколку станува збор за плаген, покажува кој плаген со која верзија од ТидлиВики е компатибилен +created: Датумот кога е создаден записот +creator: Името на личноста која го креирала записот +current-tiddler: Се користи за кеширање на записот во [[history list|HistoryMechanism]] +dependents: Доколку станува збор за плаген, ја покажува листата на имиња од други плагени од кои зависи плагенот +description: Описен текст за записот +draft.of: Доколку станува збор за незачуван запис, го зачувува името на записот од кој овој запис е незачуван +draft.title: Доколку станува збор за незачуван запис, го задржува предложениот нов наслов за записот +footer: Долниот текст (footer) +hide-body: Шаблонот за приказ ќе ја сокрие содржината од записот +icon: Наслов од запис кој ја содржи иконата која ќе биде поврзана со овој запис +library: Укажува дека записот треба да се зачува како ЈаваСкрипт библиотека +list: Нумерирана листа од наслови на записи кои кореспондираат со овој запис +list-after: Насловот на записот после кој треба овој запис да биде додаден +list-before: Насловот на записот пред кој треба овој запис да биде додаден +modified: Датумот и времето кога последен пат овој запис бил променет +modifier: Личноста која последен пат го променила записот +module-type: Одредува за каков вид на модул станува збор за ЈаваСкрипт записи +name: Човечки-читливо име поврзано со записот +parent-plugin: Доколку станува збор за плаген, покажува од кој главен плаген овој запис е под-плаген +plugin-priority: Нумеричка вредност што означува приоритет на плаген +plugin-type: Вид на плаген +released: Датум на објавување +revision: Ревизија на запис одржана на серверот +source: Целосна URL адреса поврзана со записот +subtitle: Поднаслов на записот +tags: Листа на ознаки поврзани со записот +text: Содржина на записот +throttle.refresh: Доколку е достапен, го освежува записот +title: Уникатно име на записот +toc-link: Го потиснува линкот на записот во содржина +type: Видот на содржината во записот +version: Информации за верзијата на записот diff --git a/languages/mk-MK/Filters.multids b/languages/mk-MK/Filters.multids new file mode 100644 index 000000000..152e63d72 --- /dev/null +++ b/languages/mk-MK/Filters.multids @@ -0,0 +1,16 @@ +title: $:/language/Filters/ + +AllTags: Сите ознаки освен системски ознаки +AllTiddlers: Сите записи освен системски записи +Drafts: Незачувани записи +Missing: Непостоечки записи +Orphans: Самостојни записи +OverriddenShadowTiddlers: Променливи сенки +RecentSystemTiddlers: Неодамна модифицирани записи, вклучувајќи ги системските записи +RecentTiddlers: Неодамна модифицирани записи +SessionTiddlers: Модифицирани записи од моментот на вклучување на википедијата +ShadowTiddlers: Сенки +StoryList: Записи во реката, без <$text text="$:/AdvancedSearch"/> +SystemTags: Системски ознаки +SystemTiddlers: Системски записи +TypedTiddlers: Записи кои не се вики-текст diff --git a/languages/mk-MK/GettingStarted.tid b/languages/mk-MK/GettingStarted.tid new file mode 100644 index 000000000..658dc0c7c --- /dev/null +++ b/languages/mk-MK/GettingStarted.tid @@ -0,0 +1,18 @@ +title: GettingStarted + +\define lingo-base() $:/language/ControlPanel/Basics/ +!Добредојдовте во ТидлиВики 🐈‍⬛ + +Пред да започнете со складирање на важни информации во вашето ТидлиВики, од големо значење е да знаете како навистина можете да ги меморирате вашите промени. За повеќе информации прочитајте ја објавата: https://tiddlywiki.com/#GettingStarted + +!! Основни податоци + +
+ +|tc-table-no-border tc-first-col-min-width tc-first-link-nowrap|k +| <$link to="$:/SiteTitle"><>|<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> | +| <$link to="$:/SiteSubtitle"><>|<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> | +|^ <$link to="$:/DefaultTiddlers"><>
<>|<$edit tag="textarea" tiddler="$:/DefaultTiddlers"/>
//<>// | +
+ +Отворете го [[контролниот панел|$:/ControlPanel]] за повеќе опции. diff --git a/languages/mk-MK/Help/build.tid b/languages/mk-MK/Help/build.tid new file mode 100644 index 000000000..2219819c2 --- /dev/null +++ b/languages/mk-MK/Help/build.tid @@ -0,0 +1,11 @@ +title: $:/language/Help/build +description: Автоматски извршува команди + +Build the specified build targets for the current wiki. If no build targets are specified then all available targets will be built. + +``` +--build [ ...] +``` + +Build targets are defined in the `tiddlywiki.info` file of a wiki folder. + diff --git a/languages/mk-MK/Help/clearpassword.tid b/languages/mk-MK/Help/clearpassword.tid new file mode 100644 index 000000000..4907c3364 --- /dev/null +++ b/languages/mk-MK/Help/clearpassword.tid @@ -0,0 +1,8 @@ +title: $:/language/Help/clearpassword +description: Брише лозинка од крипто операции + +Clear the password for subsequent crypto operations + +``` +--clearpassword +``` diff --git a/languages/mk-MK/Help/commands.tid b/languages/mk-MK/Help/commands.tid new file mode 100644 index 000000000..37590ed34 --- /dev/null +++ b/languages/mk-MK/Help/commands.tid @@ -0,0 +1,18 @@ +title: $:/language/Help/commands +description: Извршува команди од филтер + +Sequentially run the command tokens returned from a filter + +``` +--commands +``` + +Examples + +``` +--commands "[enlist:raw{$:/build-commands-as-text}]" +``` + +``` +--commands "[{$:/build-commands-as-json}jsonindexes[]] :map[{$:/build-commands-as-json}jsonget]" +``` diff --git a/languages/mk-MK/Help/default.tid b/languages/mk-MK/Help/default.tid new file mode 100644 index 000000000..d3a1cf338 --- /dev/null +++ b/languages/mk-MK/Help/default.tid @@ -0,0 +1,26 @@ +title: $:/language/Help/default +description: + +\define commandTitle() +$:/language/Help/$(command)$ +\end +\whitespace trim +``` +usage: tiddlywiki [] [-- [...]...] +``` + +Available commands: + +
    +<$list filter="[commands[]sort[title]]" variable="command"> +
  • <$link to=<>><$macrocall $name="command" $type="text/plain" $output="text/plain"/>: + +<$transclude tiddler=<> field="description"/>
  • + +
+ +To get detailed help on a command: + +``` +tiddlywiki --help +``` diff --git a/languages/mk-MK/Help/deletetiddlers.tid b/languages/mk-MK/Help/deletetiddlers.tid new file mode 100644 index 000000000..099fa09f0 --- /dev/null +++ b/languages/mk-MK/Help/deletetiddlers.tid @@ -0,0 +1,8 @@ +title: $:/language/Help/deletetiddlers +description: Брише група записи + +<<.from-version "5.1.20">> Deletes a group of tiddlers identified by a filter. + +``` +--deletetiddlers +``` diff --git a/languages/mk-MK/Help/editions.tid b/languages/mk-MK/Help/editions.tid new file mode 100644 index 000000000..66f3c6122 --- /dev/null +++ b/languages/mk-MK/Help/editions.tid @@ -0,0 +1,8 @@ +title: $:/language/Help/editions +description: Покажува листа на достапни уредници во ТидлиВики + +Lists the names and descriptions of the available editions. You can create a new wiki of a specified edition with the `--init` command. + +``` +--editions +``` diff --git a/languages/mk-MK/Help/fetch.tid b/languages/mk-MK/Help/fetch.tid new file mode 100644 index 000000000..86e919889 --- /dev/null +++ b/languages/mk-MK/Help/fetch.tid @@ -0,0 +1,38 @@ +title: $:/language/Help/fetch +description: Превзема записи од друга википедија преку URL + +Fetch one or more files over HTTP/HTTPS, and import the tiddlers matching a filter, optionally transforming the incoming titles. + +``` +--fetch file +--fetch files +--fetch raw-file +--fetch raw-files +``` + +The "file" and "files" variants fetch the specified files and attempt to import the tiddlers within them (the same processing as if the files were dragged into the browser window). The "raw-file" and "raw-files" variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic. + +With the "file" and "raw-file" variants only a single file is fetched and the first parameter is the URL of the file to read. + +With the "files" and "raw-files" variants, multiple files are fetched and the first parameter is a filter yielding a list of URLs of the files to read. For example, given a set of tiddlers tagged "remote-server" that have a field "url" the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs. + +For the "file" and "files" variants, the `` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided. + +For all variants, the `` parameter specifies an optional filter that transforms the titles of the imported tiddlers. For example, `[addprefix[$:/myimports/]]` would add the prefix `$:/myimports/` to each title. + +Preceding the `--fetch` command with `--verbose` will output progress information during the import. + +Note that TiddlyWiki will not fetch an older version of an already loaded plugin. + +The following example retrieves all the non-system tiddlers from https://tiddlywiki.com and saves them to a JSON file: + +``` +tiddlywiki --verbose --fetch file "https://tiddlywiki.com/" "[!is[system]]" "" --rendertiddler "$:/core/templates/exporters/JsonFile" output.json text/plain "" exportFilter "[!is[system]]" +``` + +The following example retrieves the "favicon" file from tiddlywiki.com and saves it in a file called "output.ico". Note that the intermediate tiddler "Icon Tiddler" is quoted in the "--fetch" command because it is being used as a transformation filter to replace the default title, while there are no quotes for the "--savetiddler" command because it is being used directly as a title. + +``` +tiddlywiki --verbose --fetch raw-file "https://tiddlywiki.com/favicon.ico" "[[Icon Tiddler]]" --savetiddler "Icon Tiddler" output.ico +``` + diff --git a/languages/mk-MK/Help/help.tid b/languages/mk-MK/Help/help.tid new file mode 100644 index 000000000..d8aafcfd1 --- /dev/null +++ b/languages/mk-MK/Help/help.tid @@ -0,0 +1,10 @@ +title: $:/language/Help/help +description: Покажува помош за ТидлиВики команди + +Displays help text for a command: + +``` +--help [] +``` + +If the command name is omitted then a list of available commands is displayed. diff --git a/languages/mk-MK/Help/import.tid b/languages/mk-MK/Help/import.tid new file mode 100644 index 000000000..1a8a63a24 --- /dev/null +++ b/languages/mk-MK/Help/import.tid @@ -0,0 +1,24 @@ +title: $:/language/Help/import +description: Импортира записи од фајл + +Import tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The deserializer must be explicitly specified, unlike the `load` command which infers the deserializer from the file extension. + +``` +--import [] [<encoding>] +``` + +The deserializers in the core include: + +* application/javascript +* application/json +* application/x-tiddler +* application/x-tiddler-html-div +* application/x-tiddlers +* text/html +* text/plain + +The title of the imported tiddler defaults to the filename. + +The encoding defaults to "utf8", but can be "base64" for importing binary files. + +Note that TiddlyWiki will not import an older version of an already loaded plugin. diff --git a/languages/mk-MK/Help/init.tid b/languages/mk-MK/Help/init.tid new file mode 100644 index 000000000..dfa93faea --- /dev/null +++ b/languages/mk-MK/Help/init.tid @@ -0,0 +1,23 @@ +title: $:/language/Help/init +description: Вчитува нов фолдер за википедијата + +Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition. + +``` +--init <edition> [<edition> ...] +``` + +For example: + +``` +tiddlywiki ./MyWikiFolder --init empty +``` + +Note: + +* The wiki folder directory will be created if necessary +* The "edition" defaults to ''empty'' +* The init command will fail if the wiki folder is not empty +* The init command removes any `includeWikis` definitions in the edition's `tiddlywiki.info` file +* When multiple editions are specified, editions initialised later will overwrite any files shared with earlier editions (so, the final `tiddlywiki.info` file will be copied from the last edition) +* `--editions` returns a list of available editions diff --git a/languages/mk-MK/Help/listen.tid b/languages/mk-MK/Help/listen.tid new file mode 100644 index 000000000..dfb938c5d --- /dev/null +++ b/languages/mk-MK/Help/listen.tid @@ -0,0 +1,35 @@ +title: $:/language/Help/listen +description: Обезбедува интерфејс за HTTP серверот и ТидлиВики + +Serves a wiki over HTTP. + +The listen command uses NamedCommandParameters: + +``` +--listen [<name>=<value>]... +``` + +All parameters are optional with safe defaults, and can be specified in any order. The recognised parameters are: + +* ''host'' - optional hostname to serve from (defaults to "127.0.0.1" aka "localhost") +* ''path-prefix'' - optional prefix for paths +* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to "8080") +* ''credentials'' - pathname of credentials CSV file (relative to wiki folder) +* ''anon-username'' - the username for signing edits for anonymous users +* ''username'' - optional username for basic authentication +* ''password'' - optional password for basic authentication +* ''authenticated-user-header'' - optional name of request header to be used for trusted authentication. +* ''readers'' - comma-separated list of principals allowed to read from this wiki +* ''writers'' - comma-separated list of principals allowed to write to this wiki +* ''csrf-disable'' - set to "yes" to disable CSRF checks (defaults to "no") +* ''root-tiddler'' - the tiddler to serve at the root (defaults to "$:/core/save/all") +* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to "text/plain") +* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to "text/html") +* ''tls-cert'' - pathname of TLS certificate file (relative to wiki folder) +* ''tls-key'' - pathname of TLS key file (relative to wiki folder) +* ''debug-level'' - optional debug level; set to "debug" to view request details (defaults to "none") +* ''gzip'' - set to "yes" to enable gzip compression for some http endpoints (defaults to "no") +* ''use-browser-cache'' - set to "yes" to allow the browser to cache responses to save bandwidth (defaults to "no") + +For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com. + diff --git a/languages/mk-MK/Help/load.tid b/languages/mk-MK/Help/load.tid new file mode 100644 index 000000000..ccbc28cfa --- /dev/null +++ b/languages/mk-MK/Help/load.tid @@ -0,0 +1,19 @@ +title: $:/language/Help/load +description: Вчитува записи од фајл + +Load tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The processing applied to incoming files is determined by the file extension. Use the alternative `import` command if you need to specify the deserializer and encoding explicitly. + +``` +--load <filepath> [noerror] +--load <dirpath> [noerror] +``` + +By default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional "noerror" parameter. + +To load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example: + +``` +tiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html +``` + +Note that TiddlyWiki will not load an older version of an already loaded plugin. diff --git a/languages/mk-MK/Help/makelibrary.tid b/languages/mk-MK/Help/makelibrary.tid new file mode 100644 index 000000000..6c4ce9ece --- /dev/null +++ b/languages/mk-MK/Help/makelibrary.tid @@ -0,0 +1,14 @@ +title: $:/language/Help/makelibrary +description: Го конструира плагенот за библиотеката потребен за процес на надградба + +Constructs the `$:/UpgradeLibrary` tiddler for the upgrade process. + +The upgrade library is formatted as an ordinary plugin tiddler with the plugin type `library`. It contains a copy of each of the plugins, themes and language packs available within the TiddlyWiki5 repository. + +This command is intended for internal use; it is only relevant to users constructing a custom upgrade procedure. + +``` +--makelibrary <title> +``` + +The title argument defaults to `$:/UpgradeLibrary`. diff --git a/languages/mk-MK/Help/notfound.tid b/languages/mk-MK/Help/notfound.tid new file mode 100644 index 000000000..9268d32b0 --- /dev/null +++ b/languages/mk-MK/Help/notfound.tid @@ -0,0 +1,4 @@ +title: $:/language/Help/notfound +description: + +Нема таква помошна ставка \ No newline at end of file diff --git a/languages/mk-MK/Help/output.tid b/languages/mk-MK/Help/output.tid new file mode 100644 index 000000000..e69c1bd79 --- /dev/null +++ b/languages/mk-MK/Help/output.tid @@ -0,0 +1,11 @@ +title: $:/language/Help/output +description: Поставува општа излезна датотека (насока) за команди + +Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory. + +``` +--output <pathname> +``` + +If the specified pathname is relative then it is resolved relative to the current working directory. For example `--output .` sets the output directory to the current working directory. + diff --git a/languages/mk-MK/Help/password.tid b/languages/mk-MK/Help/password.tid new file mode 100644 index 000000000..0ce217c79 --- /dev/null +++ b/languages/mk-MK/Help/password.tid @@ -0,0 +1,10 @@ +title: $:/language/Help/password +description: Поставува лозинка за крипто операции + +Set a password for subsequent crypto operations + +``` +--password <password> +``` + +''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]]. diff --git a/languages/mk-MK/Help/render.tid b/languages/mk-MK/Help/render.tid new file mode 100644 index 000000000..f44e4061b --- /dev/null +++ b/languages/mk-MK/Help/render.tid @@ -0,0 +1,35 @@ +title: $:/language/Help/render +description: Рендерира записи одделно во фајлови + +Render individual tiddlers identified by a filter and save the results to the specified files. + +Optionally, the title of a template tiddler can be specified. In this case, instead of directly rendering each tiddler, the template tiddler is rendered with the "currentTiddler" variable set to the title of the tiddler that is being rendered. + +A name and value for an additional variable may optionally also be specified. + +``` +--render <tiddler-filter> [<filename-filter>] [<render-type>] [<template>] [ [<name>] [<value>] ]* +``` + +* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered +* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename +* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material) +* ''template'': Optional template through which each tiddler is rendered +* ''name'': Name of optional variables +* ''value'': Value of optional variables + +By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. + +Notes: + +* The output directory is not cleared of any existing files +* Any missing directories in the path to the filename are automatically created. +* When referring to a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets: `--render "[[Motovun Jack.jpg]]"` +* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being rendered, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/` +* Multiple ''name''/''value'' pairs can be used to pass more than one variable +* The `--render` command is a more flexible replacement for both the `--rendertiddler` and `--rendertiddlers` commands, which are deprecated + +Examples: + +* `--render '[!is[system]]' '[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]'` -- renders all non-system tiddlers as files in the subdirectory "tiddlers" with URL-encoded titles and the extension HTML +* `--render '.' 'tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[HelloThere]]'` -- renders the tiddlers tagged "HelloThere" to a JSON file named "tiddlers.json" diff --git a/languages/mk-MK/Help/rendertiddler.tid b/languages/mk-MK/Help/rendertiddler.tid new file mode 100644 index 000000000..c40d7893f --- /dev/null +++ b/languages/mk-MK/Help/rendertiddler.tid @@ -0,0 +1,24 @@ +title: $:/language/Help/rendertiddler +description: Рендерира запис како назначен вид на содржина + +(Note: The `--rendertiddler` command is deprecated in favour of the new, more flexible `--render` command) + +Render an individual tiddler as a specified ContentType, defaulting to `text/html` and save it to the specified filename. + +Optionally the title of a template tiddler can be specified, in which case the template tiddler is rendered with the "currentTiddler" variable set to the tiddler that is being rendered (the first parameter value). + +A name and value for an additional variable may optionally also be specified. + +``` +--rendertiddler <title> <filename> [<type>] [<template>] [<name>] [<value>] +``` + +By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. + +Any missing directories in the path to the filename are automatically created. + +For example, the following command saves all tiddlers matching the filter `[tag[done]]` to a JSON file titled `output.json` by employing the core template `$:/core/templates/exporters/JsonFile`. + +``` +--rendertiddler "$:/core/templates/exporters/JsonFile" output.json text/plain "" exportFilter "[tag[done]]" +``` diff --git a/languages/mk-MK/Help/rendertiddlers.tid b/languages/mk-MK/Help/rendertiddlers.tid new file mode 100644 index 000000000..83d6fb483 --- /dev/null +++ b/languages/mk-MK/Help/rendertiddlers.tid @@ -0,0 +1,20 @@ +title: $:/language/Help/rendertiddlers +description: Рендерира записи што одговараат на филтер за одреден вид на содржина + +(Note: The `--rendertiddlers` command is deprecated in favour of the new, more flexible `--render` command) + +Render a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`). + +``` +--rendertiddlers '<filter>' <template> <pathname> [<type>] [<extension>] ["noclean"] +``` + +For example: + +``` +--rendertiddlers '[!is[system]]' $:/core/templates/static.tiddler.html ./static text/plain +``` + +By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. + +Any files in the target directory are deleted unless the ''noclean'' flag is specified. The target directory is recursively created if it is missing. diff --git a/languages/mk-MK/Help/save.tid b/languages/mk-MK/Help/save.tid new file mode 100644 index 000000000..6ae0cf644 --- /dev/null +++ b/languages/mk-MK/Help/save.tid @@ -0,0 +1,25 @@ +title: $:/language/Help/save +description: Ги зачувува записите одделно во фајлови + +Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files. + +``` +--save <tiddler-filter> <filename-filter> +``` + +* ''tiddler-filter'': A filter identifying the tiddler(s) to be saved +* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]]`, which uses the unchanged tiddler title as the filename + +By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. + +Notes: + +* The output directory is not cleared of any existing files +* Any missing directories in the path to the filename are automatically created. +* When saving a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets: `--save "[[Motovun Jack.jpg]]"` +* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being saved, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/` +* The `--save` command is a more flexible replacement for both the `--savetiddler` and `--savetiddlers` commands, which are deprecated + +Examples: + +* `--save "[!is[system]is[image]]" "[encodeuricomponent[]addprefix[tiddlers/]]"` -- saves all non-system image tiddlers as files in the subdirectory "tiddlers" with URL-encoded titles diff --git a/languages/mk-MK/Help/savetiddler.tid b/languages/mk-MK/Help/savetiddler.tid new file mode 100644 index 000000000..7c3072ac6 --- /dev/null +++ b/languages/mk-MK/Help/savetiddler.tid @@ -0,0 +1,14 @@ +title: $:/language/Help/savetiddler +description: Зачувува запис во фајл + +(Note: The `--savetiddler` command is deprecated in favour of the new, more flexible `--save` command) + +Saves an individual tiddler in its raw text or binary format to the specified filename. + +``` +--savetiddler <title> <filename> +``` + +By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. + +Any missing directories in the path to the filename are automatically created. diff --git a/languages/mk-MK/Help/savetiddlers.tid b/languages/mk-MK/Help/savetiddlers.tid new file mode 100644 index 000000000..de6ee9885 --- /dev/null +++ b/languages/mk-MK/Help/savetiddlers.tid @@ -0,0 +1,16 @@ +title: $:/language/Help/savetiddlers +description: Зачувува повеќе записи во датотека + +(Note: The `--savetiddlers` command is deprecated in favour of the new, more flexible `--save` command) + +Saves a group of tiddlers in their raw text or binary format to the specified directory. + +``` +--savetiddlers <filter> <pathname> ["noclean"] +``` + +By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. + +The output directory is cleared of existing files before saving the specified files. The deletion can be disabled by specifying the ''noclean'' flag. + +Any missing directories in the pathname are automatically created. diff --git a/languages/mk-MK/Help/savewikifolder.tid b/languages/mk-MK/Help/savewikifolder.tid new file mode 100644 index 000000000..a77475873 --- /dev/null +++ b/languages/mk-MK/Help/savewikifolder.tid @@ -0,0 +1,34 @@ +title: $:/language/Help/savewikifolder +description: Зачувува википедија во нов фолдер + +<<.from-version "5.1.20">> Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration: + +``` +--savewikifolder <wikifolderpath> [<filter>] [ [<name>=<value>] ]* +``` + +* The target wiki folder must be empty or non-existent +* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]` +* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file +* Custom plugins are unpacked into their own folder + +The following options are supported: + +* ''filter'': a filter expression that defines the tiddlers to include in the output. +* ''explodePlugins'': defaults to "yes" +** ''yes'' will "explode" plugins into separate tiddler files and save them to the plugin directory within the wiki folder +** ''no'' will suppress exploding plugins into their constituent tiddler files. It will save the plugin as a single JSON tiddler in the tiddlers folder + +Note that both ''explodePlugins'' options will produce wiki folders that build the exact same original wiki. The difference lies in how plugins are represented in the wiki folder. + +A common usage is to convert a TiddlyWiki HTML file into a wiki folder: + +``` +tiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder +``` + +Save the plugin to the tiddlers directory of the target wiki folder: + +``` +tiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder explodePlugins=no +``` diff --git a/languages/mk-MK/Help/server.tid b/languages/mk-MK/Help/server.tid new file mode 100644 index 000000000..5df4d6405 --- /dev/null +++ b/languages/mk-MK/Help/server.tid @@ -0,0 +1,43 @@ +title: $:/language/Help/server +description: (застарено: погледнете ја 'listen' командата) Обезбедува интерфејс помеѓу HTTP серверот и ТидлиВики + +Legacy command to serve a wiki over HTTP. + +``` +--server <port> <root-tiddler> <root-render-type> <root-serve-type> <username> <password> <host> <path-prefix> <debug-level> +``` + +The parameters are: + +* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to "8080") +* ''root-tiddler'' - the tiddler to serve at the root (defaults to "$:/core/save/all") +* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to "text/plain") +* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to "text/html") +* ''username'' - the default username for signing edits +* ''password'' - optional password for basic authentication +* ''host'' - optional hostname to serve from (defaults to "127.0.0.1" aka "localhost") +* ''path-prefix'' - optional prefix for paths +* ''debug-level'' - optional debug level; set to "debug" to view request details (defaults to "none") + +If the password parameter is specified then the browser will prompt the user for the username and password. Note that the password is transmitted in plain text so this implementation should only be used on a trusted network or over HTTPS. + +For example: + +``` +--server 8080 $:/core/save/all text/plain text/html MyUserName passw0rd +``` + +The username and password can be specified as empty strings if you need to set the hostname or pathprefix and don't want to require a password. + + +``` +--server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.245 +``` + +Using an address like this exposes your system to the local network. For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com. + +To run multiple TiddlyWiki servers at the same time you'll need to put each one on a different port. It can be useful to use an environment variable to pass the port number to the Node.js process. This example references an environment variable called "MY_PORT_NUMBER": + +``` +--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd +``` diff --git a/languages/mk-MK/Help/setfield.tid b/languages/mk-MK/Help/setfield.tid new file mode 100644 index 000000000..1357a3f8f --- /dev/null +++ b/languages/mk-MK/Help/setfield.tid @@ -0,0 +1,17 @@ +title: $:/language/Help/setfield +description: Ги подготвува надворешните записи за употреба + +//Note that this command is experimental and may change or be replaced before being finalised// + +Sets the specified field of a group of tiddlers to the result of wikifying a template tiddler with the `currentTiddler` variable set to the tiddler. + +``` +--setfield <filter> <fieldname> <templatetitle> <rendertype> +``` + +The parameters are: + +* ''filter'' - filter identifying the tiddlers to be affected +* ''fieldname'' - the field to modify (defaults to "text") +* ''templatetitle'' - the tiddler to wikify into the specified field. If blank or missing then the specified field is deleted +* ''rendertype'' - the text type to render (defaults to "text/plain"; "text/html" can be used to include HTML tags) diff --git a/languages/mk-MK/Help/unpackplugin.tid b/languages/mk-MK/Help/unpackplugin.tid new file mode 100644 index 000000000..6f1d94622 --- /dev/null +++ b/languages/mk-MK/Help/unpackplugin.tid @@ -0,0 +1,8 @@ +title: $:/language/Help/unpackplugin +description: Ги отпакува записите поврзани со плаген + +Ги екстрактира записите поврзани со плаген и ги креира како обични записи: + +``` +--unpackplugin <title> +``` diff --git a/languages/mk-MK/Help/verbose.tid b/languages/mk-MK/Help/verbose.tid new file mode 100644 index 000000000..0dae62bd1 --- /dev/null +++ b/languages/mk-MK/Help/verbose.tid @@ -0,0 +1,8 @@ +title: $:/language/Help/verbose +description: Активира опширен излезен режим + +Активира опширен излезен режим, корисен за debugging + +``` +--verbose +``` diff --git a/languages/mk-MK/Help/version.tid b/languages/mk-MK/Help/version.tid new file mode 100644 index 000000000..5538883ff --- /dev/null +++ b/languages/mk-MK/Help/version.tid @@ -0,0 +1,8 @@ +title: $:/language/Help/version +description: Ја покажува ТидлиВики верзијата. + +Ја покажува ТидлиВики верзијата. + +``` +--version +``` diff --git a/languages/mk-MK/Import.multids b/languages/mk-MK/Import.multids new file mode 100644 index 000000000..11f36e649 --- /dev/null +++ b/languages/mk-MK/Import.multids @@ -0,0 +1,34 @@ +title: $:/language/Import/ + +Editor/Import/Heading: Импортирај слики и додади ги во уредникот. +Imported/Hint: Овие записи беа импортирани: +Listing/Cancel/Caption: Откажи +Listing/Cancel/Warning: Дали сакате да го откажете импортирањето? +Listing/Hint: Овие записи се спремни за импорт: +Listing/Import/Caption: Импортирај +Listing/Preview: Преглед: +Listing/Preview/Diff: Разлика +Listing/Preview/DiffFields: Разлика (Полиња) +Listing/Preview/Fields: Полиња +Listing/Preview/Text: Текст +Listing/Preview/TextRaw: Текст (Чист) +Listing/Rename/CancelRename: Откажи +Listing/Rename/ConfirmRename: Преименувај запис +Listing/Rename/OverwriteWarning: Запис со ваков наслов веќе постои. +Listing/Rename/Prompt: Преименувај во: +Listing/Rename/Tooltip: Преименувај го записот пред импортирање +Listing/Select/Caption: Избери +Listing/Status/Caption: Статус +Listing/Title/Caption: Наслов +Upgrader/Plugins/Suppressed/Incompatible: Блокиран некомпатибилен или застарен плаген. +Upgrader/Plugins/Suppressed/Version: Блокиран плаген (поради тоа што дојдовниот <<incoming>> не е понов од постоечкиот <<existing>>). +Upgrader/Plugins/Upgraded: Надоградба на плаген од <<incoming>> во <<upgraded>>. +Upgrader/State/Suppressed: Блокирана привремена состојба на запис. +Upgrader/System/Alert: Ќе импортирате запис кој ќе обнови (презапише) основен модуларен запис. Ова не е препорачливо бидејќи може да го направи системот нестабилен. +Upgrader/System/Disabled: Исклучен системски запис. +Upgrader/System/Suppressed: Блокиран системски запис. +Upgrader/System/Warning: Основен модуларен запис. +Upgrader/ThemeTweaks/Created: Мигрирана тематска измена од <$text text=<<from>>/>. +Upgrader/Tiddler/Disabled: Исклучен запис. +Upgrader/Tiddler/Selected: Избран запис. +Upgrader/Tiddler/Unselected: Неизбран запис. diff --git a/languages/mk-MK/Misc.multids b/languages/mk-MK/Misc.multids new file mode 100644 index 000000000..8a02eafb4 --- /dev/null +++ b/languages/mk-MK/Misc.multids @@ -0,0 +1,99 @@ +title: $:/language/ + +AboveStory/ClassicPlugin/Warning: Изгледа дека се обидувате да вклучите плаген дизајниран за ТидлиВики Класик. Имајте во предвид дека [[овие плагени не функционираат со ТидлиВики верзија 5.x.x|https://tiddlywiki.com/#TiddlyWikiClassic]]. Избришани плагени што се за ТидлиВики Класик: +BinaryWarning/Prompt: Овој запис содржи бинарни податоци +ClassicWarning/Hint: Овој запис е креиран со вики-текст формат за ТидлиВики Класик кој што не е целосно компатибилен со верзија 5 на ТидлиВики. Посетете ја оваа страница https://tiddlywiki.com/static/Upgrading.html за повеќе информации. +ClassicWarning/Upgrade/Caption: надоградба +CloseAll/Button: затвори ги сите +ColourPicker/Recent: Скорашни: +ConfirmAction: Дали сакате да продолжите? +ConfirmCancelTiddler: Дали сакате да ги отстраните промените на записот "<$text text=<<title>>/>"? +ConfirmDeleteTiddler: Дали сакате да го избришете записот "<$text text=<<title>>/>"? +ConfirmDeleteTiddlers: Сигурно сакате да избришете <<resultCount>> запис(и)? +ConfirmEditShadowTiddler: Ќе започнете со уредување на сенка. Било каква промена што ќе ја направите тука ќе го презапише (обнови) основниот систем. Сигурно сакате да го уредувате "<$text text=<<title>>/>"? +ConfirmOverwriteTiddler: Дали сакате да го обновите записот "<$text text=<<title>>/>"? +Count: брои +DefaultNewTiddlerTitle: Нов Запис +Diffs/CountMessage: <<diff-count>> разлики +DropMessage: Пуштете сега (или користете го копчето „Escape“ за да откажете) +Encryption/Cancel: Откажи +Encryption/ConfirmClearPassword: Дали сакате да ја избришете лозинката? Со овој чекор ќе го отстраните шифрирањето што се применува за оваа википедија +Encryption/Password: Лозинка +Encryption/PasswordNoMatch: Лозинките не се совпаѓаат +Encryption/PromptSetPassword: Поставете нова лозинка за ова ТидлиВики +Encryption/RepeatPassword: Повтори лозинка +Encryption/SetPassword: Постави лозинка +Encryption/Username: Корисничко име +Error/Caption: Грешка +Error/DeserializeOperator/MissingOperand: Грешка во филтер: Недостасува управител за операторот 'deserialize' +Error/DeserializeOperator/UnknownDeserializer: Грешка во филтер: Непознат 'deserializer' означен како управител на операторот 'deserialize' +Error/Filter: Грешка во филтер +Error/FilterRunPrefix: Грешка во филтер: Непознат префикс за работа на филтерот +Error/FilterSyntax: Синтаксна грешка во изразот на филтерот +Error/FormatFilterOperator: Грешка во филтер: Непозната наставка за операторот на 'format' филтерот +Error/IsFilterOperator: Грешка во филтер: Непознат управител на операторот 'is' +Error/LoadingPluginLibrary: Грешка при вчитување на библиотеката со плагени +Error/NetworkErrorAlert: `<h2>''Мрежна грешка''</h2> Изгледа дека врската со серверот е изгубена. Проверете ја вашата мрежна конекција. Обидете се да ја вратите врската пред да продолжите.<br><br>''Сите незачувани промени автоматски ќе се синхронизираат откако ќе се врати поврзувањето''.` +Error/PutEditConflict: Фајлот е променет на серверот +Error/PutForbidden: Барањето е одбиено +Error/PutUnauthorized: Потребна е авторизација +Error/RecursiveTransclusion: Грешка при ''recursive transclusion'' во widget +Error/RetrievingSkinny: Грешка при превземање листа со записи +Error/SavingToTWEdit: Грешка при меморирање во TWEdit +Error/WhileSaving: Грешка при меморирање +Error/XMLHttpRequest: XMLHttpRequest грешка +Error/ZoominTextNode: Грешка во изгледот на реката: Се чини дека се обидовте да работите со запис кој се прикажува во посебен контејнер. Ова најверојатно е предизвикано од користењето на `$:/tags/StoryTiddlerTemplateFilter` со шаблон кој содржи текст или празно место на почетокот. Ве молиме користете ја прагмата `\whitespace trim` и погрижете се целата содржина на записот да биде опфатена во еден HTML елемент. Текстот кој го предизвика овој проблем: +InternalJavaScriptError/Hint: Ах...е ова е за срамота. Се препорачува да го рестартирате вашето ТидлиВики со освежување на вашиот прелистувач +InternalJavaScriptError/Title: Внатрешна ЈаваСкрипт грешка +LayoutSwitcher/Description: Отвори го менувачот за распоред +LazyLoadingWarning: <p>Се обидува да вчита надворешна содржина од ''<$text text={{!!_canonical_uri}}/>''</p><p>Доколку оваа порака не исчезне, или видот на содржина во записот не одговара со надворешната содржина, или пак користите прелистувач кој не подржува надворешна содржина за самостојни википедии. Видете повеќе тука: https://tiddlywiki.com/#ExternalText</p> +LoginToTiddlySpace: Најава до TiddlySpace +Manager/Controls/FilterByTag/None: (ништо) +Manager/Controls/FilterByTag/Prompt: Филтер според ознака: +Manager/Controls/Order/Prompt: Обратен редослед +Manager/Controls/Search/Placeholder: Пребарувај +Manager/Controls/Search/Prompt: Пребарувај: +Manager/Controls/Show/Option/Tags: ознаки +Manager/Controls/Show/Option/Tiddlers: записи +Manager/Controls/Show/Prompt: Прикажи: +Manager/Controls/Sort/Prompt: Подреди според: +Manager/Item/Colour: Боја +Manager/Item/Fields: Полиња +Manager/Item/Icon: Икона +Manager/Item/Icon/None: (ништо) +Manager/Item/RawText: Чист текст +Manager/Item/Tags: Ознаки +Manager/Item/Tools: Алатки +Manager/Item/WikifiedText: Wikified текст +MissingTiddler/Hint: Записот "<$text text=<<currentTiddler>>/>" е непостоечки -- кликни {{||$:/core/ui/Buttons/edit}} за да го креираш +No: Не +OfficialPluginLibrary: Официјална библиотека за плагени +OfficialPluginLibrary/Hint: Официјална библиотека за ТидлиВики плагени од tiddlywiki.com. Сите плагени, теми и јазични пакети се одржувани од страна на главниот тим. +PageTemplate/Description: Основен ТидлиВики распоред +PageTemplate/Name: Основен шаблон +PluginReloadWarning: Ве молиме зачувајте {{$:/core/ui/Buttons/save-wiki}} и освежете {{$:/core/ui/Buttons/refresh}} за да може промените во ЈаваСкрипт плагените да имаат ефект +RecentChanges/DateFormat: DDth MMM YYYY +Shortcuts/Input/Accept/Hint: Прифати го означеното +Shortcuts/Input/AcceptVariant/Hint: Прифати го означеното (варијанта) +Shortcuts/Input/AdvancedSearch/Hint: Отвори напредно пребарување додека пишуваме во полето за пребарувај +Shortcuts/Input/Cancel/Hint: Исчисти го полето за внесување +Shortcuts/Input/Down/Hint: Одбери следно +Shortcuts/Input/Tab-Left/Hint: Одбери претходна група +Shortcuts/Input/Tab-Right/Hint: Одбери следна група +Shortcuts/Input/Up/Hint: Одбери претходно +Shortcuts/SidebarLayout/Hint: Смени распоред на страничното мени +Switcher/Subtitle/language: Смени јазик +Switcher/Subtitle/layout: Смени распоред +Switcher/Subtitle/palette: Смени палета +Switcher/Subtitle/theme: Смени тема +SystemTiddler/Tooltip: Ова е системски запис +SystemTiddlers/Include/Prompt: Прикажи ги системските записи +TagManager/Colour/Heading: Боја +TagManager/Count/Heading: Вкупно +TagManager/Icon/Heading: Икона +TagManager/Icons/None: Ништо +TagManager/Info/Heading: Инфо +TagManager/Tag/Heading: Ознака +Tiddler/DateFormat: DDth MMM YYYY во hh:0mm +UnsavedChangesWarning: Имате незачувани промени во вашето ТидлиВики +Yes: Да diff --git a/languages/mk-MK/Modals/Download.tid b/languages/mk-MK/Modals/Download.tid new file mode 100644 index 000000000..3b8908bbb --- /dev/null +++ b/languages/mk-MK/Modals/Download.tid @@ -0,0 +1,13 @@ +title: $:/language/Modals/Download +type: +subtitle: Download changes +footer: <$button message="tm-close-tiddler">Close</$button> +help: https://tiddlywiki.com/static/DownloadingChanges.html + +Вашиот прелистувач подржува само мануелно меморирање. + +За да ги зачувате промените на вашата википедија, кликнете со десен клик на долниот линк за преземање (Download link) и одберете „Download file“ или „Save file“. Па, потоа одберете име на фајлот и фолдер за меморирање. + +//Можете и побрзо да го направите тоа со кликање на линкот за преземање при што истовремено држите на Ctrl (за Виндовс) или Options/Alt (за Мекинтош). При ваквото меморирање нема да побара од вас да го именувате фајлот или пак да одберете фолдер за меморирање. Но, подоцна можеби ќе треба да го преименувате фајлот вклучувајќи ја и .html екстензијата.// + +На мобилните телефони каде не е дозволено преземањето на фајлови, наместо тоа, можете да го обележите линкот (bookmark), а потоа да ги синхронизирате обележените линкови со вашиот десктоп каде што ќе можете да извршите нормално меморирање. \ No newline at end of file diff --git a/languages/mk-MK/NewJournal.multids b/languages/mk-MK/NewJournal.multids new file mode 100644 index 000000000..e196b55a0 --- /dev/null +++ b/languages/mk-MK/NewJournal.multids @@ -0,0 +1,5 @@ +title: $:/config/NewJournal/ + +Tags: Дневник +Text: +Title: DDth MMM YYYY diff --git a/languages/mk-MK/Notifications.multids b/languages/mk-MK/Notifications.multids new file mode 100644 index 000000000..defe7f475 --- /dev/null +++ b/languages/mk-MK/Notifications.multids @@ -0,0 +1,6 @@ +title: $:/language/Notifications/ + +CopiedToClipboard/Failed: Неуспешно копирање до клипборд! +CopiedToClipboard/Succeeded: Копирано до клипборд! +Save/Done: Зачувана википедија +Save/Starting: Википедијата започнува да се зачувува diff --git a/languages/mk-MK/Search.multids b/languages/mk-MK/Search.multids new file mode 100644 index 000000000..5e55e0af0 --- /dev/null +++ b/languages/mk-MK/Search.multids @@ -0,0 +1,20 @@ +title: $:/language/Search/ + +DefaultResults/Caption: Листа +Filter/Caption: Филтер +Filter/Hint: Пребарувај со [[филтер|https://tiddlywiki.com/static/Filters.html]] +Filter/Matches: //<small><<resultCount>> пронајдени</small>// +Matches: //<small><<resultCount>> пронајдени</small>// +Matches/All: Сите резултати: +Matches/Title: Наслови: +Search: Пребарувај +Search/TooShort: Текстот е прекраток за пребарување +Shadows/Caption: Сенки +Shadows/Hint: Пребарувај записи кои се сенки +Shadows/Matches: //<small><<resultCount>> пронајдени</small>// +Standard/Caption: Стандардно +Standard/Hint: Пребарувај општи записи +Standard/Matches: //<small><<resultCount>> пронајдени</small>// +System/Caption: Системско +System/Hint: Пребарувај записи кои се системски +System/Matches: //<small><<resultCount>> пронајдени</small>// diff --git a/languages/mk-MK/SideBar.multids b/languages/mk-MK/SideBar.multids new file mode 100644 index 000000000..bba310d2e --- /dev/null +++ b/languages/mk-MK/SideBar.multids @@ -0,0 +1,18 @@ +title: $:/language/SideBar/ + +All/Caption: Сите +Caption: Мени +Contents/Caption: Содржини +Drafts/Caption: Незачувани +Explorer/Caption: Истражувач +Missing/Caption: Непостоечки +More/Caption: Повеќе +Open/Caption: Отворени +Orphans/Caption: Самостојни +Recent/Caption: Скорашни +Shadows/Caption: Сенки +System/Caption: Системски +Tags/Caption: Ознаки +Tags/Untagged/Caption: без +Tools/Caption: Алатки +Types/Caption: Видови diff --git a/languages/mk-MK/SiteSubtitle.tid b/languages/mk-MK/SiteSubtitle.tid new file mode 100644 index 000000000..2764b4d40 --- /dev/null +++ b/languages/mk-MK/SiteSubtitle.tid @@ -0,0 +1,3 @@ +title: $:/SiteSubtitle + +''//персонализирана википедија на знаење//'' \ No newline at end of file diff --git a/languages/mk-MK/SiteTitle.tid b/languages/mk-MK/SiteTitle.tid new file mode 100644 index 000000000..365166cff --- /dev/null +++ b/languages/mk-MK/SiteTitle.tid @@ -0,0 +1,3 @@ +title: $:/SiteTitle + +ТидлиВики \ No newline at end of file diff --git a/languages/mk-MK/Snippets/ListByTag.tid b/languages/mk-MK/Snippets/ListByTag.tid new file mode 100644 index 000000000..3ad194198 --- /dev/null +++ b/languages/mk-MK/Snippets/ListByTag.tid @@ -0,0 +1,5 @@ +title: $:/language/Snippets/ListByTag +tags: $:/tags/TextEditor/Snippet +caption: Листа на записи според ознаки + +<<list-links "[tag[task]sort[title]]">> diff --git a/languages/mk-MK/Snippets/MacroDefinition.tid b/languages/mk-MK/Snippets/MacroDefinition.tid new file mode 100644 index 000000000..d3815e578 --- /dev/null +++ b/languages/mk-MK/Snippets/MacroDefinition.tid @@ -0,0 +1,7 @@ +title: $:/language/Snippets/MacroDefinition +tags: $:/tags/TextEditor/Snippet +caption: Дефинирање макро + +\define macroName(param1:"default value",param2) +Text of the macro +\end diff --git a/languages/mk-MK/Snippets/Table4x3.tid b/languages/mk-MK/Snippets/Table4x3.tid new file mode 100644 index 000000000..9ed3aa2e2 --- /dev/null +++ b/languages/mk-MK/Snippets/Table4x3.tid @@ -0,0 +1,8 @@ +title: $:/language/Snippets/Table4x3 +tags: $:/tags/TextEditor/Snippet +caption: Табела од 4 колони со 3 реда + +|! |!Алфа |!Бета |!Гама |!Делта | +|!Еден | | | | | +|!Два | | | | | +|!Три | | | | | diff --git a/languages/mk-MK/Snippets/TableOfContents.tid b/languages/mk-MK/Snippets/TableOfContents.tid new file mode 100644 index 000000000..e6e86718f --- /dev/null +++ b/languages/mk-MK/Snippets/TableOfContents.tid @@ -0,0 +1,9 @@ +title: $:/language/Snippets/TableOfContents +tags: $:/tags/TextEditor/Snippet +caption: Содржина + +<div class="tc-table-of-contents"> + +<<toc-selective-expandable 'TableOfContents'>> + +</div> \ No newline at end of file diff --git a/languages/mk-MK/ThemeTweaks.multids b/languages/mk-MK/ThemeTweaks.multids new file mode 100644 index 000000000..4e0526abb --- /dev/null +++ b/languages/mk-MK/ThemeTweaks.multids @@ -0,0 +1,42 @@ +title: $:/language/ThemeTweaks/ + +Metrics: Големина +Metrics/BodyFontSize: Големина на фонт во реката со записи +Metrics/BodyLineHeight: Размер во реката со записи +Metrics/FontSize: Големина на фонт за страничното мени +Metrics/LineHeight: Размер за страничното мени +Metrics/SidebarBreakpoint: Сокри го страничното мени +Metrics/SidebarBreakpoint/Hint: минимална ширина со која ќе се одреди дали страничното мени <br> ќе биде прикажано или сокриено при намалување на <br> отворениот ТидлиВики прозорец +Metrics/SidebarWidth: Ширина на страничното мени +Metrics/SidebarWidth/Hint: ширината на страничното мени во <br> __флуидни записи, фиксирано мени__ распоред +Metrics/StoryLeft: Лева маргина на реката со записи +Metrics/StoryLeft/Hint: колку левата маргина на реката со записи ќе биде <br> оддалечена од левата страна на екранот +Metrics/StoryRight: Лева маргина на страничното мени +Metrics/StoryRight/Hint: колку левата маргина на страничното мени <br> ќе биде оддалечена од левата страна на екранот во <br> __фиксирани записи, флуидно мени__ распоред +Metrics/StoryTop: Горна маргина +Metrics/StoryTop/Hint: колку горната маргина ќе биде оддалечена од горната страна на екранот +Metrics/StoryWidth: Општа ширина +Metrics/StoryWidth/Hint: ширината на самата река со записи +Metrics/TiddlerWidth: Ширина на запис +Metrics/TiddlerWidth/Hint: ширината во реката со записи +Options: Опции +Options/CodeWrapping: Завиткајте ги долгите реченици при работа со код блокови +Options/SidebarLayout: Распоред +Options/SidebarLayout/Fixed-Fluid: Фиксирани записи, флуидно мени +Options/SidebarLayout/Fluid-Fixed: Флуидни записи, фиксирано мени +Options/StickyTitles: Видливи наслови +Options/StickyTitles/Hint: насловите на записите да се “закачат“ <br> на горниот дел од реката со записи при скролање нагоре/надоле +Settings: Поставки +Settings/BackgroundImage: Позадинска слика +Settings/BackgroundImageAttachment: Начин на однесување на сликата +Settings/BackgroundImageAttachment/Fixed: Фиксирано +Settings/BackgroundImageAttachment/Scroll: Движечко +Settings/BackgroundImageSize: Димензии на сликата +Settings/BackgroundImageSize/Auto: Ауто +Settings/BackgroundImageSize/Contain: Прикриј +Settings/BackgroundImageSize/Cover: Опфати +Settings/CodeFontFamily: Фонт фамилија за код +Settings/EditorFontFamily: Фонт фамилија за уредник +Settings/FontFamily: Фонт фамилија +ThemeTweaks: Измени +ThemeTweaks/Hint: Можете да промените одредени аспекти на „Ванила“ темата. diff --git a/languages/mk-MK/TiddlerInfo.multids b/languages/mk-MK/TiddlerInfo.multids new file mode 100644 index 000000000..ae55e8966 --- /dev/null +++ b/languages/mk-MK/TiddlerInfo.multids @@ -0,0 +1,21 @@ +title: $:/language/TiddlerInfo/ + +Advanced/Caption: Напредно +Advanced/PluginInfo/Empty/Hint: ништо +Advanced/PluginInfo/Heading: Опис на плаген +Advanced/PluginInfo/Hint: Овој плаген ги содржи следниве сенки: +Advanced/ShadowInfo/Heading: Статус за сенка +Advanced/ShadowInfo/NotShadow/Hint: Записот <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> не е сенка +Advanced/ShadowInfo/OverriddenShadow/Hint: Заменето е со обичен запис +Advanced/ShadowInfo/Shadow/Hint: Записот <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> е сенка +Advanced/ShadowInfo/Shadow/Source: Дефинирано е во плагенот <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link> +Fields/Caption: Полиња +List/Caption: Своја листа +List/Empty: Овој запис нема своја листа +Listed/Caption: Друга листа +Listed/Empty: Овој запис не е спомнат во друга листа +References/Caption: Линкови +References/Empty: Нема записи кои го спомнуваат овој запис +Tagging/Caption: Ознаки +Tagging/Empty: Нема записи кои се означени со овој запис +Tools/Caption: Алатки diff --git a/languages/mk-MK/Types/application%2Fjavascript.tid b/languages/mk-MK/Types/application%2Fjavascript.tid new file mode 100644 index 000000000..44e1277b4 --- /dev/null +++ b/languages/mk-MK/Types/application%2Fjavascript.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/application/javascript +description: ЈаваСкрипт +name: application/javascript +group: Девелопер diff --git a/languages/mk-MK/Types/application%2Fjson.tid b/languages/mk-MK/Types/application%2Fjson.tid new file mode 100644 index 000000000..31efdac8f --- /dev/null +++ b/languages/mk-MK/Types/application%2Fjson.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/application/json +description: JSON дата +name: application/json +group: Девелопер diff --git a/languages/mk-MK/Types/application%2Fx-tiddler-dictionary.tid b/languages/mk-MK/Types/application%2Fx-tiddler-dictionary.tid new file mode 100644 index 000000000..f14866ce1 --- /dev/null +++ b/languages/mk-MK/Types/application%2Fx-tiddler-dictionary.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/application/x-tiddler-dictionary +description: Дата речник +name: application/x-tiddler-dictionary +group: Девелопер diff --git a/languages/mk-MK/Types/image%2Fgif.tid b/languages/mk-MK/Types/image%2Fgif.tid new file mode 100644 index 000000000..f2f50306b --- /dev/null +++ b/languages/mk-MK/Types/image%2Fgif.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/image/gif +description: GIF слика +name: image/gif +group: Фотографија diff --git a/languages/mk-MK/Types/image%2Fjpeg.tid b/languages/mk-MK/Types/image%2Fjpeg.tid new file mode 100644 index 000000000..5f2080e9a --- /dev/null +++ b/languages/mk-MK/Types/image%2Fjpeg.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/image/jpeg +description: JPEG слика +name: image/jpeg +group: Фотографија diff --git a/languages/mk-MK/Types/image%2Fpng.tid b/languages/mk-MK/Types/image%2Fpng.tid new file mode 100644 index 000000000..ba337ee49 --- /dev/null +++ b/languages/mk-MK/Types/image%2Fpng.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/image/png +description: PNG слика +name: image/png +group: Фотографија diff --git a/languages/mk-MK/Types/image%2Fsvg%2Bxml.tid b/languages/mk-MK/Types/image%2Fsvg%2Bxml.tid new file mode 100644 index 000000000..06e07f849 --- /dev/null +++ b/languages/mk-MK/Types/image%2Fsvg%2Bxml.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/image/svg+xml +description: SVG слика +name: image/svg+xml +group: Фотографија diff --git a/languages/mk-MK/Types/image%2Fx-icon.tid b/languages/mk-MK/Types/image%2Fx-icon.tid new file mode 100644 index 000000000..0f28bb5b8 --- /dev/null +++ b/languages/mk-MK/Types/image%2Fx-icon.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/image/x-icon +description: ICO икона +name: image/x-icon +group: Фотографија diff --git a/languages/mk-MK/Types/text%2Fcss.tid b/languages/mk-MK/Types/text%2Fcss.tid new file mode 100644 index 000000000..426722135 --- /dev/null +++ b/languages/mk-MK/Types/text%2Fcss.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/text/css +description: Статичен stylesheet +name: text/css +group: Девелопер diff --git a/languages/mk-MK/Types/text%2Fhtml.tid b/languages/mk-MK/Types/text%2Fhtml.tid new file mode 100644 index 000000000..63e59b5d6 --- /dev/null +++ b/languages/mk-MK/Types/text%2Fhtml.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/text/html +description: HTML markup +name: text/html +group: Текст diff --git a/languages/mk-MK/Types/text%2Fplain.tid b/languages/mk-MK/Types/text%2Fplain.tid new file mode 100644 index 000000000..3d0654bca --- /dev/null +++ b/languages/mk-MK/Types/text%2Fplain.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/text/plain +description: Обичен текст +name: text/plain +group: Текст diff --git a/languages/mk-MK/Types/text%2Fvnd.tiddlywiki.tid b/languages/mk-MK/Types/text%2Fvnd.tiddlywiki.tid new file mode 100644 index 000000000..febd44ed0 --- /dev/null +++ b/languages/mk-MK/Types/text%2Fvnd.tiddlywiki.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/text/vnd.tiddlywiki +description: ТидлиВики 5 +name: text/vnd.tiddlywiki +group: Текст diff --git a/languages/mk-MK/Types/text%2Fx-tiddlywiki.tid b/languages/mk-MK/Types/text%2Fx-tiddlywiki.tid new file mode 100644 index 000000000..224c5cf00 --- /dev/null +++ b/languages/mk-MK/Types/text%2Fx-tiddlywiki.tid @@ -0,0 +1,4 @@ +title: $:/language/Docs/Types/text/x-tiddlywiki +description: ТидлиВики Класик +name: text/x-tiddlywiki +group: Текст diff --git a/languages/mk-MK/icon.tid b/languages/mk-MK/icon.tid new file mode 100644 index 000000000..20525ace9 --- /dev/null +++ b/languages/mk-MK/icon.tid @@ -0,0 +1,8 @@ +title: $:/languages/mk-MK/icon +type: image/svg+xml + +<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" viewBox="-140 -70 280 140" fill="#f8e92e"> + <path fill="#d82126" d="m-140-70h280V70h-280z"/> + <path d="m-140 14v-28l280 28v-28zm126-84h28L0-15zM14 70h-28L0 15zM-140-70h42L12.86 7.72zm0 140h42L12.86-7.72zM140-70H98L-12.86 7.72zm0 140H98L-12.86-7.72z"/> + <circle r="22.5" stroke="#d82126" stroke-width="5"/> +</svg> diff --git a/languages/mk-MK/plugin.info b/languages/mk-MK/plugin.info new file mode 100644 index 000000000..1e96fe2e1 --- /dev/null +++ b/languages/mk-MK/plugin.info @@ -0,0 +1,8 @@ +{ + "title": "$:/languages/mk-MK", + "name": "mk-MK", + "plugin-type": "language", + "description": "Macedonian (North Macedonia)", + "author": "Nikola Dio Petkovski", + "core-version": ">=5.1.4" +} diff --git a/languages/zh-Hans/Buttons.multids b/languages/zh-Hans/Buttons.multids index f33169778..c56e41ffe 100644 --- a/languages/zh-Hans/Buttons.multids +++ b/languages/zh-Hans/Buttons.multids @@ -28,6 +28,7 @@ Encryption/ClearPassword/Caption: 清除密码 Encryption/ClearPassword/Hint: 清除密码且不加密保存此维基 Encryption/SetPassword/Caption: 设置密码 Encryption/SetPassword/Hint: 设置加密保存此维基的密码 +EmergencyDownload/Caption: 下载条目为 json ExportPage/Caption: 导出所有条目 ExportPage/Hint: 导出所有条目 ExportTiddler/Caption: 导出此条目 diff --git a/languages/zh-Hans/Docs/ModuleTypes.multids b/languages/zh-Hans/Docs/ModuleTypes.multids index e86baa57f..6f33a3fe0 100644 --- a/languages/zh-Hans/Docs/ModuleTypes.multids +++ b/languages/zh-Hans/Docs/ModuleTypes.multids @@ -9,7 +9,7 @@ config: 加入 `$tw.config` 的数据。 filteroperator: 个别筛选器算子方法。 global: 加入 `$tw` 的全域数据。 info: 透过 [[$:/temp/info-plugin]] 伪插件,发布系统信息。 -isfilteroperator: ''is'' 筛选器算子的运算符。 +isfilteroperator: ''is'' 筛选器运算子的参数。 library: 一般用途的 JavaScript 模块的通用模块类型。 macro: JavaScript ''宏''定义。 parser: 不同内容类型的解析器。 diff --git a/languages/zh-Hans/Misc.multids b/languages/zh-Hans/Misc.multids index 51e6a2ca0..edd508ecd 100644 --- a/languages/zh-Hans/Misc.multids +++ b/languages/zh-Hans/Misc.multids @@ -31,7 +31,7 @@ Error/Filter: 筛选器错误 Error/FilterRunPrefix: 筛选器错误:筛选器 run 的未知首码 Error/FilterSyntax: 筛选器运算式中的语法错误 Error/FormatFilterOperator: 筛选器错误:`format` 筛选器运算符的未知尾码 -Error/IsFilterOperator: 筛选器错误︰'is' 筛选器运算符的未知操作数 +Error/IsFilterOperator: 筛选器错误︰'is' 筛选器运算子的未知参数 Error/LoadingPluginLibrary: 加载插件库时,发生错误 Error/NetworkErrorAlert: `<h2>''网络错误''</h2>与服务器的连缐似乎已中断。这可能表示您的网络连缐有问题。请尝试恢复网路连缐才能继续。<br><br>''恢复连缐时,所有未保存的更改,将自动同步''。` Error/PutEditConflict: 服务器上的文件已更改 diff --git a/languages/zh-Hant/Buttons.multids b/languages/zh-Hant/Buttons.multids index cc5ebba6b..75514b6da 100644 --- a/languages/zh-Hant/Buttons.multids +++ b/languages/zh-Hant/Buttons.multids @@ -28,6 +28,7 @@ Encryption/ClearPassword/Caption: 清除密碼 Encryption/ClearPassword/Hint: 清除密碼且不加密儲存此維基 Encryption/SetPassword/Caption: 設定密碼 Encryption/SetPassword/Hint: 設定加密儲存此維基的密碼 +EmergencyDownload/Caption: 下載條目為 json ExportPage/Caption: 導出所有條目 ExportPage/Hint: 導出所有條目 ExportTiddler/Caption: 導出此條目 diff --git a/languages/zh-Hant/Docs/ModuleTypes.multids b/languages/zh-Hant/Docs/ModuleTypes.multids index baba51100..620615248 100644 --- a/languages/zh-Hant/Docs/ModuleTypes.multids +++ b/languages/zh-Hant/Docs/ModuleTypes.multids @@ -9,7 +9,7 @@ config: 加入 `$tw.config` 的資料。 filteroperator: 個別篩選器運算元方法。 global: 加入 `$tw` 的全域資料。 info: 透過 [[$:/temp/info-plugin]] 偽插件,發佈系統資訊。 -isfilteroperator: ''is'' 篩選器運算元的運算子。 +isfilteroperator: ''is'' 篩選器運算子的參數。 library: 一般用途的 JavaScript 模組的通用的模組類型。 macro: JavaScript ''巨集''定義。 parser: 不同內容類型的解析器。 diff --git a/languages/zh-Hant/Misc.multids b/languages/zh-Hant/Misc.multids index e38900415..5ddb9f1a3 100644 --- a/languages/zh-Hant/Misc.multids +++ b/languages/zh-Hant/Misc.multids @@ -31,7 +31,7 @@ Error/Filter: 篩選器錯誤 Error/FilterRunPrefix: 篩選器錯誤:篩選器 run 的未知首碼 Error/FilterSyntax: 篩選器運算式中的語法錯誤 Error/FormatFilterOperator: 篩選器錯誤:`format` 篩選器運算子的未知尾碼 -Error/IsFilterOperator: 篩選器錯誤︰'is' 篩選器運算子的未知運算元 +Error/IsFilterOperator: 篩選器錯誤︰'is' 篩選器運算子的未知參數 Error/LoadingPluginLibrary: 載入插件程式庫時,發生錯誤 Error/NetworkErrorAlert: `<h2>''網路錯誤''</h2>與伺服器的連線似乎已中斷。這可能表示您的網路連線有問題。請嘗試恢復網路連線才能繼續。<br><br>''恢復連線時,所有未儲存的變更,將自動同步''。` Error/PutEditConflict: 伺服器上的檔案已更改 diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index 30136b6bb..5f7a833c3 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -559,3 +559,5 @@ Wang Ke, @Gk0Wk, 2023/10/17 @etardiff, 2023/12/10 John Long, @drevarr, 2023/12/12 + +Ed Holsinger, @eschlon, 2024/02/08 diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index d57ca1623..000000000 --- a/package-lock.json +++ /dev/null @@ -1,1616 +0,0 @@ -{ - "name": "tiddlywiki", - "version": "5.3.4-prerelease", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "tiddlywiki", - "version": "5.3.4-prerelease", - "license": "BSD", - "dependencies": { - "aws-sdk": "^2.1543.0" - }, - "bin": { - "tiddlywiki": "tiddlywiki.js" - }, - "devDependencies": { - "eslint": "^7.32.0" - }, - "engines": { - "node": ">=0.8.2" - } - }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", - "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", - "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", - "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^1.2.0", - "debug": "^4.1.1", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/aws-sdk": { - "version": "2.1543.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1543.0.tgz", - "integrity": "sha512-sC8VwfdlauX7AYYm6Ed4SkONjt7cLr63AdkSL0MS+lwoy1fJwVRb2Kwylv+an1uAdQavRltWnEg2LVo2jzRQuA==", - "dependencies": { - "buffer": "4.9.2", - "events": "1.1.1", - "ieee754": "1.1.13", - "jmespath": "0.16.0", - "querystring": "0.2.0", - "sax": "1.2.1", - "url": "0.10.3", - "util": "^0.12.4", - "uuid": "8.0.0", - "xml2js": "0.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/aws-sdk/node_modules/buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", - "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "node_modules/aws-sdk/node_modules/ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/call-bind": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", - "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", - "dependencies": { - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.1", - "set-function-length": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/define-data-property": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", - "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", - "dependencies": { - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/enquirer": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", - "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", - "dev": true, - "dependencies": { - "ansi-colors": "^4.1.1", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "7.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", - "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.3", - "@humanwhocodes/config-array": "^0.5.0", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.1.2", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", - "dev": true, - "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/events": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", - "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==", - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "dev": true - }, - "node_modules/get-intrinsic": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", - "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", - "dependencies": { - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", - "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", - "dependencies": { - "get-intrinsic": "^1.2.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", - "dependencies": { - "which-typed-array": "^1.1.11" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jmespath": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", - "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", - "dev": true, - "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/sax": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", - "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==" - }, - "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/set-function-length": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz", - "integrity": "sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w==", - "dependencies": { - "define-data-property": "^1.1.1", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.2", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/table": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", - "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", - "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/url": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", - "integrity": "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==", - "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "node_modules/url/node_modules/punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==" - }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, - "node_modules/uuid": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", - "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", - "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.4", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/xml2js": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", - "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } -} diff --git a/package.json b/package.json index 62e3cff8d..cb4eb8fc9 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,5 @@ "test": "node ./tiddlywiki.js ./editions/test --verbose --version --build index", "lint:fix": "eslint . --fix", "lint": "eslint ." - }, - "dependencies": { - "aws-sdk": "^2.1543.0" } } diff --git a/plugins/tiddlywiki/confetti/startup.js b/plugins/tiddlywiki/confetti/startup.js index 773d8e9fe..6634cbbca 100644 --- a/plugins/tiddlywiki/confetti/startup.js +++ b/plugins/tiddlywiki/confetti/startup.js @@ -25,13 +25,19 @@ exports.startup = function() { var paramObject = event.paramObject || {}, options = {}, extractNumericParameter = function(name) { - options[name] = paramObject[name] && $tw.utils.parseNumber(paramObject[name]); + if(paramObject[name]) { + options[name] = $tw.utils.parseNumber(paramObject[name]); + } }, extractListParameter = function(name) { - options[name] = paramObject[name] && $tw.utils.parseStringArray(paramObject[name]); + if(paramObject[name]) { + options[name] = $tw.utils.parseStringArray(paramObject[name]); + } }, extractBooleanParameter = function(name) { - options[name] = paramObject[name] && paramObject[name] === "yes"; + if(paramObject[name]) { + options[name] = paramObject[name] === "yes"; + } }; $tw.utils.each("particleCount angle spread startVelocity decay gravity drift ticks scalar zIndex".split(" "),function(name) { extractNumericParameter(name); @@ -39,10 +45,12 @@ exports.startup = function() { $tw.utils.each("colors shapes".split(" "),function(name) { extractListParameter(name); }); - options.origin = { - x: paramObject.originX && $tw.utils.parseNumber(paramObject.originX), - y: paramObject.originY && $tw.utils.parseNumber(paramObject.originY) - }; + if(paramObject.originX && paramObject.originY) { + options.origin = { + x: paramObject.originX && $tw.utils.parseNumber(paramObject.originX), + y: paramObject.originY && $tw.utils.parseNumber(paramObject.originY) + }; + } extractBooleanParameter("disableForReducedMotion"); var delay = paramObject.delay ? $tw.utils.parseNumber(paramObject.delay) : 0; $tw.confettiManager.launch(delay,options); diff --git a/plugins/tiddlywiki/highlight/files/tiddlywiki.files b/plugins/tiddlywiki/highlight/files/tiddlywiki.files index 8c6f014c7..acc957162 100644 --- a/plugins/tiddlywiki/highlight/files/tiddlywiki.files +++ b/plugins/tiddlywiki/highlight/files/tiddlywiki.files @@ -7,7 +7,6 @@ "title": "$:/plugins/tiddlywiki/highlight/highlight.js", "module-type": "library" }, - "prefix": "var hljs = require(\"$:/plugins/tiddlywiki/highlight/highlight.js\");\n", "suffix": "\nexports.hljs = hljs;\n" }, { diff --git a/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/recent.tid b/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/recent.tid index c0c3957a2..5c894741f 100644 --- a/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/recent.tid +++ b/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/recent.tid @@ -2,7 +2,7 @@ title: $:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/steps/recent caption: Finding recent tiddlers tags: $:/tags/Tour/IntroductionToTiddlyWiki hint-selector: .tc-sidebar-tabs-main .tc-timeline > .tc-menu-list-item:nth-child(1) .tc-menu-list-subitem:nth-child(1) .tc-tiddlylink -hint-selector-fallback-1: .tc-sidebar-tabs-main button:nth-child(3) +hint-selector-fallback-1: .tc-sidebar-tabs-main button[data-tab-title="\$\:\/core\/ui\/SideBar\/Recent"] step-success-filter: [list[$:/StoryList]match<step-success-filter-var>] step-success-filter-var: [all[tiddlers]!is[system]!sort[modified]] diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 618afc695..1ca85c6a7 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1577,10 +1577,6 @@ html body.tc-body.tc-single-tiddler-window { padding-left: 4px; } -.tc-tiddler-preview { - overflow: auto; -} - .tc-tiddler-editor { display: grid; }