mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-08 23:20:03 +00:00
Merge branch 'master' into feat-ai-tools
This commit is contained in:
commit
a1a6b6fa25
@ -231,7 +231,10 @@ rules:
|
|||||||
prefer-spread: 'off'
|
prefer-spread: 'off'
|
||||||
prefer-template: 'off'
|
prefer-template: 'off'
|
||||||
quote-props: 'off'
|
quote-props: 'off'
|
||||||
quotes: 'off'
|
quotes:
|
||||||
|
- error
|
||||||
|
- double
|
||||||
|
- avoidEscape: true
|
||||||
radix: 'off'
|
radix: 'off'
|
||||||
require-atomic-updates: error
|
require-atomic-updates: error
|
||||||
require-await: error
|
require-await: error
|
||||||
|
4
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
4
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -21,7 +21,7 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: To Reproduce
|
label: To Reproduce
|
||||||
description: "Steps to reproduce the behavior:"
|
description: "Steps to reproduce the behavior:"
|
||||||
value: |
|
placeholder: |
|
||||||
1. Go to '...'
|
1. Go to '...'
|
||||||
2. Click on '....'
|
2. Click on '....'
|
||||||
3. Scroll down to '....'
|
3. Scroll down to '....'
|
||||||
@ -41,7 +41,7 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: TiddlyWiki Configuration
|
label: TiddlyWiki Configuration
|
||||||
description: please complete the following information
|
description: please complete the following information
|
||||||
value: |
|
placeholder: |
|
||||||
- Version [e.g. v5.1.24]
|
- Version [e.g. v5.1.24]
|
||||||
- Saving mechanism [e.g. Node.js, TiddlyDesktop, TiddlyHost etc]
|
- Saving mechanism [e.g. Node.js, TiddlyDesktop, TiddlyHost etc]
|
||||||
- Plugins installed [e.g. Freelinks, TiddlyMap]
|
- Plugins installed [e.g. Freelinks, TiddlyMap]
|
||||||
|
@ -15,3 +15,11 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
--output . \
|
--output . \
|
||||||
--build readmes \
|
--build readmes \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
|
|
||||||
|
# tw.org readmes
|
||||||
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
|
editions/tw.org \
|
||||||
|
--verbose \
|
||||||
|
--output . \
|
||||||
|
--build readmes \
|
||||||
|
|| exit 1
|
||||||
|
1
code-of-conduct.md
Normal file
1
code-of-conduct.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>This community exists because TiddlyWiki is more useful when people share and work together.</p><p>This community is a beautiful but fragile thing: a collection of diverse people from all over the planet, united in their interest in the project, and their commitment to helping one another achieve and learn more.</p><p>We try to make the community as broad and welcoming as possible by remembering some basic principles of culture and behaviour.</p><p>These principles guide technical and non-technical decisions, and help contributors and leaders support our project and community.</p><ul><li>We are optimistic and hopeful</li><li>We aim to foster a learning environment that is collaborative and safe for everyone</li><li>We recognise that the motivation for sharing and helping is usually for appreciation, and not financial gain, and so we take care to acknowledge and <strong>thank the people who enrich the community by sharing what they have created</strong></li><li>While we are united in our interest in TiddlyWiki, we differ in every other conceivable way. We choose to focus on what unites us, and <strong>avoid unnecessarily mixing contentious topics like religion and politics</strong></li><li>We treat each other with respect, and start with the assumption that <strong>others are acting in good faith</strong></li><li>We avoid discriminatory language</li><li>We try to use our strength as a community to help others</li><li>We avoid responding when angry or upset because we try to de-escalate conflict</li><li>We make sure we critique ideas, not people</li><li>When we disagree with others we do so graciously, and treat others with dignity and respoect</li><li>We do not tolerate intolerance towards others</li><li>We seek first to understand others, and then to be understood</li><li>We have fun</li></ul><p>Our discussions are in English. It is not the first language of many people in the community, nor do we all share the same cultural background and reference points. So we take care to use language that is clear and unambigous, and avoid cultural references or jokes that will not be widely understood.</p><p>It is not acceptable to make jokes or other comments that discriminate by race, gender, sexuality, or other protected characteristic.</p><p>As an inclusive community, we are committed to making sure that TiddlyWiki is an accessible tool that understands the needs of people with disabilities.</p>
|
5
core/images/discord.tid
Normal file
5
core/images/discord.tid
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
title: $:/core/images/discord
|
||||||
|
tags: $:/tags/Image
|
||||||
|
|
||||||
|
\parameters (size:"22pt")
|
||||||
|
<svg width=<<size>> height=<<size>> class="tc-image-discord tc-image-button" viewBox="0 -28.5 256 256"><path d="M216.856 16.597A208.502 208.502 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046-19.692-2.961-39.203-2.961-58.533 0-1.832-4.4-4.55-9.933-6.846-14.046a207.809 207.809 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161.094 161.094 0 0 0 79.735 175.3a136.413 136.413 0 0 1-21.846-10.632 108.636 108.636 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a131.66 131.66 0 0 0 5.355 4.237 136.07 136.07 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848 21.142-6.58 42.646-16.637 64.815-33.213 5.316-56.288-9.08-105.09-38.056-148.36ZM85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2c12.867 0 23.236 11.804 23.015 26.2.02 14.375-10.148 26.18-23.015 26.18Zm85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2 0 14.375-10.148 26.18-23.015 26.18Z"/></svg>
|
@ -80,6 +80,7 @@ NewMarkdown/Caption: new Markdown tiddler
|
|||||||
NewMarkdown/Hint: Create a new Markdown tiddler
|
NewMarkdown/Hint: Create a new Markdown tiddler
|
||||||
NewTiddler/Caption: new tiddler
|
NewTiddler/Caption: new tiddler
|
||||||
NewTiddler/Hint: Create a new tiddler
|
NewTiddler/Hint: Create a new tiddler
|
||||||
|
OpenControlPanel/Hint: Open control panel
|
||||||
OpenWindow/Caption: open in new window
|
OpenWindow/Caption: open in new window
|
||||||
OpenWindow/Hint: Open tiddler in new window
|
OpenWindow/Hint: Open tiddler in new window
|
||||||
Palette/Caption: palette
|
Palette/Caption: palette
|
||||||
@ -132,6 +133,7 @@ Excise/Caption/Replace/Link: link
|
|||||||
Excise/Caption/Replace/Transclusion: transclusion
|
Excise/Caption/Replace/Transclusion: transclusion
|
||||||
Excise/Caption/Tag: Tag new tiddler with the title of this tiddler
|
Excise/Caption/Tag: Tag new tiddler with the title of this tiddler
|
||||||
Excise/Caption/TiddlerExists: Warning: tiddler already exists
|
Excise/Caption/TiddlerExists: Warning: tiddler already exists
|
||||||
|
Excise/DefaultTitle: New Excision
|
||||||
Excise/Hint: Excise the selected text into a new tiddler
|
Excise/Hint: Excise the selected text into a new tiddler
|
||||||
Heading1/Caption: heading 1
|
Heading1/Caption: heading 1
|
||||||
Heading1/Hint: Apply heading level 1 formatting to lines containing selection
|
Heading1/Hint: Apply heading level 1 formatting to lines containing selection
|
||||||
|
@ -198,6 +198,12 @@ Settings/TitleLinks/Yes/Description: Display tiddler titles as links
|
|||||||
Settings/MissingLinks/Caption: Wiki Links
|
Settings/MissingLinks/Caption: Wiki Links
|
||||||
Settings/MissingLinks/Hint: Choose whether to link to tiddlers that do not exist yet
|
Settings/MissingLinks/Hint: Choose whether to link to tiddlers that do not exist yet
|
||||||
Settings/MissingLinks/Description: Enable links to missing tiddlers
|
Settings/MissingLinks/Description: Enable links to missing tiddlers
|
||||||
|
SocialCard/Caption: Social Media Card
|
||||||
|
SocialCard/Domain/Prompt: Domain name to display for the link (for example, ''tiddlywiki.com'')
|
||||||
|
SocialCard/Hint: This information is used by social and messaging services to display a preview card for links to this TiddlyWiki when hosted online
|
||||||
|
SocialCard/PreviewUrl/Prompt: Full URL to preview image for this TiddlyWiki
|
||||||
|
SocialCard/PreviewUrl/Preview: Preview image:
|
||||||
|
SocialCard/Url/Prompt: Full URL of this TiddlyWiki
|
||||||
StoryTiddler/Caption: Story Tiddler
|
StoryTiddler/Caption: Story Tiddler
|
||||||
StoryTiddler/Hint: This rule cascade is used to dynamically choose the template for displaying a tiddler in the story river.
|
StoryTiddler/Hint: This rule cascade is used to dynamically choose the template for displaying a tiddler in the story river.
|
||||||
StoryView/Caption: Story View
|
StoryView/Caption: Story View
|
||||||
@ -235,3 +241,7 @@ ViewTemplateBody/Caption: View Template Body
|
|||||||
ViewTemplateBody/Hint: This rule cascade is used by the default view template to dynamically choose the template for displaying the body of a tiddler.
|
ViewTemplateBody/Hint: This rule cascade is used by the default view template to dynamically choose the template for displaying the body of a tiddler.
|
||||||
ViewTemplateTitle/Caption: View Template Title
|
ViewTemplateTitle/Caption: View Template Title
|
||||||
ViewTemplateTitle/Hint: This rule cascade is used by the default view template to dynamically choose the template for displaying the title of a tiddler.
|
ViewTemplateTitle/Hint: This rule cascade is used by the default view template to dynamically choose the template for displaying the title of a tiddler.
|
||||||
|
ViewTemplateSubtitle/Caption: View Template Subtitle
|
||||||
|
ViewTemplateSubtitle/Hint: This rule cascade is used by the default view template to dynamically choose the template for displaying the subtitle of a tiddler.
|
||||||
|
ViewTemplateTags/Caption: View Template Tags
|
||||||
|
ViewTemplateTags/Hint: This rule cascade is used by the default view template to dynamically choose the template for displaying the tags area of a tiddler.
|
||||||
|
@ -26,6 +26,7 @@ Tags/ClearInput/Caption: clear input
|
|||||||
Tags/ClearInput/Hint: Clear tag input
|
Tags/ClearInput/Hint: Clear tag input
|
||||||
Tags/Dropdown/Caption: tag list
|
Tags/Dropdown/Caption: tag list
|
||||||
Tags/Dropdown/Hint: Show tag list
|
Tags/Dropdown/Hint: Show tag list
|
||||||
|
Tags/EmptyMessage: (no search result)
|
||||||
Title/BadCharacterWarning: Warning: avoid using any of the characters <<bad-chars>> in tiddler titles
|
Title/BadCharacterWarning: Warning: avoid using any of the characters <<bad-chars>> in tiddler titles
|
||||||
Title/Exists/Prompt: Target tiddler already exists
|
Title/Exists/Prompt: Target tiddler already exists
|
||||||
Title/Relink/Prompt: Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers
|
Title/Relink/Prompt: Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers
|
||||||
|
@ -6,6 +6,8 @@ Filter/Hint: Search via a [[filter expression|https://tiddlywiki.com/static/Filt
|
|||||||
Filter/Matches: //<small><<resultCount>> matches</small>//
|
Filter/Matches: //<small><<resultCount>> matches</small>//
|
||||||
Matches: //<small><<resultCount>> matches</small>//
|
Matches: //<small><<resultCount>> matches</small>//
|
||||||
Matches/All: All matches:
|
Matches/All: All matches:
|
||||||
|
Matches/NoMatch: //No match//
|
||||||
|
Matches/NoResult: //No search result//
|
||||||
Matches/Title: Title matches:
|
Matches/Title: Title matches:
|
||||||
Search: Search
|
Search: Search
|
||||||
Search/TooShort: Search text too short
|
Search/TooShort: Search text too short
|
||||||
|
7
core/language/en-GB/Snippets/FunctionDefinition.tid
Normal file
7
core/language/en-GB/Snippets/FunctionDefinition.tid
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
title: $:/language/Snippets/FunctionDefinition
|
||||||
|
tags: $:/tags/TextEditor/Snippet
|
||||||
|
caption: Function definition
|
||||||
|
|
||||||
|
\function f.name(param1,param2:"default value") [<param1>!is[blank]else<param2>]
|
||||||
|
|
||||||
|
<<f.name>>
|
7
core/language/en-GB/Snippets/ProcedureDefinition.tid
Normal file
7
core/language/en-GB/Snippets/ProcedureDefinition.tid
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
title: $:/language/Snippets/ProcedureDefinition
|
||||||
|
tags: $:/tags/TextEditor/Snippet
|
||||||
|
caption: Procedure definition
|
||||||
|
|
||||||
|
\procedure procName(param1:"default value",param2)
|
||||||
|
Your text comes here.
|
||||||
|
\end
|
@ -1,5 +0,0 @@
|
|||||||
title: $:/language/Docs/Types/image/x-icon
|
|
||||||
description: ICO icon
|
|
||||||
name: image/x-icon
|
|
||||||
group: Image
|
|
||||||
group-sort: 1
|
|
@ -0,0 +1,5 @@
|
|||||||
|
title: $:/language/Docs/Types/text/vnd.tiddlywiki-multiple
|
||||||
|
description: Compound tiddler
|
||||||
|
name: text/vnd.tiddlywiki-multiple
|
||||||
|
group: Developer
|
||||||
|
group-sort: 2
|
@ -45,7 +45,9 @@ Render individual tiddlers and save the results to the specified files
|
|||||||
variableList = variableList.slice(2);
|
variableList = variableList.slice(2);
|
||||||
}
|
}
|
||||||
$tw.utils.each(tiddlers,function(title) {
|
$tw.utils.each(tiddlers,function(title) {
|
||||||
var filepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);
|
var filenameResults = wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]));
|
||||||
|
if(filenameResults.length > 0) {
|
||||||
|
var filepath = path.resolve(self.commander.outputPath,filenameResults[0]);
|
||||||
if(self.commander.verbose) {
|
if(self.commander.verbose) {
|
||||||
console.log("Rendering \"" + title + "\" to \"" + filepath + "\"");
|
console.log("Rendering \"" + title + "\" to \"" + filepath + "\"");
|
||||||
}
|
}
|
||||||
@ -56,6 +58,9 @@ Render individual tiddlers and save the results to the specified files
|
|||||||
var text = type === "text/html" ? container.innerHTML : container.textContent;
|
var text = type === "text/html" ? container.innerHTML : container.textContent;
|
||||||
$tw.utils.createFileDirectories(filepath);
|
$tw.utils.createFileDirectories(filepath);
|
||||||
fs.writeFileSync(filepath,text,"utf8");
|
fs.writeFileSync(filepath,text,"utf8");
|
||||||
|
} else {
|
||||||
|
console.log("Not rendering \"" + title + "\" because the filename filter returned an empty result");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
@ -14,11 +14,12 @@ Text editor operation to excise the selection to a new tiddler
|
|||||||
|
|
||||||
exports["excise"] = function(event,operation) {
|
exports["excise"] = function(event,operation) {
|
||||||
var editTiddler = this.wiki.getTiddler(this.editTitle),
|
var editTiddler = this.wiki.getTiddler(this.editTitle),
|
||||||
editTiddlerTitle = this.editTitle;
|
editTiddlerTitle = this.editTitle,
|
||||||
|
excisionBaseTitle = $tw.language.getString("Buttons/Excise/DefaultTitle");
|
||||||
if(editTiddler && editTiddler.fields["draft.of"]) {
|
if(editTiddler && editTiddler.fields["draft.of"]) {
|
||||||
editTiddlerTitle = editTiddler.fields["draft.of"];
|
editTiddlerTitle = editTiddler.fields["draft.of"];
|
||||||
}
|
}
|
||||||
var excisionTitle = event.paramObject.title || this.wiki.generateNewTitle("New Excision");
|
var excisionTitle = event.paramObject.title || this.wiki.generateNewTitle(excisionBaseTitle);
|
||||||
this.wiki.addTiddler(new $tw.Tiddler(
|
this.wiki.addTiddler(new $tw.Tiddler(
|
||||||
this.wiki.getCreationFields(),
|
this.wiki.getCreationFields(),
|
||||||
this.wiki.getModificationFields(),
|
this.wiki.getModificationFields(),
|
||||||
|
@ -93,11 +93,12 @@ var processRow = function(prevColumns) {
|
|||||||
}
|
}
|
||||||
// Check whether this is a heading cell
|
// Check whether this is a heading cell
|
||||||
var cell;
|
var cell;
|
||||||
|
var start = this.parser.pos;
|
||||||
if(chr === "!") {
|
if(chr === "!") {
|
||||||
this.parser.pos++;
|
this.parser.pos++;
|
||||||
cell = {type: "element", tag: "th", children: []};
|
cell = {type: "element", tag: "th", start: start, children: []};
|
||||||
} else {
|
} else {
|
||||||
cell = {type: "element", tag: "td", children: []};
|
cell = {type: "element", tag: "td", start: start, children: []};
|
||||||
}
|
}
|
||||||
tree.push(cell);
|
tree.push(cell);
|
||||||
// Record information about this cell
|
// Record information about this cell
|
||||||
@ -121,6 +122,7 @@ var processRow = function(prevColumns) {
|
|||||||
}
|
}
|
||||||
// Move back to the closing `|`
|
// Move back to the closing `|`
|
||||||
this.parser.pos--;
|
this.parser.pos--;
|
||||||
|
cell.end = this.parser.pos;
|
||||||
}
|
}
|
||||||
col++;
|
col++;
|
||||||
cellRegExp.lastIndex = this.parser.pos;
|
cellRegExp.lastIndex = this.parser.pos;
|
||||||
@ -169,12 +171,13 @@ exports.parse = function() {
|
|||||||
rowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});
|
rowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});
|
||||||
} else {
|
} else {
|
||||||
// Create the row
|
// Create the row
|
||||||
var theRow = {type: "element", tag: "tr", children: []};
|
var theRow = {type: "element", tag: "tr", children: [], start: rowMatch.index};
|
||||||
$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? "oddRow" : "evenRow");
|
$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? "oddRow" : "evenRow");
|
||||||
rowContainer.children.push(theRow);
|
rowContainer.children.push(theRow);
|
||||||
// Process the row
|
// Process the row
|
||||||
theRow.children = processRow.call(this,prevColumns);
|
theRow.children = processRow.call(this,prevColumns);
|
||||||
this.parser.pos = rowMatch.index + rowMatch[0].length;
|
this.parser.pos = rowMatch.index + rowMatch[0].length;
|
||||||
|
theRow.end = this.parser.pos;
|
||||||
// Increment the row count
|
// Increment the row count
|
||||||
rowCount++;
|
rowCount++;
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ var PutSaver = function(wiki) {
|
|||||||
callback: function(err,data,xhr) {
|
callback: function(err,data,xhr) {
|
||||||
// Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1
|
// Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1
|
||||||
if(!err) {
|
if(!err) {
|
||||||
self.serverAcceptsPuts = xhr.status === 200 && !!xhr.getResponseHeader("dav");
|
self.serverAcceptsPuts = xhr.status >= 200 && xhr.status < 300 && !!xhr.getResponseHeader("dav");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -30,12 +30,8 @@ ClassicStoryView.prototype.navigateTo = function(historyInfo) {
|
|||||||
if(!targetElement || targetElement.nodeType === Node.TEXT_NODE) {
|
if(!targetElement || targetElement.nodeType === Node.TEXT_NODE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(duration) {
|
|
||||||
// Scroll the node into view
|
// Scroll the node into view
|
||||||
this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement});
|
this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement});
|
||||||
} else {
|
|
||||||
targetElement.scrollIntoView();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ClassicStoryView.prototype.insert = function(widget) {
|
ClassicStoryView.prototype.insert = function(widget) {
|
||||||
|
@ -12,7 +12,7 @@ Upgrader module that suppresses certain system tiddlers that shouldn't be import
|
|||||||
/*global $tw: false */
|
/*global $tw: false */
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var DONT_IMPORT_LIST = ["$:/Import"],
|
var DONT_IMPORT_LIST = ["$:/Import", "$:/build"],
|
||||||
UNSELECT_PREFIX_LIST = ["$:/temp/","$:/state/","$:/StoryList","$:/HistoryList"],
|
UNSELECT_PREFIX_LIST = ["$:/temp/","$:/state/","$:/StoryList","$:/HistoryList"],
|
||||||
WARN_IMPORT_PREFIX_LIST = ["$:/core/modules/"];
|
WARN_IMPORT_PREFIX_LIST = ["$:/core/modules/"];
|
||||||
|
|
||||||
|
@ -29,8 +29,11 @@ exports.getEditionInfo = function() {
|
|||||||
for(var entryIndex=0; entryIndex<entries.length; entryIndex++) {
|
for(var entryIndex=0; entryIndex<entries.length; entryIndex++) {
|
||||||
var entry = entries[entryIndex];
|
var entry = entries[entryIndex];
|
||||||
// Check if directories have a valid tiddlywiki.info
|
// Check if directories have a valid tiddlywiki.info
|
||||||
if(!editionInfo[entry] && $tw.utils.isDirectory(path.resolve(editionPath,entry))) {
|
// Check if the entry is a hidden directory
|
||||||
var info = $tw.utils.parseJSONSafe(fs.readFileSync(path.resolve(editionPath,entry,"tiddlywiki.info"),"utf8"),null);
|
if((entry.charAt(0) !== ".") && !editionInfo[entry] && $tw.utils.isDirectory(path.resolve(editionPath,entry))) {
|
||||||
|
var file=path.resolve(editionPath,entry,"tiddlywiki.info");
|
||||||
|
if(fs.existsSync(file)) {
|
||||||
|
var info = $tw.utils.parseJSONSafe(fs.readFileSync(file,"utf8"),null);
|
||||||
if(info) {
|
if(info) {
|
||||||
editionInfo[entry] = info;
|
editionInfo[entry] = info;
|
||||||
}
|
}
|
||||||
@ -38,6 +41,7 @@ exports.getEditionInfo = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return editionInfo;
|
return editionInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -924,7 +924,7 @@ exports.transliterate = function(str) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.transliterateToSafeASCII = function(str) {
|
exports.transliterateToSafeASCII = function(str) {
|
||||||
return str.replace(/[^\x00-\x7F]/g,function(ch) {
|
return str.replace(/[^\x20-\x7F]/g,function(ch) {
|
||||||
return exports.transliterationPairs[ch] || ""
|
return exports.transliterationPairs[ch] || ""
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -75,7 +75,9 @@ DataWidget.prototype.computeDataTiddlerValues = function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Deal with $tiddler, $filter or $compound-tiddler attributes
|
// Deal with $tiddler, $filter or $compound-tiddler attributes
|
||||||
var tiddlers = [],title;
|
var tiddlers = [],
|
||||||
|
compoundTiddlers,
|
||||||
|
title;
|
||||||
if(this.hasAttribute("$tiddler")) {
|
if(this.hasAttribute("$tiddler")) {
|
||||||
title = this.getAttribute("$tiddler");
|
title = this.getAttribute("$tiddler");
|
||||||
if(title) {
|
if(title) {
|
||||||
@ -103,8 +105,17 @@ DataWidget.prototype.computeDataTiddlerValues = function() {
|
|||||||
tiddlers.push.apply(tiddlers,this.extractCompoundTiddler(title));
|
tiddlers.push.apply(tiddlers,this.extractCompoundTiddler(title));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(this.hasAttribute("$compound-filter")) {
|
||||||
|
filter = this.getAttribute("$compound-filter");
|
||||||
|
if(filter) {
|
||||||
|
compoundTiddlers = this.wiki.filterTiddlers(filter);
|
||||||
|
$tw.utils.each(compoundTiddlers, function(title){
|
||||||
|
tiddlers.push.apply(tiddlers,self.extractCompoundTiddler(title));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
// Return the literal item if none of the special attributes were used
|
// Return the literal item if none of the special attributes were used
|
||||||
if(!this.hasAttribute("$tiddler") && !this.hasAttribute("$filter") && !this.hasAttribute("$compound-tiddler")) {
|
if(!this.hasAttribute("$tiddler") && !this.hasAttribute("$filter") && !this.hasAttribute("$compound-tiddler") && !this.hasAttribute("$compound-filter")) {
|
||||||
if(Object.keys(item).length > 0 && !!item.title) {
|
if(Object.keys(item).length > 0 && !!item.title) {
|
||||||
return [new $tw.Tiddler(item)];
|
return [new $tw.Tiddler(item)];
|
||||||
} else {
|
} else {
|
||||||
@ -112,7 +123,6 @@ DataWidget.prototype.computeDataTiddlerValues = function() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Apply the item fields to each of the tiddlers
|
// Apply the item fields to each of the tiddlers
|
||||||
delete item.title; // Do not overwrite the title
|
|
||||||
if(Object.keys(item).length > 0) {
|
if(Object.keys(item).length > 0) {
|
||||||
$tw.utils.each(tiddlers,function(tiddler,index) {
|
$tw.utils.each(tiddlers,function(tiddler,index) {
|
||||||
tiddlers[index] = new $tw.Tiddler(tiddler,item);
|
tiddlers[index] = new $tw.Tiddler(tiddler,item);
|
||||||
|
@ -96,6 +96,7 @@ KeyboardWidget.prototype.execute = function() {
|
|||||||
this.param = this.getAttribute("param","");
|
this.param = this.getAttribute("param","");
|
||||||
this.key = this.getAttribute("key","");
|
this.key = this.getAttribute("key","");
|
||||||
this.tag = this.getAttribute("tag","");
|
this.tag = this.getAttribute("tag","");
|
||||||
|
if($tw.keyboardManager) {
|
||||||
this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
|
this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
|
||||||
if(this.key.substr(0,2) === "((" && this.key.substr(-2,2) === "))") {
|
if(this.key.substr(0,2) === "((" && this.key.substr(-2,2) === "))") {
|
||||||
this.shortcutTiddlers = [];
|
this.shortcutTiddlers = [];
|
||||||
@ -104,6 +105,7 @@ KeyboardWidget.prototype.execute = function() {
|
|||||||
self.shortcutTiddlers.push("$:/config/" + platformDescriptor + "/" + name);
|
self.shortcutTiddlers.push("$:/config/" + platformDescriptor + "/" + name);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Make child widgets
|
// Make child widgets
|
||||||
this.makeChildWidgets();
|
this.makeChildWidgets();
|
||||||
};
|
};
|
||||||
@ -126,7 +128,7 @@ KeyboardWidget.prototype.refresh = function(changedTiddlers) {
|
|||||||
this.assignDomNodeClasses();
|
this.assignDomNodeClasses();
|
||||||
}
|
}
|
||||||
// Update the keyInfoArray if one of its shortcut-config-tiddlers has changed
|
// Update the keyInfoArray if one of its shortcut-config-tiddlers has changed
|
||||||
if(this.shortcutTiddlers && $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers)) {
|
if(this.shortcutTiddlers && $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers) && $tw.keyboardManager) {
|
||||||
this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
|
this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
|
||||||
}
|
}
|
||||||
return this.refreshChildren(changedTiddlers);
|
return this.refreshChildren(changedTiddlers);
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333353
|
foreground: #333353
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/palettes/ContrastLight
|
title: $:/palettes/ContrastDark
|
||||||
name: Contrast (Light)
|
name: Contrast (Dark)
|
||||||
color-scheme: light
|
color-scheme: dark
|
||||||
description: High contrast and unambiguous (light version)
|
description: High contrast and unambiguous (dark version)
|
||||||
tags: $:/tags/Palette
|
tags: $:/tags/Palette
|
||||||
type: application/x-tiddler-dictionary
|
type: application/x-tiddler-dictionary
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ alert-background: #f00
|
|||||||
alert-border: <<colour background>>
|
alert-border: <<colour background>>
|
||||||
alert-highlight: <<colour foreground>>
|
alert-highlight: <<colour foreground>>
|
||||||
alert-muted-foreground: #800
|
alert-muted-foreground: #800
|
||||||
background: #fff
|
background: #000
|
||||||
blockquote-bar: <<colour muted-foreground>>
|
blockquote-bar: <<colour muted-foreground>>
|
||||||
button-background: <<colour background>>
|
button-background: <<colour background>>
|
||||||
button-foreground: <<colour foreground>>
|
button-foreground: <<colour foreground>>
|
||||||
@ -33,7 +33,8 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #00a
|
external-link-foreground-visited: #00a
|
||||||
external-link-foreground: #00e
|
external-link-foreground: #00e
|
||||||
foreground: #000
|
footnote-target-background: #4c4c4c
|
||||||
|
foreground: #fff
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
message-background: <<colour foreground>>
|
message-background: <<colour foreground>>
|
||||||
@ -82,8 +83,8 @@ tab-foreground: <<colour background>>
|
|||||||
table-border: #dddddd
|
table-border: #dddddd
|
||||||
table-footer-background: #a8a8a8
|
table-footer-background: #a8a8a8
|
||||||
table-header-background: #f0f0f0
|
table-header-background: #f0f0f0
|
||||||
tag-background: #000
|
tag-background: #fff
|
||||||
tag-foreground: #fff
|
tag-foreground: #000
|
||||||
tiddler-background: <<colour background>>
|
tiddler-background: <<colour background>>
|
||||||
tiddler-border: <<colour foreground>>
|
tiddler-border: <<colour foreground>>
|
||||||
tiddler-controls-foreground-hover: #ddd
|
tiddler-controls-foreground-hover: #ddd
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/palettes/ContrastDark
|
title: $:/palettes/ContrastLight
|
||||||
name: Contrast (Dark)
|
name: Contrast (Light)
|
||||||
color-scheme: dark
|
color-scheme: light
|
||||||
description: High contrast and unambiguous (dark version)
|
description: High contrast and unambiguous (light version)
|
||||||
tags: $:/tags/Palette
|
tags: $:/tags/Palette
|
||||||
type: application/x-tiddler-dictionary
|
type: application/x-tiddler-dictionary
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ alert-background: #f00
|
|||||||
alert-border: <<colour background>>
|
alert-border: <<colour background>>
|
||||||
alert-highlight: <<colour foreground>>
|
alert-highlight: <<colour foreground>>
|
||||||
alert-muted-foreground: #800
|
alert-muted-foreground: #800
|
||||||
background: #000
|
background: #fff
|
||||||
blockquote-bar: <<colour muted-foreground>>
|
blockquote-bar: <<colour muted-foreground>>
|
||||||
button-background: <<colour background>>
|
button-background: <<colour background>>
|
||||||
button-foreground: <<colour foreground>>
|
button-foreground: <<colour foreground>>
|
||||||
@ -33,7 +33,8 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #00a
|
external-link-foreground-visited: #00a
|
||||||
external-link-foreground: #00e
|
external-link-foreground: #00e
|
||||||
foreground: #fff
|
footnote-target-background: #e5e5e5
|
||||||
|
foreground: #000
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
message-background: <<colour foreground>>
|
message-background: <<colour foreground>>
|
||||||
@ -82,8 +83,8 @@ tab-foreground: <<colour background>>
|
|||||||
table-border: #dddddd
|
table-border: #dddddd
|
||||||
table-footer-background: #a8a8a8
|
table-footer-background: #a8a8a8
|
||||||
table-header-background: #f0f0f0
|
table-header-background: #f0f0f0
|
||||||
tag-background: #fff
|
tag-background: #000
|
||||||
tag-foreground: #000
|
tag-foreground: #fff
|
||||||
tiddler-background: <<colour background>>
|
tiddler-background: <<colour background>>
|
||||||
tiddler-border: <<colour foreground>>
|
tiddler-border: <<colour foreground>>
|
||||||
tiddler-controls-foreground-hover: #ddd
|
tiddler-controls-foreground-hover: #ddd
|
||||||
|
@ -31,6 +31,7 @@ external-link-background: transparent
|
|||||||
external-link-foreground-hover:
|
external-link-foreground-hover:
|
||||||
external-link-foreground-visited: #BF5AF2
|
external-link-foreground-visited: #BF5AF2
|
||||||
external-link-foreground: #32D74B
|
external-link-foreground: #32D74B
|
||||||
|
footnote-target-background: #747474
|
||||||
foreground: #FFFFFF
|
foreground: #FFFFFF
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -35,6 +35,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -39,6 +39,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #313163
|
external-link-foreground-visited: #313163
|
||||||
external-link-foreground: #555592
|
external-link-foreground: #555592
|
||||||
|
footnote-target-background: #fff7d9
|
||||||
foreground: #2D2A23
|
foreground: #2D2A23
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -40,6 +40,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #d3869b
|
external-link-foreground-visited: #d3869b
|
||||||
external-link-foreground: #8ec07c
|
external-link-foreground: #8ec07c
|
||||||
|
footnote-target-background: #665c54
|
||||||
foreground: #fbf1c7
|
foreground: #fbf1c7
|
||||||
highlight-background: #ffff79
|
highlight-background: #ffff79
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -40,6 +40,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #5E81AC
|
external-link-foreground-visited: #5E81AC
|
||||||
external-link-foreground: #8FBCBB
|
external-link-foreground: #8FBCBB
|
||||||
|
footnote-target-background: #2E3440
|
||||||
foreground: #d8dee9
|
foreground: #d8dee9
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -131,6 +131,7 @@ external-link-background-hover: inherit
|
|||||||
external-link-background-visited: inherit
|
external-link-background-visited: inherit
|
||||||
external-link-background: inherit
|
external-link-background: inherit
|
||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
|
footnote-target-background: #ded8c5
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
message-border: #cfd6e6
|
message-border: #cfd6e6
|
||||||
@ -141,6 +142,10 @@ sidebar-controls-foreground-hover:
|
|||||||
sidebar-muted-foreground-hover:
|
sidebar-muted-foreground-hover:
|
||||||
sidebar-tab-background: #ded8c5
|
sidebar-tab-background: #ded8c5
|
||||||
sidebar-tiddler-link-foreground-hover:
|
sidebar-tiddler-link-foreground-hover:
|
||||||
|
stability-deprecated: <<colour red>>
|
||||||
|
stability-experimental: <<colour yellow>>
|
||||||
|
stability-legacy: <<colour blue>>
|
||||||
|
stability-stable: <<colour green>>
|
||||||
static-alert-foreground: #aaaaaa
|
static-alert-foreground: #aaaaaa
|
||||||
tab-border: #cccccc
|
tab-border: #cccccc
|
||||||
modal-footer-border: <<colour tab-border>>
|
modal-footer-border: <<colour tab-border>>
|
||||||
|
@ -34,6 +34,7 @@ external-link-background-visited: inherit
|
|||||||
external-link-foreground: #268bd2
|
external-link-foreground: #268bd2
|
||||||
external-link-foreground-hover:
|
external-link-foreground-hover:
|
||||||
external-link-foreground-visited: #268bd2
|
external-link-foreground-visited: #268bd2
|
||||||
|
footnote-target-background: #073642
|
||||||
foreground: #839496
|
foreground: #839496
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -34,6 +34,7 @@ external-link-background-visited: inherit
|
|||||||
external-link-foreground: #268bd2
|
external-link-foreground: #268bd2
|
||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #268bd2
|
external-link-foreground-visited: #268bd2
|
||||||
|
footnote-target-background: #eee8d5
|
||||||
foreground: #657b83
|
foreground: #657b83
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: transparent
|
|||||||
external-link-foreground-hover:
|
external-link-foreground-hover:
|
||||||
external-link-foreground-visited:
|
external-link-foreground-visited:
|
||||||
external-link-foreground:
|
external-link-foreground:
|
||||||
|
footnote-target-background: #ececec
|
||||||
foreground: rgba(0, 0, 0, 0.87)
|
foreground: rgba(0, 0, 0, 0.87)
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: transparent
|
|||||||
external-link-foreground-hover:
|
external-link-foreground-hover:
|
||||||
external-link-foreground-visited: #7c318c
|
external-link-foreground-visited: #7c318c
|
||||||
external-link-foreground: #9e3eb3
|
external-link-foreground: #9e3eb3
|
||||||
|
footnote-target-background: #494949
|
||||||
foreground: rgba(255, 255, 255, 0.7)
|
foreground: rgba(255, 255, 255, 0.7)
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -42,6 +42,7 @@ external-link-background-visited: inherit
|
|||||||
external-link-foreground: rgb(179, 179, 255)
|
external-link-foreground: rgb(179, 179, 255)
|
||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: rgb(153, 153, 255)
|
external-link-foreground-visited: rgb(153, 153, 255)
|
||||||
|
footnote-target-background: <<colour tag-foreground>>
|
||||||
foreground: rgb(179, 179, 179)
|
foreground: rgb(179, 179, 179)
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -41,6 +41,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
38
core/templates/social-metadata.tid
Normal file
38
core/templates/social-metadata.tid
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
title: $:/core/templates/social-metadata
|
||||||
|
tags: $:/tags/RawMarkupWikified
|
||||||
|
|
||||||
|
\procedure meta-plain(name,source,name-attribute:"name")
|
||||||
|
\whitespace trim
|
||||||
|
<%if [<source>has[text]] %>
|
||||||
|
<meta <$text text=<<name-attribute>>/>="<$text text=<<name>>/>" content="<$text text={{{ [<source>get[text]encodehtml[]] }}}/>">
|
||||||
|
<$text text={{{ [charcode[10]] }}}/>
|
||||||
|
<%endif%>
|
||||||
|
\end meta-plain
|
||||||
|
|
||||||
|
\procedure meta-wikified(name,source,name-attribute:"name")
|
||||||
|
\whitespace trim
|
||||||
|
<%if [<source>has[text]] %>
|
||||||
|
<$wikify name="html" text={{{ [<source>get[text]] }}} output="text">
|
||||||
|
<meta <$text text=<<name-attribute>>/>="<$text text=<<name>>/>" content="<$text text={{{ [<html>encodehtml[]] }}}/>">
|
||||||
|
<$text text={{{ [charcode[10]] }}}/>
|
||||||
|
</$wikify>
|
||||||
|
<%endif%>
|
||||||
|
\end meta-wikified
|
||||||
|
|
||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock conditional commentinline commentblock
|
||||||
|
<<meta-wikified "description" "$:/SiteSubtitle">>
|
||||||
|
|
||||||
|
<!-- Facebook Meta Tags -->
|
||||||
|
<<meta-plain "og:url" "$:/SiteUrl" "property">>
|
||||||
|
<<meta-plain "og:type" "website" "property">>
|
||||||
|
<<meta-wikified "og:title" "$:/SiteTitle" "property">>
|
||||||
|
<<meta-wikified "og:description" "$:/SiteSubtitle" "property">>
|
||||||
|
<<meta-plain "og:image" "$:/SitePreviewUrl" "property">>
|
||||||
|
|
||||||
|
<!-- Twitter Meta Tags -->
|
||||||
|
<<meta-plain "twitter:card" "summary_large_image">>
|
||||||
|
<<meta-plain "twitter:domain" "$:/SiteDomain" "property">>
|
||||||
|
<<meta-plain "twitter:url" "$:/SiteUrl" "property">>
|
||||||
|
<<meta-wikified "twitter:title" "$:/SiteTitle">>
|
||||||
|
<<meta-wikified "twitter:description" "$:/SiteSubtitle">>
|
||||||
|
<<meta-plain "twitter:image" "$:/SitePreviewUrl">>
|
@ -79,11 +79,15 @@ first-search-filter: [all[shadows]search<userInput>sort[title]limit[250]] -[[$:/
|
|||||||
|
|
||||||
<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem">
|
<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem">
|
||||||
|
|
||||||
<$set name="resultCount" value="<$count filter='[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]'/>">
|
<$set name="resultCount" value={{{ [all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] +[count[]]}}}>
|
||||||
|
|
||||||
<div class="tc-search-results">
|
<div class="tc-search-results">
|
||||||
|
|
||||||
<<lingo Shadows/Matches>>
|
<% if [<resultCount>match[0]] %>
|
||||||
|
{{$:/language/Search/Matches/NoMatch}}
|
||||||
|
<% else %>
|
||||||
|
<<lingo Shadows/Matches>>
|
||||||
|
<% endif %>
|
||||||
|
|
||||||
<$list filter="[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]">
|
<$list filter="[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]">
|
||||||
<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
||||||
|
@ -39,6 +39,7 @@ caption: {{$:/language/Search/Standard/Caption}}
|
|||||||
</$keyboard>
|
</$keyboard>
|
||||||
</$keyboard>
|
</$keyboard>
|
||||||
</$keyboard>
|
</$keyboard>
|
||||||
|
 
|
||||||
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
||||||
<$button class="tc-btn-invisible">
|
<$button class="tc-btn-invisible">
|
||||||
<<cancel-search-actions>>
|
<<cancel-search-actions>>
|
||||||
@ -57,15 +58,15 @@ caption: {{$:/language/Search/Standard/Caption}}
|
|||||||
configTiddler={{{ [[$:/state/advancedsearch/standard/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">
|
searchListState="$:/temp/advancedsearch/selected-item">
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]">
|
||||||
|
<$list-empty>
|
||||||
|
<$list filter='[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]'><$transclude mode="block"/></$list>
|
||||||
|
</$list-empty>
|
||||||
<$macrocall $name="tabs"
|
<$macrocall $name="tabs"
|
||||||
tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]"
|
tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]"
|
||||||
default={{$:/config/SearchResults/Default}}
|
default={{$:/config/SearchResults/Default}}
|
||||||
actions="<$action-setfield $tiddler='$:/state/advancedsearch/standard/currentTab' text=<<currentTab>>/>"
|
actions="<$action-setfield $tiddler='$:/state/advancedsearch/standard/currentTab' text=<<currentTab>>/>"
|
||||||
explicitState="$:/state/tab/search-results/advancedsearch" />
|
explicitState="$:/state/tab/search-results/advancedsearch" />
|
||||||
</$list>
|
</$list>
|
||||||
<$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"/></$list>
|
|
||||||
</$list>
|
|
||||||
</$vars>
|
</$vars>
|
||||||
</$list>
|
</$list>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
@ -78,11 +78,15 @@ first-search-filter: [is[system]search<userInput>sort[title]limit[250]] -[[$:/te
|
|||||||
|
|
||||||
<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem">
|
<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem">
|
||||||
|
|
||||||
<$set name="resultCount" value="<$count filter='[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]'/>">
|
<$set name="resultCount" value={{{ [is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]] +[count[]] }}}>
|
||||||
|
|
||||||
<div class="tc-search-results">
|
<div class="tc-search-results">
|
||||||
|
|
||||||
<<lingo System/Matches>>
|
<% if [<resultCount>match[0]] %>
|
||||||
|
{{$:/language/Search/Matches/NoMatch}}
|
||||||
|
<% else %>
|
||||||
|
<<lingo System/Matches>>
|
||||||
|
<% endif %>
|
||||||
|
|
||||||
<$list filter="[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]">
|
<$list filter="[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]">
|
||||||
<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
||||||
|
@ -25,7 +25,7 @@ caption: {{$:/language/ControlPanel/Basics/Caption}}
|
|||||||
|<$link to="$:/SiteTitle"><<lingo Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
|
|<$link to="$:/SiteTitle"><<lingo Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
|
||||||
|<$link to="$:/SiteSubtitle"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
|
|<$link to="$:/SiteSubtitle"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
|
||||||
|<$link to="$:/status/UserName"><<lingo Username/Prompt>></$link> |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> |
|
|<$link to="$:/status/UserName"><<lingo Username/Prompt>></$link> |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> |
|
||||||
|<$link to="$:/config/AnimationDuration"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input"/> |
|
|<$link to="$:/config/AnimationDuration"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input" type="number"/> |
|
||||||
|<$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit class="tc-edit-texteditor" tiddler="$:/DefaultTiddlers" autoHeight="yes"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |
|
|<$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit class="tc-edit-texteditor" tiddler="$:/DefaultTiddlers" autoHeight="yes"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |
|
||||||
|<$link to="$:/language/DefaultNewTiddlerTitle"><<lingo NewTiddler/Title/Prompt>></$link> |<$edit-text tiddler="$:/language/DefaultNewTiddlerTitle" default="" tag="input"/> |
|
|<$link to="$:/language/DefaultNewTiddlerTitle"><<lingo NewTiddler/Title/Prompt>></$link> |<$edit-text tiddler="$:/language/DefaultNewTiddlerTitle" default="" tag="input"/> |
|
||||||
|<$link to="$:/config/NewJournal/Title"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler="$:/config/NewJournal/Title" default="" tag="input"/> |
|
|<$link to="$:/config/NewJournal/Title"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler="$:/config/NewJournal/Title" default="" tag="input"/> |
|
||||||
|
9
core/ui/ControlPanel/Cascades/ViewTemplateSubtitle.tid
Normal file
9
core/ui/ControlPanel/Cascades/ViewTemplateSubtitle.tid
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/ViewTemplateSubtitle
|
||||||
|
tags: $:/tags/ControlPanel/Cascades
|
||||||
|
caption: {{$:/language/ControlPanel/ViewTemplateSubtitle/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ControlPanel/ViewTemplateSubtitle/
|
||||||
|
|
||||||
|
<<lingo Hint>>
|
||||||
|
|
||||||
|
{{$:/tags/ViewTemplateSubtitleFilter||$:/snippets/ListTaggedCascade}}
|
9
core/ui/ControlPanel/Cascades/ViewTemplateTags.tid
Normal file
9
core/ui/ControlPanel/Cascades/ViewTemplateTags.tid
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/ViewTemplateTags
|
||||||
|
tags: $:/tags/ControlPanel/Cascades
|
||||||
|
caption: {{$:/language/ControlPanel/ViewTemplateTags/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ControlPanel/ViewTemplateTags/
|
||||||
|
|
||||||
|
<<lingo Hint>>
|
||||||
|
|
||||||
|
{{$:/tags/ViewTemplateTagsFilter||$:/snippets/ListTaggedCascade}}
|
@ -13,4 +13,4 @@ caption: {{$:/language/ControlPanel/Saving/GitService/GitHub/Caption}}
|
|||||||
|<<lingo Branch>> |<$edit-text tiddler="$:/GitHub/Branch" default="main" tag="input"/> |
|
|<<lingo Branch>> |<$edit-text tiddler="$:/GitHub/Branch" default="main" tag="input"/> |
|
||||||
|<<lingo Path>> |<$edit-text tiddler="$:/GitHub/Path" default="" tag="input"/> |
|
|<<lingo Path>> |<$edit-text tiddler="$:/GitHub/Path" default="" tag="input"/> |
|
||||||
|<<lingo Filename>> |<$edit-text tiddler="$:/GitHub/Filename" default="" tag="input"/> |
|
|<<lingo Filename>> |<$edit-text tiddler="$:/GitHub/Filename" default="" tag="input"/> |
|
||||||
|<<lingo ServerURL>> |<$edit-text tiddler="$:/GitHub/ServerURL" default="https://api.github.com" tag="input"/> |
|
|<<lingo ServerURL>> |<$edit-text tiddler="$:/GitHub/ServerURL" default="https://api.github.com" tag="input" type="url"/> |
|
@ -13,4 +13,4 @@ caption: {{$:/language/ControlPanel/Saving/GitService/GitLab/Caption}}
|
|||||||
|<<lingo Branch>> |<$edit-text tiddler="$:/GitLab/Branch" default="master" tag="input"/> |
|
|<<lingo Branch>> |<$edit-text tiddler="$:/GitLab/Branch" default="master" tag="input"/> |
|
||||||
|<<lingo Path>> |<$edit-text tiddler="$:/GitLab/Path" default="" tag="input"/> |
|
|<<lingo Path>> |<$edit-text tiddler="$:/GitLab/Path" default="" tag="input"/> |
|
||||||
|<<lingo Filename>> |<$edit-text tiddler="$:/GitLab/Filename" default="" tag="input"/> |
|
|<<lingo Filename>> |<$edit-text tiddler="$:/GitLab/Filename" default="" tag="input"/> |
|
||||||
|<<lingo ServerURL>> |<$edit-text tiddler="$:/GitLab/ServerURL" default="https://gitlab.com/api/v4" tag="input"/> |
|
|<<lingo ServerURL>> |<$edit-text tiddler="$:/GitLab/ServerURL" default="https://gitlab.com/api/v4" tag="input" type="url"/> |
|
@ -34,7 +34,7 @@ http://$(userName)$.tiddlyspot.com/$path$/
|
|||||||
|
|
||||||
''<<lingo Advanced/Heading>>''
|
''<<lingo Advanced/Heading>>''
|
||||||
|
|
||||||
|<<lingo ServerURL>> |<$edit-text tiddler="$:/UploadURL" default="" tag="input"/> |
|
|<<lingo ServerURL>> |<$edit-text tiddler="$:/UploadURL" default="" tag="input" type="url"/> |
|
||||||
|<<lingo Filename>> |<$edit-text tiddler="$:/UploadFilename" default="index.html" tag="input"/> |
|
|<<lingo Filename>> |<$edit-text tiddler="$:/UploadFilename" default="index.html" tag="input"/> |
|
||||||
|<<lingo UploadDir>> |<$edit-text tiddler="$:/UploadDir" default="." tag="input"/> |
|
|<<lingo UploadDir>> |<$edit-text tiddler="$:/UploadDir" default="." tag="input"/> |
|
||||||
|<<lingo BackupDir>> |<$edit-text tiddler="$:/UploadBackupDir" default="." tag="input"/> |
|
|<<lingo BackupDir>> |<$edit-text tiddler="$:/UploadBackupDir" default="." tag="input"/> |
|
||||||
|
@ -13,4 +13,4 @@ caption: {{$:/language/ControlPanel/Saving/GitService/Gitea/Caption}}
|
|||||||
|<<lingo Branch>> |<$edit-text tiddler="$:/Gitea/Branch" default="master" tag="input"/> |
|
|<<lingo Branch>> |<$edit-text tiddler="$:/Gitea/Branch" default="master" tag="input"/> |
|
||||||
|<<lingo Path>> |<$edit-text tiddler="$:/Gitea/Path" default="" tag="input"/> |
|
|<<lingo Path>> |<$edit-text tiddler="$:/Gitea/Path" default="" tag="input"/> |
|
||||||
|<<lingo Filename>> |<$edit-text tiddler="$:/Gitea/Filename" default="" tag="input"/> |
|
|<<lingo Filename>> |<$edit-text tiddler="$:/Gitea/Filename" default="" tag="input"/> |
|
||||||
|<<lingo ServerURL>> |<$edit-text tiddler="$:/Gitea/ServerURL" default="https://gitea/api/v1" tag="input"/> |
|
|<<lingo ServerURL>> |<$edit-text tiddler="$:/Gitea/ServerURL" default="https://gitea/api/v1" tag="input" type="url"/> |
|
||||||
|
22
core/ui/ControlPanel/SocialCard.tid
Normal file
22
core/ui/ControlPanel/SocialCard.tid
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/SocialCard
|
||||||
|
tags: $:/tags/ControlPanel/Advanced
|
||||||
|
caption: {{$:/language/ControlPanel/SocialCard/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ControlPanel/
|
||||||
|
|
||||||
|
<<lingo SocialCard/Hint>>
|
||||||
|
|
||||||
|
|<$link to="$:/SiteTitle"><<lingo Basics/Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
|
||||||
|
|<$link to="$:/SiteSubtitle"><<lingo Basics/Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
|
||||||
|
|<$link to="$:/SiteDomain"><<lingo SocialCard/Domain/Prompt>></$link> |<$edit-text tiddler="$:/SiteDomain" default="" tag="input" type="url"/> |
|
||||||
|
|<$link to="$:/SiteUrl"><<lingo SocialCard/Url/Prompt>></$link> |<$edit-text tiddler="$:/SiteUrl" default="" tag="input" type="url"/> |
|
||||||
|
|<$link to="$:/SitePreviewUrl"><<lingo SocialCard/PreviewUrl/Prompt>></$link> |<$edit-text tiddler="$:/SitePreviewUrl" default="" tag="input" type="url"/> |
|
||||||
|
|
||||||
|
<%if [[$:/SitePreviewUrl]get[text]else[]!is[blank]] %>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<<lingo SocialCard/PreviewUrl/Preview>>
|
||||||
|
</div>
|
||||||
|
<img src={{$:/SitePreviewUrl}}/>
|
||||||
|
</div>
|
||||||
|
<%endif%>
|
@ -9,7 +9,7 @@ second-search-filter: [!is[system]search<userInput>sort[title]limit[250]]
|
|||||||
//<small>{{$:/language/Search/Matches/Title}}</small>//
|
//<small>{{$:/language/Search/Matches/Title}}</small>//
|
||||||
|
|
||||||
<$list filter="[<userInput>minlength[1]]" variable="ignore">
|
<$list filter="[<userInput>minlength[1]]" variable="ignore">
|
||||||
<$list filter={{{ [<configTiddler>get[first-search-filter]] }}}>
|
<$list filter={{{ [<configTiddler>get[first-search-filter]] }}} emptyMessage={{$:/language/Search/Matches/NoResult}}>
|
||||||
<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
||||||
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
||||||
</span>
|
</span>
|
||||||
@ -19,7 +19,7 @@ second-search-filter: [!is[system]search<userInput>sort[title]limit[250]]
|
|||||||
//<small>{{$:/language/Search/Matches/All}}</small>//
|
//<small>{{$:/language/Search/Matches/All}}</small>//
|
||||||
|
|
||||||
<$list filter="[<userInput>minlength[1]]" variable="ignore">
|
<$list filter="[<userInput>minlength[1]]" variable="ignore">
|
||||||
<$list filter={{{ [<configTiddler>get[second-search-filter]] }}}>
|
<$list filter={{{ [<configTiddler>get[second-search-filter]] }}} emptyMessage={{$:/language/Search/Matches/NoResult}}>
|
||||||
<span class={{{[<currentTiddler>addsuffix[-secondaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
<span class={{{[<currentTiddler>addsuffix[-secondaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
||||||
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
||||||
</span>
|
</span>
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/bold
|
icon: $:/core/images/bold
|
||||||
caption: {{$:/language/Buttons/Bold/Caption}}
|
caption: {{$:/language/Buttons/Bold/Caption}}
|
||||||
description: {{$:/language/Buttons/Bold/Hint}}
|
description: {{$:/language/Buttons/Bold/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((bold))
|
shortcuts: ((bold))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/excise
|
icon: $:/core/images/excise
|
||||||
caption: {{$:/language/Buttons/Excise/Caption}}
|
caption: {{$:/language/Buttons/Excise/Caption}}
|
||||||
description: {{$:/language/Buttons/Excise/Hint}}
|
description: {{$:/language/Buttons/Excise/Hint}}
|
||||||
condition: [<targetTiddler>type[]] [<targetTiddler>type[text/vnd.tiddlywiki]] +[first[]]
|
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]] +[first[]]
|
||||||
shortcuts: ((excise))
|
shortcuts: ((excise))
|
||||||
dropdown: $:/core/ui/EditorToolbar/excise-dropdown
|
dropdown: $:/core/ui/EditorToolbar/excise-dropdown
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-1
|
icon: $:/core/images/heading-1
|
||||||
caption: {{$:/language/Buttons/Heading1/Caption}}
|
caption: {{$:/language/Buttons/Heading1/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading1/Hint}}
|
description: {{$:/language/Buttons/Heading1/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
button-classes: tc-text-editor-toolbar-item-start-group
|
button-classes: tc-text-editor-toolbar-item-start-group
|
||||||
shortcuts: ((heading-1))
|
shortcuts: ((heading-1))
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-2
|
icon: $:/core/images/heading-2
|
||||||
caption: {{$:/language/Buttons/Heading2/Caption}}
|
caption: {{$:/language/Buttons/Heading2/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading2/Hint}}
|
description: {{$:/language/Buttons/Heading2/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-2))
|
shortcuts: ((heading-2))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-3
|
icon: $:/core/images/heading-3
|
||||||
caption: {{$:/language/Buttons/Heading3/Caption}}
|
caption: {{$:/language/Buttons/Heading3/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading3/Hint}}
|
description: {{$:/language/Buttons/Heading3/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-3))
|
shortcuts: ((heading-3))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-4
|
icon: $:/core/images/heading-4
|
||||||
caption: {{$:/language/Buttons/Heading4/Caption}}
|
caption: {{$:/language/Buttons/Heading4/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading4/Hint}}
|
description: {{$:/language/Buttons/Heading4/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-4))
|
shortcuts: ((heading-4))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-5
|
icon: $:/core/images/heading-5
|
||||||
caption: {{$:/language/Buttons/Heading5/Caption}}
|
caption: {{$:/language/Buttons/Heading5/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading5/Hint}}
|
description: {{$:/language/Buttons/Heading5/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-5))
|
shortcuts: ((heading-5))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-6
|
icon: $:/core/images/heading-6
|
||||||
caption: {{$:/language/Buttons/Heading6/Caption}}
|
caption: {{$:/language/Buttons/Heading6/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading6/Hint}}
|
description: {{$:/language/Buttons/Heading6/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-6))
|
shortcuts: ((heading-6))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/italic
|
icon: $:/core/images/italic
|
||||||
caption: {{$:/language/Buttons/Italic/Caption}}
|
caption: {{$:/language/Buttons/Italic/Caption}}
|
||||||
description: {{$:/language/Buttons/Italic/Hint}}
|
description: {{$:/language/Buttons/Italic/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((italic))
|
shortcuts: ((italic))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/link
|
icon: $:/core/images/link
|
||||||
caption: {{$:/language/Buttons/Link/Caption}}
|
caption: {{$:/language/Buttons/Link/Caption}}
|
||||||
description: {{$:/language/Buttons/Link/Hint}}
|
description: {{$:/language/Buttons/Link/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
button-classes: tc-text-editor-toolbar-item-start-group
|
button-classes: tc-text-editor-toolbar-item-start-group
|
||||||
shortcuts: ((link))
|
shortcuts: ((link))
|
||||||
dropdown: $:/core/ui/EditorToolbar/link-dropdown
|
dropdown: $:/core/ui/EditorToolbar/link-dropdown
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
caption: {{$:/language/Buttons/Linkify/Caption}}
|
caption: {{$:/language/Buttons/Linkify/Caption}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
description: {{$:/language/Buttons/Linkify/Hint}}
|
description: {{$:/language/Buttons/Linkify/Hint}}
|
||||||
icon: $:/core/images/linkify
|
icon: $:/core/images/linkify
|
||||||
list-before: $:/core/ui/EditorToolbar/mono-block
|
list-before: $:/core/ui/EditorToolbar/mono-block
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/list-bullet
|
icon: $:/core/images/list-bullet
|
||||||
caption: {{$:/language/Buttons/ListBullet/Caption}}
|
caption: {{$:/language/Buttons/ListBullet/Caption}}
|
||||||
description: {{$:/language/Buttons/ListBullet/Hint}}
|
description: {{$:/language/Buttons/ListBullet/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((list-bullet))
|
shortcuts: ((list-bullet))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/list-number
|
icon: $:/core/images/list-number
|
||||||
caption: {{$:/language/Buttons/ListNumber/Caption}}
|
caption: {{$:/language/Buttons/ListNumber/Caption}}
|
||||||
description: {{$:/language/Buttons/ListNumber/Hint}}
|
description: {{$:/language/Buttons/ListNumber/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((list-number))
|
shortcuts: ((list-number))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/mono-block
|
icon: $:/core/images/mono-block
|
||||||
caption: {{$:/language/Buttons/MonoBlock/Caption}}
|
caption: {{$:/language/Buttons/MonoBlock/Caption}}
|
||||||
description: {{$:/language/Buttons/MonoBlock/Hint}}
|
description: {{$:/language/Buttons/MonoBlock/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
button-classes: tc-text-editor-toolbar-item-start-group
|
button-classes: tc-text-editor-toolbar-item-start-group
|
||||||
shortcuts: ((mono-block))
|
shortcuts: ((mono-block))
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/mono-line
|
icon: $:/core/images/mono-line
|
||||||
caption: {{$:/language/Buttons/MonoLine/Caption}}
|
caption: {{$:/language/Buttons/MonoLine/Caption}}
|
||||||
description: {{$:/language/Buttons/MonoLine/Hint}}
|
description: {{$:/language/Buttons/MonoLine/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((mono-line))
|
shortcuts: ((mono-line))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/picture
|
icon: $:/core/images/picture
|
||||||
caption: {{$:/language/Buttons/Picture/Caption}}
|
caption: {{$:/language/Buttons/Picture/Caption}}
|
||||||
description: {{$:/language/Buttons/Picture/Hint}}
|
description: {{$:/language/Buttons/Picture/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((picture))
|
shortcuts: ((picture))
|
||||||
dropdown: $:/core/ui/EditorToolbar/picture-dropdown
|
dropdown: $:/core/ui/EditorToolbar/picture-dropdown
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/quote
|
icon: $:/core/images/quote
|
||||||
caption: {{$:/language/Buttons/Quote/Caption}}
|
caption: {{$:/language/Buttons/Quote/Caption}}
|
||||||
description: {{$:/language/Buttons/Quote/Hint}}
|
description: {{$:/language/Buttons/Quote/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((quote))
|
shortcuts: ((quote))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/strikethrough
|
icon: $:/core/images/strikethrough
|
||||||
caption: {{$:/language/Buttons/Strikethrough/Caption}}
|
caption: {{$:/language/Buttons/Strikethrough/Caption}}
|
||||||
description: {{$:/language/Buttons/Strikethrough/Hint}}
|
description: {{$:/language/Buttons/Strikethrough/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((strikethrough))
|
shortcuts: ((strikethrough))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/subscript
|
icon: $:/core/images/subscript
|
||||||
caption: {{$:/language/Buttons/Subscript/Caption}}
|
caption: {{$:/language/Buttons/Subscript/Caption}}
|
||||||
description: {{$:/language/Buttons/Subscript/Hint}}
|
description: {{$:/language/Buttons/Subscript/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((subscript))
|
shortcuts: ((subscript))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/superscript
|
icon: $:/core/images/superscript
|
||||||
caption: {{$:/language/Buttons/Superscript/Caption}}
|
caption: {{$:/language/Buttons/Superscript/Caption}}
|
||||||
description: {{$:/language/Buttons/Superscript/Hint}}
|
description: {{$:/language/Buttons/Superscript/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((superscript))
|
shortcuts: ((superscript))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
caption: {{$:/language/Buttons/Transcludify/Caption}}
|
caption: {{$:/language/Buttons/Transcludify/Caption}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
description: {{$:/language/Buttons/Transcludify/Hint}}
|
description: {{$:/language/Buttons/Transcludify/Hint}}
|
||||||
icon: $:/core/images/transcludify
|
icon: $:/core/images/transcludify
|
||||||
list-before: $:/core/ui/EditorToolbar/mono-block
|
list-before: $:/core/ui/EditorToolbar/mono-block
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/underline
|
icon: $:/core/images/underline
|
||||||
caption: {{$:/language/Buttons/Underline/Caption}}
|
caption: {{$:/language/Buttons/Underline/Caption}}
|
||||||
description: {{$:/language/Buttons/Underline/Hint}}
|
description: {{$:/language/Buttons/Underline/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((underline))
|
shortcuts: ((underline))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
8
core/ui/KeyboardShortcuts/open-control-panel.tid
Normal file
8
core/ui/KeyboardShortcuts/open-control-panel.tid
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
title: $:/core/ui/KeyboardShortcuts/open-control-panel
|
||||||
|
tags: $:/tags/KeyboardShortcut
|
||||||
|
key: ((open-control-panel))
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
||||||
|
<$action-navigate $to="$:/ControlPanel" $scroll="yes"/>
|
||||||
|
</$navigator>
|
@ -55,7 +55,7 @@ tags: $:/tags/SideBarSegment
|
|||||||
<$macrocall $name="keyboard-driven-input" tiddler=<<editTiddler>> storeTitle=<<searchTiddler>>
|
<$macrocall $name="keyboard-driven-input" tiddler=<<editTiddler>> storeTitle=<<searchTiddler>>
|
||||||
selectionStateTitle=<<searchListState>> refreshTitle="$:/temp/search/refresh" type="search"
|
selectionStateTitle=<<searchListState>> refreshTitle="$:/temp/search/refresh" type="search"
|
||||||
tag="input" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify "$:/state/popup/search-dropdown">>
|
tag="input" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify "$:/state/popup/search-dropdown">>
|
||||||
class="tc-popup-handle" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<<cancel-search-actions>>
|
class="tc-tiny-gap-right tc-popup-handle" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<<cancel-search-actions>>
|
||||||
inputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> cancelPopups="yes"
|
inputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> cancelPopups="yes"
|
||||||
configTiddlerFilter="[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]"/>
|
configTiddlerFilter="[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]"/>
|
||||||
</form>
|
</form>
|
||||||
|
@ -9,7 +9,7 @@ title: $:/core/ui/TagTemplate
|
|||||||
colour={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}
|
colour={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}
|
||||||
palette={{$:/palette}}
|
palette={{$:/palette}}
|
||||||
element-tag="$button"
|
element-tag="$button"
|
||||||
element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter="[all[current]tagging[]]" tag='span'"""
|
element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter="[subfilter{$:/core/config/TagPillDragFilter}]" tag='span'"""
|
||||||
/>
|
/>
|
||||||
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
|
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
|
||||||
<$set name="tv-show-missing-links" value="yes">
|
<$set name="tv-show-missing-links" value="yes">
|
||||||
|
@ -13,7 +13,8 @@ title: $:/core/ui/TestCaseTemplate
|
|||||||
testActions="Actions"
|
testActions="Actions"
|
||||||
testHideIfPass=<<hideIfPass>>
|
testHideIfPass=<<hideIfPass>>
|
||||||
>
|
>
|
||||||
|
<$data $compound-filter={{!!import-compound}}/>
|
||||||
<$data $compound-tiddler=<<currentTiddler>>/>
|
<$data $compound-tiddler=<<currentTiddler>>/>
|
||||||
<$data title="Description" text={{!!description}}/>
|
<%if [{!!description}!is[blank]] %><$data title="Description" text={{!!description}}/><%endif%>
|
||||||
</$testcase>
|
</$testcase>
|
||||||
</$let>
|
</$let>
|
||||||
|
@ -2,23 +2,25 @@ title: $:/core/ui/testcases/DefaultTemplate
|
|||||||
code-body: yes
|
code-body: yes
|
||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
|
|
||||||
|
\function tf.state() "$:/state/testcase"
|
||||||
|
|
||||||
\procedure linkcatcherActions()
|
\procedure linkcatcherActions()
|
||||||
<%if [<navigateTo>has[title]] %>
|
<%if [<navigateTo>has[title]] %>
|
||||||
<$qualify title=<<state>> name="qualifiedState">
|
<$action-setfield $tiddler=<<tf.state>> text=<<navigateTo>>/>
|
||||||
<$action-setfield $tiddler=<<qualifiedState>> text=<<navigateTo>>/>
|
|
||||||
</$qualify>
|
|
||||||
<%endif%>
|
<%endif%>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
<$let
|
\procedure testcase-header()
|
||||||
state={{{ [<qualify "$:/state/testcase">] }}}
|
<div class="tc-test-case-header">
|
||||||
>
|
|
||||||
<div class="tc-test-case-wrapper">
|
|
||||||
<div class="tc-test-case-header">
|
|
||||||
<h2>
|
<h2>
|
||||||
<$genesis $type={{{ [<linkTarget>!match[]then[$link]else[span]] }}} to=<<testcaseTiddler>>>
|
<$genesis $type={{{ [<linkTarget>!match[]then[$link]else[span]] }}} to=<<testcaseTiddler>>>
|
||||||
<%if [<testResult>!match[]] %>
|
<%if [<testResult>!match[]] %>
|
||||||
<span class={{{ tc-test-case-result-icon [<testResult>!match[fail]then[tc-test-case-result-icon-pass]] [<testResult>match[fail]then[tc-test-case-result-icon-fail]] +[join[ ]] }}}>
|
<span class={{{ tc-test-case-result-icon
|
||||||
|
[<testResult>!match[fail]then[tc-test-case-result-icon-pass]]
|
||||||
|
[<testResult>match[fail]then[tc-test-case-result-icon-fail]]
|
||||||
|
+[join[ ]] }}}
|
||||||
|
>
|
||||||
<%if [<testResult>!match[fail]] %>
|
<%if [<testResult>!match[fail]] %>
|
||||||
{{$:/core/images/done-button}}
|
{{$:/core/images/done-button}}
|
||||||
<%else%>
|
<%else%>
|
||||||
@ -29,20 +31,27 @@ code-body: yes
|
|||||||
<$view tiddler="Description" mode="inline"/>
|
<$view tiddler="Description" mode="inline"/>
|
||||||
</$genesis>
|
</$genesis>
|
||||||
<span class="tc-test-case-toolbar">
|
<span class="tc-test-case-toolbar">
|
||||||
<$button popup=`$(state)$-more`
|
<<testcase-toolbar>>
|
||||||
|
</span>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-toolbar()
|
||||||
|
<$button popup=`$(tf.state)$-more`
|
||||||
tooltip={{$:/language/Buttons/More/Hint}}
|
tooltip={{$:/language/Buttons/More/Hint}}
|
||||||
aria-label={{$:/language/Buttons/More/Caption}}
|
aria-label={{$:/language/Buttons/More/Caption}}
|
||||||
class="tc-btn-invisible"
|
class="tc-btn-invisible"
|
||||||
selectedClass="tc-selected"
|
selectedClass="tc-selected"
|
||||||
>
|
>
|
||||||
{{$:/core/images/down-arrow}}
|
{{$:/core/images/down-arrow}}
|
||||||
</$button>
|
</$button>
|
||||||
<$let
|
<$let
|
||||||
tv-config-toolbar-icons="yes"
|
tv-config-toolbar-icons="yes"
|
||||||
tv-config-toolbar-text="yes"
|
tv-config-toolbar-text="yes"
|
||||||
tv-config-toolbar-class="tc-btn-invisible"
|
tv-config-toolbar-class="tc-btn-invisible"
|
||||||
>
|
>
|
||||||
<$reveal state=`$(state)$-more` type="popup" position="belowleft" animate="yes">
|
<$reveal state=`$(tf.state)$-more` type="popup" position="belowleft" animate="yes">
|
||||||
<div class="tc-drop-down">
|
<div class="tc-drop-down">
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TestCase/Actions]!has[draft.of]]"
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TestCase/Actions]!has[draft.of]]"
|
||||||
variable="listItem"
|
variable="listItem"
|
||||||
@ -51,42 +60,90 @@ code-body: yes
|
|||||||
</$list>
|
</$list>
|
||||||
</div>
|
</div>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
</$let>
|
</$let>
|
||||||
</span>
|
\end
|
||||||
</h2>
|
|
||||||
</div>
|
\procedure testcase-narrative()
|
||||||
<%if [[Narrative]is[tiddler]] %>
|
<div class="tc-test-case-narrative">
|
||||||
<div class="tc-test-case-narrative">
|
|
||||||
<$transclude $tiddler="Narrative" $mode="block"/>
|
<$transclude $tiddler="Narrative" $mode="block"/>
|
||||||
</div>
|
</div>
|
||||||
<%endif%>
|
\end
|
||||||
<%if [<testResult>match[fail]] %>
|
|
||||||
<div class="tc-test-case-result-fail">
|
\procedure testcase-fail()
|
||||||
|
<div class="tc-test-case-result-fail">
|
||||||
<div class="tc-test-case-result-fail-header">
|
<div class="tc-test-case-result-fail-header">
|
||||||
TEST FAILED
|
TEST FAILED
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-test-case-result-fail-body">
|
<div class="tc-test-case-result-fail-body">
|
||||||
<$diff-text source=<<expectedHTML>> dest=<<outputHTML>>/>
|
<$diff-text source=<<expectedHTML>> dest=<<outputHTML>>/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%endif%>
|
\end
|
||||||
<div class="tc-test-case-panes">
|
|
||||||
<div class="tc-test-case-source">
|
\procedure testcase-output-wikified()
|
||||||
<$macrocall $name="tabs" tabsList="[all[tiddlers]sort[]] -[prefix<state>] -Description -Narrative -Output Output +[putfirst[]] -[has[plugin-type]]" state=<<state>> default="Output" template="$:/core/ui/testcases/DefaultTemplate/SourceTabs"/>
|
<$linkcatcher actions=<<linkcatcherActions>>>
|
||||||
</div>
|
|
||||||
<div class="tc-test-case-divider">
|
|
||||||
</div>
|
|
||||||
<div class="tc-test-case-output">
|
|
||||||
<%if [<displayFormat>!match[]else[wikitext]match[plaintext]] %>
|
|
||||||
<pre><$view tiddler="Output" format="plainwikified" mode="block"/></pre>
|
|
||||||
<%else%>
|
|
||||||
<$linkcatcher actions=<<linkcatcherActions>>>
|
|
||||||
<$tiddler tiddler="Output">
|
<$tiddler tiddler="Output">
|
||||||
<$transclude $tiddler="Output" $mode="block"/>
|
<$transclude $tiddler="Output" $mode="block"/>
|
||||||
</$tiddler>
|
</$tiddler>
|
||||||
</$linkcatcher>
|
</$linkcatcher>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-output()
|
||||||
|
<div class="tc-test-case-output">
|
||||||
|
<%if [<displayFormat>!match[]else[wikitext]match[plaintext]] %>
|
||||||
|
<pre><$view tiddler="Output" format="plainwikified" mode="block"/></pre>
|
||||||
|
<%else%>
|
||||||
|
<<testcase-output-wikified>>
|
||||||
<%endif%>
|
<%endif%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
\end
|
||||||
</div>
|
|
||||||
</$let>
|
\procedure testcase-tabsList()
|
||||||
|
[all[tiddlers]sort[]] Output +[putfirst[]]
|
||||||
|
-Description
|
||||||
|
-Narrative
|
||||||
|
-[[$:/temp/testcase/draft-title]]
|
||||||
|
-[has[plugin-type]]
|
||||||
|
-[prefix<tf.state>]
|
||||||
|
-[prefix[$:/state/popup/export]]
|
||||||
|
-[prefix[$:/HistoryList]]
|
||||||
|
-[prefix[$:/StoryList]]
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-source()
|
||||||
|
<div class="tc-test-case-source">
|
||||||
|
<$macrocall $name="tabs"
|
||||||
|
tabsList=<<testcase-tabsList>>
|
||||||
|
explicitState=<<tf.state>>
|
||||||
|
default="Output"
|
||||||
|
template="$:/core/ui/testcases/DefaultTemplate/SourceTabs"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-panes()
|
||||||
|
<div class="tc-test-case-panes">
|
||||||
|
<<testcase-source>>
|
||||||
|
<div class="tc-test-case-divider"></div>
|
||||||
|
<<testcase-output>>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-body()
|
||||||
|
<div class="tc-test-case-wrapper">
|
||||||
|
<<testcase-header>>
|
||||||
|
<$let testcase-source-state = <<tf.state>>>
|
||||||
|
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
||||||
|
<%if [[Narrative]is[tiddler]] %>
|
||||||
|
<<testcase-narrative>>
|
||||||
|
<%endif%>
|
||||||
|
<%if [<testResult>match[fail]] %>
|
||||||
|
<<testcase-fail>>
|
||||||
|
<%endif%>
|
||||||
|
<<testcase-panes>>
|
||||||
|
</$navigator>
|
||||||
|
</$let>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
<<testcase-body>>
|
@ -1,6 +1,22 @@
|
|||||||
title: $:/core/ui/testcases/DefaultTemplate/SourceTabs
|
title: $:/core/ui/testcases/DefaultTemplate/SourceTabs
|
||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
|
|
||||||
|
\procedure testcaseNewTitle() $:/temp/testcase/draft-title
|
||||||
|
|
||||||
|
\procedure saveActions()
|
||||||
|
<$action-setfield $tiddler=<<currentTab>> $field="draft.title" $value=<<newTitle>>/>
|
||||||
|
<$action-sendmessage $message="tm-save-tiddler" $param=<<title>> />
|
||||||
|
<$action-setfield $tiddler=<<testcase-source-state>> text=<<newTitle>>/>
|
||||||
|
<$action-deletetiddler $tiddler=<<testcaseNewTitle>>/>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure saveButton(title, newTitle)
|
||||||
|
<$button class="tc-btn-invisible tc-test-case-save-button tc-small-gap-left" actions=<<saveActions>> disabled={{{ [<testcaseNewTitle>!has[text]then[yes]] }}}>
|
||||||
|
{{$:/core/images/done-button}}
|
||||||
|
</$button>
|
||||||
|
\end
|
||||||
|
|
||||||
\procedure body()
|
\procedure body()
|
||||||
<$list filter="[<currentTab>fields[]] -text +[limit[1]]" variable="ignore">
|
<$list filter="[<currentTab>fields[]] -text +[limit[1]]" variable="ignore">
|
||||||
<table class="tc-field-table">
|
<table class="tc-field-table">
|
||||||
@ -11,7 +27,12 @@ title: $:/core/ui/testcases/DefaultTemplate/SourceTabs
|
|||||||
<$text text=<<fieldName>>/>
|
<$text text=<<fieldName>>/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
<%if [<fieldName>match[draft.title]] %>
|
||||||
|
<$edit-text class="tc-edit-texteditor tc-max-width-80" tiddler=<<testcaseNewTitle>> focus="yes" tag="input"/>
|
||||||
|
<$macrocall $name="saveButton" newTitle={{{ [<testcaseNewTitle>get[text]] }}} title=<<currentTab>>/>
|
||||||
|
<%else%>
|
||||||
<$view tiddler=<<currentTab>> field=<<fieldName>>/>
|
<$view tiddler=<<currentTab>> field=<<fieldName>>/>
|
||||||
|
<%endif%>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
title: $:/core/ui/testcases/actions/Export
|
title: $:/core/ui/testcases/actions/Export
|
||||||
tags: $:/tags/TestCase/Actions
|
tags: $:/tags/TestCase/Actions
|
||||||
|
|
||||||
<$macrocall $name="exportButton" exportFilter="[all[tiddlers]sort[]] -[prefix[$:/state/]] -Description -Narrative -ExpectedResult -Output Output +[putfirst[]] -[has[plugin-type]]" lingoBase="$:/language/Buttons/ExportTiddlers/"/>
|
<$macrocall $name="exportButton" exportFilter="[all[tiddlers]sort[]] -[prefix[$:/state/]] -Description -Narrative -ExpectedResult -[has[plugin-type]]" lingoBase="$:/language/Buttons/ExportTiddlers/"/>
|
@ -2,10 +2,4 @@ title: $:/core/ui/ViewTemplate/subtitle
|
|||||||
tags: $:/tags/ViewTemplate
|
tags: $:/tags/ViewTemplate
|
||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
|
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/ViewTemplateSubtitleFilter]!is[draft]get[text]] :and[!is[blank]else[$:/core/ui/ViewTemplate/subtitle/default]] }}} />
|
||||||
<div class="tc-subtitle">
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate/Subtitle]!has[draft.of]]" variable="subtitleTiddler">
|
|
||||||
<$transclude tiddler=<<subtitleTiddler>> mode="inline"/><$list-join> </$list-join>
|
|
||||||
</$list>
|
|
||||||
</div>
|
|
||||||
</$reveal>
|
|
10
core/ui/ViewTemplate/subtitle/default.tid
Normal file
10
core/ui/ViewTemplate/subtitle/default.tid
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
title: $:/core/ui/ViewTemplate/subtitle/default
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
|
||||||
|
<div class="tc-subtitle">
|
||||||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate/Subtitle]!has[draft.of]]" variable="subtitleTiddler">
|
||||||
|
<$transclude tiddler=<<subtitleTiddler>> mode="inline"/><$list-join> </$list-join>
|
||||||
|
</$list>
|
||||||
|
</div>
|
||||||
|
</$reveal>
|
@ -2,6 +2,4 @@ title: $:/core/ui/ViewTemplate/tags
|
|||||||
tags: $:/tags/ViewTemplate
|
tags: $:/tags/ViewTemplate
|
||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
|
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/ViewTemplateTagsFilter]!is[draft]get[text]] :and[!is[blank]else[$:/core/ui/ViewTemplate/tags/default]] }}} />
|
||||||
<div class="tc-tags-wrapper"><$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/></div>
|
|
||||||
</$reveal>
|
|
11
core/ui/ViewTemplate/tags/default.tid
Normal file
11
core/ui/ViewTemplate/tags/default.tid
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
title: $:/core/ui/ViewTemplate/tags/default
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
|
||||||
|
<div class="tc-tags-wrapper">
|
||||||
|
<$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/>
|
||||||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate/Tags]!has[draft.of]]">
|
||||||
|
<$transclude mode="inline"/>
|
||||||
|
</$list>
|
||||||
|
</div>
|
||||||
|
</$reveal>
|
@ -32,6 +32,7 @@ mono-line: {{$:/language/Buttons/MonoLine/Hint}}
|
|||||||
new-image: {{$:/language/Buttons/NewImage/Hint}}
|
new-image: {{$:/language/Buttons/NewImage/Hint}}
|
||||||
new-journal: {{$:/language/Buttons/NewJournal/Hint}}
|
new-journal: {{$:/language/Buttons/NewJournal/Hint}}
|
||||||
new-tiddler: {{$:/language/Buttons/NewTiddler/Hint}}
|
new-tiddler: {{$:/language/Buttons/NewTiddler/Hint}}
|
||||||
|
open-control-panel: {{$:/language/Buttons/OpenControlPanel/Hint}}
|
||||||
picture: {{$:/language/Buttons/Picture/Hint}}
|
picture: {{$:/language/Buttons/Picture/Hint}}
|
||||||
preview: {{$:/language/Buttons/Preview/Hint}}
|
preview: {{$:/language/Buttons/Preview/Hint}}
|
||||||
quote: {{$:/language/Buttons/Quote/Hint}}
|
quote: {{$:/language/Buttons/Quote/Hint}}
|
||||||
|
2
core/wiki/config/TagPillDragFilter.tid
Normal file
2
core/wiki/config/TagPillDragFilter.tid
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
title: $:/core/config/TagPillDragFilter
|
||||||
|
text: [all[current]tagging[]] +[!is[draft]]
|
4
core/wiki/config/ViewTemplateSubtitleFilters.multids
Normal file
4
core/wiki/config/ViewTemplateSubtitleFilters.multids
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
title: $:/config/ViewTemplateSubtitleFilters/
|
||||||
|
tags: $:/tags/ViewTemplateSubtitleFilter
|
||||||
|
|
||||||
|
default: [[$:/core/ui/ViewTemplate/subtitle/default]]
|
4
core/wiki/config/ViewTemplateTagsFilters.multids
Normal file
4
core/wiki/config/ViewTemplateTagsFilters.multids
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
title: $:/config/ViewTemplateTagsFilters/
|
||||||
|
tags: $:/tags/ViewTemplateTagsFilter
|
||||||
|
|
||||||
|
default: [[$:/core/ui/ViewTemplate/tags/default]]
|
@ -28,6 +28,7 @@ list-bullet: ctrl-shift-L
|
|||||||
list-number: ctrl-shift-N
|
list-number: ctrl-shift-N
|
||||||
mono-block: ctrl-shift-M
|
mono-block: ctrl-shift-M
|
||||||
mono-line: ctrl-M
|
mono-line: ctrl-M
|
||||||
|
open-control-panel: ctrl-alt-C
|
||||||
picture: ctrl-shift-I
|
picture: ctrl-shift-I
|
||||||
preview: alt-P
|
preview: alt-P
|
||||||
quote: ctrl-Q
|
quote: ctrl-Q
|
||||||
|
@ -83,6 +83,9 @@ The second ESC tries to close the "draft tiddler"
|
|||||||
emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem"
|
emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem"
|
||||||
>
|
>
|
||||||
<$list filter=<<filter>> variable="tag">
|
<$list filter=<<filter>> variable="tag">
|
||||||
|
<$list-empty>
|
||||||
|
<span class="tc-small-gap-left">{{$:/language/EditTemplate/Tags/EmptyMessage}}</span>
|
||||||
|
</$list-empty>
|
||||||
<!-- The buttonClasses filter is used to define tc-tag-button-selected state -->
|
<!-- The buttonClasses filter is used to define tc-tag-button-selected state -->
|
||||||
<!-- tf.get-tagpicker-focus-selector has to be resolved for $:/core/ui/TagPickerTagTemplate,
|
<!-- tf.get-tagpicker-focus-selector has to be resolved for $:/core/ui/TagPickerTagTemplate,
|
||||||
othwerwise qualify in tf.tagpicker-dropdown-id causes problems -->
|
othwerwise qualify in tf.tagpicker-dropdown-id causes problems -->
|
||||||
|
2
core/wiki/tags/TextEditorSnippet.tid
Normal file
2
core/wiki/tags/TextEditorSnippet.tid
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
title: $:/tags/TextEditor/Snippet
|
||||||
|
list: $:/language/Snippets/ProcedureDefinition $:/language/Snippets/FunctionDefinition $:/language/Snippets/ListByTag $:/language/Snippets/Table4x3 $:/language/Snippets/TableOfContents $:/language/Snippets/MacroDefinition
|
@ -1,2 +1,2 @@
|
|||||||
title: $:/tags/ViewTemplateBodyFilter
|
title: $:/tags/ViewTemplateBodyFilter
|
||||||
list: $:/config/ViewTemplateBodyFilters/testcase $:/config/ViewTemplateBodyFilters/hide-body $:/config/ViewTemplateBodyFilters/code-body $:/config/ViewTemplateBodyFilters/stylesheet $:/config/ViewTemplateBodyFilters/core-ui-advanced-search $:/config/ViewTemplateBodyFilters/core-ui-tags $:/config/ViewTemplateBodyFilters/system $:/config/ViewTemplateBodyFilters/import $:/config/ViewTemplateBodyFilters/plugin $:/config/ViewTemplateBodyFilters/default
|
list: $:/config/ViewTemplateBodyFilters/testcase $:/config/ViewTemplateBodyFilters/hide-body $:/config/ViewTemplateBodyFilters/code-body $:/config/ViewTemplateBodyFilters/stylesheet $:/config/ViewTemplateBodyFilters/core-ui-advanced-search $:/config/ViewTemplateBodyFilters/core-ui-tags $:/config/ViewTemplateBodyFilters/import $:/config/ViewTemplateBodyFilters/plugin $:/config/ViewTemplateBodyFilters/system $:/config/ViewTemplateBodyFilters/default
|
||||||
|
@ -9,6 +9,6 @@ type: text/vnd.tiddlywiki
|
|||||||
<$link to={{{ [<__version__>addprefix[Release ]] }}} class="doc-from-version">{{$:/core/images/warning}} New in: <$text text=<<__version__>>/></$link>
|
<$link to={{{ [<__version__>addprefix[Release ]] }}} class="doc-from-version">{{$:/core/images/warning}} New in: <$text text=<<__version__>>/></$link>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\define .deprecated-since(version, superseded:"TODO-Link")
|
\define .deprecated-since(version, superseded:"")
|
||||||
<$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>)
|
<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Deprecated from v<$text text=<<__version__>>/></$link> <%if [<__superseded__>else[]!match[]] %>(see <$link to=<<__superseded__>>><$text text=<<__superseded__>>/></$link>)<%endif%>
|
||||||
\end
|
\end
|
||||||
|
@ -9,7 +9,7 @@ type: text/vnd.tiddlywiki
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\define .deprecated-since(version, superseded:"TODO-Link")
|
\define .deprecated-since(version, superseded:"TODO-Link")
|
||||||
<$button to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Obsolète depuis<<:>> $version$ </$button>. Utilisez [[$superseded$]] à la place
|
<$button to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Obsolète depuis<<:>> $version$ </$button>. <%if [<__superseded__>else[]!match[]] %>Utilisez [[$superseded$]] à la place<%endif%>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
<pre><$view field="text"/></pre>
|
<pre><$view field="text"/></pre>
|
@ -57,7 +57,8 @@
|
|||||||
"sl-SI",
|
"sl-SI",
|
||||||
"sv-SE",
|
"sv-SE",
|
||||||
"zh-Hans",
|
"zh-Hans",
|
||||||
"zh-Hant"
|
"zh-Hant",
|
||||||
|
"zh-HK"
|
||||||
],
|
],
|
||||||
"themes": [
|
"themes": [
|
||||||
"tiddlywiki/centralised",
|
"tiddlywiki/centralised",
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
{"name": "nearest-volcano", "caption": "Nearest Volcano", "type": "string", "display": "[{$:/geospatialdemo/features/harvard-volcanoes-of-the-world}geonearestpoint<coords>]"}
|
{"name": "nearest-volcano", "caption": "Nearest Volcano", "type": "string", "display": "[{$:/geospatialdemo/features/harvard-volcanoes-of-the-world}geonearestpoint<coords>]"}
|
||||||
],
|
],
|
||||||
"variables": {
|
"variables": {
|
||||||
"coords": "[<rowTiddler>] :map[geopoint{!!long},{!!lat}]",
|
"coords": "[<rowTiddler>] :map[geopoint{!!lat},{!!long}]",
|
||||||
"census-data": "[<rowTiddler>] :map[geopoint{!!long},{!!lat}geolookup{$:/geospatialdemo/features/canada-census-subdivision-millesime}]"
|
"census-data": "[<rowTiddler>] :map[geopoint{!!lat},{!!long}geolookup{$:/geospatialdemo/features/canada-census-subdivision-millesime}]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ title: ui/geomarker
|
|||||||
!! Distance to other markers
|
!! Distance to other markers
|
||||||
|
|
||||||
<$let
|
<$let
|
||||||
thisLocation={{{ [geopoint{!!long},{!!lat}] }}}
|
thisLocation={{{ [geopoint{!!lat},{!!long}] }}}
|
||||||
>
|
>
|
||||||
<ul>
|
<ul>
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]] -[<currentTiddler>]">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]] -[<currentTiddler>]">
|
||||||
@ -81,7 +81,7 @@ title: ui/geomarker
|
|||||||
<$link><$view field="caption"><$view field="title"/></$view></$link>
|
<$link><$view field="caption"><$view field="title"/></$view></$link>
|
||||||
--
|
--
|
||||||
<$let
|
<$let
|
||||||
otherLocation={{{ [geopoint{!!long},{!!lat}] }}}
|
otherLocation={{{ [geopoint{!!lat},{!!long}] }}}
|
||||||
>
|
>
|
||||||
<$text text={{{ [geodistance<thisLocation>,<otherLocation>,[miles]fixed[0]] }}}/> miles
|
<$text text={{{ [geodistance<thisLocation>,<otherLocation>,[miles]fixed[0]] }}}/> miles
|
||||||
</$let>
|
</$let>
|
||||||
@ -93,7 +93,7 @@ title: ui/geomarker
|
|||||||
!! GeoFeature Lookups
|
!! GeoFeature Lookups
|
||||||
|
|
||||||
<$let
|
<$let
|
||||||
thisLocation={{{ [geopoint{!!long},{!!lat}] }}}
|
thisLocation={{{ [geopoint{!!lat},{!!long}] }}}
|
||||||
>
|
>
|
||||||
<ul>
|
<ul>
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoFeature]sort[caption]]">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoFeature]sort[caption]]">
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user