dsh-tiddlywiki 0.26.0 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/lib/client.js +8 -8
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/settings-page.ts +51 -10
- package/src/host/admin.ts +11 -2
package/lib/index.js
CHANGED
|
@@ -8390,9 +8390,10 @@ async function bundledCatalog(twRoot) {
|
|
|
8390
8390
|
info = {};
|
|
8391
8391
|
}
|
|
8392
8392
|
if (sub === "themes" && dir !== "vanilla" && !await themeHasCss(dir)) continue;
|
|
8393
|
+
const declaredTitle = typeof info.title === "string" && info.title.length > 0 ? info.title : void 0;
|
|
8393
8394
|
out.push({
|
|
8394
8395
|
name: `tiddlywiki/${dir}`,
|
|
8395
|
-
title: sub === "plugins" ? `$:/plugins/tiddlywiki/${dir}` : `$:/themes/tiddlywiki/${dir}
|
|
8396
|
+
title: declaredTitle ?? (sub === "plugins" ? `$:/plugins/tiddlywiki/${dir}` : `$:/themes/tiddlywiki/${dir}`),
|
|
8396
8397
|
label: info.name ?? dir,
|
|
8397
8398
|
description: info.description ?? "",
|
|
8398
8399
|
dependents: Array.isArray(info.dependents) ? info.dependents.map((dep) => dep.replace(/^\$:\/themes\/tiddlywiki\//, "tiddlywiki/")) : void 0
|