1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Makelibrary.js: Minor refactoring

This commit is contained in:
Jeremy Ruston 2020-04-14 12:08:15 +01:00
parent 4146a04a9e
commit 0836fb7184

View File

@ -51,20 +51,9 @@ Command.prototype.execute = function() {
} }
} }
}; };
var pluginsPaths = $tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar); $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),collectPublisherPlugins);
for(var u=0; u<pluginsPaths.length; u++) { $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),collectPublisherPlugins);
collectPublisherPlugins(pluginsPaths[u]); $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),collectPlugins);
}
var themesPaths = $tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar);
for(var u=0; u<themesPaths.length; u++) {
collectPublisherPlugins(themesPaths[u]);
}
var languagesPaths = $tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar);
for(var u=0; u<languagesPaths.length; u++) {
collectPlugins(languagesPaths[u]);
}
// Save the upgrade library tiddler // Save the upgrade library tiddler
var pluginFields = { var pluginFields = {
title: upgradeLibraryTitle, title: upgradeLibraryTitle,