mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
Rename the internal boot modules
This commit is contained in:
parent
ec2633a241
commit
b9f692d66f
16
core/boot.js
16
core/boot.js
@ -342,17 +342,17 @@ $tw.Tiddler.fieldModules = {};
|
|||||||
/*
|
/*
|
||||||
Register and install the built in tiddler field modules
|
Register and install the built in tiddler field modules
|
||||||
*/
|
*/
|
||||||
$tw.modules.registerTypedModule("$:/kernel/tiddlerfields/modified","tiddlerfield",{
|
$tw.modules.registerTypedModule("$:/boot/tiddlerfields/modified","tiddlerfield",{
|
||||||
name: "modified",
|
name: "modified",
|
||||||
parse: $tw.utils.parseDate,
|
parse: $tw.utils.parseDate,
|
||||||
stringify: $tw.utils.stringifyDate
|
stringify: $tw.utils.stringifyDate
|
||||||
});
|
});
|
||||||
$tw.modules.registerTypedModule("$:/kernel/tiddlerfields/created","tiddlerfield",{
|
$tw.modules.registerTypedModule("$:/boot/tiddlerfields/created","tiddlerfield",{
|
||||||
name: "created",
|
name: "created",
|
||||||
parse: $tw.utils.parseDate,
|
parse: $tw.utils.parseDate,
|
||||||
stringify: $tw.utils.stringifyDate
|
stringify: $tw.utils.stringifyDate
|
||||||
});
|
});
|
||||||
$tw.modules.registerTypedModule("$:/kernel/tiddlerfields/tags","tiddlerfield",{
|
$tw.modules.registerTypedModule("$:/boot/tiddlerfields/tags","tiddlerfield",{
|
||||||
name: "tags",
|
name: "tags",
|
||||||
parse: $tw.utils.parseStringArray,
|
parse: $tw.utils.parseStringArray,
|
||||||
stringify: function(value) {
|
stringify: function(value) {
|
||||||
@ -467,7 +467,7 @@ $tw.Wiki.prototype.deserializeTiddlers = function(type,text,srcFields) {
|
|||||||
/*
|
/*
|
||||||
Register the built in tiddler deserializer modules
|
Register the built in tiddler deserializer modules
|
||||||
*/
|
*/
|
||||||
$tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/js","tiddlerdeserializer",{
|
$tw.modules.registerTypedModule("$:/boot/tiddlerdeserializer/js","tiddlerdeserializer",{
|
||||||
"application/javascript": function(text,fields) {
|
"application/javascript": function(text,fields) {
|
||||||
var headerCommentRegExp = new RegExp($tw.config.jsModuleHeaderRegExpString,"mg"),
|
var headerCommentRegExp = new RegExp($tw.config.jsModuleHeaderRegExpString,"mg"),
|
||||||
match = headerCommentRegExp.exec(text);
|
match = headerCommentRegExp.exec(text);
|
||||||
@ -478,7 +478,7 @@ $tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/js","tiddlerdeser
|
|||||||
return [fields];
|
return [fields];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/tid","tiddlerdeserializer",{
|
$tw.modules.registerTypedModule("$:/boot/tiddlerdeserializer/tid","tiddlerdeserializer",{
|
||||||
"application/x-tiddler": function(text,fields) {
|
"application/x-tiddler": function(text,fields) {
|
||||||
var split = text.split(/\r?\n\r?\n/mg);
|
var split = text.split(/\r?\n\r?\n/mg);
|
||||||
if(split.length > 1) {
|
if(split.length > 1) {
|
||||||
@ -490,14 +490,14 @@ $tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/tid","tiddlerdese
|
|||||||
return [fields];
|
return [fields];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/txt","tiddlerdeserializer",{
|
$tw.modules.registerTypedModule("$:/boot/tiddlerdeserializer/txt","tiddlerdeserializer",{
|
||||||
"text/plain": function(text,fields) {
|
"text/plain": function(text,fields) {
|
||||||
fields.text = text;
|
fields.text = text;
|
||||||
fields.type = "text/plain";
|
fields.type = "text/plain";
|
||||||
return [fields];
|
return [fields];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/html","tiddlerdeserializer",{
|
$tw.modules.registerTypedModule("$:/boot/tiddlerdeserializer/html","tiddlerdeserializer",{
|
||||||
"text/html": function(text,fields) {
|
"text/html": function(text,fields) {
|
||||||
fields.text = text;
|
fields.text = text;
|
||||||
fields.type = "text/html";
|
fields.type = "text/html";
|
||||||
@ -544,7 +544,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) {
|
|||||||
/*
|
/*
|
||||||
Register a deserializer that can extract tiddlers from the DOM
|
Register a deserializer that can extract tiddlers from the DOM
|
||||||
*/
|
*/
|
||||||
$tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/dom","tiddlerdeserializer",{
|
$tw.modules.registerTypedModule("$:/boot/tiddlerdeserializer/dom","tiddlerdeserializer",{
|
||||||
"(DOM)": function(node) {
|
"(DOM)": function(node) {
|
||||||
var extractTextTiddler = function(node) {
|
var extractTextTiddler = function(node) {
|
||||||
var e = node.firstChild;
|
var e = node.firstChild;
|
||||||
|
Loading…
Reference in New Issue
Block a user