mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-28 09:54:45 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
8040e6338c
9
core/images/open-window.tid
Normal file
9
core/images/open-window.tid
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
title: $:/core/images/open-window
|
||||||
|
tags: $:/tags/Image
|
||||||
|
|
||||||
|
<svg class="tc-image-open-window tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
|
||||||
|
<g fill-rule="evenodd">
|
||||||
|
<path d="M16,112 L104.993898,112 C108.863261,112 112,115.590712 112,120 C112,124.418278 108.858091,128 104.993898,128 L7.00610161,128 C3.13673853,128 0,124.409288 0,120 C0,119.998364 4.30952878e-07,119.996727 1.29273572e-06,119.995091 C4.89579306e-07,119.993456 0,119.99182 0,119.990183 L0,24.0098166 C0,19.586117 3.59071231,16 8,16 C12.418278,16 16,19.5838751 16,24.0098166 L16,112 Z"></path>
|
||||||
|
<path d="M96,43.1959595 L96,56 C96,60.418278 99.581722,64 104,64 C108.418278,64 112,60.418278 112,56 L112,24 C112,19.5907123 108.415101,16 103.992903,16 L72.0070969,16 C67.5881712,16 64,19.581722 64,24 C64,28.4092877 67.5848994,32 72.0070969,32 L84.5685425,32 L48.2698369,68.2987056 C45.1421332,71.4264093 45.1434327,76.4904296 48.267627,79.614624 C51.3854642,82.7324612 56.4581306,82.7378289 59.5835454,79.6124141 L96,43.1959595 Z M32,7.9992458 C32,3.58138434 35.5881049,0 39.9992458,0 L120.000754,0 C124.418616,0 128,3.5881049 128,7.9992458 L128,88.0007542 C128,92.4186157 124.411895,96 120.000754,96 L39.9992458,96 C35.5813843,96 32,92.4118951 32,88.0007542 L32,7.9992458 Z"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
@ -52,6 +52,8 @@ NewJournalHere/Caption: new journal here
|
|||||||
NewJournalHere/Hint: Create a new journal tiddler tagged with this one
|
NewJournalHere/Hint: Create a new journal tiddler tagged with this one
|
||||||
NewTiddler/Caption: new tiddler
|
NewTiddler/Caption: new tiddler
|
||||||
NewTiddler/Hint: Create a new tiddler
|
NewTiddler/Hint: Create a new tiddler
|
||||||
|
OpenWindow/Caption: open in new window
|
||||||
|
OpenWindow/Hint: Open tiddler in new window
|
||||||
Permalink/Caption: permalink
|
Permalink/Caption: permalink
|
||||||
Permalink/Hint: Set browser address bar to a direct link to this tiddler
|
Permalink/Hint: Set browser address bar to a direct link to this tiddler
|
||||||
Permaview/Caption: permaview
|
Permaview/Caption: permaview
|
||||||
|
63
core/modules/startup/windows.js
Normal file
63
core/modules/startup/windows.js
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
/*\
|
||||||
|
title: $:/core/modules/startup/windows.js
|
||||||
|
type: application/javascript
|
||||||
|
module-type: startup
|
||||||
|
|
||||||
|
Setup root widget handlers for the messages concerned with opening external browser windows
|
||||||
|
|
||||||
|
\*/
|
||||||
|
(function(){
|
||||||
|
|
||||||
|
/*jslint node: true, browser: true */
|
||||||
|
/*global $tw: false */
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
// Export name and synchronous status
|
||||||
|
exports.name = "windows";
|
||||||
|
exports.platforms = ["browser"];
|
||||||
|
exports.after = ["startup"];
|
||||||
|
exports.synchronous = true;
|
||||||
|
|
||||||
|
exports.startup = function() {
|
||||||
|
$tw.rootWidget.addEventListener("tm-open-window",function(event) {
|
||||||
|
// Get the parameters
|
||||||
|
var title = event.param || event.tiddlerTitle,
|
||||||
|
paramObject = event.paramObject || {},
|
||||||
|
template = paramObject.template || "$:/core/ui/ViewTemplate/body",
|
||||||
|
width = paramObject.width || "700",
|
||||||
|
height = paramObject.height || "600";
|
||||||
|
// Open the window
|
||||||
|
var srcWindow = window.open("","external-" + title,"width=" + width + ",height=" + height),
|
||||||
|
srcDocument = srcWindow.document;
|
||||||
|
srcWindow.onclose = function(event) {
|
||||||
|
console.log("closing popup");
|
||||||
|
};
|
||||||
|
srcWindow.addEventListener("close",function(event) {
|
||||||
|
console.log("closing2 popup");
|
||||||
|
},false);
|
||||||
|
srcDocument.write("<html><head></head><body class='tc-body'></body></html>");
|
||||||
|
srcDocument.close();
|
||||||
|
// Set up the styles
|
||||||
|
var styleWidgetNode = $tw.wiki.makeTranscludeWidget("$:/core/ui/PageStylesheet",{document: $tw.fakeDocument}),
|
||||||
|
styleContainer = $tw.fakeDocument.createElement("style");
|
||||||
|
styleWidgetNode.render(styleContainer,null);
|
||||||
|
var styleElement = srcDocument.createElement("style");
|
||||||
|
styleElement.innerHTML = styleContainer.textContent;
|
||||||
|
srcDocument.head.insertBefore(styleElement,srcDocument.head.firstChild);
|
||||||
|
$tw.wiki.addEventListener("change",function(changes) {
|
||||||
|
if(styleWidgetNode.refresh(changes,styleContainer,null)) {
|
||||||
|
styleElement.innerHTML = styleContainer.textContent;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// Render the text of the tiddler
|
||||||
|
var parser = $tw.wiki.parseTiddler(template),
|
||||||
|
widgetNode = $tw.wiki.makeWidget(parser,{document: srcDocument, variables: {currentTiddler: title}});
|
||||||
|
widgetNode.render(srcDocument.body,null);
|
||||||
|
$tw.wiki.addEventListener("change",function(changes) {
|
||||||
|
widgetNode.refresh(changes);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
})();
|
@ -1,109 +0,0 @@
|
|||||||
title: $:/palettes/Contrast
|
|
||||||
name: Contrast
|
|
||||||
description: High contrast and unambiguous
|
|
||||||
tags: $:/tags/Palette
|
|
||||||
type: application/x-tiddler-dictionary
|
|
||||||
|
|
||||||
alert-background: #f00
|
|
||||||
alert-border: #000
|
|
||||||
alert-highlight: #fff
|
|
||||||
alert-muted-foreground: #800
|
|
||||||
background: #000
|
|
||||||
blockquote-bar: <<colour muted-foreground>>
|
|
||||||
button-background: #000
|
|
||||||
button-foreground: #fff
|
|
||||||
button-border: #fff
|
|
||||||
code-background: #000
|
|
||||||
code-border: #fff
|
|
||||||
code-foreground: #fff
|
|
||||||
dirty-indicator: #f00
|
|
||||||
download-background: #080
|
|
||||||
download-foreground: <<colour background>>
|
|
||||||
dragger-background: <<colour foreground>>
|
|
||||||
dragger-foreground: <<colour background>>
|
|
||||||
dropdown-background: <<colour background>>
|
|
||||||
dropdown-border: <<colour muted-foreground>>
|
|
||||||
dropdown-tab-background-selected: #fff
|
|
||||||
dropdown-tab-background: #fff
|
|
||||||
dropzone-background: rgba(0,200,0,0.7)
|
|
||||||
external-link-background-hover: inherit
|
|
||||||
external-link-background-visited: inherit
|
|
||||||
external-link-background: inherit
|
|
||||||
external-link-foreground-hover: inherit
|
|
||||||
external-link-foreground-visited: #00a
|
|
||||||
external-link-foreground: #00e
|
|
||||||
foreground: #fff
|
|
||||||
message-background: #fff
|
|
||||||
message-border: #000
|
|
||||||
message-foreground: #000
|
|
||||||
modal-backdrop: <<colour foreground>>
|
|
||||||
modal-background: <<colour background>>
|
|
||||||
modal-border: #fff
|
|
||||||
modal-footer-background: #000
|
|
||||||
modal-footer-border: #fff
|
|
||||||
modal-header-border: #fff
|
|
||||||
muted-foreground: #999
|
|
||||||
notification-background: #000
|
|
||||||
notification-border: #fff
|
|
||||||
page-background: #000
|
|
||||||
pre-background: #000
|
|
||||||
pre-border: #fff
|
|
||||||
primary: #00f
|
|
||||||
sidebar-button-foreground: <<colour foreground>>
|
|
||||||
sidebar-controls-foreground-hover: #000000
|
|
||||||
sidebar-controls-foreground: #ffffff
|
|
||||||
sidebar-foreground-shadow: rgba(255,0,0, 0.5)
|
|
||||||
sidebar-foreground: #ffffff
|
|
||||||
sidebar-muted-foreground-hover: #444444
|
|
||||||
sidebar-muted-foreground: #fff
|
|
||||||
sidebar-tab-background-selected: #000
|
|
||||||
sidebar-tab-background: <<colour tab-background>>
|
|
||||||
sidebar-tab-border-selected: <<colour tab-border-selected>>
|
|
||||||
sidebar-tab-border: <<colour tab-border>>
|
|
||||||
sidebar-tab-divider: <<colour tab-divider>>
|
|
||||||
sidebar-tab-foreground-selected: #fff
|
|
||||||
sidebar-tab-foreground: <<colour tab-foreground>>
|
|
||||||
sidebar-tiddler-link-foreground-hover: #fff
|
|
||||||
sidebar-tiddler-link-foreground: <<colour primary>>
|
|
||||||
site-title-foreground: <<colour tiddler-title-foreground>>
|
|
||||||
static-alert-foreground: #aaaaaa
|
|
||||||
tab-background-selected: #000
|
|
||||||
tab-background: #fff
|
|
||||||
tab-border-selected: #fff
|
|
||||||
tab-border: #fff
|
|
||||||
tab-divider: #fff
|
|
||||||
tab-foreground-selected: #fff
|
|
||||||
tab-foreground: #000
|
|
||||||
table-border: #dddddd
|
|
||||||
table-footer-background: #a8a8a8
|
|
||||||
table-header-background: #f0f0f0
|
|
||||||
tag-background: #d5ad34
|
|
||||||
tag-foreground: #ffffff
|
|
||||||
tiddler-background: <<colour background>>
|
|
||||||
tiddler-border: #fff
|
|
||||||
tiddler-controls-foreground-hover: #ddd
|
|
||||||
tiddler-controls-foreground-selected: #fdd
|
|
||||||
tiddler-controls-foreground: #fff
|
|
||||||
tiddler-editor-background: #000
|
|
||||||
tiddler-editor-border-image: #fff
|
|
||||||
tiddler-editor-border: #cccccc
|
|
||||||
tiddler-editor-fields-even: #000
|
|
||||||
tiddler-editor-fields-odd: #000
|
|
||||||
tiddler-info-background: #000
|
|
||||||
tiddler-info-border: #fff
|
|
||||||
tiddler-info-tab-background: #000
|
|
||||||
tiddler-link-background: <<colour background>>
|
|
||||||
tiddler-link-foreground: <<colour primary>>
|
|
||||||
tiddler-subtitle-foreground: #c0c0c0
|
|
||||||
tiddler-title-foreground: #fff
|
|
||||||
toolbar-new-button:
|
|
||||||
toolbar-options-button:
|
|
||||||
toolbar-save-button:
|
|
||||||
toolbar-info-button:
|
|
||||||
toolbar-edit-button:
|
|
||||||
toolbar-close-button:
|
|
||||||
toolbar-delete-button:
|
|
||||||
toolbar-cancel-button:
|
|
||||||
toolbar-done-button:
|
|
||||||
untagged-background: #999999
|
|
||||||
very-muted-foreground: #888888
|
|
109
core/palettes/ContrastDark.tid
Normal file
109
core/palettes/ContrastDark.tid
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
title: $:/palettes/ContrastLight
|
||||||
|
name: Contrast (Light)
|
||||||
|
description: High contrast and unambiguous (light version)
|
||||||
|
tags: $:/tags/Palette
|
||||||
|
type: application/x-tiddler-dictionary
|
||||||
|
|
||||||
|
alert-background: #f00
|
||||||
|
alert-border: <<colour background>>
|
||||||
|
alert-highlight: <<colour foreground>>
|
||||||
|
alert-muted-foreground: #800
|
||||||
|
background: #fff
|
||||||
|
blockquote-bar: <<colour muted-foreground>>
|
||||||
|
button-background: <<colour background>>
|
||||||
|
button-foreground: <<colour foreground>>
|
||||||
|
button-border: <<colour foreground>>
|
||||||
|
code-background: <<colour background>>
|
||||||
|
code-border: <<colour foreground>>
|
||||||
|
code-foreground: <<colour foreground>>
|
||||||
|
dirty-indicator: #f00
|
||||||
|
download-background: #080
|
||||||
|
download-foreground: <<colour background>>
|
||||||
|
dragger-background: <<colour foreground>>
|
||||||
|
dragger-foreground: <<colour background>>
|
||||||
|
dropdown-background: <<colour background>>
|
||||||
|
dropdown-border: <<colour muted-foreground>>
|
||||||
|
dropdown-tab-background-selected: <<colour foreground>>
|
||||||
|
dropdown-tab-background: <<colour foreground>>
|
||||||
|
dropzone-background: rgba(0,200,0,0.7)
|
||||||
|
external-link-background-hover: inherit
|
||||||
|
external-link-background-visited: inherit
|
||||||
|
external-link-background: inherit
|
||||||
|
external-link-foreground-hover: inherit
|
||||||
|
external-link-foreground-visited: #00a
|
||||||
|
external-link-foreground: #00e
|
||||||
|
foreground: #000
|
||||||
|
message-background: <<colour foreground>>
|
||||||
|
message-border: <<colour background>>
|
||||||
|
message-foreground: <<colour background>>
|
||||||
|
modal-backdrop: <<colour foreground>>
|
||||||
|
modal-background: <<colour background>>
|
||||||
|
modal-border: <<colour foreground>>
|
||||||
|
modal-footer-background: <<colour background>>
|
||||||
|
modal-footer-border: <<colour foreground>>
|
||||||
|
modal-header-border: <<colour foreground>>
|
||||||
|
muted-foreground: #999
|
||||||
|
notification-background: <<colour background>>
|
||||||
|
notification-border: <<colour foreground>>
|
||||||
|
page-background: <<colour background>>
|
||||||
|
pre-background: <<colour background>>
|
||||||
|
pre-border: <<colour foreground>>
|
||||||
|
primary: #00f
|
||||||
|
sidebar-button-foreground: <<colour foreground>>
|
||||||
|
sidebar-controls-foreground-hover: <<colour background>>
|
||||||
|
sidebar-controls-foreground: <<colour foreground>>
|
||||||
|
sidebar-foreground-shadow: rgba(0,0,0, 0)
|
||||||
|
sidebar-foreground: <<colour foreground>>
|
||||||
|
sidebar-muted-foreground-hover: #444444
|
||||||
|
sidebar-muted-foreground: <<colour foreground>>
|
||||||
|
sidebar-tab-background-selected: <<colour background>>
|
||||||
|
sidebar-tab-background: <<colour tab-background>>
|
||||||
|
sidebar-tab-border-selected: <<colour tab-border-selected>>
|
||||||
|
sidebar-tab-border: <<colour tab-border>>
|
||||||
|
sidebar-tab-divider: <<colour tab-divider>>
|
||||||
|
sidebar-tab-foreground-selected: <<colour foreground>>
|
||||||
|
sidebar-tab-foreground: <<colour tab-foreground>>
|
||||||
|
sidebar-tiddler-link-foreground-hover: <<colour foreground>>
|
||||||
|
sidebar-tiddler-link-foreground: <<colour primary>>
|
||||||
|
site-title-foreground: <<colour tiddler-title-foreground>>
|
||||||
|
static-alert-foreground: #aaaaaa
|
||||||
|
tab-background-selected: <<colour background>>
|
||||||
|
tab-background: <<colour foreground>>
|
||||||
|
tab-border-selected: <<colour foreground>>
|
||||||
|
tab-border: <<colour foreground>>
|
||||||
|
tab-divider: <<colour foreground>>
|
||||||
|
tab-foreground-selected: <<colour foreground>>
|
||||||
|
tab-foreground: <<colour background>>
|
||||||
|
table-border: #dddddd
|
||||||
|
table-footer-background: #a8a8a8
|
||||||
|
table-header-background: #f0f0f0
|
||||||
|
tag-background: #000
|
||||||
|
tag-foreground: #fff
|
||||||
|
tiddler-background: <<colour background>>
|
||||||
|
tiddler-border: <<colour foreground>>
|
||||||
|
tiddler-controls-foreground-hover: #ddd
|
||||||
|
tiddler-controls-foreground-selected: #fdd
|
||||||
|
tiddler-controls-foreground: <<colour foreground>>
|
||||||
|
tiddler-editor-background: <<colour background>>
|
||||||
|
tiddler-editor-border-image: <<colour foreground>>
|
||||||
|
tiddler-editor-border: #cccccc
|
||||||
|
tiddler-editor-fields-even: <<colour background>>
|
||||||
|
tiddler-editor-fields-odd: <<colour background>>
|
||||||
|
tiddler-info-background: <<colour background>>
|
||||||
|
tiddler-info-border: <<colour foreground>>
|
||||||
|
tiddler-info-tab-background: <<colour background>>
|
||||||
|
tiddler-link-background: <<colour background>>
|
||||||
|
tiddler-link-foreground: <<colour primary>>
|
||||||
|
tiddler-subtitle-foreground: <<colour foreground>>
|
||||||
|
tiddler-title-foreground: <<colour foreground>>
|
||||||
|
toolbar-new-button:
|
||||||
|
toolbar-options-button:
|
||||||
|
toolbar-save-button:
|
||||||
|
toolbar-info-button:
|
||||||
|
toolbar-edit-button:
|
||||||
|
toolbar-close-button:
|
||||||
|
toolbar-delete-button:
|
||||||
|
toolbar-cancel-button:
|
||||||
|
toolbar-done-button:
|
||||||
|
untagged-background: <<colour foreground>>
|
||||||
|
very-muted-foreground: #888888
|
109
core/palettes/ContrastLight.tid
Normal file
109
core/palettes/ContrastLight.tid
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
title: $:/palettes/ContrastDark
|
||||||
|
name: Contrast (Dark)
|
||||||
|
description: High contrast and unambiguous (dark version)
|
||||||
|
tags: $:/tags/Palette
|
||||||
|
type: application/x-tiddler-dictionary
|
||||||
|
|
||||||
|
alert-background: #f00
|
||||||
|
alert-border: <<colour background>>
|
||||||
|
alert-highlight: <<colour foreground>>
|
||||||
|
alert-muted-foreground: #800
|
||||||
|
background: #000
|
||||||
|
blockquote-bar: <<colour muted-foreground>>
|
||||||
|
button-background: <<colour background>>
|
||||||
|
button-foreground: <<colour foreground>>
|
||||||
|
button-border: <<colour foreground>>
|
||||||
|
code-background: <<colour background>>
|
||||||
|
code-border: <<colour foreground>>
|
||||||
|
code-foreground: <<colour foreground>>
|
||||||
|
dirty-indicator: #f00
|
||||||
|
download-background: #080
|
||||||
|
download-foreground: <<colour background>>
|
||||||
|
dragger-background: <<colour foreground>>
|
||||||
|
dragger-foreground: <<colour background>>
|
||||||
|
dropdown-background: <<colour background>>
|
||||||
|
dropdown-border: <<colour muted-foreground>>
|
||||||
|
dropdown-tab-background-selected: <<colour foreground>>
|
||||||
|
dropdown-tab-background: <<colour foreground>>
|
||||||
|
dropzone-background: rgba(0,200,0,0.7)
|
||||||
|
external-link-background-hover: inherit
|
||||||
|
external-link-background-visited: inherit
|
||||||
|
external-link-background: inherit
|
||||||
|
external-link-foreground-hover: inherit
|
||||||
|
external-link-foreground-visited: #00a
|
||||||
|
external-link-foreground: #00e
|
||||||
|
foreground: #fff
|
||||||
|
message-background: <<colour foreground>>
|
||||||
|
message-border: <<colour background>>
|
||||||
|
message-foreground: <<colour background>>
|
||||||
|
modal-backdrop: <<colour foreground>>
|
||||||
|
modal-background: <<colour background>>
|
||||||
|
modal-border: <<colour foreground>>
|
||||||
|
modal-footer-background: <<colour background>>
|
||||||
|
modal-footer-border: <<colour foreground>>
|
||||||
|
modal-header-border: <<colour foreground>>
|
||||||
|
muted-foreground: #999
|
||||||
|
notification-background: <<colour background>>
|
||||||
|
notification-border: <<colour foreground>>
|
||||||
|
page-background: <<colour background>>
|
||||||
|
pre-background: <<colour background>>
|
||||||
|
pre-border: <<colour foreground>>
|
||||||
|
primary: #00f
|
||||||
|
sidebar-button-foreground: <<colour foreground>>
|
||||||
|
sidebar-controls-foreground-hover: <<colour background>>
|
||||||
|
sidebar-controls-foreground: <<colour foreground>>
|
||||||
|
sidebar-foreground-shadow: rgba(0,0,0, 0)
|
||||||
|
sidebar-foreground: <<colour foreground>>
|
||||||
|
sidebar-muted-foreground-hover: #444444
|
||||||
|
sidebar-muted-foreground: <<colour foreground>>
|
||||||
|
sidebar-tab-background-selected: <<colour background>>
|
||||||
|
sidebar-tab-background: <<colour tab-background>>
|
||||||
|
sidebar-tab-border-selected: <<colour tab-border-selected>>
|
||||||
|
sidebar-tab-border: <<colour tab-border>>
|
||||||
|
sidebar-tab-divider: <<colour tab-divider>>
|
||||||
|
sidebar-tab-foreground-selected: <<colour foreground>>
|
||||||
|
sidebar-tab-foreground: <<colour tab-foreground>>
|
||||||
|
sidebar-tiddler-link-foreground-hover: <<colour foreground>>
|
||||||
|
sidebar-tiddler-link-foreground: <<colour primary>>
|
||||||
|
site-title-foreground: <<colour tiddler-title-foreground>>
|
||||||
|
static-alert-foreground: #aaaaaa
|
||||||
|
tab-background-selected: <<colour background>>
|
||||||
|
tab-background: <<colour foreground>>
|
||||||
|
tab-border-selected: <<colour foreground>>
|
||||||
|
tab-border: <<colour foreground>>
|
||||||
|
tab-divider: <<colour foreground>>
|
||||||
|
tab-foreground-selected: <<colour foreground>>
|
||||||
|
tab-foreground: <<colour background>>
|
||||||
|
table-border: #dddddd
|
||||||
|
table-footer-background: #a8a8a8
|
||||||
|
table-header-background: #f0f0f0
|
||||||
|
tag-background: #fff
|
||||||
|
tag-foreground: #000
|
||||||
|
tiddler-background: <<colour background>>
|
||||||
|
tiddler-border: <<colour foreground>>
|
||||||
|
tiddler-controls-foreground-hover: #ddd
|
||||||
|
tiddler-controls-foreground-selected: #fdd
|
||||||
|
tiddler-controls-foreground: <<colour foreground>>
|
||||||
|
tiddler-editor-background: <<colour background>>
|
||||||
|
tiddler-editor-border-image: <<colour foreground>>
|
||||||
|
tiddler-editor-border: #cccccc
|
||||||
|
tiddler-editor-fields-even: <<colour background>>
|
||||||
|
tiddler-editor-fields-odd: <<colour background>>
|
||||||
|
tiddler-info-background: <<colour background>>
|
||||||
|
tiddler-info-border: <<colour foreground>>
|
||||||
|
tiddler-info-tab-background: <<colour background>>
|
||||||
|
tiddler-link-background: <<colour background>>
|
||||||
|
tiddler-link-foreground: <<colour primary>>
|
||||||
|
tiddler-subtitle-foreground: <<colour foreground>>
|
||||||
|
tiddler-title-foreground: <<colour foreground>>
|
||||||
|
toolbar-new-button:
|
||||||
|
toolbar-options-button:
|
||||||
|
toolbar-save-button:
|
||||||
|
toolbar-info-button:
|
||||||
|
toolbar-edit-button:
|
||||||
|
toolbar-close-button:
|
||||||
|
toolbar-delete-button:
|
||||||
|
toolbar-cancel-button:
|
||||||
|
toolbar-done-button:
|
||||||
|
untagged-background: <<colour foreground>>
|
||||||
|
very-muted-foreground: #888888
|
@ -70,7 +70,7 @@ This plugin is already installed at version <$text text=<<installedVersion>>/>
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\define display-server-assets(type)
|
\define display-server-assets(type)
|
||||||
Search: <$edit-text tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" default="" type="search" tag="input" focus="true"/>
|
Search: <$edit-text tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" default="" type="search" tag="input"/>
|
||||||
<$reveal state="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" type="nomatch" text="">
|
<$reveal state="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" type="nomatch" text="">
|
||||||
<$button class="tc-btn-invisible">
|
<$button class="tc-btn-invisible">
|
||||||
<$action-setfield $tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" $field="text" $value=""/>
|
<$action-setfield $tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" $field="text" $value=""/>
|
||||||
|
13
core/ui/ViewToolbar/open-window.tid
Normal file
13
core/ui/ViewToolbar/open-window.tid
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
title: $:/core/ui/Buttons/open-window
|
||||||
|
tags: $:/tags/ViewToolbar
|
||||||
|
caption: {{$:/core/images/open-window}} {{$:/language/Buttons/OpenWindow/Caption}}
|
||||||
|
description: {{$:/language/Buttons/OpenWindow/Hint}}
|
||||||
|
|
||||||
|
<$button message="tm-open-window" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/open-window}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/OpenWindow/Caption}}/></span>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
@ -1,5 +1,5 @@
|
|||||||
created: 2014013122133816
|
created: 2014013122133816
|
||||||
modified: 20141111122437656
|
modified: 20150502082437656
|
||||||
tags: howto
|
tags: howto
|
||||||
title: How to create plugins in the browser
|
title: How to create plugins in the browser
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@ -31,6 +31,7 @@ Click the link to the plugin tiddler to open it. Assuming it doesn't currently e
|
|||||||
|!Field |!Value |
|
|!Field |!Value |
|
||||||
|''dependents'' |Space separated list of dependent plugins (use square brackets for titles containing spaces) |
|
|''dependents'' |Space separated list of dependent plugins (use square brackets for titles containing spaces) |
|
||||||
|''description'' |Plugin description |
|
|''description'' |Plugin description |
|
||||||
|
|''name'' |Plugin name (only needed for themes) |
|
||||||
|''plugin-type'' |Either "plugin" for a regular plugin, "theme" for a theme, or "language" for a language pack |
|
|''plugin-type'' |Either "plugin" for a regular plugin, "theme" for a theme, or "language" for a language pack |
|
||||||
|''type'' |Set to "application/json" |
|
|''type'' |Set to "application/json" |
|
||||||
|''version'' |Set to the version number of the plugin (eg "0.0.1") |
|
|''version'' |Set to the version number of the plugin (eg "0.0.1") |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
modified: 20141016083333808
|
modified: 20150430153333808
|
||||||
title: TiddlyWiki Coding Style Guidelines
|
title: TiddlyWiki Coding Style Guidelines
|
||||||
tags: dev
|
tags: dev
|
||||||
|
|
||||||
@ -25,9 +25,9 @@ See the following example for layout of basic JavaScript constructs:
|
|||||||
Multiline comments are used to introduce a block of code such as a function definition
|
Multiline comments are used to introduce a block of code such as a function definition
|
||||||
*/
|
*/
|
||||||
function demoFunction(param,more) {
|
function demoFunction(param,more) {
|
||||||
// Proper sentence capitalisation for comments
|
// Proper sentence capitalisation for comments; prefer strict equality checks
|
||||||
if(condition == "something") {
|
if(condition === "something") {
|
||||||
// No space between "if" and the brackets; always spaces around binary operators
|
// Always use braces, even when optional; no space between "if" and the brackets; always spaces around binary operators
|
||||||
something = somethingElse;
|
something = somethingElse;
|
||||||
myOtherFunction(one,two); // No whitespace within function parameters
|
myOtherFunction(one,two); // No whitespace within function parameters
|
||||||
do {
|
do {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
title: $:/palette
|
title: $:/palette
|
||||||
|
|
||||||
$:/palettes/Contrast
|
$:/palettes/Vanilla
|
@ -1,10 +1,53 @@
|
|||||||
title: TiddlyWiki Pre-release
|
title: TiddlyWiki Pre-release
|
||||||
modified: 20141013204930183
|
modified: 20150428204930183
|
||||||
|
|
||||||
|
\define colour-picker(tiddler,colour)
|
||||||
|
<$edit-text tiddler="""$tiddler$""" index="""$colour$""" type="color" tag="input"/>
|
||||||
|
\end
|
||||||
|
|
||||||
This is a pre-release build of TiddlyWiki.
|
This is a pre-release build of TiddlyWiki.
|
||||||
|
|
||||||
It is provided for testing purposes. Please don't try to use it for anything important -- you should use the latest official release from http://tiddlywiki.com.
|
It is provided for testing purposes. Please don't try to use it for anything important -- you should use the latest official release from http://tiddlywiki.com.
|
||||||
|
|
||||||
Try out the experimental system tiddler browser:
|
! Features for 5.1.9
|
||||||
|
|
||||||
[[$:/core/ui/MoreSideBar/Explore]]
|
!! New Tiddler Toolbar Button: "Open in new window"
|
||||||
|
|
||||||
|
An experimental new tiddler toolbar button opens a single tiddler in a separate pop-up browser window. The tiddler will be dynamically updated just as in the main window. There are several uses:
|
||||||
|
|
||||||
|
* Arranging reference tiddlers for easy access while editing in the main window
|
||||||
|
* Making good use of multi-screen layouts
|
||||||
|
* Printing the content of a single tiddler
|
||||||
|
* Running presentations in a separate window while maintaining notes in the main window
|
||||||
|
|
||||||
|
!! Improvements for visually impaired users
|
||||||
|
|
||||||
|
* Improved monochrome palette variants:
|
||||||
|
** <$button>
|
||||||
|
<$action-setfield $tiddler="$:/theme" text="$:/themes/tiddlywiki/vanilla"/>
|
||||||
|
<$action-setfield $tiddler="$:/palette" text="$:/palettes/ContrastDark"/>
|
||||||
|
Dark palette
|
||||||
|
</$button>. Foreground: <<colour-picker "$:/palettes/ContrastDark" "foreground">>, Background: <<colour-picker "$:/palettes/ContrastDark" "background">>
|
||||||
|
** <$button>
|
||||||
|
<$action-setfield $tiddler="$:/theme" text="$:/themes/tiddlywiki/vanilla"/>
|
||||||
|
<$action-setfield $tiddler="$:/palette" text="$:/palettes/ContrastLight"/>
|
||||||
|
Light palette
|
||||||
|
</$button>. Foreground: <<colour-picker "$:/palettes/ContrastLight" "foreground">>, Background: <<colour-picker "$:/palettes/ContrastLight" "background">>
|
||||||
|
** <$button>
|
||||||
|
<$action-setfield $tiddler="$:/theme" text="$:/themes/tiddlywiki/snowwhite"/>
|
||||||
|
<$action-setfield $tiddler="$:/palette" text="$:/palettes/Vanilla"/>
|
||||||
|
Revert
|
||||||
|
</$button>
|
||||||
|
|
||||||
|
! Features held back for later release
|
||||||
|
|
||||||
|
These unfinished features are included in this prerelease build, but are not planned for inclusion in the next release.
|
||||||
|
|
||||||
|
* <$button>
|
||||||
|
<$action-setfield $tiddler="$:/view" text="stacked"/>
|
||||||
|
Set "Stacked" story view
|
||||||
|
</$button> <$button>
|
||||||
|
<$action-setfield $tiddler="$:/view" text="classic"/>
|
||||||
|
Revert
|
||||||
|
</$button>
|
||||||
|
* [[Hierarchical system tiddler browser|$:/core/ui/MoreSideBar/Explore]]
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
title: $:/theme
|
title: $:/theme
|
||||||
|
|
||||||
$:/themes/tiddlywiki/vanilla
|
$:/themes/tiddlywiki/snowwhite
|
@ -0,0 +1,14 @@
|
|||||||
|
created: 20150430154234863
|
||||||
|
modified: 20150430154355656
|
||||||
|
tags: Resources
|
||||||
|
title: SeeAlso by Matias Goldman
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
url: http://seealso.tiddlyspot.com
|
||||||
|
|
||||||
|
A simple technique for adding tag-based cross references to the default view template.
|
||||||
|
|
||||||
|
{{!!url}}
|
||||||
|
|
||||||
|
<<<
|
||||||
|
See also: - is a feature to generate a "See also:" section after the tiddler text, somewhat like in Wikipedia articles.
|
||||||
|
<<<
|
@ -1,5 +1,5 @@
|
|||||||
created: 20140920124011558
|
created: 20140920124011558
|
||||||
modified: 20140920124011558
|
modified: 20150430154230509
|
||||||
tags: Resources
|
tags: Resources
|
||||||
title: TWGuides by Andreas Hahn
|
title: TWGuides by Andreas Hahn
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@ -7,6 +7,8 @@ url: http://twguides.org/
|
|||||||
|
|
||||||
A collection of community tips and tutorials curated by Andreas Hahn, including a handy "customiser" that simplifies creating an empty TiddlyWiki with selected plugins and enhancements.
|
A collection of community tips and tutorials curated by Andreas Hahn, including a handy "customiser" that simplifies creating an empty TiddlyWiki with selected plugins and enhancements.
|
||||||
|
|
||||||
|
Updated to include [[Tinka|http://twguides.org/tinka.html]], a plugin that "provides a GUI to create and modify plugins more easily, therefore saving time on the packaging process".
|
||||||
|
|
||||||
{{!!url}}
|
{{!!url}}
|
||||||
|
|
||||||
<<<
|
<<<
|
||||||
|
Loading…
Reference in New Issue
Block a user