mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-19 20:40:02 +00:00
Give plugins a pluginType field
Ordinary plugins have the type "plugin", we'll also have "theme" and "language"
This commit is contained in:
parent
996a7279ed
commit
40ac461ca1
@ -1038,10 +1038,9 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) {
|
|||||||
title: pluginInfo.title,
|
title: pluginInfo.title,
|
||||||
type: "application/json",
|
type: "application/json",
|
||||||
plugin: "yes",
|
plugin: "yes",
|
||||||
text: JSON.stringify(pluginInfo,null,4)
|
text: JSON.stringify(pluginInfo,null,4),
|
||||||
}
|
pluginPriority: pluginInfo.pluginPriority,
|
||||||
if("pluginPriority" in pluginInfo) {
|
pluginType: pluginInfo.pluginType || "plugin"
|
||||||
fields.pluginPriority = pluginInfo.pluginPriority;
|
|
||||||
}
|
}
|
||||||
return fields;
|
return fields;
|
||||||
} else {
|
} else {
|
||||||
|
@ -3,5 +3,6 @@
|
|||||||
"description": "A simple, plain layout",
|
"description": "A simple, plain layout",
|
||||||
"author": "JeremyRuston",
|
"author": "JeremyRuston",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"coreVersion": ">=5.0.0"
|
"coreVersion": ">=5.0.0",
|
||||||
|
"pluginType": "theme"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user