1
0
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:
Jeremy Ruston 2012-08-30 14:43:58 +01:00
parent ec2633a241
commit b9f692d66f

View File

@ -342,17 +342,17 @@ $tw.Tiddler.fieldModules = {};
/*
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",
parse: $tw.utils.parseDate,
stringify: $tw.utils.stringifyDate
});
$tw.modules.registerTypedModule("$:/kernel/tiddlerfields/created","tiddlerfield",{
$tw.modules.registerTypedModule("$:/boot/tiddlerfields/created","tiddlerfield",{
name: "created",
parse: $tw.utils.parseDate,
stringify: $tw.utils.stringifyDate
});
$tw.modules.registerTypedModule("$:/kernel/tiddlerfields/tags","tiddlerfield",{
$tw.modules.registerTypedModule("$:/boot/tiddlerfields/tags","tiddlerfield",{
name: "tags",
parse: $tw.utils.parseStringArray,
stringify: function(value) {
@ -467,7 +467,7 @@ $tw.Wiki.prototype.deserializeTiddlers = function(type,text,srcFields) {
/*
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) {
var headerCommentRegExp = new RegExp($tw.config.jsModuleHeaderRegExpString,"mg"),
match = headerCommentRegExp.exec(text);
@ -478,7 +478,7 @@ $tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/js","tiddlerdeser
return [fields];
}
});
$tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/tid","tiddlerdeserializer",{
$tw.modules.registerTypedModule("$:/boot/tiddlerdeserializer/tid","tiddlerdeserializer",{
"application/x-tiddler": function(text,fields) {
var split = text.split(/\r?\n\r?\n/mg);
if(split.length > 1) {
@ -490,14 +490,14 @@ $tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/tid","tiddlerdese
return [fields];
}
});
$tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/txt","tiddlerdeserializer",{
$tw.modules.registerTypedModule("$:/boot/tiddlerdeserializer/txt","tiddlerdeserializer",{
"text/plain": function(text,fields) {
fields.text = text;
fields.type = "text/plain";
return [fields];
}
});
$tw.modules.registerTypedModule("$:/kernel/tiddlerdeserializer/html","tiddlerdeserializer",{
$tw.modules.registerTypedModule("$:/boot/tiddlerdeserializer/html","tiddlerdeserializer",{
"text/html": function(text,fields) {
fields.text = text;
fields.type = "text/html";
@ -544,7 +544,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) {
/*
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) {
var extractTextTiddler = function(node) {
var e = node.firstChild;