1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-02-12 21:19:50 +00:00

Compare commits

..

8 Commits

Author SHA1 Message Date
Jermolene
60ab25bf6e Add print tiddler toolbar button 2018-05-16 17:04:25 +01:00
Jermolene
33e636cbe7 Docs: Add popupmechanism link to Button widget docs
Fixes #3284
2018-05-16 16:23:57 +01:00
Mario Pietsch
760c80c655 BibTex plugin: Fix a problem with MIME types under Ubuntu 18.04
Ubuntu 18.04 returns text/x-bibtex for .bib files instead of application/x-bibtex.
2018-05-16 14:20:51 +01:00
twMat
1436196758 Update search.tid (#3279)
minor correction
2018-05-15 15:44:03 +01:00
Jermolene
c252d7c945 BibTeX plugin: fix name of deserializer module 2018-05-15 14:02:27 +01:00
Jermolene
4fd980debe Docs: TiddlySpot and Ruby saver tweaks 2018-05-14 15:01:38 +01:00
Marxsal
38b24906c1 Docs: Saving via a minimal Ruby server (#3277)
* Saving via a minimal Ruby server

* Small grammatical mistake fix.
2018-05-14 14:56:00 +01:00
Jermolene
9e8a0653b0 Preparing for v5.1.18-prerelease 2018-05-12 12:31:10 +01:00
19 changed files with 105 additions and 7 deletions

View File

@@ -1999,6 +1999,7 @@ $tw.boot.startup = function(options) {
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.wordprocessingml.document","base64",".docx");
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","base64",".xlsx");
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.presentationml.presentation","base64",".pptx");
$tw.utils.registerFileType("text/x-bibtex","utf8",".bib",{deserializerType:"application/x-bibtex"});
$tw.utils.registerFileType("application/x-bibtex","utf8",".bib");
$tw.utils.registerFileType("application/epub+zip","base64",".epub");
// Create the wiki store for the app

View File

@@ -82,6 +82,8 @@ Permaview/Caption: permaview
Permaview/Hint: Set browser address bar to a direct link to all the tiddlers in this story
Print/Caption: print page
Print/Hint: Print the current page
PrintWindow/Caption: print in new window
PrintWindow/Hint: Print tiddler in new window
Refresh/Caption: refresh
Refresh/Hint: Perform a full refresh of the wiki
Save/Caption: ok

View File

@@ -29,6 +29,7 @@ exports.startup = function() {
title = event.param || event.tiddlerTitle,
paramObject = event.paramObject || {},
template = paramObject.template || "$:/core/templates/single.tiddler.window",
print = paramObject.print === "yes",
width = paramObject.width || "700",
height = paramObject.height || "600",
variables = $tw.utils.extend({},paramObject,{currentTiddler: title});
@@ -62,6 +63,10 @@ exports.startup = function() {
var parser = $tw.wiki.parseTiddler(template),
widgetNode = $tw.wiki.makeWidget(parser,{document: srcDocument, parentWidget: $tw.rootWidget, variables: variables});
widgetNode.render(srcDocument.body,srcDocument.body.firstChild);
// Print the window if required
if(print) {
srcWindow.print();
}
// Function to handle refreshes
refreshHandler = function(changes) {
if(styleWidgetNode.refresh(changes,styleContainer,null)) {

View File

@@ -0,0 +1,18 @@
title: $:/core/ui/Buttons/print-window
tags: $:/tags/ViewToolbar
caption: {{$:/core/images/print-button}} {{$:/language/Buttons/PrintWindow/Caption}}
description: {{$:/language/Buttons/PrintWindow/Hint}}
\whitespace trim
<$button tooltip={{$:/language/Buttons/PrintWindow/Hint}} aria-label={{$:/language/Buttons/PrintWindow/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-open-window" print="yes"/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/print-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text">
<$text text=" "/>
<$text text={{$:/language/Buttons/PrintWindow/Caption}}/>
</span>
</$list>
</$button>

View File

@@ -10,6 +10,7 @@ core/ui/Buttons/new-journal-here: hide
core/ui/Buttons/open-window: hide
core/ui/Buttons/permalink: hide
core/ui/Buttons/permaview: hide
core/ui/Buttons/print-window: hide
core/ui/Buttons/delete: hide
core/ui/Buttons/fold: hide
core/ui/Buttons/fold-bar: hide

View File

@@ -1,2 +1,2 @@
title: $:/tags/ViewToolbar
list: [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] [[$:/core/ui/Buttons/fold-others]] [[$:/core/ui/Buttons/fold]]
list: [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/print-window]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] [[$:/core/ui/Buttons/fold-others]] [[$:/core/ui/Buttons/fold]]

View File

@@ -0,0 +1,43 @@
caption: 5.1.18
created: 20180512112829164
modified: 20180512112829164
tags: ReleaseNotes
title: Release 5.1.18
type: text/vnd.tiddlywiki
//[[See GitHub for detailed change history of this release|https://github.com/Jermolene/TiddlyWiki5/compare/v5.1.17...v5.1.18]]//
!! New and Improved Plugins
*
!! Translation Improvements
New and improved translations:
*
!! Usability Improvements
*
!! Hackability Improvements
*
!! Bug Fixes
*
!! Developer Bug Fixes and Improvements
*
! Contributors
[[@Jermolene|https://github.com/Jermolene]] would like to thank the contributors to this release who have generously given their time to help improve TiddlyWiki:
* [[@example|https://github.com/example]]

View File

@@ -1,6 +1,6 @@
title: $:/config/LocalPluginLibrary
tags: $:/tags/PluginLibrary
url: http://127.0.0.1:8080/prerelease/library/v5.1.17/index.html
url: http://127.0.0.1:8080/prerelease/library/v5.1.18/index.html
caption: {{$:/language/OfficialPluginLibrary}} (Prerelease Local)
A locally installed version of the official ~TiddlyWiki plugin library at tiddlywiki.com for testing and debugging. //Requires a local web server to share the library//

View File

@@ -1,6 +1,6 @@
title: $:/config/OfficialPluginLibrary
tags: $:/tags/PluginLibrary
url: https://tiddlywiki.com/prerelease/library/v5.1.17/index.html
url: https://tiddlywiki.com/prerelease/library/v5.1.18/index.html
caption: {{$:/language/OfficialPluginLibrary}} (Prerelease)
The prerelease version of the official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team.

View File

@@ -10,7 +10,7 @@ op-suffix: optionally, the name of a [[field|TiddlerFields]]
op-suffix-name: F
op-parameter: one or more search terms, separated by spaces
op-output: those input tiddlers in which <<.em all>> of the search terms can be found in the value of field <<.place F>>
op-neg-output: those input tiddlers in which <<.em not>> all of the search terms can be so found
op-neg-output: those input tiddlers in which <<.em not>> all of the search terms can be found
When used with a suffix, the <<.op search>> operator is similar to <<.olink regexp>> but less powerful.

View File

@@ -12,6 +12,7 @@ The `tm-open-window` message opens a tiddler in a new //browser// window. If no
|template |Template in which the tiddler will be rendered in |
|width |Width of the new browser window |
|height |Height of the new browser window |
|print |Set to "yes" to trigger opening of the browser print dialogue |
|paramObject |Hashmap of variables that will be provided to the window |

View File

@@ -3,6 +3,10 @@ modified: 20160610082610879
tags: Saving Android Chrome Firefox InternetExplorer iOS Linux Mac Opera PHP Safari Windows
title: Saving on TiddlySpot
type: text/vnd.tiddlywiki
delivery: Service
method: save
caption: TiddlySpot
description: Free online service for hosting TiddlyWiki files
TiddlySpot is a free hosting service for TiddlyWiki documents from Simon and Daniel Baird. The easiest way to get started is to sign up for a new wiki at http://tiddlyspot.com - by default you'll get the latest release of TiddlyWiki Classic.

View File

@@ -0,0 +1,17 @@
caption: Ruby Server
created: 20180514011710789
delivery: Server-side Script
description: DIY script you can run as a server
method: save
modified: 20180513222628883
tags: Saving Android Chrome Firefox InternetExplorer iOS Linux Mac Opera Safari Windows
title: Saving via a Minimal Ruby Server
type: text/vnd.tiddlywiki
This is a minimal server using Ruby Webrick. It just serves up files from the same folder and handles saving.
Once running, just point your web browser at http://localhost:8000 to view the folder listing, and click on your wiki html file.
See the script at:
https://gist.github.com/jimfoltz/ee791c1bdd30ce137bc23cce826096da

View File

@@ -32,7 +32,7 @@ The content of the `<$button>` widget is displayed within the button.
|setTo |The new value to assign to the TextReference identified in the `set` attribute |
|selectedClass |An optional additional CSS class to be assigned if the popup is triggered or the tiddler specified in `set` already has the value specified in `setTo` |
|default |Default value if `set` tiddler is missing for testing against `setTo` to determine `selectedClass` |
|popup |Title of a state tiddler for a popup that is toggled when the button is clicked |
|popup |Title of a state tiddler for a popup that is toggled when the button is clicked. See PopupMechanism for details |
|aria-label |Optional [[Accessibility]] label |
|tooltip |Optional tooltip |
|class |An optional CSS class name to be assigned to the HTML element|

View File

@@ -82,6 +82,8 @@ Permaview/Caption: Permaview
Permaview/Hint: Die Adressleiste des Browsers enthält einen Link zu allen offenen Tiddlern in dieser Story
Print/Caption: Seite drucken
Print/Hint: Aktuelle Seite drucken
PrintWindow/Caption: Drucken in neuem Fenster
PrintWindow/Hint: Tiddler zum Drucken in neuem Fenster öffnen
Refresh/Caption: Aktualisieren
Refresh/Hint: Die Seite wird neu in den Browser geladen
Save/Caption: Fertig

View File

@@ -82,6 +82,8 @@ Permaview/Caption: 永久链接
Permaview/Hint: 设置浏览器网址栏为直接链接到当前所有已开启条目
Print/Caption: 打印页面
Print/Hint: 打印当前页面
PrintWindow/Caption: 在新窗口中打印
PrintWindow/Hint: 在新窗口中打印条目
Refresh/Caption: 刷新
Refresh/Hint: 执行维基的完全刷新
Save/Caption: 确定

View File

@@ -82,6 +82,8 @@ Permaview/Caption: 固定連結
Permaview/Hint: 設定瀏覽器網址列為直接連結到當前所有已開啟條目
Print/Caption: 列印頁面
Print/Hint: 列印當前頁面
PrintWindow/Caption: 在新視窗中列印
PrintWindow/Hint: 在新視窗中列印條目
Refresh/Caption: 重新整理
Refresh/Hint: 執行維基的完全刷新
Save/Caption: 確定

View File

@@ -1,7 +1,7 @@
{
"name": "tiddlywiki",
"preferGlobal": "true",
"version": "5.1.17",
"version": "5.1.18-prerelease",
"author": "Jeremy Ruston <jeremy@jermolene.com>",
"description": "a non-linear personal web notebook",
"contributors": [

View File

@@ -1,5 +1,5 @@
/*\
title: $:/plugins/tiddlywiki/excel-utils/deserializer.js
title: $:/plugins/tiddlywiki/bibtex/deserializer.js
type: application/javascript
module-type: tiddlerdeserializer