mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 23:03:50 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
cb32d187c5
@ -3,6 +3,7 @@ title: $:/language/
|
|||||||
ClassicWarning/Hint: This tiddler is written in TiddlyWiki Classic wiki text format, which is not fully compatible with TiddlyWiki version 5. See http://tiddlywiki.com/static/Upgrading.html for more details.
|
ClassicWarning/Hint: This tiddler is written in TiddlyWiki Classic wiki text format, which is not fully compatible with TiddlyWiki version 5. See http://tiddlywiki.com/static/Upgrading.html for more details.
|
||||||
ClassicWarning/Upgrade/Caption: upgrade
|
ClassicWarning/Upgrade/Caption: upgrade
|
||||||
CloseAll/Button: close all
|
CloseAll/Button: close all
|
||||||
|
ConfirmCancelTiddler: Do you wish to discard changes to the tiddler "<$text text=<<title>>/>"?
|
||||||
ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<<title>>/>"?
|
ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<<title>>/>"?
|
||||||
ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"?
|
ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"?
|
||||||
InvalidFieldName: Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters and the characters underscore (`_`), hyphen (`-`) and period (`.`)
|
InvalidFieldName: Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters and the characters underscore (`_`), hyphen (`-`) and period (`.`)
|
||||||
|
@ -379,7 +379,7 @@ Returns an object with the following fields, all optional:
|
|||||||
*/
|
*/
|
||||||
exports.parseTextReference = function(textRef) {
|
exports.parseTextReference = function(textRef) {
|
||||||
// Separate out the title, field name and/or JSON indices
|
// Separate out the title, field name and/or JSON indices
|
||||||
var reTextRef = /^\s*([^!#]+)?(?:(?:!!([^\s]+))|(?:##([^\s]+)))?\s*/mg,
|
var reTextRef = /^\s*([^!#]+)?(?:(?:!!([^\s]+))|(?:##(.+)))?\s*/mg,
|
||||||
match = reTextRef.exec(textRef);
|
match = reTextRef.exec(textRef);
|
||||||
if(match && reTextRef.lastIndex === textRef.length) {
|
if(match && reTextRef.lastIndex === textRef.length) {
|
||||||
// Return the parts
|
// Return the parts
|
||||||
|
@ -333,11 +333,23 @@ NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) {
|
|||||||
originalTitle = draftTiddler.fields["draft.of"],
|
originalTitle = draftTiddler.fields["draft.of"],
|
||||||
storyList = this.getStoryList();
|
storyList = this.getStoryList();
|
||||||
if(draftTiddler && originalTitle) {
|
if(draftTiddler && originalTitle) {
|
||||||
|
// Ask for confirmation if the tiddler text has changed
|
||||||
|
var isConfirmed = true;
|
||||||
|
if(this.wiki.getTiddlerText(draftTitle) !== this.wiki.getTiddlerText(originalTitle)) {
|
||||||
|
isConfirmed = confirm($tw.language.getString(
|
||||||
|
"ConfirmCancelTiddler",
|
||||||
|
{variables:
|
||||||
|
{title: draftTitle}
|
||||||
|
}
|
||||||
|
));
|
||||||
|
}
|
||||||
// Remove the draft tiddler
|
// Remove the draft tiddler
|
||||||
this.wiki.deleteTiddler(draftTitle);
|
if(isConfirmed) {
|
||||||
this.replaceFirstTitleInStory(storyList,draftTitle,originalTitle);
|
this.wiki.deleteTiddler(draftTitle);
|
||||||
this.addToHistory(originalTitle,event.navigateFromClientRect);
|
this.replaceFirstTitleInStory(storyList,draftTitle,originalTitle);
|
||||||
this.saveStoryList(storyList);
|
this.addToHistory(originalTitle,event.navigateFromClientRect);
|
||||||
|
this.saveStoryList(storyList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
@ -12,7 +12,6 @@ type: text/vnd.tiddlywiki
|
|||||||
* New ''Filter'' tab in [[$:/AdvancedSearch]]
|
* New ''Filter'' tab in [[$:/AdvancedSearch]]
|
||||||
* Initial implementation of CecilyView
|
* Initial implementation of CecilyView
|
||||||
* Overhaul of inconsistencies in TiddlerFilters (see [[Changes to filters in 5.0.9-beta]])
|
* Overhaul of inconsistencies in TiddlerFilters (see [[Changes to filters in 5.0.9-beta]])
|
||||||
*
|
|
||||||
|
|
||||||
!! Documentation Improvements
|
!! Documentation Improvements
|
||||||
|
|
||||||
@ -32,10 +31,7 @@ type: text/vnd.tiddlywiki
|
|||||||
* [[Enhance|https://github.com/Jermolene/TiddlyWiki5/commit/f48701544eda4f79af86b1ad44340e7182bcf024]] viewing of system tiddlers by fading down the `$:/` prefix
|
* [[Enhance|https://github.com/Jermolene/TiddlyWiki5/commit/f48701544eda4f79af86b1ad44340e7182bcf024]] viewing of system tiddlers by fading down the `$:/` prefix
|
||||||
* [[Extend|https://github.com/Jermolene/TiddlyWiki5/commit/dd3ee2a603cba35770a8f109e070f271d72861f8]] [[$:/TagManager]] to allow icons to be assigned to tags
|
* [[Extend|https://github.com/Jermolene/TiddlyWiki5/commit/dd3ee2a603cba35770a8f109e070f271d72861f8]] [[$:/TagManager]] to allow icons to be assigned to tags
|
||||||
* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/87c4839fed789b80e0942014c05175e36aacc157]] support for `list-before` and `list-after` fields for controlling tag ordering (see TiddlerTags for details)
|
* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/87c4839fed789b80e0942014c05175e36aacc157]] support for `list-before` and `list-after` fields for controlling tag ordering (see TiddlerTags for details)
|
||||||
|
* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/3afa26b9a318d913ba162d93a63036cb4a94be59]] request for confirmation before abandoning edits to a tiddler
|
||||||
!! Scalability Improvements
|
|
||||||
|
|
||||||
*
|
|
||||||
|
|
||||||
!! Hackability Improvements
|
!! Hackability Improvements
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ The `<$list>` widget can optionally render draft tiddlers through a different te
|
|||||||
|
|
||||||
!! `storyview` attribute
|
!! `storyview` attribute
|
||||||
|
|
||||||
The `storyview` attribute gives the specifies the name of an optional module that can animate changes to the list (including navigation). The core ships with the following storyview modules:
|
The `storyview` attribute specifies the name of an optional module that can animate changes to the list (including navigation). The core ships with the following storyview modules:
|
||||||
|
|
||||||
* `classic`: renders the list as an ordered sequence of tiddlers
|
* `classic`: renders the list as an ordered sequence of tiddlers
|
||||||
* `zoomin`: just renders the current tiddler from the list, with a zoom animation for navigating between tiddlers
|
* `zoomin`: just renders the current tiddler from the list, with a zoom animation for navigating between tiddlers
|
||||||
|
@ -3,8 +3,9 @@ title: $:/language/
|
|||||||
ClassicWarning/Hint: 此条目以经典版 TiddlyWiki 标记格式撰写,不完全相容新版 TiddlyWiki 的格式,详细信息请参阅:http://tiddlywiki.com/static/Upgrading。
|
ClassicWarning/Hint: 此条目以经典版 TiddlyWiki 标记格式撰写,不完全相容新版 TiddlyWiki 的格式,详细信息请参阅:http://tiddlywiki.com/static/Upgrading。
|
||||||
ClassicWarning/Upgrade/Caption: 升级
|
ClassicWarning/Upgrade/Caption: 升级
|
||||||
CloseAll/Button: 全部关闭
|
CloseAll/Button: 全部关闭
|
||||||
ConfirmDeleteTiddler: 您确定要删除条目 "<$text text=<<title>>/>" ?
|
ConfirmCancelTiddler: 您确定要放弃对条目 "<$text text=<<title>>/>" 的更改?
|
||||||
ConfirmOverwriteTiddler: 您确定要覆写条目 "<$text text=<<title>>/>" ?
|
ConfirmDeleteTiddler: 您确定要删除条目 "<$text text=<<title>>/>"?
|
||||||
|
ConfirmOverwriteTiddler: 您确定要覆写条目 "<$text text=<<title>>/>"?
|
||||||
InvalidFieldName: 栏位名称 "<$text text=<<fieldName>>/>" 包含无效字符,栏位名称只能包含小写字母和底线 (`_`)、 连字号 (`-`) 和小数点 (`.`)
|
InvalidFieldName: 栏位名称 "<$text text=<<fieldName>>/>" 包含无效字符,栏位名称只能包含小写字母和底线 (`_`)、 连字号 (`-`) 和小数点 (`.`)
|
||||||
MissingTiddler/Hint: 佚失条目 "<$text text=<<currentTiddler>>/>" - 点击 {{$:/core/images/edit-button}} 可创建此条目
|
MissingTiddler/Hint: 佚失条目 "<$text text=<<currentTiddler>>/>" - 点击 {{$:/core/images/edit-button}} 可创建此条目
|
||||||
RecentChanges/DateFormat: YYYY年0MM月0DD日
|
RecentChanges/DateFormat: YYYY年0MM月0DD日
|
||||||
|
@ -3,8 +3,9 @@ title: $:/language/
|
|||||||
ClassicWarning/Hint: 此條目以經典版 TiddlyWiki 標記格式撰寫,不完全相容新版 TiddlyWiki 的格式,詳細資訊請參閱:http://tiddlywiki.com/static/Upgrading。
|
ClassicWarning/Hint: 此條目以經典版 TiddlyWiki 標記格式撰寫,不完全相容新版 TiddlyWiki 的格式,詳細資訊請參閱:http://tiddlywiki.com/static/Upgrading。
|
||||||
ClassicWarning/Upgrade/Caption: 升級
|
ClassicWarning/Upgrade/Caption: 升級
|
||||||
CloseAll/Button: 全部關閉
|
CloseAll/Button: 全部關閉
|
||||||
ConfirmDeleteTiddler: 您確定要刪除條目 "<$text text=<<title>>/>" ?
|
ConfirmCancelTiddler: 您確定要放棄對條目 "<$text text=<<title>>/>" 的更改?
|
||||||
ConfirmOverwriteTiddler: 您確定要覆寫條目 "<$text text=<<title>>/>" ?
|
ConfirmDeleteTiddler: 您確定要刪除條目 "<$text text=<<title>>/>"?
|
||||||
|
ConfirmOverwriteTiddler: 您確定要覆寫條目 "<$text text=<<title>>/>"?
|
||||||
InvalidFieldName: 欄位名稱 "<$text text=<<fieldName>>/>" 包含無效字元,欄位名稱只能包含小寫字母和底線 (`_`)、 連接號 (`-`) 和小數點 (`.`)
|
InvalidFieldName: 欄位名稱 "<$text text=<<fieldName>>/>" 包含無效字元,欄位名稱只能包含小寫字母和底線 (`_`)、 連接號 (`-`) 和小數點 (`.`)
|
||||||
MissingTiddler/Hint: 佚失條目 "<$text text=<<currentTiddler>>/>" - 點擊 {{$:/core/images/edit-button}} 可建立此條目
|
MissingTiddler/Hint: 佚失條目 "<$text text=<<currentTiddler>>/>" - 點擊 {{$:/core/images/edit-button}} 可建立此條目
|
||||||
RecentChanges/DateFormat: YYYY年0MM月0DD日
|
RecentChanges/DateFormat: YYYY年0MM月0DD日
|
||||||
|
@ -84,7 +84,8 @@ Load the current map
|
|||||||
CecilyStoryView.prototype.loadMap = function() {
|
CecilyStoryView.prototype.loadMap = function() {
|
||||||
this.map = this.listWidget.wiki.getTiddlerData(this.getMapTiddlerTitle(),{
|
this.map = this.listWidget.wiki.getTiddlerData(this.getMapTiddlerTitle(),{
|
||||||
positions: {},
|
positions: {},
|
||||||
newTiddlerPosition: {x: 0, y: 0}
|
newTiddlerPosition: {x: 0, y: 0},
|
||||||
|
width: 660
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -99,6 +100,7 @@ CecilyStoryView.prototype.positionTiddler = function(title,domNode) {
|
|||||||
var pos = this.lookupTiddlerInMap(title,domNode),
|
var pos = this.lookupTiddlerInMap(title,domNode),
|
||||||
scale = pos.w/domNode.offsetWidth;
|
scale = pos.w/domNode.offsetWidth;
|
||||||
$tw.utils.setStyle(domNode,[
|
$tw.utils.setStyle(domNode,[
|
||||||
|
{width: this.map.width + "px"},
|
||||||
{transformOrigin: "0% 0%"},
|
{transformOrigin: "0% 0%"},
|
||||||
{transform: "translateX(" + pos.x + "px) translateY(" + pos.y + "px) scale(" + scale + ")"}
|
{transform: "translateX(" + pos.x + "px) translateY(" + pos.y + "px) scale(" + scale + ")"}
|
||||||
]);
|
]);
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
title: $:/themes/tiddlywiki/vanilla/base
|
title: $:/themes/tiddlywiki/vanilla/base
|
||||||
tags: [[$:/tags/stylesheet]]
|
tags: [[$:/tags/stylesheet]]
|
||||||
|
|
||||||
|
\define if-no-sidebar(text)
|
||||||
|
<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal>
|
||||||
|
\end
|
||||||
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
|
||||||
/*
|
/*
|
||||||
** Start with the normalize CSS reset, and then belay some of its effects
|
** Start with the normalize CSS reset, and then belay some of its effects
|
||||||
@ -463,6 +466,17 @@ a.tw-tiddlylink-external:hover {
|
|||||||
width: {{$:/themes/tiddlywiki/vanilla/metrics##storywidth}};
|
width: {{$:/themes/tiddlywiki/vanilla/metrics##storywidth}};
|
||||||
padding: 42px 42px 42px 42px;
|
padding: 42px 42px 42px 42px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<<if-no-sidebar "
|
||||||
|
|
||||||
|
.story-river {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
">>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
@ -526,6 +540,14 @@ a.tw-tiddlylink-external:hover {
|
|||||||
width: {{$:/themes/tiddlywiki/vanilla/metrics##tiddlerwidth}};
|
width: {{$:/themes/tiddlywiki/vanilla/metrics##tiddlerwidth}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<if-no-sidebar "
|
||||||
|
|
||||||
|
.tw-tiddler-frame {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
">>
|
||||||
|
|
||||||
.tw-tiddler-info {
|
.tw-tiddler-info {
|
||||||
margin: 0 -42px 0 -42px;
|
margin: 0 -42px 0 -42px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user